answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT position FROM table_name_32 WHERE player = "sal martinez"
CREATE TABLE table_name_32 (position VARCHAR, player VARCHAR)
What position is Sal Martinez?
SELECT constructor FROM table_name_67 WHERE time_retired = "+2:06.0"
CREATE TABLE table_name_67 (constructor VARCHAR, time_retired VARCHAR)
Who constructed the car that has a Time/Retired of +2:06.0?
SELECT SUM(laps) FROM table_name_65 WHERE grid < 15 AND time_retired = "transmission"
CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
What is the lap total for the grid under 15 that retired due to transmission?
SELECT constructor FROM table_name_47 WHERE grid < 10 AND laps > 76 AND driver = "juan manuel fangio"
CREATE TABLE table_name_47 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)
Who constructed juan manuel fangio's car with over 76 laps and a grid under 10?
SELECT SUM(laps) FROM table_name_29 WHERE grid < 20 AND driver = "johnny herbert"
CREATE TABLE table_name_29 (laps INTEGER, grid VARCHAR, driver VARCHAR)
what is the sum of laps when grid is less than 20 and johnny herbert is driving?
SELECT driver FROM table_name_43 WHERE constructor = "ferrari" AND time_retired = "+1:06.683"
CREATE TABLE table_name_43 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR)
who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?
SELECT driver FROM table_name_81 WHERE grid = 11
CREATE TABLE table_name_81 (driver VARCHAR, grid VARCHAR)
who is the driver when grid is 11?
SELECT opponent FROM table_name_72 WHERE result = "30-12"
CREATE TABLE table_name_72 (opponent VARCHAR, result VARCHAR)
Who was the opponent with a score of 30-12?
SELECT opponent FROM table_name_89 WHERE result = "40-20"
CREATE TABLE table_name_89 (opponent VARCHAR, result VARCHAR)
Who was the opponent with a score of 40-20?
SELECT date FROM table_name_31 WHERE away_team = "geelong"
CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR)
When did Geelong play as the away team?
SELECT COUNT(capacity__mw_) FROM table_name_17 WHERE notes = "under construction"
CREATE TABLE table_name_17 (capacity__mw_ VARCHAR, notes VARCHAR)
What is the total capacity (MW) of the farm that is noted as being under construction?
SELECT state_province FROM table_name_72 WHERE wind_farm = "tehachapi pass wind farm"
CREATE TABLE table_name_72 (state_province VARCHAR, wind_farm VARCHAR)
Which state is Tehachapi Pass Wind Farm located in?
SELECT wind_farm FROM table_name_58 WHERE country = "usa" AND notes = "multiple farms"
CREATE TABLE table_name_58 (wind_farm VARCHAR, country VARCHAR, notes VARCHAR)
Which wind farm is in the USA and is noted as having multiple farms?
SELECT notes FROM table_name_86 WHERE capacity__mw_ = 343
CREATE TABLE table_name_86 (notes VARCHAR, capacity__mw_ VARCHAR)
What special notes are included for the windfarm with a capacity (MW) of 343?
SELECT SUM(capacity__mw_) FROM table_name_72 WHERE state_province = "gansu"
CREATE TABLE table_name_72 (capacity__mw_ INTEGER, state_province VARCHAR)
What is the total capacity (MW) of the windfarm located in the state/province of Gansu?
SELECT home_team AS score FROM table_name_23 WHERE venue = "arden street oval"
CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR)
In the game held at Arden Street Oval, what was the score of the home team?
SELECT SUM(crowd) FROM table_name_93 WHERE venue = "kardinia park"
CREATE TABLE table_name_93 (crowd INTEGER, venue VARCHAR)
How many people in total have attended games at Kardinia Park?
SELECT MIN(crowd) FROM table_name_96 WHERE venue = "arden street oval"
CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR)
Which game at Arden Street Oval had the lowest attendance?
SELECT venue FROM table_name_49 WHERE away_team = "footscray"
CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR)
Where was the game against the away team Footscray held?
SELECT AVG(points) FROM table_name_96 WHERE played > 42
CREATE TABLE table_name_96 (points INTEGER, played INTEGER)
What is the average number of points for clubs that have played more than 42 times?
SELECT COUNT(goals_against) FROM table_name_68 WHERE played > 42
CREATE TABLE table_name_68 (goals_against VARCHAR, played INTEGER)
What is the total number of goals scored against clubs that have played more than 42 times?
SELECT date FROM table_name_74 WHERE home_team = "geelong"
CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR)
On which date did Geelong play at home?
SELECT home_team FROM table_name_32 WHERE venue = "windy hill"
CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR)
Which home team has a venue of windy hill?
SELECT venue FROM table_name_87 WHERE home_team = "essendon"
CREATE TABLE table_name_87 (venue VARCHAR, home_team VARCHAR)
If essendon is the home team, what venue did they play at?
SELECT away_team FROM table_name_3 WHERE home_team = "richmond"
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
When the home team is richmond, what was the away team playing?
SELECT date_of_birth__age_ FROM table_name_20 WHERE position = "lock" AND caps = 10
CREATE TABLE table_name_20 (date_of_birth__age_ VARCHAR, position VARCHAR, caps VARCHAR)
When was the lock with 10 caps born?
SELECT laps FROM table_name_41 WHERE driver = "jean-christophe boullion"
CREATE TABLE table_name_41 (laps VARCHAR, driver VARCHAR)
What were the laps of driver Jean-Christophe Boullion?
SELECT playoffs FROM table_name_70 WHERE year = "2007-08"
CREATE TABLE table_name_70 (playoffs VARCHAR, year VARCHAR)
What Playoffs were held during the years of 2007-08?
SELECT date FROM table_name_4 WHERE away_team = "richmond"
CREATE TABLE table_name_4 (date VARCHAR, away_team VARCHAR)
On which date did Richmond play as an away team?
SELECT away_team FROM table_name_61 WHERE home_team = "melbourne"
CREATE TABLE table_name_61 (away_team VARCHAR, home_team VARCHAR)
What away team did Melbourne play as the home team?
SELECT chapter FROM table_name_14 WHERE founding_date > 2012
CREATE TABLE table_name_14 (chapter VARCHAR, founding_date INTEGER)
Which chapter was founded later than 2012?
SELECT chapter FROM table_name_65 WHERE city = "lubbock"
CREATE TABLE table_name_65 (chapter VARCHAR, city VARCHAR)
What is the chapter in Lubbock?
SELECT MAX(interview) FROM table_name_66 WHERE swimsuit = 8.857 AND average > 9.097
CREATE TABLE table_name_66 (interview INTEGER, swimsuit VARCHAR, average VARCHAR)
What was the highest Interview score from a contestant who had a swimsuit score of 8.857 and an Average score over 9.097?
SELECT year FROM table_name_26 WHERE top_25 = 0 AND earnings__$_ > 0
CREATE TABLE table_name_26 (year VARCHAR, top_25 VARCHAR, earnings__$_ VARCHAR)
What year has a Top 25 of 0, and a Earnings ($) larger than 0?
SELECT MAX(top_25) FROM table_name_53 WHERE money_list_rank = "232" AND cuts_made < 2
CREATE TABLE table_name_53 (top_25 INTEGER, money_list_rank VARCHAR, cuts_made VARCHAR)
What is the highest Top 25 with a Money list rank of 232 and Cuts smaller than 2?
SELECT MIN(earnings__) AS $_ FROM table_name_93 WHERE money_list_rank = "6" AND starts < 22
CREATE TABLE table_name_93 (earnings__ INTEGER, money_list_rank VARCHAR, starts VARCHAR)
What is the smallest Earnings that has a Money list rank of 6 and Starts smaller than 22?
SELECT MAX(cuts_made) FROM table_name_47 WHERE top_10 < 8 AND wins > 0
CREATE TABLE table_name_47 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR)
What is the highest number of Cuts made that has a Top 10 smaller than 8 and Wins larger than 0?
SELECT COUNT(starts) FROM table_name_66 WHERE cuts_made = 2 AND top_25 > 0 AND earnings__$_ < 338 OFFSET 067
CREATE TABLE table_name_66 (starts VARCHAR, earnings__$_ VARCHAR, cuts_made VARCHAR, top_25 VARCHAR)
How many Starts that have Cuts made of 2, Top 25 larger than 0, and Earnings ($) smaller than 338,067?
SELECT event FROM table_name_70 WHERE round = 1 AND res = "win" AND record = "15-4"
CREATE TABLE table_name_70 (event VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR)
Which event was in round 1, resulted in a win, and a record of 15-4?
SELECT res FROM table_name_43 WHERE time = "5:00" AND record = "14-4"
CREATE TABLE table_name_43 (res VARCHAR, time VARCHAR, record VARCHAR)
What is the result when the time was 5:00 and a record of 14-4?
SELECT wins FROM table_name_79 WHERE club = "ayr united"
CREATE TABLE table_name_79 (wins VARCHAR, club VARCHAR)
How many wins did Ayr United have?
SELECT last_final_lost FROM table_name_84 WHERE wins = "3" AND last_win = "2001"
CREATE TABLE table_name_84 (last_final_lost VARCHAR, wins VARCHAR, last_win VARCHAR)
When was the final loss of the club last won in 2001 and has a total of 3 wins?
SELECT last_win FROM table_name_34 WHERE last_final_lost = "2011"
CREATE TABLE table_name_34 (last_win VARCHAR, last_final_lost VARCHAR)
When was the last win for the club that had a final loss in 2011?
SELECT wins FROM table_name_33 WHERE runners_up = "8"
CREATE TABLE table_name_33 (wins VARCHAR, runners_up VARCHAR)
How many wins did the 8 time runner-up have?
SELECT wins FROM table_name_42 WHERE last_win = "2000"
CREATE TABLE table_name_42 (wins VARCHAR, last_win VARCHAR)
How many wins did the club have with the last win in 2000?
SELECT SUM(car) FROM table_name_83 WHERE player = "jeremiah pope"
CREATE TABLE table_name_83 (car INTEGER, player VARCHAR)
What are the carries of the player Jeremiah Pope?
SELECT MAX(crowd) FROM table_name_58 WHERE home_team = "fitzroy"
CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR)
What was the largest crowd that was in attendance for fitzroy?
SELECT player FROM table_name_69 WHERE team = "st. louis bombers" AND position = "g"
CREATE TABLE table_name_69 (player VARCHAR, team VARCHAR, position VARCHAR)
Who plays g position for the st. louis bombers?
SELECT player FROM table_name_15 WHERE position = "f" AND college = "depauw"
CREATE TABLE table_name_15 (player VARCHAR, position VARCHAR, college VARCHAR)
Who plays f position for depauw?
SELECT position FROM table_name_39 WHERE college = "saint louis"
CREATE TABLE table_name_39 (position VARCHAR, college VARCHAR)
What position does the saint louis player play?
SELECT player FROM table_name_79 WHERE college = "sam houston state"
CREATE TABLE table_name_79 (player VARCHAR, college VARCHAR)
Who plays for sam houston state?
SELECT COUNT(position) FROM table_name_73 WHERE points = "30-8" AND goals_for > 25
CREATE TABLE table_name_73 (position VARCHAR, points VARCHAR, goals_for VARCHAR)
How many positions have Points of 30-8 and more than 25 goals?
SELECT MIN(played) FROM table_name_41 WHERE club = "ue figueres" AND goal_difference > 16
CREATE TABLE table_name_41 (played INTEGER, club VARCHAR, goal_difference VARCHAR)
What is the lowest play with ue figueres club and a goal difference more than 16?
SELECT COUNT(played) FROM table_name_20 WHERE wins = 8 AND goals_against > 58
CREATE TABLE table_name_20 (played VARCHAR, wins VARCHAR, goals_against VARCHAR)
How many played have 8 wins and more than 58 goals against?
SELECT withdrawn FROM table_name_72 WHERE gsr_class = "296"
CREATE TABLE table_name_72 (withdrawn VARCHAR, gsr_class VARCHAR)
What is withdrawn with a GSR Class of 296?
SELECT inchicore_class FROM table_name_4 WHERE gsr_class = "235"
CREATE TABLE table_name_4 (inchicore_class VARCHAR, gsr_class VARCHAR)
What Inchicore Class has a GSR Class of 235?
SELECT inchicore_class FROM table_name_60 WHERE gswr_class < 268 AND type = "0-4-2t"
CREATE TABLE table_name_60 (inchicore_class VARCHAR, gswr_class VARCHAR, type VARCHAR)
What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t?
SELECT gswr_class FROM table_name_80 WHERE year = "1893"
CREATE TABLE table_name_80 (gswr_class VARCHAR, year VARCHAR)
Which GSWR Class is from 1893?
SELECT viewers__in_millions_ FROM table_name_5 WHERE run_time = "24:57"
CREATE TABLE table_name_5 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
On the episode that had a run time of 24:57, how many million viewers were there?
SELECT year FROM table_name_32 WHERE record = "4-21"
CREATE TABLE table_name_32 (year VARCHAR, record VARCHAR)
What year had a record of 4-21?
SELECT reg_season FROM table_name_7 WHERE record = "16-12"
CREATE TABLE table_name_7 (reg_season VARCHAR, record VARCHAR)
What regular season had a record of 16-12?
SELECT reg_season FROM table_name_87 WHERE record = "20-10"
CREATE TABLE table_name_87 (reg_season VARCHAR, record VARCHAR)
What is the regular season info that had a record of 20-10?
SELECT 1 AS st_leg FROM table_name_9 WHERE team__number1 = "asfa rabat"
CREATE TABLE table_name_9 (team__number1 VARCHAR)
Tell me the 1st leg for asfa rabat
SELECT 2 AS nd_leg FROM table_name_61 WHERE team__number1 = "alemannia aachen"
CREATE TABLE table_name_61 (team__number1 VARCHAR)
Tell me the 2nd leg for alemannia aachen
SELECT 1 AS st_leg FROM table_name_10 WHERE team__number2 = "antwerp bc"
CREATE TABLE table_name_10 (team__number2 VARCHAR)
Tell me the 1st leg for antwerp bc
SELECT team__number2 FROM table_name_78 WHERE team__number1 = "handelsministerium vienna"
CREATE TABLE table_name_78 (team__number2 VARCHAR, team__number1 VARCHAR)
Tell me the team 2 for handelsministerium vienna
SELECT date FROM table_name_83 WHERE away_team = "melbourne"
CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR)
On what date did the away team Melbourne play?
SELECT home_team FROM table_name_56 WHERE away_team = "south melbourne"
CREATE TABLE table_name_56 (home_team VARCHAR, away_team VARCHAR)
What home team played the away team South Melbourne?
SELECT MAX(area__sq_mi_) FROM table_name_88 WHERE county = "greenville county"
CREATE TABLE table_name_88 (area__sq_mi_ INTEGER, county VARCHAR)
Which is the largest area in Greenville County, by square mile?
SELECT SUM(2010 AS _census_population) FROM table_name_9 WHERE county = "oconee county" AND area__sq_mi_ < 674
CREATE TABLE table_name_9 (county VARCHAR, area__sq_mi_ VARCHAR)
Which is the total number in the 2010 Census in Oconee County where the area in square miles was less than 674?
SELECT particle FROM table_name_61 WHERE rest_mass_mev___c_2 = "1192.642(24)"
CREATE TABLE table_name_61 (particle VARCHAR, rest_mass_mev___c_2 VARCHAR)
Which Particle has a Rest mass MeV/c 2 of 1192.642(24)?
SELECT particle FROM table_name_41 WHERE isospin_i = "1" AND commonly_decays_to = "p + + π 0 or n 0 + π +"
CREATE TABLE table_name_41 (particle VARCHAR, isospin_i VARCHAR, commonly_decays_to VARCHAR)
Which Particle has an Isospin I of 1 and Commonly decays to p + + π 0 or n 0 + π +?
SELECT rest_mass_mev___c_2 FROM table_name_58 WHERE makeup = "u s s" AND spin___parity___j_p = "3⁄2 +"
CREATE TABLE table_name_58 (rest_mass_mev___c_2 VARCHAR, makeup VARCHAR, spin___parity___j_p VARCHAR)
When the Makeup is u s s and the Spin (Parity) J P of 3⁄2 +, what is the Rest mass MeV/C2?
SELECT particle FROM table_name_37 WHERE isospin_i = "1⁄2" AND symbol = "ξ ∗0 (1530)"
CREATE TABLE table_name_37 (particle VARCHAR, isospin_i VARCHAR, symbol VARCHAR)
Which Particle has an Isospin I of 1⁄2, and a Symbol of ξ ∗0 (1530)?
SELECT particle FROM table_name_85 WHERE makeup = "d s s" AND spin___parity___j_p = "3⁄2 +"
CREATE TABLE table_name_85 (particle VARCHAR, makeup VARCHAR, spin___parity___j_p VARCHAR)
Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +?
SELECT particle FROM table_name_11 WHERE rest_mass_mev___c_2 = "1383.7±1.0"
CREATE TABLE table_name_11 (particle VARCHAR, rest_mass_mev___c_2 VARCHAR)
Which Particle has a Rest mass MeV/c 2 of 1383.7±1.0?
SELECT title FROM table_name_83 WHERE year = 2003 AND genre = "rap"
CREATE TABLE table_name_83 (title VARCHAR, year VARCHAR, genre VARCHAR)
What was the title of Ashanti's 2003 rap song?
SELECT MAX(tries) FROM table_name_49 WHERE player = "paul sykes" AND points > 0
CREATE TABLE table_name_49 (tries INTEGER, player VARCHAR, points VARCHAR)
How many tries did the player Paul Sykes take when he earned 0 points?
SELECT position FROM table_name_74 WHERE goals = 0 AND points = 28 AND player = "mike forshaw"
CREATE TABLE table_name_74 (position VARCHAR, player VARCHAR, goals VARCHAR, points VARCHAR)
Mike Forshaw had 0 goals and 28 points. What is his position?
SELECT SUM(crowd) FROM table_name_47 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_47 (crowd INTEGER, venue VARCHAR)
How big is the Venue of Brunswick Street Oval?
SELECT away_team AS score FROM table_name_24 WHERE away_team = "north melbourne"
CREATE TABLE table_name_24 (away_team VARCHAR)
What is the Away Team score of North Melbourne?
SELECT killed FROM table_name_55 WHERE unit = "personal staff"
CREATE TABLE table_name_55 (killed VARCHAR, unit VARCHAR)
What was the number of Personal Staff Units Killed?
SELECT complement FROM table_name_53 WHERE killed = "0 off 0 men" AND wounded = "0 off 0 men" AND unit = "artillery corps"
CREATE TABLE table_name_53 (complement VARCHAR, unit VARCHAR, killed VARCHAR, wounded VARCHAR)
What was the Complement of Artillery Corps Units that had 0 off 0 men Killed or Wounded?
SELECT wounded FROM table_name_79 WHERE complement = "83 off 9 men"
CREATE TABLE table_name_79 (wounded VARCHAR, complement VARCHAR)
How many were Wounded while in a Unit with a Complement of 83 off 9 Men?
SELECT missing FROM table_name_89 WHERE killed = "0 off 0 men" AND wounded = "0 off 0 men" AND unit = "royal waggon train"
CREATE TABLE table_name_89 (missing VARCHAR, unit VARCHAR, killed VARCHAR, wounded VARCHAR)
How many of the Royal Waggon Train Unit were Missing while having a Killed of 0 off 0 men and a Wounded of 0 off 0 men?
SELECT wounded FROM table_name_24 WHERE killed = "0 off 0 men" AND unit = "artillery corps"
CREATE TABLE table_name_24 (wounded VARCHAR, killed VARCHAR, unit VARCHAR)
How many were Wounded in the Artillery Corps unit while having 0 off 0 men Killed?
SELECT surface FROM table_name_38 WHERE opponent = "yevgeny kafelnikov"
CREATE TABLE table_name_38 (surface VARCHAR, opponent VARCHAR)
What suface during the game that had Yevgeny Kafelnikov as an opponent?
SELECT MIN(week) FROM table_name_63 WHERE opponent = "san jose sabercats"
CREATE TABLE table_name_63 (week INTEGER, opponent VARCHAR)
What was the earliest week that the Storm played the San Jose Sabercats?
SELECT attendance FROM table_name_33 WHERE score = "† 4–4 †"
CREATE TABLE table_name_33 (attendance VARCHAR, score VARCHAR)
How many were in attendance when the score was † 4–4 †?
SELECT attendance FROM table_name_95 WHERE runner_up = "livingston"
CREATE TABLE table_name_95 (attendance VARCHAR, runner_up VARCHAR)
How many people were watching when Livingston was the runner-up?
SELECT AVG(grid) FROM table_name_36 WHERE laps > 52 AND driver = "andrea de adamich"
CREATE TABLE table_name_36 (grid INTEGER, laps VARCHAR, driver VARCHAR)
what average grid has laps larger than 52 and contains the driver of andrea de adamich?
SELECT MAX(laps) FROM table_name_34 WHERE driver = "graham hill" AND grid > 18
CREATE TABLE table_name_34 (laps INTEGER, driver VARCHAR, grid VARCHAR)
what's the highest lap that contains the driver of graham hill and a grid that is larger than 18?
SELECT AVG(grid) FROM table_name_81 WHERE time_retired = "piston" AND laps < 15
CREATE TABLE table_name_81 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
what's the average grid that has a time/retired piston and laps smaller than 15?
SELECT tuner FROM table_name_86 WHERE season > 2004 AND driver = "gaurav gill" AND team = "team mrf" AND governing_body = "mai"
CREATE TABLE table_name_86 (tuner VARCHAR, governing_body VARCHAR, team VARCHAR, season VARCHAR, driver VARCHAR)
Who is the tuner after season 2004 with Gaurav Gill as the driver, Team MRF, and Mai governing body?
SELECT driver FROM table_name_37 WHERE tuner = "n. leelakrishnan" AND governing_body = "mai" AND season = 2003
CREATE TABLE table_name_37 (driver VARCHAR, season VARCHAR, tuner VARCHAR, governing_body VARCHAR)
Who is the driver in season 2003 with a tuner of N. Leelakrishnan and a Mai governing body?
SELECT tuner FROM table_name_23 WHERE team = "mrf"
CREATE TABLE table_name_23 (tuner VARCHAR, team VARCHAR)
Who is the turner on Team MRF?
SELECT MIN(season) FROM table_name_34 WHERE driver = "farad bathena"
CREATE TABLE table_name_34 (season INTEGER, driver VARCHAR)
What is the earliest season with driver Farad Bathena?
SELECT MIN(goals) FROM table_name_63 WHERE league = "major league soccer" AND season = "2005"
CREATE TABLE table_name_63 (goals INTEGER, league VARCHAR, season VARCHAR)
Which Major League Soccer team for the 2005 season has the lowest goals?
SELECT AVG(apps) FROM table_name_43 WHERE league = "major league soccer" AND club = "seattle sounders fc" AND goals < 0
CREATE TABLE table_name_43 (apps INTEGER, goals VARCHAR, league VARCHAR, club VARCHAR)
What are the average apps for the Major League Soccer team club for the Seattle Sounders FC that has goals less than 0?
SELECT icelandic FROM table_name_59 WHERE danish = "blåt/blå"
CREATE TABLE table_name_59 (icelandic VARCHAR, danish VARCHAR)
Which Icelandic has a Danish of blåt/blå?