sentence
stringlengths
3
347
sql
stringlengths
18
804
Provide the supplier company name in Sydney and its homepage address if available.
SELECT CompanyName, HomePage FROM Suppliers WHERE City = 'Sydney'
With an overall record of KSU, 118-117 what is the last 5 meetings?
SELECT last_5_meetings FROM table_name_38 WHERE overall_record = "ksu, 118-117"
What is the phonemic when the phonetic is [pʰaː˥˥]?
SELECT phonemic FROM table_name_42 WHERE phonetic = "[pʰaː˥˥]"
What are the name, role code, and date of birth of the employee named 'Armani'?
SELECT employee_name , role_code , date_of_birth FROM Employees WHERE employee_Name = 'Armani'
List all the titles of the Spanish books published by Alfaguara.
SELECT T2.title FROM book_language AS T1 INNER JOIN book AS T2 ON T2.language_id = T1.language_id INNER JOIN publisher AS T3 ON T3.publisher_id = T2.publisher_id WHERE T1.language_name = 'Spanish' AND T3.publisher_name = 'Alfaguara' GROUP BY T2.title
What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?
SELECT actors_name FROM table_10236830_6 WHERE film_name = "Chopin: Desire for Love" AND nomination = "Best Actress in a Leading Role"
Describe the award title, person and character name of the award ID 326.
SELECT DISTINCT T1.award, T1.person, T2.character FROM Award AS T1 INNER JOIN Character_Award AS T2 ON T1.award_id = T2.award_id WHERE T2.award_id = 326;
what is the person there the numbers is 2343
SELECT player FROM table_28498999_6 WHERE points = 2343
Show the names and main services for train stations that have the top three total number of passengers.
SELECT name , main_services FROM station ORDER BY total_passengers DESC LIMIT 3
with rank of 31 what is the year?
SELECT COUNT(year) FROM table_name_48 WHERE rank = "31"
What are those players' names?
SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%' and yCard = "yes"
Return the ids of all products that were ordered more than three times or supplied more than 80000.
SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased) > 80000
When did the Indians play a game with 15,105 people in attendance?
SELECT date FROM table_name_5 WHERE attendance = "15,105"
Which channels are not owned by CCTV? Give me the channel names.
SELECT name FROM channel WHERE OWNER != 'CCTV'
what's the score in canada with place of t8?
SELECT score FROM table_name_83 WHERE country = "canada" AND place = "t8"
Hello! Can you show me a list of all of the coupon IDs and coupon amounts?
SELECT coupon_id, coupon_amount FROM Discount_Coupons
What is the smallest total number of medals for rank 11 and more than 0 silver medals?
SELECT MIN(total) FROM table_name_25 WHERE rank = "11" AND silver > 0
Give the contact name of the supplier for the product "Gudbrandsdalsost".
SELECT T2.ContactName FROM Products AS T1 INNER JOIN Suppliers AS T2 ON T1.SupplierID = T2.SupplierID WHERE T1.ProductName = 'Gudbrandsdalsost'
How many laps does driver dario franchitti have?
SELECT laps FROM table_name_46 WHERE driver = "dario franchitti"
What are the maximum and minimum number of cities in all markets.
SELECT max(Number_cities) , min(Number_cities) FROM market
List the names of all the umpires from England.
SELECT T1.Umpire_Name FROM Umpire AS T1 INNER JOIN country AS T2 ON T2.Country_Id = T1.Umpire_Country WHERE T2.Country_Name = 'England'
Which Average that has a W-L-T of 5-1, and a Season smaller than 2001, and Games smaller than 6?
SELECT AVG(average) FROM table_name_59 WHERE w_l_t = "5-1" AND season < 2001 AND games < 6
How many businesses with the category named Stadiums & Arenas are rated highest?
SELECT COUNT(T1.business_id) FROM Business_Categories AS T1 INNER JOIN Categories AS T2 ON T1.category_id = T2.category_id INNER JOIN Business AS T3 ON T1.business_id = T3.business_id WHERE T2.category_name = 'Stadiums & Arenas' AND T3.stars = ( SELECT MAX(stars) FROM Business )
WHAT IS THE HIGHEST WINS WITH A SERIES OF BRITISH FORMULA THREE, SEASON 2005, POLES SMALLER THAN 0?
SELECT MAX(wins) FROM table_name_89 WHERE series = "british formula three" AND season = "2005" AND poles < 0
How many books on business have the bookstores in Massachusetts ordered?
SELECT SUM(T1.qty) FROM sales AS T1 INNER JOIN stores AS T2 ON T1.stor_id = T2.stor_id INNER JOIN titles AS T3 ON T1.title_id = T3.title_id WHERE T2.state = 'Massachusetts' AND T3.type = 'business'
What is the county and region of Davis City?
SELECT county, region FROM geographic WHERE city = 'Davis'
What is the ship id and name that caused most total injuries?
SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.id ORDER BY COUNT(*) DESC LIMIT 1
What is the Total for the Player with a To par of +11?
SELECT MAX(total) FROM table_name_17 WHERE to_par = "+11"
Name the most overall rank for czech republic
SELECT MAX(overall_rank) FROM table_2701625_1 WHERE country = "Czech Republic"
Tell me the total number of grid for laps of 52
SELECT COUNT(grid) FROM table_name_60 WHERE laps = 52
What is the estimated end date for the 2001-037a international designated satellite?
SELECT estimated_end_date[_clarification_needed_] FROM table_18161217_2 WHERE cospar_id = "2001-037A"
What is the genre name of the film HUNGER ROOF?
SELECT T1.name FROM category AS T1 JOIN film_category AS T2 ON T1.category_id = T2.category_id JOIN film AS T3 ON T2.film_id = T3.film_id WHERE T3.title = 'HUNGER ROOF'
What year finished with Daniel Zueras as the runner-up?
SELECT COUNT(year) FROM table_1149495_1 WHERE runner_up = "Daniel Zueras"
Find the student ID and login name of the student with the most course enrollments
SELECT T1.student_id , T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.
SELECT min(membership_amount) , max(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'
Show the id, name of each festival and the number of artworks it has nominated.
SELECT T1.Festival_ID , T3.Festival_Name , COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID
What is the sum of Round(s), when Method is "Submission (Banana Split)"?
SELECT SUM(round) FROM table_name_79 WHERE method = "submission (banana split)"
what is the english translation when the Language is english, Draw is smaller than 16, and the Artist is aysel and arash?
SELECT english_translation FROM table_name_51 WHERE language = "english" AND draw < 16 AND artist = "aysel and arash"
Name the lost for % won of 55.37
SELECT lost FROM table_name_64 WHERE _percentage_won = "55.37"
Which state is University of Tennessee based in?
SELECT state FROM table_name_27 WHERE host = "university of tennessee"
What region has a transmitter located at Mount Sugarloaf?
SELECT region_served FROM table_name_1 WHERE transmitter_location = "mount sugarloaf"
List all players' given name who are good at both left and right hand and playing the forward position.
SELECT nameGiven FROM Master WHERE shootCatch IS NULL AND pos = 'F'
List the hardware model name for the phones that were produced by "Nokia Corporation" or whose screen mode type is "Graphics."
SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T1.Type = "Graphics" OR t2.Company_name = "Nokia Corporation"
List the order cancelled customer id from the table?
select order_id ,customer_id from Customer_Orders where order_status = 'Cancelled'
What is the supply cost of large plated tin?
SELECT T2.ps_supplycost FROM part AS T1 INNER JOIN partsupp AS T2 ON T1.p_partkey = T2.ps_partkey WHERE T1.p_type = 'large plated tin'
What is the lowest score for a year before 2008 and had 3rd place?
SELECT MIN(score) FROM table_name_89 WHERE year < 2008 AND placement = "3rd"
What dates of captaincy for a win % of 35.71?
SELECT dates_of_captaincy FROM table_name_14 WHERE _percentage_win_[a_] = 35.71
What country had the car with the Jawa 350cc engine?
SELECT country FROM table_name_42 WHERE engine_make_capacity = "jawa 350cc"
Find the countries that have never participated in any competition with Friendly type.
SELECT country FROM competition EXCEPT SELECT country FROM competition WHERE competition_type = 'Friendly'
Find all students taught by OTHA MOYER. Output the first and last names of the students.
SELECT T1.firstname , T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER"
Who wrote the episode that had 5.93 million viewers?
SELECT writer FROM table_27846651_1 WHERE viewers__millions_ = "5.93"
Find out the popularity of the movies with the highest vote count.
SELECT popularity FROM movie ORDER BY vote_COUNT DESC LIMIT 1
What is the capital for the state that has the largest city of Burlington?
SELECT capital FROM table_name_27 WHERE largest_city = "burlington"
Where was September 5?
SELECT location FROM table_name_25 WHERE date = "september 5"
What is the total capacity for the city of Trogir?
SELECT SUM(capacity) FROM table_name_21 WHERE city = "trogir"
How many different starts had an average finish of 17.9?
SELECT COUNT(starts) FROM table_2622469_1 WHERE avg_finish = "17.9"
what is the role of the project id 5?
SELECT role_code FROM Project_Staff WHERE project_id = 5
Which Series has Poles of 0, and Races of 17?
SELECT series FROM table_name_72 WHERE poles = "0" AND races = "17"
Find the total population of the districts where the area is bigger than the average city area.
SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district)
List all location attendance for series 1-1.
SELECT location_attendance FROM table_17344582_11 WHERE series = "1-1"
Which game type has most number of games?
SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count ( * ) DESC LIMIT 1
What was the highest lap count for Walker Racing with a grid larger than 15?
SELECT MAX(laps) FROM table_name_34 WHERE team = "walker racing" AND grid > 15
Which Date has a Game smaller than 4, and an Opponent of calgary flames, and a Score of 4–5?
SELECT date FROM table_name_83 WHERE game < 4 AND opponent = "calgary flames" AND score = "4–5"
Show the names and details of all the staff members.
SELECT Name , Other_Details FROM Staff
What is the payment method code used by the most orders?
SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1
What is the name of each course and the corresponding number of student enrollment?
SELECT T1.course_name , COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name
Show the document type code with fewer than 3 documents.
SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING count(*) < 3
Which Lost has a Position of 4, and a Drawn smaller than 3?
SELECT AVG(lost) FROM table_name_4 WHERE position = 4 AND drawn < 3
Which stadium name contains the substring "Bank"?
SELECT name FROM stadium WHERE name LIKE "%Bank%"
What year were the first game released?
SELECT T.release_year FROM game_platform AS T ORDER BY T.release_year ASC LIMIT 1
What are the heights of body builders with total score smaller than 315?
SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315
What is the smallest goal during the 2006 fifa world cup qualification competition?
SELECT MIN(goal) FROM table_name_45 WHERE competition = "2006 fifa world cup qualification"
List down the movies produced by Lucasfilm.
SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Lucasfilm'
what is item id of cup?
SELECT i_id FROM item where title = 'cup'
What is the shortest duration?
SELECT duration from files order by duration limit 1
What was the title for the label mother / mvp / polydor?
SELECT title FROM table_name_80 WHERE label = "mother / mvp / polydor"
What is the average Year Named, when Latitude is 37.9N, and when Diameter (km) is greater than 76?
SELECT AVG(year_named) FROM table_name_70 WHERE latitude = "37.9n" AND diameter__km_ > 76
What classes did each school offer?
SELECT * , T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code
What are the names and positions of all physicians who prescribed brand X medications?
SELECT DISTINCT T1.name , T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = "X"
Which Constellation has an Apparent magnitude larger that 7.7, and an NGC number of 7777
SELECT constellation FROM table_name_60 WHERE apparent_magnitude > 7.7 AND ngc_number = 7777
Which director had not nominated as a result, and had Bayan Ko: Kapit Sa Patalim as an original title?
SELECT director FROM table_name_51 WHERE result = "not nominated" AND original_title = "bayan ko: kapit sa patalim"
What is the highest total of the player with a 7 to par?
SELECT MAX(total) FROM table_name_71 WHERE to_par = 7
Which MLS team had a pick number of 32?
SELECT mls_team FROM table_name_3 WHERE pick__number = 32
What is the largest and smallest customer codes?
SELECT max(customer_code) , min(customer_code) FROM Customers
What was the attendance at the post-week 7 game against the San Diego Chargers?
SELECT attendance FROM table_name_53 WHERE week > 7 AND opponent = "san diego chargers"
What was the detailed issue did Mr Gunner Omer Fuller complain about?
SELECT T2.`Sub-issue` FROM client AS T1 INNER JOIN events AS T2 ON T1.client_id = T2.Client_ID WHERE T1.first = 'Gunner' AND T1.middle = 'Omer' AND T1.last = 'Fuller' AND T1.sex = 'Male'
What is the away side that playes at lake oval?
SELECT away_team AS score FROM table_name_12 WHERE venue = "lake oval"
When the Winning score is 68-65-65-68=266, what is the Margin of victory?
SELECT margin_of_victory FROM table_name_59 WHERE winning_score = 68 - 65 - 65 - 68 = 266
Who were the candidates in district Pennsylvania 3?
SELECT candidates FROM table_1341423_38 WHERE district = "Pennsylvania 3"
Provide the body weight of Elly Koss in every observation.
SELECT T2.DESCRIPTION, T2.VALUE, T2.UNITS FROM patients AS T1 INNER JOIN observations AS T2 ON T1.patient = T2.PATIENT WHERE T1.first = 'Elly' AND T1.last = 'Koss' AND T2.DESCRIPTION = 'Body Weight'
What is their name?
SELECT T1.name FROM patient AS T1 JOIN appointment AS T2 ON T1.ssn = T2.patient ORDER BY T2.start DESC LIMIT 1
What was the outcome of the game that had a week number of less than 2?
SELECT result FROM table_name_67 WHERE week < 2
How many times has a wrestler whose federation was roh, wwe competed in this event?
SELECT COUNT(other_placings) FROM table_2305948_1 WHERE federation = "ROH, WWE"
What was the 2nd leg score for Chemie Halle?
SELECT 2 AS nd_leg FROM table_name_73 WHERE team__number1 = "chemie halle"
How many budget types do we have?
SELECT count(*) FROM Ref_budget_codes
What is To Par, when Place is 3?
SELECT to_par FROM table_name_43 WHERE place = "3"
How many images have over 20 object samples?
SELECT COUNT(T1.IMG_ID) FROM ( SELECT IMG_ID FROM IMG_OBJ GROUP BY IMG_ID HAVING COUNT(OBJ_SAMPLE_ID) > 20 ) T1
What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008?
SELECT result FROM table_name_37 WHERE competition = "2010 fifa world cup qualification" AND date = "10 september 2008"
Show me salaries for those employees
SELECT salary FROM employees WHERE salary < ( SELECT min ( salary ) FROM employees WHERE job_id = 'MK_MAN' )
Show the names of members and the location of the performances they attended.
SELECT T2.Name, T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID