text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_19" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the date for home team Collingwo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_19" ( "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 score for St Kilda...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "name" text, "latitude" real, "longitude" real, "diameter_km" real, "named_after" text ); Question: Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "name" text, "latitude" real, "longitude" real, "diameter_km" real, "named_after" text ); Question: Tell me the named for latitude of 6.4 <|assistant|> SELECT "named_after" FROM "c" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "name" text, "latitude" real, "longitude" real, "diameter_km" real, "named_after" text ); Question: Tell me the name for longitude more than 103.8 and latitude of -11.4 <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "c" ( "name" text, "latitude" real, "longitude" real, "diameter_km" real, "named_after" text ); Question: Tell me the sum of longitude for diameter being 22.6 and latitude less than -12.4 <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1994_draft_picks" ( "round" real, "overall" real, "player" text, "nationality" text, "club_team" text ); Question: What was the overall pick for Doug Sproule of the United States? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "rank_timeslot" text ); Question: what is the lowest viewers (m)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "rank_timeslot" text ); Question: what is the average rating whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "episode" text, "air_date" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "rank_timeslot" text ); Question: what is the total viewers (m) ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5_2001" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text ); Question: Who wrote the episode that was directed by Terry Ingram? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5_2001" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text ); Question: Which is the episode # of the episode titled "The Man Behind the C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5_2001" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text ); Question: What is the title of the episode that was directed by Roy Dupuis? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5_2001" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text ); Question: Who directed the episode that originally aired on February 25, 200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5_2001" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text ); Question: What is the episode # of the episode that originally aired on Janu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5_2001" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text ); Question: Who directed episode # 92 (4)? <|assistant|> SELECT "directed_by" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_pennsylvania_state_parks" ( "park_name" text, "county_or_counties" text, "area_in_acres_ha" text, "date_founded" real, "stream_s_and_or_lake_s" text ); Question: what is the stream(s) a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_pennsylvania_state_parks" ( "park_name" text, "county_or_counties" text, "area_in_acres_ha" text, "date_founded" real, "stream_s_and_or_lake_s" text ); Question: What is the area in acr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_pennsylvania_state_parks" ( "park_name" text, "county_or_counties" text, "area_in_acres_ha" text, "date_founded" real, "stream_s_and_or_lake_s" text ); Question: what is the most recent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_pennsylvania_state_parks" ( "park_name" text, "county_or_counties" text, "area_in_acres_ha" text, "date_founded" real, "stream_s_and_or_lake_s" text ); Question: how many parks are name...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_countries_ranked_by_the_number_o" ( "rank" real, "country" text, "continent" text, "summer_olympics" text, "winter_olympics" text, "total" real ); Question: Which rank has a total sma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_winners" ( "year" real, "author" text, "english_title" text, "original_title" text, "representing" text ); Question: What is the year for the ocean? <|assistant|> SELECT "year" FROM "li...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_winners" ( "year" real, "author" text, "english_title" text, "original_title" text, "representing" text ); Question: Name the representation for om fjorten dage <|assistant|> SELECT "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_winners" ( "year" real, "author" text, "english_title" text, "original_title" text, "representing" text ); Question: Name the representing for englar alheimsins <|assistant|> SELECT "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_winners" ( "year" real, "author" text, "english_title" text, "original_title" text, "representing" text ); Question: Name the original title for years before 1977 and author of lagercra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_winners" ( "year" real, "author" text, "english_title" text, "original_title" text, "representing" text ); Question: Name the representating for ingenjör andrées luftfärd <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); Question: What is the distance for the team time trial? <|assistant|> SELECT "distance" FROM "stage_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); Question: What was the course on 13 may? <|assistant|> SELECT "course" FROM "stage_results" WHERE "da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); Question: What type has rest day as a course and was on 21 may? <|assistant|> SELECT "type" FROM "sta...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text ); Question: What's the race name that the driver Inne...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); Question: What's the score in the home game against the Charlo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the date of the game played at ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team's score when the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team when the crowd was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did Richmond play as the away team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_clubs" ( "club" text, "nickname" text, "years_competed" text, "home_ground" text, "premierships" text ); Question: Tell me the years competed for panthers <|assistant|> SELECT "years_com...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "versions" ( "country" text, "release_date" real, "music_label" text, "media" text, "catalogue_number" text ); Question: What is the release date of the CD by EG Records in the UK? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "versions" ( "country" text, "release_date" real, "music_label" text, "media" text, "catalogue_number" text ); Question: What is the release date by Editions EG in the Netherlands? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "versions" ( "country" text, "release_date" real, "music_label" text, "media" text, "catalogue_number" text ); Question: What is the music label with the catalogue number enocd 10? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "versions" ( "country" text, "release_date" real, "music_label" text, "media" text, "catalogue_number" text ); Question: What is the release date by Virgin? <|assistant|> SELECT AVG("release_dat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_organization" ( "team" text, "location" text, "venue" text, "league_and_position_in_1991" text, "coach" text ); Question: Which team has Yuriy Hruznov as coach? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_organization" ( "team" text, "location" text, "venue" text, "league_and_position_in_1991" text, "coach" text ); Question: Where is Dynamo-2 located? <|assistant|> SELECT "location" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_organization" ( "team" text, "location" text, "venue" text, "league_and_position_in_1991" text, "coach" text ); Question: Where is Shakhtar-2 located? <|assistant|> SELECT "location"...
<|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: For the gte northwest classic with the score ...
<|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: For sep 18 what is the total number of 1 priz...
<|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 winner for Virginia? <|assistant|...
<|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: On what date was the gte north classic tourna...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When did an away team score 14.19 (103)?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What home team plays at princes park? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When did an away team score 17.8 (110)? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where does the home team fitzroy play? <...
<|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 extra resulted in 2nd before 2005? <|assistant|> SELECT "extra" FROM "achievements" ...
<|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 venue resulted in 2nd before 2005? <|assistant|> SELECT "venue" FROM "achievements" ...
<|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 at the Red Sox game that had a loss of Wakefield (7–...
<|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 loss of the Red Sox game when they had a record of 77–67? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Which Tournament has Pat Cash as a runner-up? <|assistant|> SELECT "tournament" FROM "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Who is the winner for the Tournament in Hong Kong with a third place winner named Mikae...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "event" text, "record" text, "athlete" text, "nationality" text, "date" text ); Question: What was the nationality of the athlete that ran the 10000 m event? <|assistant|> SELECT "nati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is Richmond score as the away team?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: Tell me the pole posi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "round" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: I want the fastest la...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Which Record has a home of Nashville? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Which Visitor played on January 17? <|assistant|> SELECT "v...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "game" real, "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Which game later than number 32 had both El...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "game" real, "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Who was the visiting team in the game somet...
<|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 Crowd has an Away team score of 9.2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tam_variants" ( "vctp" text, "vca_155" text, "vctm" text, "vcpc" text, "vclc" text, "vcrt" text ); Question: If there is a VCPC of 75km/h (47mph) what is the VCA? <|assistant|> SELECT "vca_15...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tam_variants" ( "vctp" text, "vca_155" text, "vctm" text, "vcpc" text, "vclc" text, "vcrt" text ); Question: If there is a VCRT of 7.62mm (0.3in) fn mag 60-20 machine gun, what is the VCTP of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_line_series" ( "airing_date" text, "english_title_chinese_title" text, "number_of_episodes" real, "genre" text, "official_website" text ); Question: What is the airing date for a modern ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What was the Const...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What Race did Mich...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What was the Const...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What Brands Hatch ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "race" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "race_winner" text, "constructor" text, "report" text ); Question: What was the Repor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What was the nation that had 59 totals? <|assistant|> SELECT "nation" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: On what d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: Who had t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: Which Gra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: Who had t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_review" ( "grand_prix" text, "date" text, "location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What is t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of gold medals for the United States with silver medal count gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of medals of Norway with a silver medal count greater ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest bronze medal count for Italy with fewer than 6 gold medals a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: On average, what is the number of silver medals for nations ranking higher than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: For the United States, with greater than 2 bronze metals, greater than 3 silver...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: Which player was active in Jazz in 1975-79? <|assistant|> SELECT "player" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: What is the nationality for the guard position from Bowling Green? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: Who is the player from Auburn? <|assistant|> SELECT "player" FROM "m" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: Which player is a shooting guard? <|assistant|> SELECT "player" FROM "m" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); Question: Which position was active in Jazz in 2002-03? <|assistant|> SELECT "position...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: Name the total number of swimsuits when evening gown is 8.329 and av...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: Name the sum of swimsuit when the evening gown is less than 6.983 an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: Name the most interview for minnesota and average more than 7.901 <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rodney_local_board" ( "name" text, "years" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Name the highest Decile for roll more than 325 and area of warkworth <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rodney_local_board" ( "name" text, "years" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Name the authority for roll of 54 <|assistant|> SELECT "authority" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friendly" ( "match" real, "date" text, "competition_or_tour" text, "ground" text, "opponent" text, "score1" text ); Question: What was the score of Match 2? <|assistant|> SELECT "score1" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which away team had a score of 11.11 (77)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When did Essendon play at home? <|assista...