question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the largest goal with a Score of 3-0?
CREATE TABLE table_name_14 (goal INTEGER, score VARCHAR)
SELECT MAX(goal) FROM table_name_14 WHERE score = "3-0"
How many people wrote the episode with a production code of 2j5507?
CREATE TABLE table_27450976_1 (written_by VARCHAR, production_code VARCHAR)
SELECT COUNT(written_by) FROM table_27450976_1 WHERE production_code = "2J5507"
Who was the Class C winner in round 8?
CREATE TABLE table_24852622_1 (class_c_winner VARCHAR, round VARCHAR)
SELECT class_c_winner FROM table_24852622_1 WHERE round = "8"
What's Spain's lane with a heat less than 4?
CREATE TABLE table_name_93 (lane INTEGER, nationality VARCHAR, heat VARCHAR)
SELECT AVG(lane) FROM table_name_93 WHERE nationality = "spain" AND heat < 4
Date of october 10, 1965 had what lowest attendance?
CREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR)
SELECT MIN(attendance) FROM table_name_59 WHERE date = "october 10, 1965"
What is the total with a +4 to par?
CREATE TABLE table_name_63 (total VARCHAR, to_par VARCHAR)
SELECT total FROM table_name_63 WHERE to_par = "+4"
How many parties does the incumbent Donald A. Bailey a member of?
CREATE TABLE table_1341640_39 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(party) FROM table_1341640_39 WHERE incumbent = "Donald A. Bailey"
What is the set 1 with a 28-30 set 4?
CREATE TABLE table_name_67 (set_1 VARCHAR, set_4 VARCHAR)
SELECT set_1 FROM table_name_67 WHERE set_4 = "28-30"
Which position does number 23 play?
CREATE TABLE table_name_13 (position VARCHAR, number VARCHAR)
SELECT position FROM table_name_13 WHERE number = "23"
What opponent has a week less than 16, with September 7, 2008 as the date?
CREATE TABLE table_name_43 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_43 WHERE week < 16 AND date = "september 7, 2008"
What's the record during 1925?
CREATE TABLE table_name_99 (record VARCHAR, year VARCHAR)
SELECT record FROM table_name_99 WHERE year = 1925
How many states were there when there was an enrollment of 2789?
CREATE TABLE table_27961684_1 (state VARCHAR, enrollment VARCHAR)
SELECT COUNT(state) FROM table_27961684_1 WHERE enrollment = 2789
On which circuit does lorenzo bandini have the fastest lap as well as the pole position?
CREATE TABLE table_name_91 (circuit VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT circuit FROM table_name_91 WHERE fastest_lap = "lorenzo bandini" AND pole_position = "lorenzo bandini"
Who is the second member for the Second Party Liberal, and the Third Party Conservative, after the 1841 election?
CREATE TABLE table_name_70 (second_member VARCHAR, election VARCHAR, second_party VARCHAR, third_party VARCHAR)
SELECT second_member FROM table_name_70 WHERE second_party = "liberal" AND third_party = "conservative" AND election > 1841
From how many years did tampa, FL depart?
CREATE TABLE table_name_76 (year INTEGER, departed_from VARCHAR)
SELECT SUM(year) FROM table_name_76 WHERE departed_from = "tampa, fl"
What is the NFL team for the player who's college was North Carolina?
CREATE TABLE table_16376436_1 (nfl_team VARCHAR, college VARCHAR)
SELECT nfl_team FROM table_16376436_1 WHERE college = "North Carolina"
What kind of IATA has an Airport of hamburg airport?
CREATE TABLE table_name_5 (iata VARCHAR, airport VARCHAR)
SELECT iata FROM table_name_5 WHERE airport = "hamburg airport"
Who was Lieutenant Governor to the governor that left office on January 14, 1929?
CREATE TABLE table_name_21 (Lieutenant VARCHAR, left_office VARCHAR)
SELECT Lieutenant AS governor FROM table_name_21 WHERE left_office = "january 14, 1929"
Name the winner for london tournament
CREATE TABLE table_name_93 (winner VARCHAR, tournament VARCHAR)
SELECT winner FROM table_name_93 WHERE tournament = "london"
What is the sum of the goals on 2007-06-16?
CREATE TABLE table_name_16 (goals INTEGER, date VARCHAR)
SELECT SUM(goals) FROM table_name_16 WHERE date = "2007-06-16"
What's the smallest area in Russia that is ranked 23 with a population more than 522,800?
CREATE TABLE table_name_21 (area__km²_ INTEGER, population VARCHAR, country VARCHAR, rank VARCHAR)
SELECT MIN(area__km²_) FROM table_name_21 WHERE country = "russia" AND rank = 23 AND population > 522 OFFSET 800
How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit?
CREATE TABLE table_24865763_2 (lmp2_winning_team VARCHAR, gt1_winning_team VARCHAR, circuit VARCHAR)
SELECT COUNT(lmp2_winning_team) FROM table_24865763_2 WHERE gt1_winning_team = "Gabriele Gardel Patrice Goueslard Fernando Rees" AND circuit = "Algarve"
What is the lowest First Elected, when Results is "Re-elected", and when Incumbent is "Lincoln Davis"?
CREATE TABLE table_name_38 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_name_38 WHERE results = "re-elected" AND incumbent = "lincoln davis"
Which teams used Wally Rogers as their crew chief?
CREATE TABLE table_1266602_2 (team VARCHAR, crew_chief VARCHAR)
SELECT team FROM table_1266602_2 WHERE crew_chief = "Wally Rogers"
WHo is the Winner of andre agassi Finalist?
CREATE TABLE table_name_97 (winner VARCHAR, finalist VARCHAR)
SELECT winner FROM table_name_97 WHERE finalist = "andre agassi"
How many civilians died in the conflict that left 231 members of the military dead?
CREATE TABLE table_name_21 (civilian_deaths VARCHAR, military_deaths VARCHAR)
SELECT civilian_deaths FROM table_name_21 WHERE military_deaths = "231"
How many starters are there at right tackle?
CREATE TABLE table_25517718_3 (starter VARCHAR, position VARCHAR)
SELECT COUNT(starter) FROM table_25517718_3 WHERE position = "Right tackle"
Result of 88-85 ot (1-0) involves what game?
CREATE TABLE table_name_16 (game VARCHAR, result VARCHAR)
SELECT game FROM table_name_16 WHERE result = "88-85 ot (1-0)"
What is the home team when the visiting team is the Mavericks?
CREATE TABLE table_name_26 (home VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_26 WHERE visitor = "mavericks"
How much Rank has a Tally of 0-10, and an Opposition of cork?
CREATE TABLE table_name_37 (rank VARCHAR, tally VARCHAR, opposition VARCHAR)
SELECT COUNT(rank) FROM table_name_37 WHERE tally = "0-10" AND opposition = "cork"
College of villanova has what round?
CREATE TABLE table_name_65 (round VARCHAR, college VARCHAR)
SELECT round FROM table_name_65 WHERE college = "villanova"
What is the year of the TV series directed by Soroush Sehat?
CREATE TABLE table_name_1 (year VARCHAR, director VARCHAR)
SELECT year FROM table_name_1 WHERE director = "soroush sehat"
Which Interactivity support has a Format of fictionbook?
CREATE TABLE table_name_75 (interactivity_support VARCHAR, format VARCHAR)
SELECT interactivity_support FROM table_name_75 WHERE format = "fictionbook"
How many Adelaide viewers were there in Week 5?
CREATE TABLE table_24291077_4 (adelaide VARCHAR, week VARCHAR)
SELECT adelaide FROM table_24291077_4 WHERE week = 5
What is the Song choice when Elaine Paige was the Original artist?
CREATE TABLE table_name_99 (song_choice VARCHAR, original_artist VARCHAR)
SELECT song_choice FROM table_name_99 WHERE original_artist = "elaine paige"
In what year was cumulus founded?
CREATE TABLE table_25034983_2 (start INTEGER, owner VARCHAR)
SELECT MIN(start) FROM table_25034983_2 WHERE owner = "Cumulus"
Which School did Player Tyrone Johnson attend?
CREATE TABLE table_name_41 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_41 WHERE player = "tyrone johnson"
What is the Date that has a Record of 33.952?
CREATE TABLE table_name_48 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_48 WHERE record = "33.952"
What is the name of the team from Derbyshire county?
CREATE TABLE table_18461635_1 (team VARCHAR, county VARCHAR)
SELECT team FROM table_18461635_1 WHERE county = "Derbyshire"
What is the maximum number of starts?
CREATE TABLE table_3005915_3 (starts INTEGER)
SELECT MAX(starts) FROM table_3005915_3
Which driver has the highest point total after winning $133,386?
CREATE TABLE table_name_28 (points INTEGER, winnings VARCHAR)
SELECT MAX(points) FROM table_name_28 WHERE winnings = "$133,386"
What would be the lowest Attendance that also showed a loss of Obermueller (1-2)?
CREATE TABLE table_name_36 (attendance INTEGER, loss VARCHAR)
SELECT MIN(attendance) FROM table_name_36 WHERE loss = "obermueller (1-2)"
What is the number of podiums for season 2010 for campionato italiano superstars.
CREATE TABLE table_10420426_1 (podiums VARCHAR, season VARCHAR, series VARCHAR)
SELECT COUNT(podiums) FROM table_10420426_1 WHERE season = "2010" AND series = "Campionato Italiano Superstars"
Who was the host that garnered ratings of 9.4/27?
CREATE TABLE table_name_29 (host VARCHAR, ratings VARCHAR)
SELECT host FROM table_name_29 WHERE ratings = "9.4/27"
What date did Virginia Commonwealth Rams win?
CREATE TABLE table_name_14 (date_s_ VARCHAR, winner VARCHAR)
SELECT date_s_ FROM table_name_14 WHERE winner = "virginia commonwealth rams"
What's the Place of birth listed that has an Elevator of ALexander III, and an Elector of Ruggiero Di San Severino?
CREATE TABLE table_name_51 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR)
SELECT place_of_birth FROM table_name_51 WHERE elevator = "alexander iii" AND elector = "ruggiero di san severino"
What is the title of the episode with production code 305?
CREATE TABLE table_26448179_4 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_26448179_4 WHERE production_code = 305
What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0?
CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, goals_against VARCHAR, losses VARCHAR)
SELECT MIN(wins) FROM table_name_17 WHERE goals_against < 39 AND losses > 2 AND ties > 0
When did the episode that had 3.69 million total viewers (Live and SD types combined) first air?
CREATE TABLE table_24222929_3 (original_airdate VARCHAR, live VARCHAR, sd_total_viewers VARCHAR)
SELECT original_airdate FROM table_24222929_3 WHERE live + sd_total_viewers = "3.69 million"
Who has a rank great than 3 and a placing of 64?
CREATE TABLE table_name_60 (name VARCHAR, rank VARCHAR, placings VARCHAR)
SELECT name FROM table_name_60 WHERE rank > 3 AND placings = "64"
If points against was 371, what is the drawn?
CREATE TABLE table_name_51 (drawn VARCHAR, points_against VARCHAR)
SELECT drawn FROM table_name_51 WHERE points_against = "371"
On what date did the event at Zaltbommel begin?
CREATE TABLE table_name_66 (date__from_ VARCHAR, location VARCHAR)
SELECT date__from_ FROM table_name_66 WHERE location = "zaltbommel"
What is the sum of core# with a part number of osa242cep5au and TDP greater than 82.1?
CREATE TABLE table_name_80 (core__number INTEGER, part_number_opn_ VARCHAR, tdp__w_ VARCHAR)
SELECT SUM(core__number) FROM table_name_80 WHERE part_number_opn_ = "osa242cep5au" AND tdp__w_ > 82.1
what is the minimum force of storm Adrian
CREATE TABLE table_name_15 (min_press___mbar__ VARCHAR, storm_name VARCHAR)
SELECT min_press___mbar__ FROM table_name_15 WHERE storm_name = "adrian"
Name the 20 questions for 8-04
CREATE TABLE table_1566852_5 (date VARCHAR)
SELECT 20 AS _questions FROM table_1566852_5 WHERE date = "8-04"
Who was in external affairs when Jakki Doyle was in Human Resources & Operations?
CREATE TABLE table_name_81 (external_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)
SELECT external_affairs FROM table_name_81 WHERE human_resources_ & _operations = "jakki doyle"
Name the total seats for otorhinolaryngology
CREATE TABLE table_19304764_2 (total_seats VARCHAR, discipline VARCHAR)
SELECT total_seats FROM table_19304764_2 WHERE discipline = "Otorhinolaryngology"
Name the date for hard surface at maybelline classic with opponent of wendy turnbull
CREATE TABLE table_name_59 (date VARCHAR, opponent VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_59 WHERE surface = "hard" AND tournament = "maybelline classic" AND opponent = "wendy turnbull"
What away team played Collingwood?
CREATE TABLE table_name_20 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_20 WHERE home_team = "collingwood"
Who wrote the episodes directed by David Straiton?
CREATE TABLE table_21312845_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT written_by FROM table_21312845_1 WHERE directed_by = "David Straiton"
What languages were spoken in the film "FireDancer"?
CREATE TABLE table_17155250_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT language_s_ FROM table_17155250_1 WHERE film_title_used_in_nomination = "FireDancer"
How many provinces are named 青海省 qīnghǎi shěng?
CREATE TABLE table_254234_1 (iso_ VARCHAR, chinese_name VARCHAR)
SELECT COUNT(iso_) AS № FROM table_254234_1 WHERE chinese_name = "青海省 Qīnghǎi Shěng"
What's Dave Fortier's pick number?
CREATE TABLE table_1213511_2 (pick__number VARCHAR, player VARCHAR)
SELECT COUNT(pick__number) FROM table_1213511_2 WHERE player = "Dave Fortier"
Name the average concacaf for merconorte larger than 0 and player of jared borgetti
CREATE TABLE table_name_59 (concacaf INTEGER, superliga VARCHAR, merconorte VARCHAR, player VARCHAR)
SELECT AVG(concacaf) FROM table_name_59 WHERE merconorte > 0 AND player = "jared borgetti" AND superliga > 0
Which Date has a Streak of loss 2, and a Team of @ boston celtics?
CREATE TABLE table_name_71 (date VARCHAR, streak VARCHAR, team VARCHAR)
SELECT date FROM table_name_71 WHERE streak = "loss 2" AND team = "@ boston celtics"
What is the population of the parish that has an area of 304.06?
CREATE TABLE table_name_78 (population INTEGER, area_km_2 VARCHAR)
SELECT SUM(population) FROM table_name_78 WHERE area_km_2 = 304.06
Which Country has a Margin of victory of 2 strokes?
CREATE TABLE table_name_91 (country VARCHAR, margin_of_victory VARCHAR)
SELECT country FROM table_name_91 WHERE margin_of_victory = "2 strokes"
What is the amount of viewers if the series number is 14?
CREATE TABLE table_24639086_3 (viewers__in_millions_ VARCHAR, series__number VARCHAR)
SELECT viewers__in_millions_ FROM table_24639086_3 WHERE series__number = 14
Which State has an Electorate of Barton?
CREATE TABLE table_name_14 (state VARCHAR, electorate VARCHAR)
SELECT state FROM table_name_14 WHERE electorate = "barton"
What is the number of weeks where the venue was memorial stadium and the attendance was less than 41,252?
CREATE TABLE table_name_36 (week VARCHAR, venue VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_36 WHERE venue = "memorial stadium" AND attendance < 41 OFFSET 252
Who is the coach of the 2012 Gold Coast Titans season?
CREATE TABLE table_name_4 (coach VARCHAR, details VARCHAR)
SELECT coach FROM table_name_4 WHERE details = "2012 gold coast titans season"
Which average Robbery has the following criteria: Non-Violent crime less than 1147, rape less then 11, aggrevated assault greater than 167 and a crime index with a total of 1313?
CREATE TABLE table_name_40 (robbery INTEGER, crime_index_total VARCHAR, aggravated_assault VARCHAR, non_violent_crime VARCHAR, rape VARCHAR)
SELECT AVG(robbery) FROM table_name_40 WHERE non_violent_crime < 1147 AND rape < 11 AND aggravated_assault > 167 AND crime_index_total = 1313
On what date did the Team Minnesota play?
CREATE TABLE table_17323092_7 (date VARCHAR, team VARCHAR)
SELECT date FROM table_17323092_7 WHERE team = "Minnesota"
What is the latest week with an attendance of 74,162?
CREATE TABLE table_name_72 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_name_72 WHERE attendance = "74,162"
Which gene has 4,895,836 base pairs?
CREATE TABLE table_name_94 (genes VARCHAR, base_pairs VARCHAR)
SELECT genes FROM table_name_94 WHERE base_pairs = "4,895,836"
Which School has a National Championships of 2, and a City of orlando?
CREATE TABLE table_name_27 (school VARCHAR, national_championships VARCHAR, city VARCHAR)
SELECT school FROM table_name_27 WHERE national_championships = 2 AND city = "orlando"
What is the release date of catalogue number DW023?
CREATE TABLE table_27932399_1 (release_date INTEGER, catalogue_number VARCHAR)
SELECT MAX(release_date) FROM table_27932399_1 WHERE catalogue_number = "DW023"
Name the Surface which has a Score in the final of 6–3, 6–2 and Opponents in the final of mansour bahrami diego pérez?
CREATE TABLE table_name_87 (surface VARCHAR, score_in_the_final VARCHAR, opponents_in_the_final VARCHAR)
SELECT surface FROM table_name_87 WHERE score_in_the_final = "6–3, 6–2" AND opponents_in_the_final = "mansour bahrami diego pérez"
What country is the player with a score of 72-72=144 from?
CREATE TABLE table_name_97 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_97 WHERE score = 72 - 72 = 144
When did Adam Thompson play in the final?
CREATE TABLE table_name_47 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_47 WHERE opponent_in_the_final = "adam thompson"
What is the highest of balmoor/
CREATE TABLE table_11206787_5 (highest VARCHAR, stadium VARCHAR)
SELECT highest FROM table_11206787_5 WHERE stadium = "Balmoor"
Which Attendance has a Game score less than 3, and a Score of 2 – 5?
CREATE TABLE table_name_58 (attendance INTEGER, game VARCHAR, score VARCHAR)
SELECT AVG(attendance) FROM table_name_58 WHERE game < 3 AND score = "2 – 5"
Median household income of $40,340, and a Number of households smaller than 64,767 is what average population?
CREATE TABLE table_name_54 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)
SELECT AVG(population) FROM table_name_54 WHERE median_household_income = "$40,340" AND number_of_households < 64 OFFSET 767
Name the most field goals
CREATE TABLE table_14342592_8 (field_goals INTEGER)
SELECT MAX(field_goals) FROM table_14342592_8
What's the total number of league cup apps when the league goals were less than 0?
CREATE TABLE table_name_15 (league_cup_apps VARCHAR, league_goals INTEGER)
SELECT COUNT(league_cup_apps) FROM table_name_15 WHERE league_goals < 0
What is the average launch date of the vmv-1 vessel in Germany?
CREATE TABLE table_name_37 (launched INTEGER, location VARCHAR, ship VARCHAR)
SELECT AVG(launched) FROM table_name_37 WHERE location = "germany" AND ship = "vmv-1"
When 139 is on March 27th to 29th what is August 21st to 22nd?
CREATE TABLE table_25286976_2 (august_21_22 VARCHAR, march_27_29 VARCHAR)
SELECT august_21_22 FROM table_25286976_2 WHERE march_27_29 = "139"
What was the time/retired of the car that started in grid 4?
CREATE TABLE table_name_41 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_41 WHERE grid = "4"
What's the Finish rank of 31?
CREATE TABLE table_name_71 (finish VARCHAR, rank VARCHAR)
SELECT finish FROM table_name_71 WHERE rank = "31"
Find the name of amenities Smith Hall dorm have.
CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)
SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T1.dorm_name = 'Smith Hall'
What is the title of the king who left office in 982 and entered office in 949?
CREATE TABLE table_name_64 (title VARCHAR, left_office VARCHAR, entered_office VARCHAR)
SELECT title FROM table_name_64 WHERE left_office = "982" AND entered_office = "949"
On what date did Goal 24 take place?
CREATE TABLE table_name_76 (date VARCHAR, goal VARCHAR)
SELECT date FROM table_name_76 WHERE goal = 24
What is Player, when Country is "United States", and when Total is "154"?
CREATE TABLE table_name_48 (player VARCHAR, country VARCHAR, total VARCHAR)
SELECT player FROM table_name_48 WHERE country = "united states" AND total = "154"
How many seasons in Meistriliiga when the club was kuressaare also had a first season in top division of more than 2000?
CREATE TABLE table_name_17 (number_of_seasons_in_meistriliiga VARCHAR, club VARCHAR, first_season_in_top_division VARCHAR)
SELECT COUNT(number_of_seasons_in_meistriliiga) FROM table_name_17 WHERE club = "kuressaare" AND first_season_in_top_division > 2000
What was the final score for @ Orlando?
CREATE TABLE table_17355408_7 (score VARCHAR, team VARCHAR)
SELECT score FROM table_17355408_7 WHERE team = "@ Orlando"
What is the earliest year when the composition is 99.99% silver and the issue price is $94.95?
CREATE TABLE table_name_66 (year INTEGER, composition VARCHAR, issue_price VARCHAR)
SELECT MIN(year) FROM table_name_66 WHERE composition = "99.99% silver" AND issue_price = "$94.95"
Which driver has 62 laps?
CREATE TABLE table_name_17 (driver VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_17 WHERE laps = 62
What is the lowest tier for a postseason result of quarterfinalist?
CREATE TABLE table_name_68 (tier INTEGER, postseason VARCHAR)
SELECT MIN(tier) FROM table_name_68 WHERE postseason = "quarterfinalist"
Episode smaller than 210 had what segment c?
CREATE TABLE table_name_67 (segment_c VARCHAR, episode INTEGER)
SELECT segment_c FROM table_name_67 WHERE episode < 210
What is the playoffs for the usl pro select league?
CREATE TABLE table_1046071_1 (playoffs VARCHAR, league VARCHAR)
SELECT playoffs FROM table_1046071_1 WHERE league = "USL Pro Select league"