text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_government_budget_balances" ( "year" real, "income" real, "expenditure" real, "surplus_deficit" text, "pct_gdp" text ); Question: Which Year has an Expenditure of 55, and an Income small...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recent_government_budget_balances" ( "year" real, "income" real, "expenditure" real, "surplus_deficit" text, "pct_gdp" text ); Question: Which % GDP has a Year smaller than 2011, and an Expendi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "tournament_name" text, "champions" text, "runners_up" text, "score" text ); Question: What year was the Grand Prix Passing Shot Bordeaux that had Runners-up of Diego Na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "tournament_name" text, "champions" text, "runners_up" text, "score" text ); Question: What tournament had a score of 5–7, 6–4, 6–4? <|assistant|> SELECT "tournament_nam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "tournament_name" text, "champions" text, "runners_up" text, "score" text ); Question: After 1989, what was the score of the Grand Prix Passing Shot where the Runners-up...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "tournament_name" text, "champions" text, "runners_up" text, "score" text ); Question: What's the name of the tournament that Gianni Ocleppo was the runner-up? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season_results" ( "season" text, "wins" real, "losses" real, "winpct" real, "games_behind" text, "playoffs" text, "results" text ); Question: What is the lowest percentage of wins f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is the score of the competition on November 10?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: Who is the visitor when the record is 2-1? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: Who is the home team when the score is 81-80? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table_unofficial" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Gold medals did Japan receive who had a Total of more than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "time_cst" text, "opponent" text, "result" text, "game_site" text, "record" text, "nfl_recap" text ); Question: What time (cst) has and NFL recap of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "time_cst" text, "opponent" text, "result" text, "game_site" text, "record" text, "nfl_recap" text ); Question: Which week has giants stadium as the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "time_cst" text, "opponent" text, "result" text, "game_site" text, "record" text, "nfl_recap" text ); Question: What is the lowest week that has 7:15...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "constitutional_ticket" text, "law_preservation_ticket" text ); Ques...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "constitutional_ticket" text, "law_preservation_ticket" text ); Ques...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934_state_election_results" ( "office" text, "democratic_ticket" text, "republican_ticket" text, "socialist_ticket" text, "constitutional_ticket" text, "law_preservation_ticket" text ); Ques...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_10" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_up" text ); Question: What was the margin of victory on Mar 18, 1979? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text ); Question: What is the comp for the year 1989? <|assistant|> SELECT "comp" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text ); Question: What is the team in 1989? <|assistant|> SELECT "team" FROM "regul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text ); Question: What is the RAtt in the year 1988? <|assistant|> SELECT "r_att" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text ); Question: What was the team with a Ratt of 42? <|assistant|> SELECT "team" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text ); Question: What was the team with a ratt of 57? <|assistant|> SELECT "team" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real ); Question: Who did the Giants play before week 7 in Tulane Stadium? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real ); Question: What was the lowest attendance for week 1? <|assistant|> SELECT MIN("att...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "player" text, "country" text, "goals" real, "years" text ); Question: What is the highest rank of a player from Ethiopia? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: How many ranks had 367 matches and more than 216 goals? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" real, "goals" real ); Question: What is the mean rank number when goals are 230 and there are more ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "viewing_figures" ( "episode_number" real, "season" text, "original_airing" text, "total_viewers" text, "audience_share_average" text, "season_viewer_average" text ); Question: Where the audie...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "viewing_figures" ( "episode_number" real, "season" text, "original_airing" text, "total_viewers" text, "audience_share_average" text, "season_viewer_average" text ); Question: For episode num...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "viewing_figures" ( "episode_number" real, "season" text, "original_airing" text, "total_viewers" text, "audience_share_average" text, "season_viewer_average" text ); Question: What episode nu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "peter_drummond_1911_1918" ( "class" text, "wheels" real, "date" text, "builder" text, "no_built" real, "1919_nos" text, "lms_class" text, "lms_nos" text ); Question: What is the value for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: What's the smallest number of games for the fenerbahçe team? <|assistant|> SELECT MIN("games") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: What's the mean game number for the olympiacos team when there's less than 17 rebounds? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: How many games does novica veličković have when there's more than 24 rebounds? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year_record" ( "year" text, "league" text, "reg_season" text, "playoffs" text, "lost" real ); Question: What is the League with a Year that is 1990/91? <|assistant|> SELECT "league" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the ICAO for simferopol international airport? <|assistant|> SELECT "icao" FROM "desti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which country has an IATA of gzt? <|assistant|> SELECT "country" FROM "destinations" WHERE "ia...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What country is Yerevan located in? <|assistant|> SELECT "country" FROM "destinations" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the ICAO when the IATA is ika? <|assistant|> SELECT "icao" FROM "destinations" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the ICAO when the IATA is ist? <|assistant|> SELECT "icao" FROM "destinations" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_league" ( "team" text, "match" real, "points" real, "draw" real, "lost" real ); Question: Which team has 10 losses? <|assistant|> SELECT "team" FROM "first_league" WHERE "lost"=10;<|endof...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" ( "rank" real, "location" text, "total_passengers" real, "annual_change" text, "capacity_in_use" text ); Question: In which yearly change was there a c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" ( "rank" real, "location" text, "total_passengers" real, "annual_change" text, "capacity_in_use" text ); Question: In Which rank was there a location o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" ( "rank" real, "location" text, "total_passengers" real, "annual_change" text, "capacity_in_use" text ); Question: what is the number of passengers whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" ( "rank" real, "location" text, "total_passengers" real, "annual_change" text, "capacity_in_use" text ); Question: what is the highest amount of passen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" ( "rank" real, "location" text, "total_passengers" real, "annual_change" text, "capacity_in_use" text ); Question: Which highest rank had an annual cha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the latest Week on which the Result was l 17–0? <|assistant|> SELECT MAX("we...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average cuts made at the top 25, less than 10...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is average Top 10 with 0 wins? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average event for the Open Championship Tourn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average wins has Top-25 less than 0? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "peel" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the largest Against with a Byes larger than 0? <|assistant|> SELECT MAX(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "peel" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Wins has an Against of 1940, and a Byes larger than 0? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "peel" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Draws has a Wins of 10, and a Peel of south mandurah, and a Byes larger th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "peel" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins sm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "peel" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Losses has an Against of 1101, and a Byes smaller than 0? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_ladder" ( "peel" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Byes has a Losses smaller than 1? <|assistant|> SELECT MAX("byes") FROM "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is the average number of games of the player with a rank less than 1? <|assistant|> SELECT AVG("ga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is the highest rank of the player with less than 32 points? <|assistant|> SELECT MAX("rank") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is the rank of the player with less than 34 points? <|assistant|> SELECT SUM("rank") FROM "points"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, "fourth_district" text, "fifth_district" text ); Question: Who's Fourth District has a Second District o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, "fourth_district" text, "fifth_district" text ); Question: Who's the First District with a Fifth Distric...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, "fourth_district" text, "fifth_district" text ); Question: Who's the Fourth District with a First Distri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, "fourth_district" text, "fifth_district" text ); Question: Who's the Fourth District with a Second Distr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, "fourth_district" text, "fifth_district" text ); Question: Who's the Fifth District with a Second Distri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "first_district" text, "second_district" text, "third_district" text, "fourth_district" text, "fifth_district" text ); Question: Who's the Fourth District with a Third Distri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "aces" real, "player" text, "opponent" text, "event" text, "sets" real ); Question: How many Sets did Gary Muller have? <|assistant|> SELECT COUNT("sets") FROM "men" WHERE "player"='gary...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "aces" real, "player" text, "opponent" text, "event" text, "sets" real ); Question: What Player in 2005 Wimbledon had less than 5 Sets? <|assistant|> SELECT "player" FROM "men" WHERE "se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "aces" real, "player" text, "opponent" text, "event" text, "sets" real ); Question: At the 2001 Davis Cup, what Opponent had less than 50 Aces? <|assistant|> SELECT "opponent" FROM "men"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_kingdom" ( "episode_number" real, "title" text, "original_airing_on_channel_4" text, "time_of_airing_on_channel_4" text, "original_airing_on_e4" text, "time_of_airing_on_e4" text, "po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_kingdom" ( "episode_number" real, "title" text, "original_airing_on_channel_4" text, "time_of_airing_on_channel_4" text, "original_airing_on_e4" text, "time_of_airing_on_e4" text, "po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "month_year" text, "sunk_by_u_boat" real, "sunk_by_aircraft" real, "sunk_by_warship_or_raider" real, "sunk_by_mines" real, "german_submarines_lost" real ); Question: What is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "month_year" text, "sunk_by_u_boat" real, "sunk_by_aircraft" real, "sunk_by_warship_or_raider" real, "sunk_by_mines" real, "german_submarines_lost" real ); Question: What is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "month_year" text, "sunk_by_u_boat" real, "sunk_by_aircraft" real, "sunk_by_warship_or_raider" real, "sunk_by_mines" real, "german_submarines_lost" real ); Question: What is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "month_year" text, "sunk_by_u_boat" real, "sunk_by_aircraft" real, "sunk_by_warship_or_raider" real, "sunk_by_mines" real, "german_submarines_lost" real ); Question: What is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "month_year" text, "sunk_by_u_boat" real, "sunk_by_aircraft" real, "sunk_by_warship_or_raider" real, "sunk_by_mines" real, "german_submarines_lost" real ); Question: What is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces_of_joseon" ( "rr_romaja" text, "m_r_romaja" text, "hangul" text, "hanja" text, "name_origin" text, "capital" text, "region" text, "korean_dialect" text, "post_1896_provinces" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces_of_joseon" ( "rr_romaja" text, "m_r_romaja" text, "hangul" text, "hanja" text, "name_origin" text, "capital" text, "region" text, "korean_dialect" text, "post_1896_provinces" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces_of_joseon" ( "rr_romaja" text, "m_r_romaja" text, "hangul" text, "hanja" text, "name_origin" text, "capital" text, "region" text, "korean_dialect" text, "post_1896_provinces" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces_of_joseon" ( "rr_romaja" text, "m_r_romaja" text, "hangul" text, "hanja" text, "name_origin" text, "capital" text, "region" text, "korean_dialect" text, "post_1896_provinces" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states" ( "name" text, "level" real, "digits" real, "average_size_square_miles" text, "number_of_h_us_approximate" real, "example_name" text, "example_code_huc" real ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states" ( "name" text, "level" real, "digits" real, "average_size_square_miles" text, "number_of_h_us_approximate" real, "example_name" text, "example_code_huc" real ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states" ( "name" text, "level" real, "digits" real, "average_size_square_miles" text, "number_of_h_us_approximate" real, "example_name" text, "example_code_huc" real ); Question: How...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states" ( "name" text, "level" real, "digits" real, "average_size_square_miles" text, "number_of_h_us_approximate" real, "example_name" text, "example_code_huc" real ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the losses average when the against is greater than 1255 and wins...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the smallest losses when the wins are 5 and the against less than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the total against that has wins less than 9, and losses less than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the fewest losses that Ballarat FL of Lake Wendouree has when the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_ladder" ( "ballarat_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the smallest byes when the wins are 3? <|assistant|> SELECT MIN("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station" text, "year_opened" text, "metropolitan_borough_c" text, "zone" real, "station_users_2006_07" real, "station_users_2007_08" real ); Question: Can you tell me the total n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What is the highest Attendance when the away team was Wrexham? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What is the Away team when the home team was wycombe wanderers? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What is the lowest Attendance when the home team was slough town? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What is the sum of Attendance when macclesfield town was the way team? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_singles" ( "single" text, "ccm_chart" text, "debut" text, "peak_date" text, "peak_pos" real, "total_wks" real, "spins_since_1998_source_mediabase" real ); Question: How many Spins sou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_singles" ( "single" text, "ccm_chart" text, "debut" text, "peak_date" text, "peak_pos" real, "total_wks" real, "spins_since_1998_source_mediabase" real ); Question: What CCM Chart had...
<|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, "attendance" real ); Question: What is Opponent, when Date is December 18, 1988? <|assistant|> SELECT "opponent" FROM "sche...
<|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, "attendance" real ); Question: What is Attendance, when Opponent is Pittsburgh Steelers? <|assistant|> SELECT "attendance" ...
<|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, "attendance" real ); Question: What is the average Week, when Result is l 37–34? <|assistant|> SELECT AVG("week") FROM "sch...