question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Winning score has a Date of aug 26, 1973?
CREATE TABLE table_name_42 (winning_score VARCHAR, date VARCHAR)
SELECT winning_score FROM table_name_42 WHERE date = "aug 26, 1973"
What record has candlestick park as the game site, and october 12, 2008 as the date?
CREATE TABLE table_name_36 (record VARCHAR, game_site VARCHAR, date VARCHAR)
SELECT record FROM table_name_36 WHERE game_site = "candlestick park" AND date = "october 12, 2008"
Find the name of the first 5 customers.
CREATE TABLE Customers (customer_name VARCHAR, date_became_customer VARCHAR)
SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 5
Which Record has a Date of january 31?
CREATE TABLE table_name_18 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_18 WHERE date = "january 31"
what is the tries against where points is 60?
CREATE TABLE table_12828723_4 (tries_against VARCHAR, points VARCHAR)
SELECT tries_against FROM table_12828723_4 WHERE points = "60"
Find all details for each swimmer.
CREATE TABLE swimmer (Id VARCHAR)
SELECT * FROM swimmer
What is the largest total with a Silver of 1, and a Rank larger than 7?
CREATE TABLE table_name_73 (total INTEGER, silver VARCHAR, rank VARCHAR)
SELECT MAX(total) FROM table_name_73 WHERE silver = 1 AND rank > 7
What's the report of the race won by Michael Andretti, with Nigel Mansell driving the fastest lap?
CREATE TABLE table_19908651_3 (report VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR)
SELECT report FROM table_19908651_3 WHERE winning_driver = "Michael Andretti" AND fastest_lap = "Nigel Mansell"
find the minimum and maximum number of products of all stores.
CREATE TABLE shop (Number_products INTEGER)
SELECT MIN(Number_products), MAX(Number_products) FROM shop
Name the high rebounds for score of 64-74
CREATE TABLE table_17103729_8 (high_rebounds VARCHAR, score VARCHAR)
SELECT COUNT(high_rebounds) FROM table_17103729_8 WHERE score = "64-74"
What is the maximum power at rpm for the engine named 2.0 TDI that has a 1968cc displacement?
CREATE TABLE table_name_90 (max_power_at_rpm VARCHAR, displacement VARCHAR, engine_name VARCHAR)
SELECT max_power_at_rpm FROM table_name_90 WHERE displacement = "1968cc" AND engine_name = "2.0 tdi"
what is the series # for the episode directed by Kelly Sandefur?
CREATE TABLE table_17901155_3 (no_in_series INTEGER, directed_by VARCHAR)
SELECT MAX(no_in_series) FROM table_17901155_3 WHERE directed_by = "Kelly Sandefur"
What are the award description with Format album?
CREATE TABLE table_name_84 (award_description_s_ VARCHAR, format_s_ VARCHAR)
SELECT award_description_s_ FROM table_name_84 WHERE format_s_ = "album"
List the distinct carriers of phones with memories bigger than 32.
CREATE TABLE phone (Carrier VARCHAR, Memory_in_G INTEGER)
SELECT DISTINCT Carrier FROM phone WHERE Memory_in_G > 32
Name the model number for usf46
CREATE TABLE table_21530474_1 (model_no VARCHAR, chassis_code VARCHAR)
SELECT model_no FROM table_21530474_1 WHERE chassis_code = "USF46"
What are all locations of train stations?
CREATE TABLE station (LOCATION VARCHAR)
SELECT DISTINCT LOCATION FROM station
What is Steve Lowery's Place?
CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_78 WHERE player = "steve lowery"
What was the 1st leg for Team 2 Concepto Egile?
CREATE TABLE table_name_88 (team_2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_88 WHERE team_2 = "concepto egile"
Which Location has a Year larger than 2006, and a Score of 6–3, 6–3?
CREATE TABLE table_name_78 (location VARCHAR, year VARCHAR, score VARCHAR)
SELECT location FROM table_name_78 WHERE year > 2006 AND score = "6–3, 6–3"
Which episode/s were written by Evan Gore?
CREATE TABLE table_29087004_3 (series__number VARCHAR, written_by VARCHAR)
SELECT series__number FROM table_29087004_3 WHERE written_by = "Evan Gore"
What ethnic group had the largest population in сурдук in 2002?
CREATE TABLE table_2562572_53 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_53 WHERE cyrillic_name = "Сурдук"
What is the score of player darren clarke, who has $112,500?
CREATE TABLE table_name_72 (score VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT score FROM table_name_72 WHERE money___$__ = "112,500" AND player = "darren clarke"
Who was the bowler when the batsmen was dwaraka ravi teja rp singh pragyan ojha?
CREATE TABLE table_22962745_35 (bowler VARCHAR, batsmen VARCHAR)
SELECT bowler FROM table_22962745_35 WHERE batsmen = "Dwaraka Ravi Teja RP Singh Pragyan Ojha"
Which competition has a Season of 2010/11?
CREATE TABLE table_name_56 (competition VARCHAR, season VARCHAR)
SELECT competition FROM table_name_56 WHERE season = "2010/11"
What is the team of april 25?
CREATE TABLE table_11960196_3 (team VARCHAR, date VARCHAR)
SELECT team FROM table_11960196_3 WHERE date = "April 25"
What season was the average attendance is 16043?
CREATE TABLE table_2771237_1 (season VARCHAR, average_attendance VARCHAR)
SELECT season FROM table_2771237_1 WHERE average_attendance = 16043
Name the least ends won for pf being 78
CREATE TABLE table_25107064_2 (Ends INTEGER, pf VARCHAR)
SELECT MIN(Ends) AS won FROM table_25107064_2 WHERE pf = 78
What is the score for the away team Chelsea?
CREATE TABLE table_name_35 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_35 WHERE away_team = "chelsea"
What was the score when the heat played at charlotte arena?
CREATE TABLE table_13762472_7 (score VARCHAR, location_attendance VARCHAR)
SELECT score FROM table_13762472_7 WHERE location_attendance = "Charlotte Arena"
What was the maximum total USD collected by Pebble Technology?
CREATE TABLE table_27155990_1 (total_usd INTEGER, creator VARCHAR)
SELECT MAX(total_usd) FROM table_27155990_1 WHERE creator = "Pebble Technology"
How many co-singers were there when Parveen Babi co-starred?
CREATE TABLE table_2528382_5 (singers VARCHAR, Co VARCHAR, co_stars VARCHAR)
SELECT COUNT(Co) - singers FROM table_2528382_5 WHERE co_stars = "Parveen Babi"
What was the time of the person in lane 7?
CREATE TABLE table_name_39 (time VARCHAR, lane VARCHAR)
SELECT time FROM table_name_39 WHERE lane = 7
How many NFL teams does Stevie Brown play for?
CREATE TABLE table_20996923_25 (nfl_team VARCHAR, player VARCHAR)
SELECT COUNT(nfl_team) FROM table_20996923_25 WHERE player = "Stevie Brown"
Name the number of party with the incubent james william trimble
CREATE TABLE table_1341930_5 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(party) FROM table_1341930_5 WHERE incumbent = "James William Trimble"
What is the highest number against on 12/04/1969?
CREATE TABLE table_name_19 (against INTEGER, date VARCHAR)
SELECT MAX(against) FROM table_name_19 WHERE date = "12/04/1969"
What year was incumbent jim ramstad first elected?
CREATE TABLE table_1341423_23 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1341423_23 WHERE incumbent = "Jim Ramstad"
Who is the Visitor on april 8?
CREATE TABLE table_name_94 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_94 WHERE date = "april 8"
What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14?
CREATE TABLE table_name_92 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_92 WHERE opponent = "buffalo bills" AND week > 14
What are the total number of the audiences who visited any of the festivals?
CREATE TABLE festival_detail (Num_of_Audience INTEGER)
SELECT SUM(Num_of_Audience) FROM festival_detail
what is the school when the location is rochester?
CREATE TABLE table_name_60 (school VARCHAR, location VARCHAR)
SELECT school FROM table_name_60 WHERE location = "rochester"
Which month and year held the Bolivia Special title?
CREATE TABLE table_name_18 (month_ VARCHAR, _year VARCHAR, title VARCHAR)
SELECT month_ & _year FROM table_name_18 WHERE title = "bolivia special"
What country had a swimsuit score of 8.788?
CREATE TABLE table_17521433_1 (country VARCHAR, swimsuit VARCHAR)
SELECT country FROM table_17521433_1 WHERE swimsuit = "8.788"
Name the fastest lap for round 14
CREATE TABLE table_25322130_3 (fastest_lap VARCHAR, round VARCHAR)
SELECT COUNT(fastest_lap) FROM table_25322130_3 WHERE round = "14"
What are the names of the stations which serve both "Ananthapuri Express" and "Guruvayur Express" trains?
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train (train_id VARCHAR, Name VARCHAR); CREATE TABLE train_station (station_id VARCHAR, train_id VARCHAR)
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T3.Name = "Ananthapuri Express" INTERSECT SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train...
What county has a school mascot of the Pioneers?
CREATE TABLE table_name_71 (county VARCHAR, mascot VARCHAR)
SELECT county FROM table_name_71 WHERE mascot = "pioneers"
What is the percentage of Glendale when Pasadena is 14%?
CREATE TABLE table_name_87 (glendale VARCHAR, pasadena VARCHAR)
SELECT glendale FROM table_name_87 WHERE pasadena = "14%"
What was the score for the game in which Al-Qadsia was Team 2?
CREATE TABLE table_name_55 (score VARCHAR, team_2 VARCHAR)
SELECT score FROM table_name_55 WHERE team_2 = "al-qadsia"
Which venue had a city of Manchester before 2003?
CREATE TABLE table_name_82 (venue VARCHAR, city VARCHAR, year VARCHAR)
SELECT venue FROM table_name_82 WHERE city = "manchester" AND year < 2003
What is the instrumental for the dative shen?
CREATE TABLE table_name_15 (instrumental VARCHAR, dative VARCHAR)
SELECT instrumental FROM table_name_15 WHERE dative = "shen"
How many albums are there?
CREATE TABLE ALBUM (Id VARCHAR)
SELECT COUNT(*) FROM ALBUM
What school is located in rossville?
CREATE TABLE table_name_79 (school VARCHAR, location VARCHAR)
SELECT school FROM table_name_79 WHERE location = "rossville"
What are the total and average enrollment of all schools?
CREATE TABLE school (enrollment INTEGER)
SELECT SUM(enrollment), AVG(enrollment) FROM school
What year was the cosworth ca2006 2.4 v8 4 series used?
CREATE TABLE table_name_74 (year INTEGER, engine VARCHAR)
SELECT AVG(year) FROM table_name_74 WHERE engine = "cosworth ca2006 2.4 v8 4 series"
Count the Number of electorates (2009) that has a District of fatehpur and jahanabad?
CREATE TABLE table_name_11 (number_of_electorates__2009_ INTEGER, district VARCHAR, name VARCHAR)
SELECT SUM(number_of_electorates__2009_) FROM table_name_11 WHERE district = "fatehpur" AND name = "jahanabad"
Name the candidates for john boyle
CREATE TABLE table_2668378_5 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_2668378_5 WHERE incumbent = "John Boyle"
Who was the host that garnered ratings of 9.6/26?
CREATE TABLE table_name_30 (host VARCHAR, ratings VARCHAR)
SELECT host FROM table_name_30 WHERE ratings = "9.6/26"
How many people vacated to successor Dave E. Satterfield, Jr. (d)?
CREATE TABLE table_2159547_3 (vacator VARCHAR, successor VARCHAR)
SELECT COUNT(vacator) FROM table_2159547_3 WHERE successor = "Dave E. Satterfield, Jr. (D)"
When sandy brondello is the player what is the lowest amount of minutes?
CREATE TABLE table_25016555_5 (minutes INTEGER, player VARCHAR)
SELECT MIN(minutes) FROM table_25016555_5 WHERE player = "Sandy Brondello"
What is Date, when Opposing Teams is "Australia", and when Venue is "Twickenham , London"?
CREATE TABLE table_name_79 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR)
SELECT date FROM table_name_79 WHERE opposing_teams = "australia" AND venue = "twickenham , london"
Who played against the Celtics when the final game score was 85-102?
CREATE TABLE table_name_18 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_18 WHERE score = "85-102"
Who currently affiliates in San Francisco - Oakland - San Jose?
CREATE TABLE table_1553485_1 (current_affiliation VARCHAR, city_of_license__market VARCHAR)
SELECT current_affiliation FROM table_1553485_1 WHERE city_of_license__market = "San Francisco - Oakland - San Jose"
How many attended on may 6?
CREATE TABLE table_name_85 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_85 WHERE date = "may 6"
Find the max, average and min training hours of all players.
CREATE TABLE Player (HS INTEGER)
SELECT AVG(HS), MAX(HS), MIN(HS) FROM Player
When was William Kennedy first elected?
CREATE TABLE table_2668374_11 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_2668374_11 WHERE incumbent = "William Kennedy"
What number episode in the series had a production code of 111?
CREATE TABLE table_25246990_2 (no_in_series VARCHAR, prod_code VARCHAR)
SELECT no_in_series FROM table_25246990_2 WHERE prod_code = "111"
What is the lowest number of seats from the election with 27.0% of votes?
CREATE TABLE table_name_55 (seats INTEGER, share_of_votes VARCHAR)
SELECT MIN(seats) FROM table_name_55 WHERE share_of_votes = "27.0%"
If seed number is 2, what is the maximum amount of points?
CREATE TABLE table_23501776_18 (points INTEGER, seed VARCHAR)
SELECT MAX(points) FROM table_23501776_18 WHERE seed = 2
What is City / State, when Winner is Mal Rose, and when Date is 20 Jul?
CREATE TABLE table_name_93 (city___state VARCHAR, winner VARCHAR, date VARCHAR)
SELECT city___state FROM table_name_93 WHERE winner = "mal rose" AND date = "20 jul"
how many female dependents are there?
CREATE TABLE dependent (sex VARCHAR)
SELECT COUNT(*) FROM dependent WHERE sex = 'F'
Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward?
CREATE TABLE table_name_2 (district VARCHAR, incumbent VARCHAR, first_elected VARCHAR, result VARCHAR)
SELECT district FROM table_name_2 WHERE first_elected = 1858 AND result = "retired republican gain" AND incumbent = "william millward"
What is the Time with a Score that is 65-19?
CREATE TABLE table_name_81 (time VARCHAR, score VARCHAR)
SELECT time FROM table_name_81 WHERE score = "65-19"
how many segments involve wood boring augers
CREATE TABLE table_15187735_17 (segment_a VARCHAR, segment_d VARCHAR)
SELECT segment_a FROM table_15187735_17 WHERE segment_d = "Wood Boring Augers"
What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns?
CREATE TABLE customer (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE rental (staff_id VARCHAR, customer_id VARCHAR); CREATE TABLE staff (first_name VARCHAR, last_name VARCHAR, staff_id VARCHAR)
SELECT DISTINCT T1.first_name, T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS'
What did the home team score against the away team collingwood?
CREATE TABLE table_name_28 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_28 WHERE away_team = "collingwood"
What was the score when the away team was West Ham United?
CREATE TABLE table_name_4 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_4 WHERE away_team = "west ham united"
Name the withdrawn for charles dickens
CREATE TABLE table_name_93 (withdrawn VARCHAR, name VARCHAR)
SELECT withdrawn FROM table_name_93 WHERE name = "charles dickens"
What positions correspond to the name Thierry Morin?
CREATE TABLE table_24565004_14 (position VARCHAR, name VARCHAR)
SELECT position FROM table_24565004_14 WHERE name = "Thierry Morin"
What is the home team score when the venue is Princes Park?
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_40 WHERE venue = "princes park"
What is the paper type for the date of issue July 8?
CREATE TABLE table_25468520_1 (paper_type VARCHAR, date_of_issue VARCHAR)
SELECT paper_type FROM table_25468520_1 WHERE date_of_issue = "July 8"
What is Away Captain, when Date is 30 Dec, 1,2,3 Jan 1911/2?
CREATE TABLE table_name_38 (away_captain VARCHAR, date VARCHAR)
SELECT away_captain FROM table_name_38 WHERE date = "30 dec, 1,2,3 jan 1911/2"
Where did Zimbabwe play?
CREATE TABLE table_name_63 (venue VARCHAR, opponent VARCHAR)
SELECT venue FROM table_name_63 WHERE opponent = "zimbabwe"
what is the value when the british name is quaver?
CREATE TABLE table_name_23 (value VARCHAR, british_name VARCHAR)
SELECT value FROM table_name_23 WHERE british_name = "quaver"
What's Russia's lane when they were ranked before 1?
CREATE TABLE table_name_60 (lane INTEGER, nationality VARCHAR, rank VARCHAR)
SELECT MAX(lane) FROM table_name_60 WHERE nationality = "russia" AND rank < 1
What is the Episode number of Ernest Dickerson in 2009 when the show was dexter?
CREATE TABLE table_name_19 (episode VARCHAR, year VARCHAR, show VARCHAR)
SELECT episode FROM table_name_19 WHERE year = 2009 AND show = "dexter"
What competition has may 5, 2001 as the date?
CREATE TABLE table_name_25 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_25 WHERE date = "may 5, 2001"
What's the rank in West Virginia when the overweight adult was 66.8%?
CREATE TABLE table_name_87 (obesity_rank VARCHAR, overweight__incl_obese__adults VARCHAR, state_and_district_of_columbia VARCHAR)
SELECT obesity_rank FROM table_name_87 WHERE overweight__incl_obese__adults = "66.8%" AND state_and_district_of_columbia = "west virginia"
Result of l, and a Competition of 1966 asian games, and a Score of 0–1 had what date?
CREATE TABLE table_name_44 (date VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
SELECT date FROM table_name_44 WHERE result = "l" AND competition = "1966 asian games" AND score = "0–1"
Name the average overall for james davis
CREATE TABLE table_name_91 (overall INTEGER, player VARCHAR)
SELECT AVG(overall) FROM table_name_91 WHERE player = "james davis"
What is the record for the 20000 m walk?
CREATE TABLE table_name_12 (record VARCHAR, event VARCHAR)
SELECT record FROM table_name_12 WHERE event = "20000 m walk"
What's the highest season number with a series number of 47?
CREATE TABLE table_27397948_2 (no_in_season INTEGER, no_in_series VARCHAR)
SELECT MAX(no_in_season) FROM table_27397948_2 WHERE no_in_series = 47
What is the finish of South Africa?
CREATE TABLE table_name_63 (finish VARCHAR, country VARCHAR)
SELECT finish FROM table_name_63 WHERE country = "south africa"
What is the lowest enrollment value out of the enrollment values I'd the schools with a 3A WIAA clarification?
CREATE TABLE table_1414702_3 (enrollment INTEGER, wiaa_classification VARCHAR)
SELECT MIN(enrollment) FROM table_1414702_3 WHERE wiaa_classification = "3A"
Which Date has Points smaller than 85 and a Game # of 74?
CREATE TABLE table_name_36 (date VARCHAR, points VARCHAR, game__number VARCHAR)
SELECT date FROM table_name_36 WHERE points < 85 AND game__number = 74
What is the game on February 21?
CREATE TABLE table_name_34 (game VARCHAR, date VARCHAR)
SELECT game FROM table_name_34 WHERE date = "february 21"
What is the max 1-min wind mph when the minimum press is 997?
CREATE TABLE table_name_57 (max_1_min_wind_mph__km_h_ VARCHAR, min_press___mbar__ VARCHAR)
SELECT max_1_min_wind_mph__km_h_ FROM table_name_57 WHERE min_press___mbar__ = "997"
What is the To par of the T8 Place Player with a Score of 72-70-66=208?
CREATE TABLE table_name_79 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_79 WHERE place = "t8" AND score = 72 - 70 - 66 = 208
what's the date where ships name is zeeland entered service
CREATE TABLE table_11662133_3 (date_entered_service VARCHAR, ships_name VARCHAR)
SELECT date_entered_service FROM table_11662133_3 WHERE ships_name = "Zeeland"
Wat was the result for the 20 km after 2008 when the venue was Metz, France?
CREATE TABLE table_name_13 (result VARCHAR, venue VARCHAR, year VARCHAR, event VARCHAR)
SELECT result FROM table_name_13 WHERE year > 2008 AND event = "20 km" AND venue = "metz, france"
Name the Argon which has a Neon of 0.484?
CREATE TABLE table_name_56 (argon VARCHAR, neon VARCHAR)
SELECT argon FROM table_name_56 WHERE neon = "0.484"
What is the lowest no. in series?
CREATE TABLE table_17758010_2 (no_in_series INTEGER)
SELECT MIN(no_in_series) FROM table_17758010_2