question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the highest crowd when fitzroy is the home team?
CREATE TABLE table_name_24 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_24 WHERE home_team = "fitzroy"
What is Season, when Lead is "Michael Goodfellow"?
CREATE TABLE table_name_12 (season VARCHAR, lead VARCHAR)
SELECT season FROM table_name_12 WHERE lead = "michael goodfellow"
What is the 2013 with virgin in 2009?
CREATE TABLE table_name_5 (Id VARCHAR)
SELECT 2013 FROM table_name_5 WHERE 2009 = "virgin"
What country had an opponent of Sampdoria?
CREATE TABLE table_name_44 (country VARCHAR, opponent VARCHAR)
SELECT country FROM table_name_44 WHERE opponent = "sampdoria"
How many points for the ferrari v12 engine and ferrari 1512 chassis, after 1965?
CREATE TABLE table_name_85 (pts INTEGER, year VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT MAX(pts) FROM table_name_85 WHERE engine = "ferrari v12" AND chassis = "ferrari 1512" AND year > 1965
What was the opponent on october 28?
CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_24 WHERE date = "october 28"
What sum of game has an attendance of 18,690?
CREATE TABLE table_name_40 (game INTEGER, attendance VARCHAR)
SELECT SUM(game) FROM table_name_40 WHERE attendance = 18 OFFSET 690
Which Visa 3 has a Visa 1 of michael mcglinchey?
CREATE TABLE table_name_7 (visa_3 VARCHAR, visa_1 VARCHAR)
SELECT visa_3 FROM table_name_7 WHERE visa_1 = "michael mcglinchey"
Name the country for the 9th and sign of g e
CREATE TABLE table_name_51 (country VARCHAR, date VARCHAR, sign VARCHAR)
SELECT country FROM table_name_51 WHERE date = "9th" AND sign = "g e"
What is the average Played, when Goals Against is less than 63, when Team is "Nelson", and when Lost is greater than 16?
CREATE TABLE table_name_18 (played INTEGER, lost VARCHAR, goals_against VARCHAR, team VARCHAR)
SELECT AVG(played) FROM table_name_18 WHERE goals_against < 63 AND team = "nelson" AND lost > 16
What is the type for Cassano?
CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR)
SELECT type FROM table_name_46 WHERE name = "cassano"
What is the lowest lane with a time of 2:05.90, and a Heat larger than 3?
CREATE TABLE table_name_43 (lane INTEGER, time VARCHAR, heat VARCHAR)
SELECT MIN(lane) FROM table_name_43 WHERE time = "2:05.90" AND heat > 3
Show the Residence whose Name is rich gordon?
CREATE TABLE table_name_60 (residence VARCHAR, name VARCHAR)
SELECT residence FROM table_name_60 WHERE name = "rich gordon"
What is terrence ross' nationality
CREATE TABLE table_10015132_16 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_10015132_16 WHERE player = "Terrence Ross"
What date had the home team as brentford?
CREATE TABLE table_name_30 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_30 WHERE home_team = "brentford"
What is the rank when RR2 has 4 points?
CREATE TABLE table_21515673_2 (ranking VARCHAR, rr2_pts VARCHAR)
SELECT ranking FROM table_21515673_2 WHERE rr2_pts = 4
What league has most wins as the record?
CREATE TABLE table_name_77 (league VARCHAR, record VARCHAR)
SELECT league FROM table_name_77 WHERE record = "most wins"
What home team has a record of 4-3?
CREATE TABLE table_name_7 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_7 WHERE record = "4-3"
How many laps were there when time/retired was gearbox?
CREATE TABLE table_name_53 (laps INTEGER, time_retired VARCHAR)
SELECT SUM(laps) FROM table_name_53 WHERE time_retired = "gearbox"
What is williow canyon of Roberta Lockhart?
CREATE TABLE table_11340432_1 (willow_canyon VARCHAR, dysart VARCHAR)
SELECT willow_canyon FROM table_11340432_1 WHERE dysart = "Roberta Lockhart"
Who did the fastest lap at Watkins glen?
CREATE TABLE table_1140082_2 (fastest_lap VARCHAR, location VARCHAR)
SELECT fastest_lap FROM table_1140082_2 WHERE location = "Watkins Glen"
What channel has a description of the public broadcaster?
CREATE TABLE table_name_82 (channel VARCHAR, description VARCHAR)
SELECT channel FROM table_name_82 WHERE description = "public broadcaster"
what's the total number of candidates for first elected in 1948 , 1964
CREATE TABLE table_1341472_15 (candidates VARCHAR, first_elected VARCHAR)
SELECT COUNT(candidates) FROM table_1341472_15 WHERE first_elected = "1948 , 1964"
WHAT IS THE TOTAL NUMBER WITH A ROUND BIGGER THAN 7 AND PICK OF 21?
CREATE TABLE table_name_73 (overall VARCHAR, round VARCHAR, pick VARCHAR)
SELECT COUNT(overall) FROM table_name_73 WHERE round > 7 AND pick = 21
Can you tell me the Week that has the Home Team of detroit, and the Divisional Record of (3-0), and the Overall Record of (5-1), and the Away Team of minnesota?
CREATE TABLE table_name_40 (week VARCHAR, away_team VARCHAR, overall_record VARCHAR, home_team VARCHAR, divisional_record VARCHAR)
SELECT week FROM table_name_40 WHERE home_team = "detroit" AND divisional_record = "(3-0)" AND overall_record = "(5-1)" AND away_team = "minnesota"
Who were all the writers whose episodes had 0.97 million viewers?
CREATE TABLE table_23918997_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT written_by FROM table_23918997_1 WHERE us_viewers__million_ = "0.97"
What is the Opponent in the final when the outcome was runner-up?
CREATE TABLE table_name_66 (opponent_in_the_final VARCHAR, outcome VARCHAR)
SELECT opponent_in_the_final FROM table_name_66 WHERE outcome = "runner-up"
What is the Statue, when Venue is "Stadio Flaminio , Rome"?
CREATE TABLE table_name_63 (status VARCHAR, venue VARCHAR)
SELECT status FROM table_name_63 WHERE venue = "stadio flaminio , rome"
When Essendon was the Home Team, what was the Away Team score?
CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_43 WHERE home_team = "essendon"
What is main presenters of La Granja?
CREATE TABLE table_1053802_1 (main_presenters VARCHAR, local_title VARCHAR)
SELECT main_presenters FROM table_1053802_1 WHERE local_title = "La Granja"
How many airports do we have?
CREATE TABLE AIRPORTS (Id VARCHAR)
SELECT COUNT(*) FROM AIRPORTS
What club does the stadium stc krymteplitsia belong to?
CREATE TABLE table_name_34 (club VARCHAR, stadium VARCHAR)
SELECT club FROM table_name_34 WHERE stadium = "stc krymteplitsia"
What was the time/retired with laps less than 33 and a grid of 14?
CREATE TABLE table_name_29 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_29 WHERE laps < 33 AND grid = 14
What was the Attendance after Week 4 on October 10, 1971?
CREATE TABLE table_name_35 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT AVG(attendance) FROM table_name_35 WHERE date = "october 10, 1971" AND week > 4
How much #s have an Area in km² larger than 13.5, and a Population Canada 2011 Census of 134,038?
CREATE TABLE table_name_3 (number__map_ VARCHAR, area_in_km² VARCHAR, population_canada_2011_census VARCHAR)
SELECT COUNT(number__map_) FROM table_name_3 WHERE area_in_km² > 13.5 AND population_canada_2011_census = 134 OFFSET 038
What team has fewer than 203 points?
CREATE TABLE table_name_66 (team VARCHAR, points INTEGER)
SELECT team FROM table_name_66 WHERE points < 203
What tournament had a black of Kramnik and an opening of B66 Sicilian Defence?
CREATE TABLE table_name_28 (tournament VARCHAR, black VARCHAR, opening VARCHAR)
SELECT tournament FROM table_name_28 WHERE black = "kramnik" AND opening = "b66 sicilian defence"
Who is the Runner-up that has a Season less than 2005?
CREATE TABLE table_name_54 (runner_up VARCHAR, season INTEGER)
SELECT runner_up FROM table_name_54 WHERE season < 2005
What was the winning time for the winning horse, Kentucky ii?
CREATE TABLE table_name_49 (time VARCHAR, winner VARCHAR)
SELECT time FROM table_name_49 WHERE winner = "kentucky ii"
What is the sum of Races, when Series is Toyota Racing Series, and when Podiums is greater than 3?
CREATE TABLE table_name_9 (races INTEGER, series VARCHAR, podiums VARCHAR)
SELECT SUM(races) FROM table_name_9 WHERE series = "toyota racing series" AND podiums > 3
What is the Score when the Away Team is Torquay United?
CREATE TABLE table_name_12 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_12 WHERE away_team = "torquay united"
Which Record has a Game of 61?
CREATE TABLE table_name_56 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_56 WHERE game = 61
What Canadian Championship had CONCACAF Champions League of semifinals?
CREATE TABLE table_name_6 (canadian_championship VARCHAR, concacaf_champions_league VARCHAR)
SELECT canadian_championship FROM table_name_6 WHERE concacaf_champions_league = "semifinals"
which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?
CREATE TABLE table_name_40 (category VARCHAR, result VARCHAR, lost_to VARCHAR)
SELECT category FROM table_name_40 WHERE result = "nominated" AND lost_to = "jennifer westfeldt ( kissing jessica stein )"
What date was the Italian Grand Prix?
CREATE TABLE table_name_12 (date VARCHAR, race VARCHAR)
SELECT date FROM table_name_12 WHERE race = "italian grand prix"
If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals?
CREATE TABLE table_name_77 (total INTEGER, to_par VARCHAR, player VARCHAR)
SELECT SUM(total) FROM table_name_77 WHERE to_par > 7 AND player = "corey pavin"
Group by ships by flag, and return number of ships that have each flag.
CREATE TABLE ship (flag VARCHAR)
SELECT COUNT(*), flag FROM ship GROUP BY flag
What Player is from the Southern Illinois team?
CREATE TABLE table_name_96 (player VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_96 WHERE school_club_team = "southern illinois"
How many goals were scored by players with more than 16 caps?
CREATE TABLE table_name_45 (goals VARCHAR, caps INTEGER)
SELECT goals FROM table_name_45 WHERE caps > 16
How many seasons have goals of 261-338 with more than 111 losses?
CREATE TABLE table_name_77 (seasons VARCHAR, goals VARCHAR, lost VARCHAR)
SELECT COUNT(seasons) FROM table_name_77 WHERE goals = "261-338" AND lost > 111
What is the highest birth/2013 when the death/2012 is 14,1?
CREATE TABLE table_25703_1 (birth_2013 INTEGER, death_2012 VARCHAR)
SELECT MAX(birth_2013) FROM table_25703_1 WHERE death_2012 = "14,1"
On how many dates was the average speed of the race 91.033 MPH?
CREATE TABLE table_2266762_1 (date VARCHAR, average_speed__mph_ VARCHAR)
SELECT COUNT(date) FROM table_2266762_1 WHERE average_speed__mph_ = "91.033"
Which Location has a Game greater than 27 and a Record of 18-10?
CREATE TABLE table_name_58 (location VARCHAR, game VARCHAR, record VARCHAR)
SELECT location FROM table_name_58 WHERE game > 27 AND record = "18-10"
Who was the arranger for the song that had a lyricist of Sirapatara Kalayapanid?
CREATE TABLE table_name_8 (arranger_s_ VARCHAR, lyricist_s_ VARCHAR)
SELECT arranger_s_ FROM table_name_8 WHERE lyricist_s_ = "sirapatara kalayapanid"
What is the largest overall rank for a center drafted before round 10?
CREATE TABLE table_name_22 (overall INTEGER, position VARCHAR, round VARCHAR)
SELECT MAX(overall) FROM table_name_22 WHERE position = "center" AND round < 10
What is Position, when Class is Sophomore, and when Player is Shaquille O'Neal Category:Articles With hCards?
CREATE TABLE table_name_93 (position VARCHAR, class VARCHAR, player VARCHAR)
SELECT position FROM table_name_93 WHERE class = "sophomore" AND player = "shaquille o'neal category:articles with hcards"
What is the lowest run 3 an athlete with a run 2 less than 53.72 and a run 1 of 53.1 has?
CREATE TABLE table_name_30 (run_3 INTEGER, run_2 VARCHAR, run_1 VARCHAR)
SELECT MIN(run_3) FROM table_name_30 WHERE run_2 < 53.72 AND run_1 = 53.1
What scores happened on February 11?
CREATE TABLE table_23486853_7 (score VARCHAR, date VARCHAR)
SELECT score FROM table_23486853_7 WHERE date = "February 11"
What's the total losses that has more than 12 wins and 1017 against?
CREATE TABLE table_name_42 (losses VARCHAR, against VARCHAR, wins VARCHAR)
SELECT COUNT(losses) FROM table_name_42 WHERE against = 1017 AND wins > 12
Which Pali has an English of mindfulness of breathing?
CREATE TABLE table_name_54 (pali VARCHAR, english VARCHAR)
SELECT pali FROM table_name_54 WHERE english = "mindfulness of breathing"
What country is Alain Labrecque from?
CREATE TABLE table_1965650_10 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_1965650_10 WHERE player = "Alain Labrecque"
What team had an average fencer rank of 1.33?
CREATE TABLE table_28372291_1 (team VARCHAR, average_fencers_rank VARCHAR)
SELECT team FROM table_28372291_1 WHERE average_fencers_rank = "1.33"
For game site Schaefer Stadium, what were the results?
CREATE TABLE table_17928023_1 (result VARCHAR, game_site VARCHAR)
SELECT result FROM table_17928023_1 WHERE game_site = "Schaefer Stadium"
Tell me the average original week for soldier field
CREATE TABLE table_name_18 (original_week INTEGER, venue VARCHAR)
SELECT AVG(original_week) FROM table_name_18 WHERE venue = "soldier field"
What is Type, when Number of Bearers 2008 is greater than 12.376, when Rank is greater than 3, and when Etymology is Son of Jens?
CREATE TABLE table_name_68 (type VARCHAR, etymology VARCHAR, number_of_bearers_2008 VARCHAR, rank VARCHAR)
SELECT type FROM table_name_68 WHERE number_of_bearers_2008 > 12.376 AND rank > 3 AND etymology = "son of jens"
What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984?
CREATE TABLE table_name_73 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, up__up_to_kbit_s_ VARCHAR)
SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = "willy.tel" AND up__up_to_kbit_s_ > 1984
Who was the gues on 25.11.07 when home was stade nyonnais (1.l)?
CREATE TABLE table_name_67 (guest VARCHAR, date VARCHAR, home VARCHAR)
SELECT guest FROM table_name_67 WHERE date = "25.11.07" AND home = "stade nyonnais (1.l)"
What is the location of the tiruchirappalli district?
CREATE TABLE table_name_73 (location VARCHAR, district VARCHAR)
SELECT location FROM table_name_73 WHERE district = "tiruchirappalli district"
What was the total with a score in set 3 of 13–25?
CREATE TABLE table_name_55 (total VARCHAR, set_3 VARCHAR)
SELECT total FROM table_name_55 WHERE set_3 = "13–25"
What name in a year after 1997 has a longitude of 213.0e?
CREATE TABLE table_name_91 (name VARCHAR, year_named VARCHAR, longitude VARCHAR)
SELECT name FROM table_name_91 WHERE year_named > 1997 AND longitude = "213.0e"
If the aircraft was ussr mig-25 rb how many were destroyed?
CREATE TABLE table_1817852_1 (destroyed VARCHAR, aircraft VARCHAR)
SELECT destroyed FROM table_1817852_1 WHERE aircraft = "USSR MiG-25 RB"
What is the sum of silvers for teams with ranks over 3 and totals under 2?
CREATE TABLE table_name_98 (silver INTEGER, rank VARCHAR, total VARCHAR)
SELECT SUM(silver) FROM table_name_98 WHERE rank > 3 AND total < 2
What is the weeks rank for the episode with the production code 1alf05?
CREATE TABLE table_26198709_1 (rank__week_ INTEGER, production_code VARCHAR)
SELECT MAX(rank__week_) FROM table_26198709_1 WHERE production_code = "1ALF05"
Which entrant has 25th as the rank?
CREATE TABLE table_name_22 (entrant VARCHAR, rank VARCHAR)
SELECT entrant FROM table_name_22 WHERE rank = "25th"
What is the uniform number of the player whose last name is Wiltshire?
CREATE TABLE table_name_25 (uni_number INTEGER, surname VARCHAR)
SELECT MIN(uni_number) FROM table_name_25 WHERE surname = "wiltshire"
what is the code of population census 2009 is 1356301?
CREATE TABLE table_1404486_1 (code VARCHAR, population_census_2009 VARCHAR)
SELECT code FROM table_1404486_1 WHERE population_census_2009 = 1356301
Total smaller than 285, and a To par larger than 1 belongs to what player?
CREATE TABLE table_name_29 (player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_29 WHERE total < 285 AND to_par > 1
How many colleges in total?
CREATE TABLE College (Id VARCHAR)
SELECT COUNT(*) FROM College
What was the overall record of Oral Roberts college?
CREATE TABLE table_16295365_1 (record VARCHAR, school VARCHAR)
SELECT record FROM table_16295365_1 WHERE school = "Oral Roberts"
Please name the Losses that has a Played smaller than 5?
CREATE TABLE table_name_57 (losses INTEGER, played INTEGER)
SELECT MAX(losses) FROM table_name_57 WHERE played < 5
Which team played at home for the second leg and has aggregate score of 2-0?
CREATE TABLE table_name_19 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)
SELECT home__2nd_leg_ FROM table_name_19 WHERE aggregate = "2-0"
What is the status of the unit with a net capacity of 1212 MW?
CREATE TABLE table_name_50 (status VARCHAR, net_capacity VARCHAR)
SELECT status FROM table_name_50 WHERE net_capacity = "1212 mw"
Which record has 5:00 as the time, jess liaudin as the opponent for the location of england?
CREATE TABLE table_name_49 (record VARCHAR, location VARCHAR, time VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_49 WHERE time = "5:00" AND opponent = "jess liaudin" AND location = "england"
Which Number of households has a Median household income of $32,806, and a Population larger than 11,291?
CREATE TABLE table_name_1 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)
SELECT MAX(number_of_households) FROM table_name_1 WHERE median_household_income = "$32,806" AND population > 11 OFFSET 291
Who is the leading scorer of the game on 13 February 2008?
CREATE TABLE table_name_52 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_name_52 WHERE date = "13 february 2008"
What is the home team score at brunswick street oval?
CREATE TABLE table_name_26 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_26 WHERE venue = "brunswick street oval"
Find the average price of all product clothes.
CREATE TABLE products (product_price INTEGER, product_type_code VARCHAR)
SELECT AVG(product_price) FROM products WHERE product_type_code = 'Clothes'
Which team is in the Southeast with a home at Philips Arena?
CREATE TABLE table_name_29 (team VARCHAR, division VARCHAR, home_arena VARCHAR)
SELECT team FROM table_name_29 WHERE division = "southeast" AND home_arena = "philips arena"
What is the Winning score in 1965?
CREATE TABLE table_name_90 (winning_score VARCHAR, year VARCHAR)
SELECT winning_score FROM table_name_90 WHERE year = 1965
On what surface was the tournament with opponents kathleen horvath marcella mesker in the finals?
CREATE TABLE table_name_1 (surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT surface FROM table_name_1 WHERE opponents_in_the_final = "kathleen horvath marcella mesker"
What was the number of seat changes when the % of votes was 23.75?
CREATE TABLE table_149330_1 (change_in_seat VARCHAR, _percentage_of_votes VARCHAR)
SELECT change_in_seat FROM table_149330_1 WHERE _percentage_of_votes = "23.75"
What was the name of the project that peaked at 40 and was in the USA?
CREATE TABLE table_name_38 (project_name VARCHAR, peak VARCHAR, country VARCHAR)
SELECT project_name FROM table_name_38 WHERE peak = "40" AND country = "usa"
How many subsidiaries are there of Postermobile Advertising Limited?
CREATE TABLE table_1756264_2 (subsidiaries INTEGER, company_name VARCHAR)
SELECT MIN(subsidiaries) FROM table_1756264_2 WHERE company_name = "POSTERMOBILE ADVERTISING LIMITED"
What is the founding of parsu cimmarons?
CREATE TABLE table_11604804_5 (founded INTEGER, nickname VARCHAR)
SELECT MIN(founded) FROM table_11604804_5 WHERE nickname = "ParSU Cimmarons"
The highest year for the series titled dragon laws ii: kidnapped is what?
CREATE TABLE table_name_12 (year INTEGER, series_title VARCHAR)
SELECT MAX(year) FROM table_name_12 WHERE series_title = "dragon laws ii: kidnapped"
What is the Places amount of the United States Ranking 8?
CREATE TABLE table_name_71 (places INTEGER, nation VARCHAR, rank VARCHAR)
SELECT AVG(places) FROM table_name_71 WHERE nation = "united states" AND rank = 8
What is the Title, when the Composer(s) is Sakdatorn, and when the Arranger(s) is Jitrakorn Mongkoltham?
CREATE TABLE table_name_79 (title VARCHAR, composer_s_ VARCHAR, arranger_s_ VARCHAR)
SELECT title FROM table_name_79 WHERE composer_s_ = "sakdatorn" AND arranger_s_ = "jitrakorn mongkoltham"
What district is bill thomas from?
CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341453_7 WHERE incumbent = "Bill Thomas"
What is the name of Aleko Berdzenishvili's song?
CREATE TABLE table_name_18 (song VARCHAR, artist VARCHAR)
SELECT song FROM table_name_18 WHERE artist = "aleko berdzenishvili"
What score did the Green Bay Packers get as visitor?
CREATE TABLE table_name_8 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_8 WHERE visitor = "green bay packers"