text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "hakka" text, "area" real, "population" real, "density" real ); Question: What's the sum of th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "hakka" text, "area" real, "population" real, "density" real ); Question: What's the total num...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "hakka" text, "area" real, "population" real, "density" real ); Question: What's the average a...
<|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 was the attendance on July 30? <|assistant|> SELECT AVG("attendance") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_career" ( "date" text, "venue" text, "result" text, "goals" real, "competition" text ); Question: How many Goals have a Result of 0 – 4? <|assistant|> SELECT AVG("goals") FROM "in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_career" ( "date" text, "venue" text, "result" text, "goals" real, "competition" text ); Question: How many goals have a Result of 12 – 0? <|assistant|> SELECT "goals" FROM "intern...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_career" ( "date" text, "venue" text, "result" text, "goals" real, "competition" text ); Question: Which Result has a Date of 9 october 2009? <|assistant|> SELECT "result" FROM "in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_career" ( "date" text, "venue" text, "result" text, "goals" real, "competition" text ); Question: Which Goals have a Date of 7 february 2010? <|assistant|> SELECT MAX("goals") FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: On what Year did Entrant Leyton House have a Chassis type of Leyton House CG9...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: What was the first year to have a Chassis of Jordan 193? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real ); Question: Which School's Mascot is Raiders? <|assistant|> SELECT "school" FROM "current_mem...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real ); Question: What is North Valleys School Mascot? <|assistant|> SELECT "mascot" FROM "current_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real ); Question: What is the Enrollment where Cougars is a Mascot? <|assistant|> SELECT SUM("enrol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real ); Question: In what League is the Reed School? <|assistant|> SELECT "league" FROM "current_me...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "school" text, "mascot" text, "location" text, "league" text, "enrollment" real ); Question: What Mascot has an Enrollment greater than 2,464? <|assistant|> SELECT "mascot" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Who was the runner-up in the tournament in which Omar Camporese held third place? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Who was the runner-up in the tournament in London? <|assistant|> SELECT "runner_up" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: What was the score in the tournament in which Michael Stich took third place? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Who holds third place in the tournament with a score of 2–6, 7–6(3), [10–5]? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: what is the least number of goals for when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: what is the average losses when the wins is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: what is the lowest number of ties when the l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: what is the sum of games played when the los...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: what is the total number of games played whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" real, "ties" real, "goals_for" real, "goals_against" real ); Question: what is the sum of wins for the ottawa hocke...
<|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: How many people attended the game on February 3, 200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the name of the home team that p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which Away team played at the Windy Hill...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How large of a crowd can the Glenferrie ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How large of a crowd can the Brunswick S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which Home Team had a score of 26.16 (17...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What is the lowest number of goals scored by a player in the normal league games where mor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What is the sum of goals scored in regular league play by Mustoe where he scored 0 goals i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What is the average number of goals scored in the FA Cup by Whelan where he had more than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "total" real ); Question: What is the lowest number of goals scored in regular league games by Ehiogu where he score...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subdivisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "uyghur_uey" text, "uyghur_latin_uly" text, "population_2010_census" text, "area_km" text, "density_km" text ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subdivisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "uyghur_uey" text, "uyghur_latin_uly" text, "population_2010_census" text, "area_km" text, "density_km" text ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subdivisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "uyghur_uey" text, "uyghur_latin_uly" text, "population_2010_census" text, "area_km" text, "density_km" text ); Question: W...
<|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: How many people were in attendance when the visiting...
<|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: Who was the leading scorer on 23 February 2008? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "nominated_for" text, "award" text, "category" text, "result" text ); Question: Name what was nominated in years before 2002 for most popular comedy perfo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "nominated_for" text, "award" text, "category" text, "result" text ); Question: Name the result for the bafta tv awards <|assistant|> SELECT "result" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "nominated_for" text, "award" text, "category" text, "result" text ); Question: Name the category for nominated at the british comedy awards <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "nominated_for" text, "award" text, "category" text, "result" text ); Question: Name the year that Birds of a feather category for most popular actress wa...
<|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 dates did Ferrari win races? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_4_1995_1996" ( "no_in_series" real, "no_in_season" real, "title" text, "director" text, "writer_s" text, "original_air_date" text, "production_code" text ); Question: What was the or...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "formula_one_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); Question: How many points for the ferrari v12 engine and ferrari 1512 chassis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score for the away team whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "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 when the crowd was lar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "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 when Carlton was ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score for the away team whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many people were in the crowd when t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score of the away team when...
<|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: How many golds for nations ranked below 4, over 5 medals, and under 6 silvers? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "snp_targets" ( "rank" real, "constituency" text, "winning_party_2003" text, "swing_to_gain" real, "snp_s_place_2003" text, "result" text ); Question: Which rank had the Labour party winning i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "snp_targets" ( "rank" real, "constituency" text, "winning_party_2003" text, "swing_to_gain" real, "snp_s_place_2003" text, "result" text ); Question: Which party won in 2003, that had a swing...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "snp_targets" ( "rank" real, "constituency" text, "winning_party_2003" text, "swing_to_gain" real, "snp_s_place_2003" text, "result" text ); Question: Which constituency had the conservative p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What is the final score when the visiting team is the Washington Redskins and the da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What is the stadium when the date of the game is December 14? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What is the name of the stadium when the visiting team is the Denver Broncos? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the smallest crowd when Melbour...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the largest crowd when the away...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "uefa_europa_league" ( "season" text, "competition" text, "round" text, "club" text, "home" text, "away" text, "aggregate" text ); Question: What is the Away when the Club is Neath? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "measurements" ( "area_in_m" text, "completion" text, "city" text, "country" text, "denomination" text ); Question: What country has area of 7,914 m²? <|assistant|> SELECT "country" FROM "measur...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "measurements" ( "area_in_m" text, "completion" text, "city" text, "country" text, "denomination" text ); Question: What city was completed in 1910-1978? <|assistant|> SELECT "city" FROM "measur...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "measurements" ( "area_in_m" text, "completion" text, "city" text, "country" text, "denomination" text ); Question: What is the country with area of 3,170 in m²? <|assistant|> SELECT "country" F...
<|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: I want the time/retired for grid of 17 <|assistant|> SELECT "time_retired" FROM "race" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: Name the opponent when the field is mitchel athletic complex <|assistant|> SELECT "opponent"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: Name the date for when the home/away is away and the opponent is bayhawks <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: Say the field with a result of w 12-11 <|assistant|> SELECT "field" FROM "schedule" WHERE "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: Name the opponent when the result is w 16-15 and has home/away of home <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: Name the opponent when the resultwas w 12-11 <|assistant|> SELECT "opponent" FROM "schedule"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); Question: Name the opponent which has a home/away of home and date of july 27 <|assistant|> SELECT "op...
<|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: I want to know the home team for mcg venu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "name" text, "country" text, "status" text, "moving_to" text, "transfer_fee" text ); Question: Where did Konchesky move to? <|assistant|> SELECT "moving_to" FROM "out" WHERE "name"='konc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is Essendon's home team? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team score for North Mel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is Geelong's home team score? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What 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 "classification" ( "grid" real, "driver" text, "constructor" text, "qual" real, "rank" real, "laps" real, "time_retired" text ); Question: Who was #16 rank constructor with a grid of more th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "grid" real, "driver" text, "constructor" text, "qual" real, "rank" real, "laps" real, "time_retired" text ); Question: Who constructed Joe James car when his rank was mor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "grid" real, "driver" text, "constructor" text, "qual" real, "rank" real, "laps" real, "time_retired" text ); Question: What was the rank of the car who had more than 182 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "grid" real, "driver" text, "constructor" text, "qual" real, "rank" real, "laps" real, "time_retired" text ); Question: How many laps did Chuck Stevenson have with a grid ...
<|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: Which Week has an Opponent of san francisco 49ers? <|assistant|> SELECT MAX("week") FROM "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "middleweight_77_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" text, "total_kg" text ); Question: What is the snatch for the Clean & jerk of 145.0, and a Bodyweight larger th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "middleweight_77_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" text, "total_kg" text ); Question: What is the Clean & jerk for the snatch less than 150 and a Bodyweight of 76...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "middleweight_77_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" text, "total_kg" text ); Question: What is the least Bodyweight for the Clean & jerk of 145.0, and a Snatch sma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "middleweight_77_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" text, "total_kg" text ); Question: What is the Clean & jerk for the bodyweight less than 76.55, and the Total (...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2003_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: What was the latest year that resulted in won? <|assistant|> SELECT MAX("year") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selections" ( "draft" text, "round" real, "pick" real, "nationality" text, "position" text, "school_club_team" text ); Question: Which position had a pick of 50? <|assistant|> SELECT "positio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selections" ( "draft" text, "round" real, "pick" real, "nationality" text, "position" text, "school_club_team" text ); Question: Which team had a 2008-3 2008 draft? <|assistant|> SELECT "scho...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selections" ( "draft" text, "round" real, "pick" real, "nationality" text, "position" text, "school_club_team" text ); Question: What is the average pick after Round 2? <|assistant|> SELECT A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "competition" text, "date" text, "location" text, "score" text, "result" text ); Question: What is the date of the game with a loss result in the Europe/Africa Group I, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "competition" text, "date" text, "location" text, "score" text, "result" text ); Question: What is the result of the Europe/Africa Group I, play-off competition? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "competition" text, "date" text, "location" text, "score" text, "result" text ); Question: What is the result of the europe/africa group i, round robin game in Murcia (e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text ); Question: What position did the person from Clemson school fill? <|assistant|> SELECT "position" FROM "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text ); Question: What was Rudy Harris' pick number in round 4? <|assistant|> SELECT MAX("pick") FROM "nfl_draft...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text ); Question: What was the pick number for the kicker in round 8? <|assistant|> SELECT COUNT("pick") FROM "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history" ( "year" real, "western_champion" text, "result" text, "eastern_champion" text, "finals_mvp" text ); Question: What is the result from 2013? <|assistant|> SELECT "result" FROM "history...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history" ( "year" real, "western_champion" text, "result" text, "eastern_champion" text, "finals_mvp" text ); Question: Who is the MVP finals that includes Detroit shock from the eastern champi...