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