text
stringlengths
310
1.28k
<|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 what Date was the Attendance 16,212? <|assistant|> SELECT "date" FROM "ga...
<|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: What was the Attendance on May 12, when the New York Yankees were the Oppone...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which Venue has a Home team score of 22....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which Date has a Venue of junction oval?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which total number of Crowd has a Home t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" real ); Question: What is the lowest 1st prize for florida tour...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: Which grid has a time/retired of +27.347? <|assistant|> SELECT COUNT("gri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "events" ( "tournament" text, "date" text, "city" text, "country" text, "surface" text, "singles_champions" text ); Question: Who was the Singles Champions in Trieste, Italy? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "events" ( "tournament" text, "date" text, "city" text, "country" text, "surface" text, "singles_champions" text ); Question: On what Surface will the Venezuela F5 Futures in Caracas be played...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "events" ( "tournament" text, "date" text, "city" text, "country" text, "surface" text, "singles_champions" text ); Question: What is the type of Surface for the New Zealand F1 Futures Tournam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "events" ( "tournament" text, "date" text, "city" text, "country" text, "surface" text, "singles_champions" text ); Question: In what Country will Dennis Blömke play the Germany F13 Futures To...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "events" ( "tournament" text, "date" text, "city" text, "country" text, "surface" text, "singles_champions" text ); Question: On what Date will the Argentina F17 Futures Tournament be played i...
<|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 are the average laps for jackie stewart? <|assistant|> SELECT AVG("laps") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When did the away team have a score of 11...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which was the home team that had an oppon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the result in fort lauderdale, florida? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What venue had less than 2 goals? <|assistant|> SELECT "venue" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the attendance when Fitzroy play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_colonial_turf_cup" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance_miles" text, "time" text ); Question: Who was the trainer with Robert ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_colonial_turf_cup" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "distance_miles" text, "time" text ); Question: What year was Jeff Mullins? <|as...
<|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: In what grid did Richard Robarts make 36 laps? <|assistant|> SELECT SUM("grid") F...
<|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: How many laps were completed in grid 18? <|assistant|> SELECT SUM("laps") FROM "c...
<|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, "event" text ); Question: What was the venue where the result was 12th? <|assistant|> SELECT "venue" FROM "achieveme...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group" ( "species" text, "strain" text, "type" text, "base_pairs" real, "genes" real ); Question: What species has more than 2,030 genes? <|assistant|> SELECT "species" FROM "group" WHERE "gene...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group" ( "species" text, "strain" text, "type" text, "base_pairs" real, "genes" real ); Question: How many genes in the species Rubrobacter Xylanophilus? <|assistant|> SELECT "genes" FROM "grou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group" ( "species" text, "strain" text, "type" text, "base_pairs" real, "genes" real ); Question: What is the lowest number of genes in Rubrobacter Xylanophilus? <|assistant|> SELECT MIN("genes...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group" ( "species" text, "strain" text, "type" text, "base_pairs" real, "genes" real ); Question: What is the average number of base pairs with 784 genes? <|assistant|> SELECT AVG("base_pairs")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group" ( "species" text, "strain" text, "type" text, "base_pairs" real, "genes" real ); Question: What is the lowest number of genes with less than 927,303 base pairs in Acidobacteria Bacterium...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text ); Question: How many...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text ); Question: How many...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text ); Question: If a per...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text ); Question: How many...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "away" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "position_in_the_table" text ); Question: Tell me the outgoing manager fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "away" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "position_in_the_table" text ); Question: Name the replaced by for racing...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What Grid had 14 laps completed? <|assistant|> SELECT AVG("grid") FROM "m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the lowest Grid with 25 laps manufactured by Honda with a time of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); Question: How many laps were timed at +1:02.315? <|assistant|> SELECT COUNT("laps")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_playoffs_records" ( "pts_rank" text, "club" text, "appearances_vs_seasons" text, "appearances_percetages" text, "ppg_rank" text ); Question: What is the points ranking of Chicago Fire?...
<|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, "round" text, "time" text, "location" text ); Question: Who is the opponent with a time of 1:16? <|as...
<|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, "round" text, "time" text, "location" text ); Question: What round has a method of submission? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_career" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: Which competition did he win on August 15, 2012? <|assistant|> SELECT "competitio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_career" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: Where was the competition on August 15, 2012? <|assistant|> SELECT "venue" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_career" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: When was the competition that had a score of 3-0? <|assistant|> SELECT "date" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_career" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the result of the UEFA Euro 2008 Qualifying competition? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "nationality" text, "position" text, "league_from" text ); Question: What nationality is Steven Anthony? <|assistant|> SELECT "nationality" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "nationality" text, "position" text, "league_from" text ); Question: What is the highest pick number from Slovakia? <|assistant|> SELECT MAX("pick...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "nationality" text, "position" text, "league_from" text ); Question: What is the lowest pick number for the Russian Major League? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "nationality" text, "position" text, "league_from" text ); Question: What team is from the Russian Major League? <|assistant|> SELECT "position" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "nationality" text, "position" text, "league_from" text ); Question: Which league has a pick number larger than 204 from Canada and LW as the posi...
<|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: Who is the player from Aurillac? <|assistant|> SELECT "pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did the away team score 13.14 (92)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "points" real, "places" real ); Question: what is the points when the rank is more than 1 and the places is 33? <|assistant|> SELECT "points" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "points" real, "places" real ); Question: what is the highest rank for east germany with points of 128.98 and places less than 70? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "points" real, "places" real ); Question: what is the points for rank 12? <|assistant|> SELECT SUM("points") FROM "pairs" WHERE "rank"=12;<|end...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which team has an away score of 15.9 (99...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which team has a home team score of 17.1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which home team score has an Away team s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the Home team with Away team sco...
<|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: What is the name of the home team that pl...
<|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: How much did the away team Carlton score ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); Question: What is the average PI GP when the pick is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tamazight_schwa_epenthesis" ( "environment" text, "realization" text, "example" text, "pronunciation" text, "gloss" text ); Question: Name the gloss for [χdəm] <|assistant|> SELECT "gloss" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tamazight_schwa_epenthesis" ( "environment" text, "realization" text, "example" text, "pronunciation" text, "gloss" text ); Question: Name the realization for 'to be, to do' <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the Crowd number for the Away te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "points" real, "places" real ); Question: What is the lowest number of places for Sherri Baier / Robin Cowan when ranked lower than 1? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nintendo_ds" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: What platform is nds4droid on for the nintendo ds? <|assistant|> SELECT "platform...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nintendo_ds" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: Who has a license of proprietary (available on inquiry)? <|assistant|> SELECT "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nintendo_ds" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: What platform is nds4droid on for the nintendo ds with a license of gpl v2? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nintendo_ds" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: What system has a current version of 1.4e? <|assistant|> SELECT "system" FROM "ni...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nintendo_ds" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: Who has a licence of gpl v2 and a current version of 0.9.9? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_progression" ( "discipline" text, "season" real, "performance" text, "place" text, "date" text ); Question: What was the performance length of the 1999 season in bydgoszcz, poland? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_progression" ( "discipline" text, "season" real, "performance" text, "place" text, "date" text ); Question: What were the performance lengths in the 3000 m events in and after 2003?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_progression" ( "discipline" text, "season" real, "performance" text, "place" text, "date" text ); Question: How many seasons took place in santiago de chile, chile? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_progression" ( "discipline" text, "season" real, "performance" text, "place" text, "date" text ); Question: During which Season did the may 11, 2002 event take place? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text ); Question: What is the average round for players from california? <|assistant|> SELECT AVG("round") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); Question: What's the Nationality of Round 8 Vancouver Canucks NHL Team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: If the Away team score was 14.10 (94), w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When the Home team score was 20.16 (136)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "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 score was 12.10 (82) on...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "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 of essendon was playi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: For the Venue of western oval, what's th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which venue has a Home team score of 9.12...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How large is the crowd with an Away team ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which venue has an Away team score of 12....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "home_away_game" text, "result" text ); Question: Who was the opponent on week 7? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "home_away_game" text, "result" text ); Question: Who was the opponent on week 5? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "w...
<|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" real, "record" text ); Question: Who was the leading scorer of the game that had a score...
<|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" real, "record" text ); Question: Who was the visiting team when the Suns were the home t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_record_vs_other_teams" ( "team" text, "wins" real, "losses" real, "ties" real, "win_pct" text ); Question: What is the average number of ties for the Detroit Lions team when they have ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "titles_5" ( "year" real, "championship" text, "partner" text, "opponents" text, "score" text ); Question: What is the most recent year in which the score was 4–6, 6–3, 7–5? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: Which player has a height of 6-7? <|assistant|> SELECT "player" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: What is the NBA draft result of the player from Washington, DC? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: What is the NBA draft result of the player from the College of Ka...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: Who is the player from La Costa Canyon High School? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: How tall is the player from Nacogdoches High School? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: What is the school of the player from Dallas, TX? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1970_1979" ( "year" text, "competition" text, "date" text, "location" text, "result" text ); Question: What is the result for world group, consolation round? <|assistant|> SELECT "result" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); Question: What was the long of Trandon Harvey who had an greater than 8 average, more than 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: How many attended tie number 1? <|assistant|> SELECT SUM("attendance") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: How many attended tie number 3? <|assistant|> SELECT MAX("attendance") FROM...