text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5_1992" ( "number_in_series" real, "number_in_season" real, "title" text, "directed_by" text, "original_air_date" text, "production_code" text ); Question: What is the series number th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "position" text, "player" text, "county_team" text, "club_team_s" text, "team_number" real ); Question: Which county team has jimmy finn as the player? <|assistant|> SELECT "count...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "position" text, "player" text, "county_team" text, "club_team_s" text, "team_number" real ); Question: How many team numbers have john keane as the player? <|assistant|> SELECT C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "position" text, "player" text, "county_team" text, "club_team_s" text, "team_number" real ); Question: Which position has john keane as the player? <|assistant|> SELECT "position...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the loss of the game when the record was 27-17? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "champion" text, "country" text, "score" text, "purse" real, "winner_s_share" real ); Question: Which average purse was earned by Erika Wicoff and has a winner's share...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_b_relegation" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_b_relegation" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_b_relegation" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_b_relegation" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_b_relegation" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_b_relegation" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What year was the race in Vienna, Austria? <|assistant|> SELECT MIN("year") FROM "achievem...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What event (Extra) in 2002 did the competitor compete in and place 8th? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: Where was the Olympic Games held? <|assistant|> SELECT "venue" FROM "achievements" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers_since_1970" ( "nationality" text, "cambridge_united_career" text, "games" real, "drawn" real, "lost" real, "pct_won" text, "pts_game" text ); Question: What is the largest draw wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers_since_1970" ( "nationality" text, "cambridge_united_career" text, "games" real, "drawn" real, "lost" real, "pct_won" text, "pts_game" text ); Question: How many draws have a Cambri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the record at the game when the score was 1–0? <|assistant|> SELECT "record" FROM "game_l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score of the game when the record was 19–13–3? <|assistant|> SELECT "score" FROM "gam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the visiting team when the score was 1–3? <|assistant|> SELECT "visitor" FROM "game_log" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the home team when there was a record of 20–13–3? <|assistant|> SELECT "home" FROM "game_l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the date of the game with the record of 18–10–2? <|assistant|> SELECT "date" FROM "game_l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Visitor of minnesota has what average attendance? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Date of december 29 has what visitor? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Score of 2 – 3 has what attendance? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: With a record of 48-51 for the team, the lowest 2005 attendance was listed a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What would be the lowest Attendance that also showed a loss of Obermueller (...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013_season" ( "week" real, "date" text, "visiting_team" text, "host_team" text, "stadium" text ); Question: What was the stadium for the game held on October 31? <|assistant|> SELECT "stadium"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2013_season" ( "week" real, "date" text, "visiting_team" text, "host_team" text, "stadium" text ); Question: How many weeks in total were games played at Cleveland Browns Stadium? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_1_4" ( "outcome" text, "date" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What was the surface on 23 October 2011? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_records" ( "years" text, "coach" text, "seasons" real, "wins" real, "losses" real, "ties" text, "pct" text ); Question: Which Notre Dame coach lost 15 games? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_records" ( "years" text, "coach" text, "seasons" real, "wins" real, "losses" real, "ties" text, "pct" text ); Question: How many losses did Notre Dame have in 1904? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_records" ( "years" text, "coach" text, "seasons" real, "wins" real, "losses" real, "ties" text, "pct" text ); Question: What was the winning percent of Notre Dame in 1905? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who is the home captain that played at Edgbaston? <|assistant|> SELECT "h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who is the home captain that played at Edgbaston? <|assistant|> SELECT "h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: For the matches with home captain Graham Gooch played on the dates 3,4,5,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: What was the venue for the matches played on the dates 3,4,5,6,7 June 199...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who was the away captain for matches played at Trent Bridge? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_games" ( "rank" real, "games" real, "player" text, "club_clubs" text, "career_span" text ); Question: Which rank is Hawthorn? <|assistant|> SELECT "rank" FROM "most_career_games" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: What is the First Performance when the status is past and the style was ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: What was the Last Performance when the status is current cast, and a Nam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: What is the style for Giuseppe Bausilio? <|assistant|> SELECT "style" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "location" text ); Question: Which opponent has the event Jungle Fight 6?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "location" text ); Question: Which is the method under the event Jungle F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apertura_2004_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What is the total num...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apertura_2004_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: what is the goals sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apertura_2004_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: what is the points wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apertura_2004_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: what is the place whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apertura_2004_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: what is the average p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chamber_of_deputies_election" ( "year" real, "designation" text, "pct_votes" real, "seats" text, "pct_seats" real ); Question: In what Year were there 48 of 120 Seats and a % votes larger than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chamber_of_deputies_election" ( "year" real, "designation" text, "pct_votes" real, "seats" text, "pct_seats" real ); Question: After 1993, what is the Seats with a % votes of 38.72? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "peak" text, "elevation_m" real, "prominence_m" real, "isolation_km" real, "municipality" text, "county" text ); Question: What is the highest Isolation (km) when the elevation wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "peak" text, "elevation_m" real, "prominence_m" real, "isolation_km" real, "municipality" text, "county" text ); Question: What is the average Isolation in the municipality of Sun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "peak" text, "elevation_m" real, "prominence_m" real, "isolation_km" real, "municipality" text, "county" text ); Question: What is the highest elevation for the peak daurmål, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "peak" text, "elevation_m" real, "prominence_m" real, "isolation_km" real, "municipality" text, "county" text ); Question: What country has an Elevation less than 1833 and an Isol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "peak" text, "elevation_m" real, "prominence_m" real, "isolation_km" real, "municipality" text, "county" text ); Question: What country has a prominence less than 1292 and an Isol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Which lane did George Bovell swim in? <|assistant|> SELECT SUM("lane") FROM "heats" WHERE "name"='ge...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average of the top-25 with 16 cuts and less t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the highest top-25 with more than 9 top-10 but le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What's the Overall average that has brad scioli, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What's the lowest Overall average that has a Colle...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which highest Overall has a Pick # of 4, and a Rou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What's the overall average that has a round less t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "intruder" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "final" text ); Question: Who is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "intruder" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "final" text ); Question: Who is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "intruder" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "final" text ); Question: Who th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geography_and_environment" ( "island" text, "nickname" text, "area" text, "population_as_of_2010" real, "highest_point" text, "elevation" text, "age_ma" text ); Question: Name the nickname ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geography_and_environment" ( "island" text, "nickname" text, "area" text, "population_as_of_2010" real, "highest_point" text, "elevation" text, "age_ma" text ); Question: Name the island wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geography_and_environment" ( "island" text, "nickname" text, "area" text, "population_as_of_2010" real, "highest_point" text, "elevation" text, "age_ma" text ); Question: Name the elevation...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geography_and_environment" ( "island" text, "nickname" text, "area" text, "population_as_of_2010" real, "highest_point" text, "elevation" text, "age_ma" text ); Question: Name the most poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_winners" ( "season" real, "season_premiere_date" text, "season_finale_date" text, "winner" text, "1st_runner_up" text, "2nd_runner_up" text ); Question: Who won when mahesh manjrekar w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_winners" ( "season" real, "season_premiere_date" text, "season_finale_date" text, "winner" text, "1st_runner_up" text, "2nd_runner_up" text ); Question: When was the season finale of a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: Game site of kingdome, and a Result of w 24-6 has what ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: Attendance larger than 60,967, and a Opponent of at cle...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: Date of september 25, 1983 is what game site? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "stadium" text ); Question: What stadium held the game that had a score of 6–3? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "stadium" text ); Question: What was the date of the game that had a loss of Reed (0–2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "stadium" text ); Question: What was the date of the game attended by more than 44,835...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: On which Date was there a record of 11-8? <|assistant|> SELECT "date" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_grand_tour_podiums" ( "name" text, "tour" real, "giro" real, "vuelta" real, "total" real ); Question: How many podiums associated with 1 vuelta and over 7 tours? <|assistant|> SELECT COUNT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_grand_tour_podiums" ( "name" text, "tour" real, "giro" real, "vuelta" real, "total" real ); Question: What is the total for miguel induráin with a Vuelta larger than 1? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What is the grid associated with a Time/Retired of + 1 lap, and under 7 points? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "name" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What grid is associated with 67 laps? <|assistant|> SELECT "grid" FROM "race" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_top_25_women" ( "rank" real, "time" text, "wind_m_s" text, "athlete" text, "nation" text, "date" text, "location" text ); Question: Name the nation for 8 june 1983 for marlies gohr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_top_25_women" ( "rank" real, "time" text, "wind_m_s" text, "athlete" text, "nation" text, "date" text, "location" text ); Question: Name the athlete for bulgaria with rank less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: What engine was used by Ram Penthouse Rizla Racing in 1978? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_selected" ( "year" real, "pick" text, "player_name" text, "college" text, "position" text ); Question: Which College has a Year smaller than 1962, and a Position of rb? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_selected" ( "year" real, "pick" text, "player_name" text, "college" text, "position" text ); Question: Which Year has a College of nebraska, and a Pick of 2? <|assistant|> SELECT "year"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_selected" ( "year" real, "pick" text, "player_name" text, "college" text, "position" text ); Question: Which Pick has a Year larger than 1983, and a Player name of brian jozwiak? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_selected" ( "year" real, "pick" text, "player_name" text, "college" text, "position" text ); Question: Which lowest year has a Position of rb, and a College of louisiana state? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_selected" ( "year" real, "pick" text, "player_name" text, "college" text, "position" text ); Question: How many years have a Player name of ronnie bull? <|assistant|> SELECT SUM("year")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005" ( "film" text, "director_s" text, "producer_s" text, "recipient" text, "date" text, "award" text ); Question: Who was the recipient of an award of £4,203? <|assistant|> SELECT "recipien...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005" ( "film" text, "director_s" text, "producer_s" text, "recipient" text, "date" text, "award" text ); Question: Who directed the film that received an award of £6,245? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005" ( "film" text, "director_s" text, "producer_s" text, "recipient" text, "date" text, "award" text ); Question: Who directed the film that Avie Luthra received an award for? <|assistant|>...