text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "girls_basketball_players_and_coaches_of_" ( "year" text, "player" text, "school" text, "hometown" text, "college" text ); Question: Where did Maya Moore attend school? <|assistant|> SELECT "sch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura_closing_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real ); Question: What is the difference with a loss small...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_clausura_closing_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real ); Question: Which loss had a player lower than 18? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010s_raiders_5_2" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: Who won the 2012 game that had a score of 15–0? <|assistant|> SELECT "w...
<|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: Tell me the week for result of l 31-27, and an Attendance smaller than 85,865 <|assistant|> ...
<|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: I want the date for week less than 5 and attendance more than 43,922 with a result of w 21-7...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "director" text, "record_set" text, "year" text, "notes" text ); Question: Who had notes of Prizzi's Honor? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "director" text, "record_set" text, "year" text, "notes" text ); Question: What Superlative had a record set of 12 nominations? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" text, "laps" real, "winnings" text ); Question: What is the highest number of laps completed by driver Joe Nemechek? <|ass...
<|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, "date" text ); Question: What is the home team score when they played at Victoria...
<|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, "date" text ); Question: What was the away team score when the home team score wa...
<|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, "date" text ); Question: What was the venue when the home team was Fitzroy? <|ass...
<|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, "date" text ); Question: What team was the home team when the home team score 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, "date" text ); Question: What team was the away team when the home team score was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text ); Question: What...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superfund_sites" ( "cerclis_id" text, "name" text, "county" text, "proposed" text, "listed" text, "construction_completed" text, "partially_deleted" text, "deleted" text ); Question: What...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue has the away side scoring 16.1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away side score when hawthorn...
<|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: What is the average lap total for grids under 19 and a Time/Retired of +4 laps? <|assistant...
<|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: Who drive over 43 laps in grid 5? <|assistant|> SELECT "driver" FROM "race" WHERE "laps">43...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What team played away in the game that th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the home team score when the awa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which Away team score has a Venue of prin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which Away team score has a Home team 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 genre is revolving doors of veng...
<|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 english title of the mode...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_41" text, "d_42" text, "d_43" text, "d_44" text, "d_45" text, "d_46" text, "d_47" text, "d_48" text, "d_49" text, "d_50_o" text ); Quest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text ); Question: What was Catalogue tojp 60121-22's Date? <|assistant|> SELECT "date" FROM "release_det...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text ); Question: What was the Date of Country of United States? <|assistant|> SELECT "date" FROM "relea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text ); Question: What Catalogue is Dated 14 november 2003, with the Format compact disc? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text ); Question: What is the Label for Date of 14 November 2003, and Catalogue tojp 60121-22? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text ); Question: What Label was Catalogued tojp 60121-22? <|assistant|> SELECT "label" FROM "release_de...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "event" text, "record" text, "athlete" text, "nationality" text, "date" text ); Question: What is the record for Norway on 23 august 1981? <|assistant|> SELECT "record" FROM "men" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "event" text, "record" text, "athlete" text, "nationality" text, "date" text ); Question: What is the record for the 20000 m walk? <|assistant|> SELECT "record" FROM "men" WHERE "event"=...
<|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" text ); Question: When was the Bye week? <|assistant|> SELECT "date" FROM "schedule" WHERE "result"='bye';<|en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "athlete" text, "nationality" text, "3_60" text, "3_80" text, "3_95" text, "result" text ); Question: What was the nationality of the athlete with a final result of 4.50? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "athlete" text, "nationality" text, "3_60" text, "3_80" text, "3_95" text, "result" text ); Question: What was the athlete with a final result of 4.30? <|assistant|> SELECT "athlete"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alpine_club_classification" ( "ave_no" text, "name" text, "country" text, "highest_mountain" text, "height_m" real ); Question: Which country has the Highest mountain of rettlkirchspitze? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alpine_club_classification" ( "ave_no" text, "name" text, "country" text, "highest_mountain" text, "height_m" real ); Question: What is the average height with the Highest mountain of hochgall?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "single" text, "u_s_country" text, "u_s" text, "u_s_ac" text, "album" text ); Question: What US Country released an album of singles only in 1967? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "year" real, "single" text, "u_s_country" text, "u_s" text, "u_s_ac" text, "album" text ); Question: What was the best album in 1965? <|assistant|> SELECT "u_s_ac" FROM "singles" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What is the result of the fight that had a tko (low kicks)? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What event went under 3 rounds and was no contest (punch after kno...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What event was in hong kong and went less than 2 rounds? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: How many rounds was the fight against carter williams? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: In rounds 7-13 what engine was featured? <|assistant|> SELECT "e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What score was conceded by Richmond? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iran" ( "date" text, "venue" text, "result" text, "competition" text, "goals" real ); Question: What is the number of Goals on 1950-05-30? <|assistant|> SELECT COUNT("goals") FROM "iran" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iran" ( "date" text, "venue" text, "result" text, "competition" text, "goals" real ); Question: In 1948-10-28, what were the lowest Goals in Tehran, Iran? <|assistant|> SELECT MIN("goals") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iran" ( "date" text, "venue" text, "result" text, "competition" text, "goals" real ); Question: In what Venue was the Result 1-3? <|assistant|> SELECT "venue" FROM "iran" WHERE "result"='1-3';<...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iran" ( "date" text, "venue" text, "result" text, "competition" text, "goals" real ); Question: In 1948-10-28, in what Venue was the Competition of International Match held? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: What was the Zakspeed 1500/4 1.5 l4 t c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); Question: What was the Michele Alboreto's engine?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elected_candidates" ( "rank" real, "list" text, "candidate_name" text, "gender" text, "religion" text, "votes" real ); Question: What is the average rank for antun salman? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elected_candidates" ( "rank" real, "list" text, "candidate_name" text, "gender" text, "religion" text, "votes" real ); Question: Khalil chawka has a gender of ♂, a religion of ☪, and how many...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elected_candidates" ( "rank" real, "list" text, "candidate_name" text, "gender" text, "religion" text, "votes" real ); Question: Who has a religion of ☪ and more than 1853 votes? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "disc_four_studio_highlights_1971_1976" ( "track" real, "recorded" text, "original_issue" text, "song_title" text, "time" text ); Question: What is the recorder has a Track more than 11 with a t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "disc_four_studio_highlights_1971_1976" ( "track" real, "recorded" text, "original_issue" text, "song_title" text, "time" text ); Question: Which track has a title : Just a little bit <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_records" ( "season" text, "div" text, "pos" text, "pld" text, "pts" text, "play_offs" text, "trophy" text ); Question: What is the Trophy with a Season with 2008–2009? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "controversy" ( "year" real, "name" text, "western_states" text, "vermont" text, "leadville" text, "wasatch" text, "total_time" text ); Question: What Wasatch time corresponds to a total tim...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_16_5_11" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); Question: Who were the opponents in th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was Melbourne's home team opponent? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was Richmond's away team opponent? <...
<|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 FA Cup value with a total greater than 2, a League Cup of 1, a league ...
<|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 total value in a League less than 1 with more than 1 League Cup? <|ass...
<|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 smallest value for League Cup when the League number is greater than 1, no FA ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "year" real, "name" text, "format_s" text, "label" text ); Question: Name the region before 2008 when name of best 1200 <|assistant|> SELECT "region" FROM "rel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What method resulted in a win...
<|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, "date" text ); Question: At what venue did the Essendon team play as an away team...
<|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, "date" text ); Question: Who was the home team for the game played at Junction Ov...
<|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, "date" text ); Question: What was the score of the home team when the away team w...
<|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, "date" text ); Question: What was the venue where the away team ended in a score ...
<|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, "date" text ); Question: What was the away team when the home team was South Melb...
<|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, "date" text ); Question: What was the name of the home team playing at the Juncti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sports" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "championships" text ); Question: What is the total number of the established club of Lehigh Valley Storm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sports" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "championships" text ); Question: What is the name of a league in the sport of baseball? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sports" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "championships" text ); Question: What venue does the soccer team Pennsylvania Stoners play in? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); Question: What game number was play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); Question: What is the record when t...
<|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: Tell me the number of attendance that has a result of l 35-17 <|assistant|> SELECT COUNT("at...
<|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: I want the attendance for week larger than 10 and result of l 22-21 <|assistant|> SELECT "at...
<|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: Name for me the total number in attendance for week before 2 and result of t 24-24 <|assista...
<|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: I want the greatest attendance when the opponent is the chicago bears <|assistant|> SELECT M...
<|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, "decision" text, "attendance" real, "record" text ); Question: What is the average attendance for a game against Phoenix?...
<|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, "decision" text, "attendance" real, "record" text ); Question: What was the home team in the February 22 game that Legace...
<|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: Who was Carlton's home team opponent? <|...
<|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: Who was the away team at Lake Oval? <|as...
<|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: Who was South Melbourne's away team oppo...
<|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: Who was the home team at Princes Park wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the high grid with 27 laps? <|assistant|> SELECT MAX("grid") FROM "classi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the high grid that has a Time/Retired of +6 laps, and under 69 laps? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "release_date" text, "peak_chart_position" real, "first_week_sales" real, "copies_sold" real, "album" text ); Question: What's the total number of copies sold for the single that sol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "release_format" text, "country" text, "label" text, "cat_no" text, "release_date" real ); Question: What was the latest release date for Ariola in Spain? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "release_format" text, "country" text, "label" text, "cat_no" text, "release_date" real ); Question: What type of format was released after 1979? <|assistant|> SELECT "releas...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "release_format" text, "country" text, "label" text, "cat_no" text, "release_date" real ); Question: On what date did Epic label start its release? <|assistant|> SELECT SUM("...
<|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: Which game had less than 270 rebounds and a rank lower than 5? <|assistant|> SELECT "games" FROM "r...