text
stringlengths
310
1.28k
<|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: What did the team score at home in north...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterback" ( "player" text, "comp" real, "att" real, "comppct" real, "yards" real, "td_s" real, "int_s" real ); Question: What is the computation for 5 or less TD's? <|assistant|> SELECT ...
<|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 time of the driver in grid 2? <|assistant|> SELECT "time_retired" FR...
<|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 time did Carroll Shelby have in Grid 14? <|assistant|> SELECT "time_retired"...
<|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 time did the ferrari car that finished 62 laps have? <|assistant|> SELECT "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); Question: What is the date of the game where the vistor team was ...
<|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: Whats teo fabi average lap time while having less than 9 grids? <|assistant|> SELECT AVG("l...
<|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: Which driver drove in grid 19? <|assistant|> SELECT "driver" FROM "race" WHERE "grid"=19;<|...
<|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: Who was the opponent on April 29? <|assistant|> SELECT "opponent" FROM "game...
<|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: How many attended the game on April 17? <|assistant|> SELECT SUM("attendance...
<|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 is the record on April 3? <|assistant|> SELECT "record" FROM "game_log"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_electronic_paper_displays" ( "maker" text, "model" text, "intro_year" text, "screen_size_inch" text, "screen_type" text, "weight" text, "screen_pixels" text, "hours_reading" text, "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_electronic_paper_displays" ( "maker" text, "model" text, "intro_year" text, "screen_size_inch" text, "screen_type" text, "weight" text, "screen_pixels" text, "hours_reading" text, "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "mid_gippsland_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What's the lowest number of draws when the wins are less than 15, an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "mid_gippsland_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What's the sum of draws for against larger than 1228 with fewer than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "riff_awards" ( "year" real, "dates" text, "discovery_of_the_year_golden_puffin" text, "lifetime_achievement" text, "creative_excellency" text, "audience_award" text, "fipresci_award" text, ...
<|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: Which team was the home team when Colorado was the visitor and the record became 26–15–9? <|assist...
<|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 when the record became 25–14–9? <|assistant|> SELECT "score" FROM "game_log" WH...
<|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 the record became 26–14–9? <|assistant|> SELECT "date" FROM "game_log" WHERE "re...
<|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 team was the home team when Colorado was the visitor and the record became 22–13–6? <|assista...
<|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's the venue for the asian games tournament? <|assistant|> SELECT "venue" FROM "achiev...
<|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: Which tournament resulted in 6th place? <|assistant|> SELECT "tournament" FROM "achievemen...
<|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's the latest year that Doha, Qatar hosted a tournament? <|assistant|> SELECT MAX("yea...
<|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's the average of all years tournaments were hosted in Doha, Qatar? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1994_chiefs_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the overall draft number for the running back drafted after rou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1994_chiefs_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the overall total for players drafted from notre dame? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the sum of gold which has a silver more than 1 <|assistant|> SELECT SUM("g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the average rank for west germany when gold is more than 1 <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the average rank for when bronze is more than 1 <|assistant|> SELECT AVG("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: I want the sum of gold for silver being less than 0 <|assistant|> SELECT SUM("g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "uefa_team_ranking" ( "rank_2014" real, "rank_2013" real, "mvmt" text, "club" text, "country" text, "2009_10" real, "2010_11" real, "2011_12" real, "2012_13" real, "2013_14" real, "co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "uefa_team_ranking" ( "rank_2014" real, "rank_2013" real, "mvmt" text, "club" text, "country" text, "2009_10" real, "2010_11" real, "2011_12" real, "2012_13" real, "2013_14" real, "co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "uefa_team_ranking" ( "rank_2014" real, "rank_2013" real, "mvmt" text, "club" text, "country" text, "2009_10" real, "2010_11" real, "2011_12" real, "2012_13" real, "2013_14" real, "co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "poll_results" ( "polling_firm" text, "polling_dates" text, "bob_chiarelli" text, "alex_munter" text, "larry_o_brien" text, "terry_kilrea_dropped_out" text ); Question: What are the polling da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "poll_results" ( "polling_firm" text, "polling_dates" text, "bob_chiarelli" text, "alex_munter" text, "larry_o_brien" text, "terry_kilrea_dropped_out" text ); Question: What dates and firm doe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "poll_results" ( "polling_firm" text, "polling_dates" text, "bob_chiarelli" text, "alex_munter" text, "larry_o_brien" text, "terry_kilrea_dropped_out" text ); Question: What dates does Alex Mu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "poll_results" ( "polling_firm" text, "polling_dates" text, "bob_chiarelli" text, "alex_munter" text, "larry_o_brien" text, "terry_kilrea_dropped_out" text ); Question: What are the Decima pol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "poll_results" ( "polling_firm" text, "polling_dates" text, "bob_chiarelli" text, "alex_munter" text, "larry_o_brien" text, "terry_kilrea_dropped_out" text ); Question: What are the polling da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is Date, when Outcome is "Runner Up", and when Opponent is "Lu J...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is Opponent, when Tournament is "Phuket , Thailand"? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is Surface, when Tournament is "Saint Joseph , United States"? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is Tournament, when Opponent is "Lu Jiaxiang"? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is Outcome, when Tournament is "Chiang Mai , Thailand"? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is Outcome, when Date is "19 September 2012"? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What Poles have Races s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the sum of Poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the total numbe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text ); Question: What is the smallest Wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_boxing_record" ( "result" text, "opponent" text, "type" text, "rd_time" text, "date" text, "location" text ); Question: What is the date of the match located in Madrid, Esp? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_holders_from_1964_until_1972" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text, "first_runner_up" text, "second_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_holders_from_1964_until_1972" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text, "first_runner_up" text, "second_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "title_holders_from_1964_until_1972" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text, "first_runner_up" text, "second_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numerals" ( "2_twee" text, "3_dree" text, "4_vea" text, "5_fiew" text, "6_sas" text, "7_s_wen" text, "8_acht" text, "9_n_ajen" text ); Question: What is 7 säwen if 3 dree is 3d dredda? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numerals" ( "2_twee" text, "3_dree" text, "4_vea" text, "5_fiew" text, "6_sas" text, "7_s_wen" text, "8_acht" text, "9_n_ajen" text ); Question: What is 3 dree if 8 acht is 8th achta? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numerals" ( "2_twee" text, "3_dree" text, "4_vea" text, "5_fiew" text, "6_sas" text, "7_s_wen" text, "8_acht" text, "9_n_ajen" text ); Question: What is 5 fiew when 7 säwen equals 17 säwe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numerals" ( "2_twee" text, "3_dree" text, "4_vea" text, "5_fiew" text, "6_sas" text, "7_s_wen" text, "8_acht" text, "9_n_ajen" text ); Question: What is 5 fiew if 7 säwen is 7th säwenda? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "numerals" ( "2_twee" text, "3_dree" text, "4_vea" text, "5_fiew" text, "6_sas" text, "7_s_wen" text, "8_acht" text, "9_n_ajen" text ); Question: Name the 4 vea for 6 sas at 60 zastich? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "geelong_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Byes have an Against smaller than 1466, and Losses smaller than 6? <...
<|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, "venue" text, "attendance" real ); Question: What was week 2's opponent? <|assistant|> SELECT "opponent" FROM "schedule" ...
<|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, "venue" text, "attendance" real ); Question: Which Week has an Attendance of 20,112? <|assistant|> SELECT MAX("week") FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series_race_winners" ( "season" real, "date" text, "winning_driver" text, "car_num" real, "sponsor" text, "make" text, "distance" text, "avg_speed" text, "margin_of_vic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series_race_winners" ( "season" real, "date" text, "winning_driver" text, "car_num" real, "sponsor" text, "make" text, "distance" text, "avg_speed" text, "margin_of_vic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series_race_winners" ( "season" real, "date" text, "winning_driver" text, "car_num" real, "sponsor" text, "make" text, "distance" text, "avg_speed" text, "margin_of_vic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series_race_winners" ( "season" real, "date" text, "winning_driver" text, "car_num" real, "sponsor" text, "make" text, "distance" text, "avg_speed" text, "margin_of_vic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series_race_winners" ( "season" real, "date" text, "winning_driver" text, "car_num" real, "sponsor" text, "make" text, "distance" text, "avg_speed" text, "margin_of_vic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What shows for set 2 when Set 1 is 29–27? <|assistant|> SELECT "set_2" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the time when the set 1 is 21–25? <|assistant|> SELECT "time" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the score when the set 3 is 26–28? <|assistant|> SELECT "score"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the Score when the set 3 is 26–28? <|assistant|> SELECT "score"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the set 3 when the total is 78–92? <|assistant|> SELECT "set_3"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: What is the total when the set 1 is 21–25? <|assistant|> SELECT "total"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_s_lazio" ( "matches" real, "wins" real, "draw" real, "losses" real, "against" real ); Question: How many total losses were with less than 51 draws but more than 6 wins? <|assistant|> SELECT C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_s_lazio" ( "matches" real, "wins" real, "draw" real, "losses" real, "against" real ); Question: How many matches has 51 draws and more than 6 against? <|assistant|> SELECT SUM("matches") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_s_lazio" ( "matches" real, "wins" real, "draw" real, "losses" real, "against" real ); Question: How many wins has more than 165 against? <|assistant|> SELECT MAX("wins") FROM "s_s_lazio" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s_s_lazio" ( "matches" real, "wins" real, "draw" real, "losses" real, "against" real ); Question: How many draws have less than 35 losses with 136 matches and less than 146 against? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "mininera_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many Againsts have more than 15 wins? <|assistant|> SELECT COUNT("ag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "mininera_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Byes have Losses larger than 0, and an Against larger than 3049? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_up_12" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What is Date, when Surface is "Carpet"? <|assistant|> SELECT "date" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_up_12" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What is Tournament, when Date is "6 October 2008"? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_up_12" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What is Surface, when Tournament is "Sunderland , United Kingdom"? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "replaced_by" text, "date_of_appointment" text ); Q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "replaced_by" text, "date_of_appointment" text ); Q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "replaced_by" text, "date_of_appointment" text ); Q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); Question: Can you tell me the Score that has the Date of 05 dec? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anaprof_2008_relegation_table" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anaprof_2008_relegation_table" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anaprof_2008_relegation_table" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "anaprof_2008_relegation_table" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" rea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1_fc_nuremberg_versus_sp_vgg_greuther_f_" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: WHAT IS THE AWAY WITH HOME AT 2-2? <|assistant|> SELECT "away" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1_fc_nuremberg_versus_sp_vgg_greuther_f_" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: WHAT IS THE LEAGUE WITH HOME 1-1? <|assistant|> SELECT "league" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "russia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is the Weight of the person born 1981-02-24 from the Uralochka Zlatoust cl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_counties_by_per_capita_income" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_counties_by_per_capita_income" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_counties_by_per_capita_income" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real )...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money_s" real ); Question: Which golfer had a score of 68-70-68-66=272? <|assistant|> SELECT "player"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money_s" real ); Question: What place was the golfer with a score of 67-67-66-68=268 ranked in? <|ass...