text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the Time/Retired for emerson fittipaldi? <|assistant|> SELECT "time_retir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text ); Question: What is the long for the player with 26 carries? <|assistant|> SELECT "long" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text ); Question: How many carries for the player with a 2 yard long? <|assistant|> SELECT COUNT("car...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" text, "avg" text, "td_s" real, "long" text ); Question: What is the long for the player with under 30 carries and 0 yards? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "mlb_season" text, "reds_season" real, "league" text, "division" text, "finish" text, "wins" real, "losses" real, "winpct" real, "gb_c" text ); Question: How many wins were t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "mlb_season" text, "reds_season" real, "league" text, "division" text, "finish" text, "wins" real, "losses" real, "winpct" real, "gb_c" text ); Question: What was the lowest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "mlb_season" text, "reds_season" real, "league" text, "division" text, "finish" text, "wins" real, "losses" real, "winpct" real, "gb_c" text ); Question: How many losses did ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "mlb_season" text, "reds_season" real, "league" text, "division" text, "finish" text, "wins" real, "losses" real, "winpct" real, "gb_c" text ); Question: What was the lowest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "mlb_season" text, "reds_season" real, "league" text, "division" text, "finish" text, "wins" real, "losses" real, "winpct" real, "gb_c" text ); Question: In 1900 with 62 wins...
<|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, "record" text ); Question: Which record has a score of 7–6 (12)? <|assistant|> SELECT "record" FROM "game_log" WHERE "score"...
<|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, "record" text ); Question: On what date was the record 59–59? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='59...
<|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, "record" text ); Question: What loss occurred on August 21? <|assistant|> SELECT "loss" FROM "game_log" WHERE "date"='august...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_percentage_share_of_average_c" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_percentage_share_of_average_c" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_percentage_share_of_average_c" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_percentage_share_of_average_c" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_percentage_share_of_average_c" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: What is the date of the election where Sir Christopher William Co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: What is the Second Party where Sir Christopher William Codrington...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: What is the date of the election where Sir Christopher William Co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "compilations" ( "year" real, "tracks" text, "title" text, "format_special_notes" text, "label" text ); Question: What label is after 2004? <|assistant|> SELECT "label" FROM "compilations" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "compilations" ( "year" real, "tracks" text, "title" text, "format_special_notes" text, "label" text ); Question: What is the Format and Special Notes for of the pact: ...of the gods? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "compilations" ( "year" real, "tracks" text, "title" text, "format_special_notes" text, "label" text ); Question: What movie has noxialicht as a track? <|assistant|> SELECT "title" FROM "compila...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table_2006_2009" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest gold medals of a rank 12 team? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table_2006_2009" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of bronze medals of the team with more than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table_2006_2009" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average gold medals Uzbekistan, which has less than 24 to...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "reg_season" text, "playoffs" text, "open_cup" text ); Question: Which open cup was after 1993? <|assistant|> SELECT "open_cup" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "reg_season" text, "playoffs" text, "open_cup" text ); Question: Which year had playoffs of champion? <|assistant|> SELECT AVG("ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "division" text, "league" text, "reg_season" text, "playoffs" text, "open_cup" text ); Question: What divisions was in the year 1993? <|assistant|> SELECT "divisi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "air_movement_table_mission_albany" ( "serial" text, "airborne_unit" text, "troop_carrier_group" text, "num_of_c_47s" real, "uk_base" text, "drop_zone" text, "drop_zone_time" real ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "air_movement_table_mission_albany" ( "serial" text, "airborne_unit" text, "troop_carrier_group" text, "num_of_c_47s" real, "uk_base" text, "drop_zone" text, "drop_zone_time" real ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What was the grid placement for the Maserati that completed 14 laps? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What company built the car driven by Tony Brooks? <|assistant|> SELECT "construct...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eastern_conference_quarter_finals_vs_1_n" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score on the date of May 2? <|assistant|> SELECT "scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eastern_conference_quarter_finals_vs_1_n" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What city was a visitor on the date of April 30? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eastern_conference_quarter_finals_vs_1_n" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: On the date of April 22, which city was a visitor? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eastern_conference_quarter_finals_vs_1_n" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What visitor has Ottawa as a home and a date of April 26? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text ); Question: What is Paino Hehea's date of birth? <|assistant|> SELECT...
<|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" real, "time" text, "location" text ); Question: I want to know the location t...
<|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" real, "time" text, "location" text ); Question: Tell me the record for round ...
<|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" real, "time" text, "location" text ); Question: I want to know the method for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serie_a" ( "season" text, "player" text, "nationality" text, "club" text, "goals" text ); Question: Who belongs to the Bologna Milan club? <|assistant|> SELECT "player" FROM "serie_a" WHERE "cl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: Who is the opponent on June 6? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: What is the date of the game at Commerce Bank Ballpark? <|assistant|> SELECT "date" FROM "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: What is the result of the game at Bishop Kearney Field on August 2? <|assistant|> SELECT "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: Who was the opponent of the game at Homewood field? <|assistant|> SELECT "opponent" FROM "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: What is the result of the game at Bishop Kearney Field on August 2? <|assistant|> SELECT "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newcomers_race_a" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the time of the rider with a speed of 102.962mph? <|assistant|> SELECT "time" FROM "ne...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newcomers_race_a" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: Who is the rider who had the time of 1:27.37.22? <|assistant|> SELECT "rider" FROM "newcomers_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "newcomers_race_a" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: Who is the rider who has a rank lower than 10, and a time of 1:26.31.20? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); Question: What date was the Circu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); Question: Who was the Constructor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); Question: What was the date of th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); Question: Who was the winning dri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text ); Question: What was Juan Manuel Fa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the Attendance when the Home team was Montreal, on t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the Score on March 15? <|assistant|> SELECT "score" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What school does Dell Curry play for? <|assistant|> SELECT "school_club_team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What school does John Crotty play for? <|assistant|> SELECT "school_club_tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What school does Wayne Cooper play for? <|assistant|> SELECT "school_club_te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" text, "avg" text, "long" real ); Question: Who has greater than 8 Long and a 73 Yards? <|assistant|> SELECT "player" FROM "running_backs" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" text, "avg" text, "long" real ); Question: Who has a highest Long with 26 Yards and less than 9 Car? <|assistant|> SELECT MAX("long") FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" text, "avg" text, "long" real ); Question: Who has the highest Long with 59 Car? <|assistant|> SELECT MAX("long") FROM "running_backs" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_2007_uci_pro_tour_standings_a" ( "rank" real, "previous_rank" text, "name" text, "nationality" text, "team" text, "points" real ); Question: Tell me the team with a rank less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_2007_uci_pro_tour_standings_a" ( "rank" real, "previous_rank" text, "name" text, "nationality" text, "team" text, "points" real ); Question: I want to know the sum of points with a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_2007_uci_pro_tour_standings_a" ( "rank" real, "previous_rank" text, "name" text, "nationality" text, "team" text, "points" real ); Question: Tell me the previous rank for italy wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_2007_uci_pro_tour_standings_a" ( "rank" real, "previous_rank" text, "name" text, "nationality" text, "team" text, "points" real ); Question: Tell me the sum of rank for australia w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "naval_forces_operation_mainbrace_1952_ci" ( "nato_member" text, "aircraft_carriers" text, "battleships" text, "cruisers" text, "escorts" text, "submarines" text, "torpedo_boat_squadrons" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "naval_forces_operation_mainbrace_1952_ci" ( "nato_member" text, "aircraft_carriers" text, "battleships" text, "cruisers" text, "escorts" text, "submarines" text, "torpedo_boat_squadrons" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: Which address has 44 floors? <|assistant|> SELECT "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heavyweight_75_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); Question: What is the total for the person with 73.28 bodyweight and fewer snatches tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heavyweight_75_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); Question: Which person has a bodyweight of 73.6? <|assistant|> SELECT "name" FROM "heav...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heavyweight_75_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); Question: What is the total for the player with more snatches than 87.5 and bodyweight ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heavyweight_75_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real ); Question: What is the bodyweight for the player with a clean & jerk of 82.5 and total s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: Name the home team when the away team was essendon <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: Name the away team score for home team of university <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: Name the venue for geelong away team <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: Name the venue when the away team was richmond <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: Name the away team score for geelong away team <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When the venue was brunswick street oval ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When the away team scored 10.15 (75) and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When the away team scored 7.8 (50), what ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When the away team scored 14.14 (98), who...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: If the home team scored 14.15 (99), who w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_2_14_february_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); Question: How many draws feature artist wendy fierce? <|assistant|> SELECT SUM("draw") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_2_14_february_1999" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); Question: What song is later than place 2 and has a draw number of 1? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What day did Collingwood play as the home...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team at Princes Park? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was Hawthorn's away opponent? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: Name the record that has a stream of l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text, "streak" text ); Question: Name the attendance for when the washi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the smallest grid for driver of juan pablo montoya? <|assistant|> SELECT MIN("grid"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What driver has a ime/Retired of +1 lap, and a Constructor of bar - honda? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2008" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2008" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_rating_drama_series_of_2008" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When was there a game at Arden Street Ova...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How big was the crowd when Richmond was t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which away team plays at Arden Street Ova...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many fans were at Essendon? <|assista...