answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT SUM(grid) FROM table_name_91 WHERE laps > 14 AND driver = "alain prost"
What is the grid total for alain prost with over 14 laps?
CREATE TABLE table_name_91 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT team_2 FROM table_name_52 WHERE team_1 = "joe public"
Which Team 2 had a Team 1of joe public?
CREATE TABLE table_name_52 (team_2 VARCHAR, team_1 VARCHAR)
SELECT location FROM table_262481_2 WHERE institution = "Fisk University"
where is Fisk University located?
CREATE TABLE table_262481_2 (location VARCHAR, institution VARCHAR)
SELECT team FROM table_name_70 WHERE run_3 = "1:24.00"
What is Team, when Run 3 is 1:24.00?
CREATE TABLE table_name_70 (team VARCHAR, run_3 VARCHAR)
SELECT COUNT(district) FROM table_1341738_36 WHERE incumbent = "Donald D. Clancy"
How many districts does Donald D. Clancy represent?
CREATE TABLE table_1341738_36 (district VARCHAR, incumbent VARCHAR)
SELECT model_type FROM table_20866024_2 WHERE model_designation = "97100"
What model type has 97100 model designation?
CREATE TABLE table_20866024_2 (model_type VARCHAR, model_designation VARCHAR)
SELECT home_team AS score FROM table_name_38 WHERE home_team = "richmond"
What was Richmond's score as the home team?
CREATE TABLE table_name_38 (home_team VARCHAR)
SELECT high_assists FROM table_11964154_11 WHERE high_rebounds = "Nick Collison (15)"
Who had the high assists when the high rebounds were from Nick Collison (15)?
CREATE TABLE table_11964154_11 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT venue FROM table_name_68 WHERE crowd > 20 OFFSET 000
Which venue had a crowd larger than 20,000?
CREATE TABLE table_name_68 (venue VARCHAR, crowd INTEGER)
SELECT team FROM table_name_7 WHERE run_4 = "1:24.4"
Which team had a run 4 of 1:24.4?
CREATE TABLE table_name_7 (team VARCHAR, run_4 VARCHAR)
SELECT surface FROM table_name_83 WHERE opponent_in_the_final = "takao suzuki"
What was the surface type at Takao Suzuki?
CREATE TABLE table_name_83 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT developer_s_ FROM table_name_68 WHERE game = "portal"
Who were the developers for Portal?
CREATE TABLE table_name_68 (developer_s_ VARCHAR, game VARCHAR)
SELECT tournament FROM table_name_56 WHERE surface = "carpet" AND date < 1995 AND opponent_in_the_final = "ken flach robert seguso"
Which Tournament has a Surface of carpet, and a Date smaller than 1995, and an Opponent in the final of ken flach robert seguso?
CREATE TABLE table_name_56 (tournament VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
SELECT nationality FROM table_15621965_1 WHERE no = 9
Name the nationality of number 9
CREATE TABLE table_15621965_1 (nationality VARCHAR, no VARCHAR)
SELECT archive FROM table_1601935_1 WHERE viewers__in_millions_ = "6.6"
What was the archive for episode with 6.6 million viewers?
CREATE TABLE table_1601935_1 (archive VARCHAR, viewers__in_millions_ VARCHAR)
SELECT opponent_in_the_final FROM table_name_67 WHERE outcome = "winner" AND surface = "carpet (i)" AND tournament = "lyon, france"
What is Opponent In The Final, when Outcome is "Winner", when Surface is "Carpet (I)", and when Tournament is "Lyon, France"?
CREATE TABLE table_name_67 (opponent_in_the_final VARCHAR, tournament VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT MIN(year) FROM table_name_87 WHERE co_singer = "solo" AND film_name = "bhagya debata"
Which year has the Co-singer solo and a Film name of bhagya debata?
CREATE TABLE table_name_87 (year INTEGER, co_singer VARCHAR, film_name VARCHAR)
SELECT SUM(events) FROM table_name_80 WHERE top_10 = 7 AND top_5 > 4
What is the sum of Events, when Top-10 is 7, and when Top-5 is greater than 4?
CREATE TABLE table_name_80 (events INTEGER, top_10 VARCHAR, top_5 VARCHAR)
SELECT player FROM table_name_28 WHERE place = "t4" AND score = 70 - 68 - 69 - 73 = 280
Which player has a score of 70-68-69-73=280 and a place of t4?
CREATE TABLE table_name_28 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT AVG(year) FROM table_name_55 WHERE mixed_doubles = "mika heinonen susanna dahlberg"
When did mika heinonen susanna dahlberg win mixed doubles?
CREATE TABLE table_name_55 (year INTEGER, mixed_doubles VARCHAR)
SELECT source FROM table_name_78 WHERE remainder = "15%" AND topinka__r_ = "26%"
Which Source has a Remainder of 15%, and a Topinka of 26%?
CREATE TABLE table_name_78 (source VARCHAR, remainder VARCHAR, topinka__r_ VARCHAR)
SELECT current_venue FROM table_14903081_1 WHERE tournament = "Miami Masters"
What is the current venue for the Miami Masters tournament?
CREATE TABLE table_14903081_1 (current_venue VARCHAR, tournament VARCHAR)
SELECT week_of FROM table_name_53 WHERE semi_finalists = "sandrine testud yone kamio"
What is Week, when Semi Finalists is Sandrine Testud Yone Kamio?
CREATE TABLE table_name_53 (week_of VARCHAR, semi_finalists VARCHAR)
SELECT MIN(points) FROM table_name_51 WHERE make = "chevrolet" AND driver = "sterling marlin" AND car__number < 14
Which is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14?
CREATE TABLE table_name_51 (points INTEGER, car__number VARCHAR, make VARCHAR, driver VARCHAR)
SELECT name FROM table_name_43 WHERE location = "gulf of mexico" AND type = "ship" AND entered_service = "1999"
What is the name of the location and ship type in the Gulf of Mexico that entered service in 1999?
CREATE TABLE table_name_43 (name VARCHAR, entered_service VARCHAR, location VARCHAR, type VARCHAR)
SELECT event FROM table_name_69 WHERE horse = "fabuleux 5" AND result < 70.88
In which event did Fabuleux 5 get a result smaller than 70.88?
CREATE TABLE table_name_69 (event VARCHAR, horse VARCHAR, result VARCHAR)
SELECT winner FROM table_28898948_3 WHERE electorate = "Rangitikei"
When rangitikei is the electorate who is the winner?
CREATE TABLE table_28898948_3 (winner VARCHAR, electorate VARCHAR)
SELECT date FROM table_name_25 WHERE record = "43–35"
On what date was the Record of 43–35?
CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR)
SELECT wins FROM table_name_79 WHERE club = "ayr united"
How many wins did Ayr United have?
CREATE TABLE table_name_79 (wins VARCHAR, club VARCHAR)
SELECT cfl_team FROM table_28059992_1 WHERE college = "Calgary"
What is every CFL team from the Calgary college?
CREATE TABLE table_28059992_1 (cfl_team VARCHAR, college VARCHAR)
SELECT SUM(high_estimate) FROM table_name_51 WHERE type = "mass suicide" AND location = "france" AND low_estimate > 16
With a type of mass suicide located in France and a low estimate greater than 16, the sum of the high estimate numbers listed is what number?
CREATE TABLE table_name_51 (high_estimate INTEGER, low_estimate VARCHAR, type VARCHAR, location VARCHAR)
SELECT date_of_appointment FROM table_27091128_2 WHERE outgoing_manager = "Kadir Özcan"
What was the date of appointment for the manager replacing Kadir Özcan?
CREATE TABLE table_27091128_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT to_par FROM table_name_76 WHERE player = "bill glasson"
What was Bill Glasson's score to par after 2 rounds?
CREATE TABLE table_name_76 (to_par VARCHAR, player VARCHAR)
SELECT constellation FROM table_name_27 WHERE message = "cosmic call 1" AND arrival_date = "october 2067"
Which constellation has cosmic call 1 as the message, and an arrival date of october 2067?
CREATE TABLE table_name_27 (constellation VARCHAR, message VARCHAR, arrival_date VARCHAR)
SELECT title FROM table_27450976_1 WHERE written_by = "Scott M. Gimple"
What is the name of the episode that was written by Scott M. Gimple?
CREATE TABLE table_27450976_1 (title VARCHAR, written_by VARCHAR)
SELECT company FROM table_name_84 WHERE number > 5 AND price = "$389m"
What company is numbered larger than 5 and priced at $389M?
CREATE TABLE table_name_84 (company VARCHAR, number VARCHAR, price VARCHAR)
SELECT time FROM table_name_97 WHERE rider = "valentino rossi"
what was valentino rossi's rider time?
CREATE TABLE table_name_97 (time VARCHAR, rider VARCHAR)
SELECT week_11_nov_6 FROM table_name_99 WHERE week_10_oct_30 = "nebraska (7-1)"
What was Week 11 when Week 10 had Nebraska (7-1)?
CREATE TABLE table_name_99 (week_11_nov_6 VARCHAR, week_10_oct_30 VARCHAR)
SELECT series__number FROM table_18646432_1 WHERE original_air_date = "November 11, 1996"
Name the series number that aired on november 11, 1996
CREATE TABLE table_18646432_1 (series__number VARCHAR, original_air_date VARCHAR)
SELECT executions_in_effigie FROM table_name_26 WHERE tribunal = "lamego"
How man executions in effigie took place at the Lamego tribunal?
CREATE TABLE table_name_26 (executions_in_effigie VARCHAR, tribunal VARCHAR)
SELECT AVG(episode) FROM table_name_35 WHERE performer_4 = "jimmy mulville"
What is the average episode number where jimmy mulville was the 4th performer?
CREATE TABLE table_name_35 (episode INTEGER, performer_4 VARCHAR)
SELECT COUNT(year) FROM table_name_75 WHERE country = "united states" AND individual = "tiger woods"
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 internet_explorer FROM table_name_4 WHERE opera = "1.67%" AND period = "2012 q1"
What internet explorer has 1.67% as the opera, with 2012 q1 as the period?
CREATE TABLE table_name_4 (internet_explorer VARCHAR, opera VARCHAR, period VARCHAR)
SELECT earpads FROM table_name_67 WHERE construction = "plastic" AND succeeded_by = "igrado"
What earpads does the headphone with plastic contruction and was succeeded by igrado have?
CREATE TABLE table_name_67 (earpads VARCHAR, construction VARCHAR, succeeded_by VARCHAR)
SELECT first_name, last_name, gender_mf FROM customers WHERE good_or_bad_customer = 'good' ORDER BY last_name
What are the first name, last name, and gender of all the good customers? Order by their last name.
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, gender_mf VARCHAR, good_or_bad_customer VARCHAR)
SELECT college_junior_club_team FROM table_name_6 WHERE pick__number = "16"
To which college/junior/club team did the player that was Pick 16 belong?
CREATE TABLE table_name_6 (college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = "catnip"
What is the color description of the product with name "catnip"?
CREATE TABLE products (color_code VARCHAR, product_name VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR)
SELECT COUNT(miles__km_) FROM table_2196127_1 WHERE race_time = "3:00:46"
How many numbers were recorded under miles for the 3:00:46 race time?
CREATE TABLE table_2196127_1 (miles__km_ VARCHAR, race_time VARCHAR)
SELECT score FROM table_name_32 WHERE game > 6 AND october = 28
What was the score of the game after game 6 on October 28?
CREATE TABLE table_name_32 (score VARCHAR, game VARCHAR, october VARCHAR)
SELECT combined FROM table_name_53 WHERE victories = 14
Can you tell me the Combined that has the Victories of 14?
CREATE TABLE table_name_53 (combined VARCHAR, victories VARCHAR)
SELECT MAX(pick) FROM table_name_46 WHERE round > 6 AND overall > 216
What is the highest Pick that has a round greater than 6 and an overall greater than 216?
CREATE TABLE table_name_46 (pick INTEGER, round VARCHAR, overall VARCHAR)
SELECT rowers FROM table_name_54 WHERE country = "australia"
Who are the rowers for Australia?
CREATE TABLE table_name_54 (rowers VARCHAR, country VARCHAR)
SELECT loser FROM table_name_18 WHERE winner = "los angeles lakers (10)"
What is the Loser when the winner was los angeles lakers (10)?
CREATE TABLE table_name_18 (loser VARCHAR, winner VARCHAR)
SELECT SUM(year) FROM table_name_40 WHERE opponent = "#3 uconn"
What is the sum of Year, when Opponent is #3 UCONN?
CREATE TABLE table_name_40 (year INTEGER, opponent VARCHAR)
SELECT manufacturer FROM table_name_68 WHERE type = "2-6-0"
Which manucfaturer's type was 2-6-0?
CREATE TABLE table_name_68 (manufacturer VARCHAR, type VARCHAR)
SELECT COUNT(year) FROM table_name_32 WHERE player = "landon donovan"
What is the sum of all the years that Landon Donovan won the ESPY award?
CREATE TABLE table_name_32 (year VARCHAR, player VARCHAR)
SELECT COUNT(won__pg_) FROM table_name_67 WHERE goals_conceded__gc_ = 64 AND goals_scored__gf_ > 33
What is the total number of pg won of the team with 64 goals conceded and more than 33 goals scored?
CREATE TABLE table_name_67 (won__pg_ VARCHAR, goals_conceded__gc_ VARCHAR, goals_scored__gf_ VARCHAR)
SELECT score FROM table_name_63 WHERE player = "leo diegel"
What was the score for Leo Diegel?
CREATE TABLE table_name_63 (score VARCHAR, player VARCHAR)
SELECT position FROM table_name_17 WHERE school = "indiana state"
Name the position for indiana state
CREATE TABLE table_name_17 (position VARCHAR, school VARCHAR)
SELECT COUNT(draw) FROM table_name_47 WHERE played > 18
Name the total number of draw for played more than 18
CREATE TABLE table_name_47 (draw VARCHAR, played INTEGER)
SELECT score FROM table_name_51 WHERE player = "bob tway"
What's bob tway's score?
CREATE TABLE table_name_51 (score VARCHAR, player VARCHAR)
SELECT COUNT(release_price___usd__) FROM table_16400024_1 WHERE model_number = "Pentium III 550"
How many release prices are there for the Pentium iii 550?
CREATE TABLE table_16400024_1 (release_price___usd__ VARCHAR, model_number VARCHAR)
SELECT Real AS name FROM table_name_95 WHERE defining_characteristics = "shortest band member"
Who is the person with the defining characteristic of the shortest band member?
CREATE TABLE table_name_95 (Real VARCHAR, defining_characteristics VARCHAR)
SELECT area FROM table_name_17 WHERE authority = "state" AND gender = "coed" AND roll = 122
What is the area of the coed school with a state authority and a roll number of 122?
CREATE TABLE table_name_17 (area VARCHAR, roll VARCHAR, authority VARCHAR, gender VARCHAR)
SELECT margin_of_victory FROM table_name_8 WHERE tournament = "gna/glendale federal classic"
What is the margin of victory of the gna/glendale federal classic?
CREATE TABLE table_name_8 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT total_viewers__in_millions_ FROM table_23799417_2 WHERE rating = "9.1"
If the rating is 9.1, what was the total viewers?
CREATE TABLE table_23799417_2 (total_viewers__in_millions_ VARCHAR, rating VARCHAR)
SELECT country FROM table_name_80 WHERE player = "ernie els"
What country was Ernie Els from?
CREATE TABLE table_name_80 (country VARCHAR, player VARCHAR)
SELECT date FROM table_name_91 WHERE country = "uk" AND format = "cd" AND catalog = "edcd 227"
What is the Date when the Country shows uk, the Format is cd, and the Catalog of edcd 227?
CREATE TABLE table_name_91 (date VARCHAR, catalog VARCHAR, country VARCHAR, format VARCHAR)
SELECT revising_convention_s_ FROM table_2001348_1 WHERE denunciations__september_2011_ = 21
What were the revising conventions commentary with a denunciation of 21?
CREATE TABLE table_2001348_1 (revising_convention_s_ VARCHAR, denunciations__september_2011_ VARCHAR)
SELECT player FROM table_name_32 WHERE to_par = "+1" AND score = 75 - 68 = 143
What is Player, when To Par is "+1", and when Score is "75-68=143"?
CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT AVG(bronze) FROM table_name_82 WHERE gold < 0
Which Bronze has a Gold smaller than 0?
CREATE TABLE table_name_82 (bronze INTEGER, gold INTEGER)
SELECT place FROM table_name_46 WHERE to_par = "e"
What place has a to par of E?
CREATE TABLE table_name_46 (place VARCHAR, to_par VARCHAR)
SELECT 1995 FROM table_name_15 WHERE 1993 = "atp masters series"
What is the 1995 value with of the 1993 ATP Masters Series?
CREATE TABLE table_name_15 (Id VARCHAR)
SELECT nationality FROM table_name_17 WHERE ship = "aracataca"
What is the Nationality of the Aracataca Ship?
CREATE TABLE table_name_17 (nationality VARCHAR, ship VARCHAR)
SELECT round FROM table_28181401_4 WHERE scorers = "Roberts 86'"
when roberts 86' is the scorer what is the round?
CREATE TABLE table_28181401_4 (round VARCHAR, scorers VARCHAR)
SELECT MAX(nicotine) FROM table_name_40 WHERE name = "raison blue"
Which Raison Blue has the highest nicotine?
CREATE TABLE table_name_40 (nicotine INTEGER, name VARCHAR)
SELECT MAX(pick__number) FROM table_28059992_5
What is the highest numbered draft pick?
CREATE TABLE table_28059992_5 (pick__number INTEGER)
SELECT 2011 FROM table_name_36 WHERE 2007 = "558"
What is the 2011 entry for the row with a 2007 entry of 558?
CREATE TABLE table_name_36 (Id VARCHAR)
SELECT weight_lbs_ FROM table_1198175_1 WHERE born = "April 6, 1954 Detroit, MI"
What is the weight(lbs) when born is april 6, 1954 detroit, mi?
CREATE TABLE table_1198175_1 (weight_lbs_ VARCHAR, born VARCHAR)
SELECT f_bolt FROM table_26967904_2 WHERE p1_diameter__mm_ = "11.35"
What is the f bolt for 11.35 p1 diameter (mm)?
CREATE TABLE table_26967904_2 (f_bolt VARCHAR, p1_diameter__mm_ VARCHAR)
SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500
What are the names of players whose training hours is between 500 and 1500?
CREATE TABLE Player (pName VARCHAR, HS INTEGER)
SELECT location___state FROM table_name_5 WHERE circuit = "wanneroo raceway"
What is the location/state of the race on the Wanneroo raceway?
CREATE TABLE table_name_5 (location___state VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_67 WHERE course = "la granja de san ildefonso to alto de navacerrada"
What is the date for the La Granja de San Ildefonso to Alto de Navacerrada course?
CREATE TABLE table_name_67 (date VARCHAR, course VARCHAR)
SELECT COUNT(last_5_meetings) FROM table_16201038_3 WHERE missouri_vs = "Texas Tech"
Name the total number of last 5 meetings for texas tech
CREATE TABLE table_16201038_3 (last_5_meetings VARCHAR, missouri_vs VARCHAR)
SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "apr. 12, 1998"
Which tournament has hard as the surface and apr. 12, 1998 as the date?
CREATE TABLE table_name_78 (tournament VARCHAR, surface VARCHAR, date VARCHAR)
SELECT AVG(total) FROM table_name_25 WHERE bronze = 5 AND silver < 4
What's the average total if the Bronze is 5 and the Silver is less than 4?
CREATE TABLE table_name_25 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT motorway FROM table_name_68 WHERE scheduled_completion = "2013" AND county = "brod-posavina"
Which motorway is in brod-posavina county and has a scheduled completion in 2013?
CREATE TABLE table_name_68 (motorway VARCHAR, scheduled_completion VARCHAR, county VARCHAR)
SELECT grid FROM table_name_20 WHERE laps = "21" AND rider = "john hopkins"
When rider John Hopkins had 21 laps, what was the grid?
CREATE TABLE table_name_20 (grid VARCHAR, laps VARCHAR, rider VARCHAR)
SELECT position FROM table_name_34 WHERE round = 7 AND college = "kansas state"
Which position has a Round of 7, and a College of kansas state?
CREATE TABLE table_name_34 (position VARCHAR, round VARCHAR, college VARCHAR)
SELECT SUM(game) FROM table_name_49 WHERE opponent = "@ hartford whalers" AND february > 19
What is the total of Game with an Opponent of @ Hartford Whalers and February that's larger than 19?
CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR)
SELECT result FROM table_name_98 WHERE field = "bishop kearney field" AND date = "august 2"
What is the result of the game at Bishop Kearney Field on August 2?
CREATE TABLE table_name_98 (result VARCHAR, field VARCHAR, date VARCHAR)
SELECT surface FROM table_name_85 WHERE date = "2 may 1999"
What is Surface, when Date is 2 May 1999?
CREATE TABLE table_name_85 (surface VARCHAR, date VARCHAR)
SELECT place FROM table_name_41 WHERE score = 70 - 70 - 68 - 70 = 278
What is Place, when Score is "70-70-68-70=278"?
CREATE TABLE table_name_41 (place VARCHAR, score VARCHAR)
SELECT member_countries FROM table_26519486_1 WHERE languages = "Finnish Swedish"
Name the member countries for finnish swedish
CREATE TABLE table_26519486_1 (member_countries VARCHAR, languages VARCHAR)
SELECT winning_driver FROM table_name_12 WHERE winning_car = "wolf wr3"
Which driver drove car Wolf WR3?
CREATE TABLE table_name_12 (winning_driver VARCHAR, winning_car VARCHAR)
SELECT brilliance_grade FROM table_name_69 WHERE benchmark = "practical fine cut"
Which Brilliance Grade has a Benchmark of practical fine cut?
CREATE TABLE table_name_69 (brilliance_grade VARCHAR, benchmark VARCHAR)
SELECT delivery FROM table_name_93 WHERE quantity = 16 AND standing > 128
Which deliver has 16 and a standing more than 128?
CREATE TABLE table_name_93 (delivery VARCHAR, quantity VARCHAR, standing VARCHAR)
SELECT score FROM table_name_1 WHERE player = "tiger woods"
What is Tiger Woods's score?
CREATE TABLE table_name_1 (score VARCHAR, player VARCHAR)
SELECT league FROM table_name_8 WHERE sport = "gaelic football and hurling"
Sport of gaelic football and hurling is what league?
CREATE TABLE table_name_8 (league VARCHAR, sport VARCHAR)
SELECT team_1 FROM table_name_36 WHERE team_2 = "iskra odintsovo"
What is Team 1, when Team 2 is "Iskra Odintsovo"?
CREATE TABLE table_name_36 (team_1 VARCHAR, team_2 VARCHAR)