answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT tyre FROM table_name_87 WHERE entrant = "sa alfa romeo" AND driver = "luigi fagioli" | CREATE TABLE table_name_87 (tyre VARCHAR, entrant VARCHAR, driver VARCHAR) | What is the tyre when the entrant is sa alfa romeo and the driver is luigi fagioli? |
SELECT entrant FROM table_name_90 WHERE engine = "talbot l6" AND driver = "pierre levegh" | CREATE TABLE table_name_90 (entrant VARCHAR, engine VARCHAR, driver VARCHAR) | Who is the entrant when the engine is talbot l6 and the driver is pierre levegh? |
SELECT entrant FROM table_name_88 WHERE chassis = "ferrari 125" | CREATE TABLE table_name_88 (entrant VARCHAR, chassis VARCHAR) | Who is the entrant when the chassis is ferrari 125? |
SELECT engine FROM table_name_17 WHERE tyre = "d" AND constructor = "era" AND driver = "bob gerard" | CREATE TABLE table_name_17 (engine VARCHAR, driver VARCHAR, tyre VARCHAR, constructor VARCHAR) | what is the engine when the tyre is d, the constructor is era and the driver is bob gerard? |
SELECT score FROM table_name_29 WHERE record = "39-62" | CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR) | What was the score when the record was 39-62? |
SELECT date FROM table_name_14 WHERE record = "35-57" | CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR) | What was the date when the record was 35-57? |
SELECT loss FROM table_name_20 WHERE record = "34-56" | CREATE TABLE table_name_20 (loss VARCHAR, record VARCHAR) | What was the loss when the record was 34-56? |
SELECT away_team FROM table_name_37 WHERE home_team = "geelong" | CREATE TABLE table_name_37 (away_team VARCHAR, home_team VARCHAR) | What is the name of the away team that played Geelong? |
SELECT MIN(crowd) FROM table_name_40 WHERE away_team = "fitzroy" | CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR) | What is the smallest crowd size for away team Fitzroy? |
SELECT builder FROM table_name_71 WHERE br_no = 30782 | CREATE TABLE table_name_71 (builder VARCHAR, br_no VARCHAR) | Which Builder has BR No. 30782? |
SELECT title FROM table_name_75 WHERE production_code = "k1504" | CREATE TABLE table_name_75 (title VARCHAR, production_code VARCHAR) | What is the title of the episode with a production code of K1504? |
SELECT AVG(series__number) FROM table_name_42 WHERE directed_by = "matthew penn" | CREATE TABLE table_name_42 (series__number INTEGER, directed_by VARCHAR) | What is the average of the Series #s that were directed by Matthew Penn? |
SELECT COUNT(series__number) FROM table_name_20 WHERE season__number < 22 AND directed_by = "matthew penn" | CREATE TABLE table_name_20 (series__number VARCHAR, season__number VARCHAR, directed_by VARCHAR) | How many episodes did Matthew Penn direct before season 22? |
SELECT visitor FROM table_name_90 WHERE attendance > 18 OFFSET 680 | CREATE TABLE table_name_90 (visitor VARCHAR, attendance INTEGER) | What Visiting Team(s) had an Attendance of over 18,680 |
SELECT MIN(attendance) FROM table_name_34 WHERE visitor = "nashville" | CREATE TABLE table_name_34 (attendance INTEGER, visitor VARCHAR) | When Nashville was the visiting team what was the lowest Attendance shown? |
SELECT time_retired FROM table_name_81 WHERE grid = 16 | CREATE TABLE table_name_81 (time_retired VARCHAR, grid VARCHAR) | What is the time/retired for the driver with 16 grids? |
SELECT MIN(grid) FROM table_name_89 WHERE time_retired = "1:56:18.22" | CREATE TABLE table_name_89 (grid INTEGER, time_retired VARCHAR) | What is the smallest grid for a time/retired of 1:56:18.22? |
SELECT opponent FROM table_name_18 WHERE date = "september 28" | CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR) | Who was the opponent on September 28? |
SELECT opponent FROM table_name_58 WHERE save = "||33,389||87–62" | CREATE TABLE table_name_58 (opponent VARCHAR, save VARCHAR) | Who was the opponent in the game with save ||33,389||87–62? |
SELECT opponent FROM table_name_76 WHERE save = "||33,723||93–64" | CREATE TABLE table_name_76 (opponent VARCHAR, save VARCHAR) | Who was the opponent in the game with save ||33,723||93–64? |
SELECT score FROM table_name_52 WHERE date = "september 8" | CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR) | What was the score on September 8? |
SELECT nationality FROM table_name_92 WHERE years_for_jazz = "1984-85" | CREATE TABLE table_name_92 (nationality VARCHAR, years_for_jazz VARCHAR) | Which nationality has Years for Jazz of 1984-85? |
SELECT position FROM table_name_9 WHERE nationality = "united states" AND player = "roger powell" | CREATE TABLE table_name_9 (position VARCHAR, nationality VARCHAR, player VARCHAR) | Which position has a Nationality of united states, and a Player of roger powell? |
SELECT years_for_jazz FROM table_name_48 WHERE player = "milt palacio" | CREATE TABLE table_name_48 (years_for_jazz VARCHAR, player VARCHAR) | What years does milt palacio play? |
SELECT years_for_jazz FROM table_name_17 WHERE school_club_team = "colorado state" | CREATE TABLE table_name_17 (years_for_jazz VARCHAR, school_club_team VARCHAR) | Which years have a School/Club Team of colorado state? |
SELECT years FROM table_name_64 WHERE engine_code = "m47d20" AND model = "318td (diesel)" | CREATE TABLE table_name_64 (years VARCHAR, engine_code VARCHAR, model VARCHAR) | During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured? |
SELECT torque FROM table_name_73 WHERE engine_code = "m54b25" | CREATE TABLE table_name_73 (torque VARCHAR, engine_code VARCHAR) | What is the Torque of the model with the engine code of M54B25? |
SELECT torque FROM table_name_27 WHERE model = "320td (diesel)" | CREATE TABLE table_name_27 (torque VARCHAR, model VARCHAR) | What is the Torque of the Model 320td (diesel)? |
SELECT years FROM table_name_11 WHERE engine_code = "m54b25" | CREATE TABLE table_name_11 (years VARCHAR, engine_code VARCHAR) | During which years was the model with the Engine code of m54b25 manufactured? |
SELECT model FROM table_name_72 WHERE years = "2001–2004" AND torque = "n·m (lb·ft) @ 3750" AND engine_code = "n42b18 / n46b18" | CREATE TABLE table_name_72 (model VARCHAR, engine_code VARCHAR, years VARCHAR, torque VARCHAR) | Which model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code of n42b18 / n46b18? |
SELECT date FROM table_name_96 WHERE score = "1-12" | CREATE TABLE table_name_96 (date VARCHAR, score VARCHAR) | What was the date of the Mariners game that had a score of 1-12? |
SELECT date FROM table_name_8 WHERE attendance = "6,707" | CREATE TABLE table_name_8 (date VARCHAR, attendance VARCHAR) | What was the date of the Mariners game that had an attendance of 6,707? |
SELECT date FROM table_name_77 WHERE loss = "segui (0-5)" | CREATE TABLE table_name_77 (date VARCHAR, loss VARCHAR) | What was the date of the Mariners game that had a loss of Segui (0-5)? |
SELECT loss FROM table_name_91 WHERE attendance = "9,065" | CREATE TABLE table_name_91 (loss VARCHAR, attendance VARCHAR) | What was the loss of the Mariners game that had an attendance of 9,065? |
SELECT opponent FROM table_name_49 WHERE attendance = "7,893" | CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR) | Who was the Mariners opponent at the game attended by 7,893? |
SELECT surface FROM table_name_88 WHERE tournament = "aptos" | CREATE TABLE table_name_88 (surface VARCHAR, tournament VARCHAR) | What is the tournament surface at Aptos? |
SELECT score FROM table_name_96 WHERE opponent_in_the_final = "paul goldstein" | CREATE TABLE table_name_96 (score VARCHAR, opponent_in_the_final VARCHAR) | What was the final score of the Paul Goldstein match? |
SELECT opponent_in_the_final FROM table_name_69 WHERE date = "november 23, 1998" | CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, date VARCHAR) | Who played the final match on November 23, 1998? |
SELECT date FROM table_name_69 WHERE opponent_in_the_final = "paul goldstein" | CREATE TABLE table_name_69 (date VARCHAR, opponent_in_the_final VARCHAR) | What date did Paul Goldstein play the final? |
SELECT surface FROM table_name_83 WHERE opponent_in_the_final = "takao suzuki" | CREATE TABLE table_name_83 (surface VARCHAR, opponent_in_the_final VARCHAR) | What was the surface type at Takao Suzuki? |
SELECT score FROM table_name_95 WHERE date = "september 11, 2006" | CREATE TABLE table_name_95 (score VARCHAR, date VARCHAR) | What were the scores on September 11, 2006? |
SELECT loss FROM table_name_83 WHERE date = "may 9" | CREATE TABLE table_name_83 (loss VARCHAR, date VARCHAR) | Who did they lose to on may 9? |
SELECT COUNT(grid) FROM table_name_27 WHERE driver = "pedro de la rosa" | CREATE TABLE table_name_27 (grid VARCHAR, driver VARCHAR) | What is Pedro De La Rosa's total number of Grid? |
SELECT constructor FROM table_name_91 WHERE time_retired = "+37.311" | CREATE TABLE table_name_91 (constructor VARCHAR, time_retired VARCHAR) | Which constructor has a Time/Retired of +37.311? |
SELECT time_retired FROM table_name_38 WHERE driver = "mika häkkinen" | CREATE TABLE table_name_38 (time_retired VARCHAR, driver VARCHAR) | What is the time/retired for mika häkkinen |
SELECT title FROM table_name_68 WHERE audience = "4.629.000" | CREATE TABLE table_name_68 (title VARCHAR, audience VARCHAR) | Which title had an audience of 4.629.000? |
SELECT audience FROM table_name_36 WHERE episode = "21" | CREATE TABLE table_name_36 (audience VARCHAR, episode VARCHAR) | What was the audience for Episode 21? |
SELECT share FROM table_name_82 WHERE audience = "3.944.000" | CREATE TABLE table_name_82 (share VARCHAR, audience VARCHAR) | What was the share when the audience was 3.944.000? |
SELECT audience FROM table_name_74 WHERE title = "mi amigo el monstruo" | CREATE TABLE table_name_74 (audience VARCHAR, title VARCHAR) | What was the audience for Mi Amigo el Monstruo? |
SELECT title FROM table_name_67 WHERE share = "19,9%" | CREATE TABLE table_name_67 (title VARCHAR, share VARCHAR) | Which title has a share of 19,9% |
SELECT share FROM table_name_12 WHERE audience = "4.693.000" | CREATE TABLE table_name_12 (share VARCHAR, audience VARCHAR) | Which share had an audience of 4.693.000? |
SELECT venue FROM table_name_24 WHERE away_team = "carlton" | CREATE TABLE table_name_24 (venue VARCHAR, away_team VARCHAR) | what was the venue that hosted Carlton as the away team? |
SELECT date FROM table_name_38 WHERE away_team = "collingwood" | CREATE TABLE table_name_38 (date VARCHAR, away_team VARCHAR) | What was the date of the Collingwood away game? |
SELECT player FROM table_name_54 WHERE team = "new york knicks" AND position = "c" | CREATE TABLE table_name_54 (player VARCHAR, team VARCHAR, position VARCHAR) | Who is the player that plays position c on the New York Knicks? |
SELECT position FROM table_name_42 WHERE pick = "1" | CREATE TABLE table_name_42 (position VARCHAR, pick VARCHAR) | What is the position of the pick 1 player? |
SELECT player FROM table_name_89 WHERE team = "fort wayne pistons" AND position = "f" | CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, position VARCHAR) | Who is the player that plays position f from Fort Wayne Pistons? |
SELECT round FROM table_name_32 WHERE college = "oregon" | CREATE TABLE table_name_32 (round VARCHAR, college VARCHAR) | Which round is the player from Oregon from? |
SELECT COUNT(goals_for) FROM table_name_37 WHERE goals_against < 56 AND games_played > 7 AND wins < 6 | CREATE TABLE table_name_37 (goals_for VARCHAR, wins VARCHAR, goals_against VARCHAR, games_played VARCHAR) | How many goals for occurred when the goals against was less than 56 and games played was larger than 7 with less than 6 wins? |
SELECT MIN(wins) FROM table_name_93 WHERE games_played = 7 AND goals_against < 46 AND goals_for > 34 | CREATE TABLE table_name_93 (wins INTEGER, goals_for VARCHAR, games_played VARCHAR, goals_against VARCHAR) | What is the smallest number of wins with 7 games played and goals against less than 46 when goals for is more than 34? |
SELECT AVG(ties) FROM table_name_41 WHERE goals_against < 56 AND team = "ottawa hockey club" AND goals_for > 47 | CREATE TABLE table_name_41 (ties INTEGER, goals_for VARCHAR, goals_against VARCHAR, team VARCHAR) | What is the average number of ties when goals against is less than 56 for Ottawa Hockey Club and the goals for is more than 47? |
SELECT COUNT(losses) FROM table_name_75 WHERE games_played < 8 AND wins < 3 | CREATE TABLE table_name_75 (losses VARCHAR, games_played VARCHAR, wins VARCHAR) | How many losses occurred with less than 8 games played and less than 3 wins? |
SELECT COUNT(goals_against) FROM table_name_65 WHERE goals_for < 48 AND ties < 0 | CREATE TABLE table_name_65 (goals_against VARCHAR, goals_for VARCHAR, ties VARCHAR) | How many goals against were scored when the goals for is less than 48 with 0 ties? |
SELECT position FROM table_name_26 WHERE school_club_team_country = "valparaiso" | CREATE TABLE table_name_26 (position VARCHAR, school_club_team_country VARCHAR) | Name the position for the player that is from valparaiso |
SELECT height_in_ft FROM table_name_35 WHERE position = "guard" AND school_club_team_country = "north carolina-charlotte" | CREATE TABLE table_name_35 (height_in_ft VARCHAR, position VARCHAR, school_club_team_country VARCHAR) | Name the height in feet for the guard from north carolina-charlotte |
SELECT height_in_ft FROM table_name_80 WHERE school_club_team_country = "valparaiso" | CREATE TABLE table_name_80 (height_in_ft VARCHAR, school_club_team_country VARCHAR) | Name the height in feet for the player from valparaiso |
SELECT school_club_team_country FROM table_name_11 WHERE height_in_ft = "6-5" | CREATE TABLE table_name_11 (school_club_team_country VARCHAR, height_in_ft VARCHAR) | Name the school/club team/country for the player that is 6-5 ft |
SELECT no_s_ FROM table_name_4 WHERE height_in_ft = "6-7" AND position = "guard" | CREATE TABLE table_name_4 (no_s_ VARCHAR, height_in_ft VARCHAR, position VARCHAR) | Name the numbers for the player with a height in ft of 6-7 for the guard |
SELECT height_in_ft FROM table_name_59 WHERE school_club_team_country = "wyoming" | CREATE TABLE table_name_59 (height_in_ft VARCHAR, school_club_team_country VARCHAR) | Name the height in ft for the player from wyoming |
SELECT college FROM table_name_29 WHERE cfl_team = "calgary stampeders" | CREATE TABLE table_name_29 (college VARCHAR, cfl_team VARCHAR) | Which college did the Calgary Stampeders recruit from? |
SELECT MIN(year) FROM table_name_87 WHERE co_singer = "solo" AND film_name = "bhagya debata" | CREATE TABLE table_name_87 (year INTEGER, co_singer VARCHAR, film_name VARCHAR) | Which year has the Co-singer solo and a Film name of bhagya debata? |
SELECT date FROM table_name_30 WHERE grand_prix = "portuguese grand prix" | CREATE TABLE table_name_30 (date VARCHAR, grand_prix VARCHAR) | What date is the Portuguese Grand Prix? |
SELECT winning_driver FROM table_name_48 WHERE location = "imola" | CREATE TABLE table_name_48 (winning_driver VARCHAR, location VARCHAR) | Which winning driver is located in Imola? |
SELECT pole_position FROM table_name_98 WHERE grand_prix = "portuguese grand prix" | CREATE TABLE table_name_98 (pole_position VARCHAR, grand_prix VARCHAR) | What is the Pole Position of the Portuguese Grand Prix? |
SELECT date FROM table_name_76 WHERE location = "long beach" | CREATE TABLE table_name_76 (date VARCHAR, location VARCHAR) | On what date did a race occur at Long Beach? |
SELECT race FROM table_name_63 WHERE pole_position = "jody scheckter" | CREATE TABLE table_name_63 (race VARCHAR, pole_position VARCHAR) | What race had Jody Scheckter hold pole position? |
SELECT race AS Winner FROM table_name_63 WHERE race = "south african grand prix" | CREATE TABLE table_name_63 (race VARCHAR) | Who won the South African Grand Prix? |
SELECT fastest_lap FROM table_name_87 WHERE race = "german grand prix" | CREATE TABLE table_name_87 (fastest_lap VARCHAR, race VARCHAR) | Who had the fastest lap at the German Grand Prix? |
SELECT tyre FROM table_name_5 WHERE race = "united states grand prix" | CREATE TABLE table_name_5 (tyre VARCHAR, race VARCHAR) | What is the Tyre for the united states grand prix? |
SELECT result FROM table_name_59 WHERE competition = "1948 og" | CREATE TABLE table_name_59 (result VARCHAR, competition VARCHAR) | What was the result of the 1948 og competition? |
SELECT MIN(grid) FROM table_name_48 WHERE driver = "rolf stommelen" | CREATE TABLE table_name_48 (grid INTEGER, driver VARCHAR) | I want the lowest Grid for Rolf Stommelen |
SELECT constructor FROM table_name_68 WHERE grid < 20 AND laps = 6 | CREATE TABLE table_name_68 (constructor VARCHAR, grid VARCHAR, laps VARCHAR) | I want the constructor for grid less than 20 and Laps of 6 |
SELECT german FROM table_name_59 WHERE year > 1910 AND other = "143" AND hungarian = "32" | CREATE TABLE table_name_59 (german VARCHAR, hungarian VARCHAR, year VARCHAR, other VARCHAR) | What is the german total population after 1910 with an other total of 143 and 32 hungarians? |
SELECT year FROM table_name_4 WHERE notes = "200 m" AND position = "3rd" | CREATE TABLE table_name_4 (year VARCHAR, notes VARCHAR, position VARCHAR) | What year did Naoki Tsukahara finish 3rd in the 200 m race? |
SELECT COUNT(attendance) FROM table_name_67 WHERE home = "dallas" AND date = "may 12" | CREATE TABLE table_name_67 (attendance VARCHAR, home VARCHAR, date VARCHAR) | What is the attendance at the Dallas home game on may 12? |
SELECT country FROM table_name_83 WHERE rank = 2 | CREATE TABLE table_name_83 (country VARCHAR, rank VARCHAR) | What nationality is the player ranked 2? |
SELECT COUNT(wins) FROM table_name_49 WHERE player = "mike hill" AND rank < 4 | CREATE TABLE table_name_49 (wins VARCHAR, player VARCHAR, rank VARCHAR) | How many wins for mike hill ranked below 4? |
SELECT nationality FROM table_name_10 WHERE player = "trevor cann" | CREATE TABLE table_name_10 (nationality VARCHAR, player VARCHAR) | What is Trevor Cann's nationality? |
SELECT nationality FROM table_name_60 WHERE player = "kent patterson" | CREATE TABLE table_name_60 (nationality VARCHAR, player VARCHAR) | What is Kent Patterson's nationality? |
SELECT unit FROM table_name_27 WHERE pennant_number = 82 | CREATE TABLE table_name_27 (unit VARCHAR, pennant_number VARCHAR) | Which unit has a Pennant Number of 82? |
SELECT MAX(pennant_number) FROM table_name_54 WHERE ships_in_class = "raahe" | CREATE TABLE table_name_54 (pennant_number INTEGER, ships_in_class VARCHAR) | What is the highest pennant number with ships in raahe class? |
SELECT MAX(pennant_number) FROM table_name_61 WHERE ships_in_class = "pori" | CREATE TABLE table_name_61 (pennant_number INTEGER, ships_in_class VARCHAR) | What is the highest pennant number with ships in pori class? |
SELECT competition FROM table_name_90 WHERE score = "2-1" | CREATE TABLE table_name_90 (competition VARCHAR, score VARCHAR) | What is the name of the competition that ended with a score of 2-1? |
SELECT competition FROM table_name_63 WHERE score = "1-3" | CREATE TABLE table_name_63 (competition VARCHAR, score VARCHAR) | What is the name of the competition that ended with a score of 1-3? |
SELECT venue FROM table_name_5 WHERE date = "28 october 2013" | CREATE TABLE table_name_5 (venue VARCHAR, date VARCHAR) | At which venue did the game on 28 october 2013 take place? |
SELECT competition FROM table_name_74 WHERE score = "2-1" | CREATE TABLE table_name_74 (competition VARCHAR, score VARCHAR) | What is the Competition name of the competition that ended with a score of 2-1? |
SELECT year FROM table_name_70 WHERE engine = "yamaha v12" AND chassis = "brabham bt60y" | CREATE TABLE table_name_70 (year VARCHAR, engine VARCHAR, chassis VARCHAR) | In what year did a car have a yamaha v12 engine and a brabham bt60y chassis |
SELECT MAX(year) FROM table_name_31 WHERE chassis = "mclaren mp4/10b" | CREATE TABLE table_name_31 (year INTEGER, chassis VARCHAR) | waht is the last year with a mclaren mp4/10b chassis |
SELECT AVG(pts) FROM table_name_58 WHERE chassis = "mclaren mp4/10b" AND year < 1995 | CREATE TABLE table_name_58 (pts INTEGER, chassis VARCHAR, year VARCHAR) | before 1995 waht is the aveage pts for a mclaren mp4/10b chassis |
SELECT MAX(year) FROM table_name_84 WHERE entrant = "ligier gitanes blondes" | CREATE TABLE table_name_84 (year INTEGER, entrant VARCHAR) | what is the most recent year for a ligier gitanes blondes |
SELECT SUM(average) FROM table_name_62 WHERE interview = 8.75 AND evening_gown > 8.75 | CREATE TABLE table_name_62 (average INTEGER, interview VARCHAR, evening_gown VARCHAR) | What is the total number of averages with an interview of 8.75 when the evening gown number was bigger than 8.75? |
Subsets and Splits