question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the average number of laps that were made when the race took a time of +48.325?
CREATE TABLE table_name_89 (laps INTEGER, time_retired VARCHAR)
SELECT AVG(laps) FROM table_name_89 WHERE time_retired = "+48.325"
What team has 2000-01 as the season?
CREATE TABLE table_name_67 (team VARCHAR, season VARCHAR)
SELECT team FROM table_name_67 WHERE season = "2000-01"
What was the Match Report for the Euro2008q at the Athens Olympic Stadium and a score of 1-2?
CREATE TABLE table_name_44 (match_report VARCHAR, score VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT match_report FROM table_name_44 WHERE competition = "euro2008q" AND venue = "athens olympic stadium" AND score = "1-2"
what is the laps when the time/retired is turbo and the grid is less than 14?
CREATE TABLE table_name_29 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT laps FROM table_name_29 WHERE time_retired = "turbo" AND grid < 14
What's the series number of the episode written by Dan Vebber?
CREATE TABLE table_23242933_2 (no_in_series INTEGER, written_by VARCHAR)
SELECT MAX(no_in_series) FROM table_23242933_2 WHERE written_by = "Dan Vebber"
The singular word of hand uses what plural word?
CREATE TABLE table_name_20 (plural_word VARCHAR, singular_word VARCHAR)
SELECT plural_word FROM table_name_20 WHERE singular_word = "hand"
What was the title for the state of qin?
CREATE TABLE table_name_29 (title VARCHAR, state VARCHAR)
SELECT title FROM table_name_29 WHERE state = "qin"
Tell me the lowest week for w 10-3
CREATE TABLE table_name_50 (week INTEGER, result VARCHAR)
SELECT MIN(week) FROM table_name_50 WHERE result = "w 10-3"
How many classes between senior and junior year for world history
CREATE TABLE table_13967239_2 (senior__4th_year_ VARCHAR, junior__3rd_year_ VARCHAR)
SELECT COUNT(senior__4th_year_) FROM table_13967239_2 WHERE junior__3rd_year_ = "World History"
Name the maximum kerry # for where others is 47
CREATE TABLE table_1733457_1 (kerry_number INTEGER, others_number VARCHAR)
SELECT MAX(kerry_number) FROM table_1733457_1 WHERE others_number = 47
What is the lowest amount of L in any season?
CREATE TABLE table_24224991_2 (l INTEGER)
SELECT MIN(l) FROM table_24224991_2
How many Goals have a Result of 0 – 4?
CREATE TABLE table_name_26 (goals INTEGER, result VARCHAR)
SELECT AVG(goals) FROM table_name_26 WHERE result = "0 – 4"
What is Co-Drivers, when Laps is greater than 196, and when Year is before 2010?
CREATE TABLE table_name_78 (co_drivers VARCHAR, laps VARCHAR, year VARCHAR)
SELECT co_drivers FROM table_name_78 WHERE laps > 196 AND year < 2010
When goals scored is more than 18, draw is less than 4, and goals conceded is more than 24, what is the sum of played?
CREATE TABLE table_name_33 (played VARCHAR, goals_conceded VARCHAR, goals_scored VARCHAR, draw VARCHAR)
SELECT COUNT(played) FROM table_name_33 WHERE goals_scored > 18 AND draw < 4 AND goals_conceded > 24
What was the gender of the contestant on RR: South Pacific season?
CREATE TABLE table_18974269_1 (gender VARCHAR, original_season VARCHAR)
SELECT gender FROM table_18974269_1 WHERE original_season = "RR: South Pacific"
What is the average grid number that had Team China with less than 10 laps?
CREATE TABLE table_name_29 (grid INTEGER, laps VARCHAR, team VARCHAR)
SELECT AVG(grid) FROM table_name_29 WHERE laps < 10 AND team = "china"
Which stadium has a payout of $3 million?
CREATE TABLE table_16046689_29 (stadium VARCHAR, payout___us$__ VARCHAR)
SELECT stadium FROM table_16046689_29 WHERE payout___us$__ = "$3 Million"
What state has a swimsuit less than 9.277, gown more than 8.944 and preliminary greater than 8.483?
CREATE TABLE table_name_19 (state VARCHAR, preliminary VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT state FROM table_name_19 WHERE swimsuit < 9.277 AND evening_gown > 8.944 AND preliminary < 8.483
Which Tournament has a Score of 6–4, 6–4?
CREATE TABLE table_name_75 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_75 WHERE score = "6–4, 6–4"
Name the Nationality of södertälje sk?
CREATE TABLE table_name_78 (nationality VARCHAR, team_from VARCHAR)
SELECT nationality FROM table_name_78 WHERE team_from = "södertälje sk"
Which player was the high points scorer during the game with an end score of W 93-85?
CREATE TABLE table_name_77 (high_points VARCHAR, score VARCHAR)
SELECT high_points FROM table_name_77 WHERE score = "w 93-85"
What school did Dwight Howard play for
CREATE TABLE table_15621965_8 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_15621965_8 WHERE player = "Dwight Howard"
How many years was the individual winner from the United States was Tiger Woods?
CREATE TABLE table_name_75 (year VARCHAR, country VARCHAR, individual VARCHAR)
SELECT COUNT(year) FROM table_name_75 WHERE country = "united states" AND individual = "tiger woods"
How many totals does cork have whose rank is larger than 2?
CREATE TABLE table_name_27 (total INTEGER, county VARCHAR, rank VARCHAR)
SELECT SUM(total) FROM table_name_27 WHERE county = "cork" AND rank > 2
Who was second when Shane McKinlay was the lead?
CREATE TABLE table_name_71 (second VARCHAR, lead VARCHAR)
SELECT second FROM table_name_71 WHERE lead = "shane mckinlay"
On what week were there 26,243 in attendance on September 21, 1969?
CREATE TABLE table_name_51 (week VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_51 WHERE date = "september 21, 1969" AND attendance < 26 OFFSET 243
What is the percentage of total area in the ecozone that the percentage of land area is 2.2?
CREATE TABLE table_15555661_2 (percentage_of_total_area VARCHAR, percentage_of_land_area VARCHAR)
SELECT percentage_of_total_area FROM table_15555661_2 WHERE percentage_of_land_area = "2.2"
Name the agg for team 2 of asl sport guyanais.
CREATE TABLE table_name_34 (agg VARCHAR, team_2 VARCHAR)
SELECT agg FROM table_name_34 WHERE team_2 = "asl sport guyanais"
What was the attendance for the game against the Houston Oilers?
CREATE TABLE table_name_9 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_9 WHERE opponent = "houston oilers"
What is the total national rank of Canada with lanes larger than 3?
CREATE TABLE table_name_72 (rank INTEGER, nationality VARCHAR, lane VARCHAR)
SELECT SUM(rank) FROM table_name_72 WHERE nationality = "canada" AND lane > 3
What is the total number of bronze medals with more than 1 medal total and fewer than 1 silver medal?
CREATE TABLE table_name_8 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT COUNT(bronze) FROM table_name_8 WHERE total > 1 AND silver < 1
Which Home has a Round of r1, and an Opponent of dundee united?
CREATE TABLE table_name_72 (home VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT home FROM table_name_72 WHERE round = "r1" AND opponent = "dundee united"
What is the result for first elected in 1944
CREATE TABLE table_1341930_5 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1341930_5 WHERE first_elected = 1944
What numbered episode had 11.96 million US viewers?
CREATE TABLE table_26199130_1 (no INTEGER, us_viewers__million_ VARCHAR)
SELECT MAX(no) FROM table_26199130_1 WHERE us_viewers__million_ = "11.96"
The album titled I had what chart positions?
CREATE TABLE table_name_21 (chart_positions VARCHAR, album_title VARCHAR)
SELECT chart_positions FROM table_name_21 WHERE album_title = "i"
Tell me the Hindu for ethnic group for white irish
CREATE TABLE table_name_4 (hindu VARCHAR, ethnic_group VARCHAR)
SELECT hindu FROM table_name_4 WHERE ethnic_group = "white irish"
What was the constructor in 1975?
CREATE TABLE table_23548160_1 (constructor VARCHAR, year VARCHAR)
SELECT constructor FROM table_23548160_1 WHERE year = 1975
What is the home team which plays at a venue called Win Entertainment Centre?
CREATE TABLE table_name_34 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_34 WHERE venue = "win entertainment centre"
Who wrote the episode that is production code 202?
CREATE TABLE table_26448179_3 (written_by VARCHAR, production_code VARCHAR)
SELECT written_by FROM table_26448179_3 WHERE production_code = "202"
What is Fleet Number(s), when Wheel Arrangement is "2-6-0", and when Class is "Z"?
CREATE TABLE table_name_98 (fleet_number_s_ VARCHAR, wheel_arrangement VARCHAR, class VARCHAR)
SELECT fleet_number_s_ FROM table_name_98 WHERE wheel_arrangement = "2-6-0" AND class = "z"
What are the daily hire costs for the products with substring 'Book' in its name?
CREATE TABLE Products_for_hire (daily_hire_cost VARCHAR, product_name VARCHAR)
SELECT daily_hire_cost FROM Products_for_hire WHERE product_name LIKE '%Book%'
Which ERP W is the lowest one that has a Frequency MHz of 91.3?
CREATE TABLE table_name_58 (erp_w INTEGER, frequency_mhz VARCHAR)
SELECT MIN(erp_w) FROM table_name_58 WHERE frequency_mhz = 91.3
When did the party elected in jun. 1959 enter office?
CREATE TABLE table_name_43 (entered_office VARCHAR, election VARCHAR)
SELECT entered_office FROM table_name_43 WHERE election = "jun. 1959"
Which the Lost to is in 2000
CREATE TABLE table_name_35 (lost_to VARCHAR, year VARCHAR)
SELECT lost_to FROM table_name_35 WHERE year = 2000
What is the Venue when the score was 1 – 1, and the result was 2 – 2?
CREATE TABLE table_name_87 (venue VARCHAR, score VARCHAR, result VARCHAR)
SELECT venue FROM table_name_87 WHERE score = "1 – 1" AND result = "2 – 2"
How many countries were sampled for the Prosperity Index (2008)?
CREATE TABLE table_19948664_1 (countries_sampled INTEGER, index__year_ VARCHAR)
SELECT MAX(countries_sampled) FROM table_19948664_1 WHERE index__year_ = "Prosperity Index (2008)"
What is the lowest Rank with a Nation that is east germany?
CREATE TABLE table_name_43 (rank INTEGER, nation VARCHAR)
SELECT MIN(rank) FROM table_name_43 WHERE nation = "east germany"
What is Home Team, when Tie No is 4?
CREATE TABLE table_name_49 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_49 WHERE tie_no = "4"
Who is the away team against the home team Hartlepools United?
CREATE TABLE table_name_61 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_61 WHERE home_team = "hartlepools united"
What are the notes of events that finished in 12th position?
CREATE TABLE table_name_94 (notes VARCHAR, position VARCHAR)
SELECT notes FROM table_name_94 WHERE position = "12th"
What was the result when the attendance was 12,000?
CREATE TABLE table_name_77 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_77 WHERE attendance = "12,000"
Which Best Actor has a Best Director of takeshi kitano for outrage beyond?
CREATE TABLE table_name_44 (best_actor VARCHAR, best_director VARCHAR)
SELECT best_actor FROM table_name_44 WHERE best_director = "takeshi kitano for outrage beyond"
How many sets were played in the tournament that had 4R in 2011 and 2R in 2008?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT 2009 FROM table_name_60 WHERE 2011 = "4r" AND 2008 = "2r"
How many Forfeits have Wins smaller than 8, and Losses larger than 16?
CREATE TABLE table_name_84 (forfeits VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT COUNT(forfeits) FROM table_name_84 WHERE wins < 8 AND losses > 16
What tournament is on 18 May 1992?
CREATE TABLE table_name_29 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_29 WHERE date = "18 may 1992"
What was the final score of the game against Lenka Novotná?
CREATE TABLE table_name_29 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_29 WHERE opponent_in_the_final = "lenka novotná"
Find the first name and gender of student who have more than one pet.
CREATE TABLE student (fname VARCHAR, sex VARCHAR, stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR)
SELECT T1.fname, T1.sex FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid GROUP BY T1.stuid HAVING COUNT(*) > 1
Name the partner with opponent of michaëlla krajicek eleni daniilidou
CREATE TABLE table_name_20 (partner VARCHAR, opponent VARCHAR)
SELECT partner FROM table_name_20 WHERE opponent = "michaëlla krajicek eleni daniilidou"
What is the minimum and maximum number of bathrooms of all the apartments?
CREATE TABLE Apartments (bathroom_count INTEGER)
SELECT MIN(bathroom_count), MAX(bathroom_count) FROM Apartments
How many games were against Furman?
CREATE TABLE table_20745444_1 (game INTEGER, opponent VARCHAR)
SELECT MAX(game) FROM table_20745444_1 WHERE opponent = "Furman"
Who is the opponent of game 54, which was in Los Angeles and was before day 18?
CREATE TABLE table_name_26 (opponent VARCHAR, game VARCHAR, location_attendance VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_26 WHERE location_attendance = "los angeles" AND date < 18 AND game = 54
What year is the latest year that has no under director?
CREATE TABLE table_name_18 (year INTEGER, director VARCHAR)
SELECT MAX(year) FROM table_name_18 WHERE director = "no"
What is the format for the MHCP-66 Catalog?
CREATE TABLE table_name_24 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_24 WHERE catalog = "mhcp-66"
Can you tell me the Opponent that has the Date of october 11, 1953?
CREATE TABLE table_name_62 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_62 WHERE date = "october 11, 1953"
Show all the time(et) where the opponent is the Cincinnati Bengals.
CREATE TABLE table_14477002_1 (time___et__ VARCHAR, opponent VARCHAR)
SELECT time___et__ FROM table_14477002_1 WHERE opponent = "Cincinnati Bengals"
In the game at Glenferrie Oval, what is the home team score?
CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_81 WHERE venue = "glenferrie oval"
Name the word with pronunciation b of *sɨks
CREATE TABLE table_name_55 (word VARCHAR, pronunciation_b VARCHAR)
SELECT word FROM table_name_55 WHERE pronunciation_b = "*sɨks"
Which Surface has a Score in the final of 2–6, 6–7?
CREATE TABLE table_name_42 (surface VARCHAR, score_in_the_final VARCHAR)
SELECT surface FROM table_name_42 WHERE score_in_the_final = "2–6, 6–7"
List all club names in descending alphabetical order.
CREATE TABLE club (name VARCHAR)
SELECT name FROM club ORDER BY name DESC
Which Width has a Number of vehicles larger than 15, and a Type designation of k5000?
CREATE TABLE table_name_88 (width VARCHAR, number_of_vehicles VARCHAR, type_designation VARCHAR)
SELECT width FROM table_name_88 WHERE number_of_vehicles > 15 AND type_designation = "k5000"
What date was the record 21-11?
CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_43 WHERE record = "21-11"
What was the course on 13 may?
CREATE TABLE table_name_99 (course VARCHAR, date VARCHAR)
SELECT course FROM table_name_99 WHERE date = "13 may"
what is team 2 when team 1 is fc rouen (d1)?
CREATE TABLE table_name_85 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_85 WHERE team_1 = "fc rouen (d1)"
What is the type when they move from Gimnàstic?
CREATE TABLE table_name_69 (type VARCHAR, moving_from VARCHAR)
SELECT type FROM table_name_69 WHERE moving_from = "gimnàstic"
What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s?
CREATE TABLE table_name_93 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR)
SELECT AVG(cuts_made) FROM table_name_93 WHERE top_10 = 11 AND wins < 1
Tell me the captain for 1774 and guns of 14
CREATE TABLE table_name_23 (captain VARCHAR, year VARCHAR, guns VARCHAR)
SELECT captain FROM table_name_23 WHERE year = "1774" AND guns = "14"
What is the 1994 finish in the event that had a 1998 finish of 2R?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT 1994 FROM table_name_22 WHERE 1998 = "2r"
How many pole position achieved 0 points from Mexico?
CREATE TABLE table_27279050_1 (poles VARCHAR, points VARCHAR, nation VARCHAR)
SELECT COUNT(poles) FROM table_27279050_1 WHERE points = "0" AND nation = "Mexico"
Where does the home team fitzroy play?
CREATE TABLE table_name_78 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_78 WHERE home_team = "fitzroy"
Tell me the county for mariano castro
CREATE TABLE table_name_48 (county VARCHAR, grantee VARCHAR)
SELECT county FROM table_name_48 WHERE grantee = "mariano castro"
What's the result at psinet stadium when the cincinnati bengals are the opponent?
CREATE TABLE table_name_39 (result VARCHAR, game_site VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_39 WHERE game_site = "psinet stadium" AND opponent = "cincinnati bengals"
How many ranks had 367 matches and more than 216 goals?
CREATE TABLE table_name_94 (rank INTEGER, matches VARCHAR, goals VARCHAR)
SELECT SUM(rank) FROM table_name_94 WHERE matches = 367 AND goals > 216
What are all classes for the position SLB?
CREATE TABLE table_14624447_24 (class VARCHAR, position VARCHAR)
SELECT class FROM table_14624447_24 WHERE position = "SLB"
what is the rounds when the entrant is scuderia ferrari marlboro?
CREATE TABLE table_name_57 (rounds VARCHAR, entrant VARCHAR)
SELECT rounds FROM table_name_57 WHERE entrant = "scuderia ferrari marlboro"
What country has a score of 74-70=144
CREATE TABLE table_name_2 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_2 WHERE score = 74 - 70 = 144
Who's leading in the general classification in stage 1a?
CREATE TABLE table_12261714_2 (general_classification VARCHAR, stage VARCHAR)
SELECT general_classification FROM table_12261714_2 WHERE stage = "1a"
Which united states player had a To par of 12?
CREATE TABLE table_name_63 (player VARCHAR, to_par VARCHAR, country VARCHAR)
SELECT player FROM table_name_63 WHERE to_par = 12 AND country = "united states"
What kind of Replaced has a Team of gimnasia y esgrima (lp)?
CREATE TABLE table_name_71 (replaced_by VARCHAR, team VARCHAR)
SELECT replaced_by FROM table_name_71 WHERE team = "gimnasia y esgrima (lp)"
Which 2009–10 has a Rank 2013 of 18?
CREATE TABLE table_name_87 (rank_2013 VARCHAR)
SELECT 2009 AS _10 FROM table_name_87 WHERE rank_2013 = "18"
What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps?
CREATE TABLE table_name_83 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT SUM(grid) FROM table_name_83 WHERE time_retired = "engine" AND driver = "teo fabi" AND laps < 39
What is the Record for the Team of Indiana?
CREATE TABLE table_name_4 (record VARCHAR, team VARCHAR)
SELECT record FROM table_name_4 WHERE team = "indiana"
What is the capital of the country with a population density per km² of 15.6/km² (/sqmi)?
CREATE TABLE table_26769_1 (capital VARCHAR, population_density_per_km² VARCHAR)
SELECT capital FROM table_26769_1 WHERE population_density_per_km² = "15.6/km² (/sqmi)"
What is the Code Name for the Space Pilot Function (figure)?
CREATE TABLE table_name_88 (code_name VARCHAR, function__figure_ VARCHAR)
SELECT code_name FROM table_name_88 WHERE function__figure_ = "space pilot"
Who is the builder of the locomotives with wheel arrangement of 2-4-2 T?
CREATE TABLE table_1157867_2 (builder VARCHAR, wheel_arrangement VARCHAR)
SELECT builder FROM table_1157867_2 WHERE wheel_arrangement = "2-4-2 T"
What is the location of the team Saturn?
CREATE TABLE table_20140132_1 (location VARCHAR, team VARCHAR)
SELECT location FROM table_20140132_1 WHERE team = "Saturn"
Name the call sign for ERP W of 4
CREATE TABLE table_name_20 (call_sign VARCHAR, erp_w VARCHAR)
SELECT call_sign FROM table_name_20 WHERE erp_w = 4
Name the class 1-200 for university of hertfordshire for university of warwick
CREATE TABLE table_1936678_1 (class_1 VARCHAR, best_uk_team VARCHAR, class_1a VARCHAR)
SELECT class_1 - 200 FROM table_1936678_1 WHERE best_uk_team = "University of Hertfordshire" AND class_1a = "University of Warwick"
What is the last round with club team Guelph Storm (ohl)?
CREATE TABLE table_11803648_22 (round INTEGER, club_team VARCHAR)
SELECT MAX(round) FROM table_11803648_22 WHERE club_team = "Guelph Storm (OHL)"
Who won the gold when Bertil Ahlin Sweden won the silver?
CREATE TABLE table_name_48 (gold VARCHAR, silver VARCHAR)
SELECT gold FROM table_name_48 WHERE silver = "bertil ahlin sweden"
Who was the visiting team when the record was 6–12–5–1?
CREATE TABLE table_name_4 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_4 WHERE record = "6–12–5–1"