text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_5_jamaican_100_m_athletes_women" ( "rank" real, "time" real, "athlete" text, "nation" text, "date" text, "location" text ); Question: Rank smaller than 5, and a Time larger than 10.7, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "berkhamsted" ( "name" text, "faith" text, "type" text, "opened" real, "intake" real, "dcsf_number" real, "ofsted_number" real ); Question: Faith of rc, and a Opened larger than 1966 which h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "berkhamsted" ( "name" text, "faith" text, "type" text, "opened" real, "intake" real, "dcsf_number" real, "ofsted_number" real ); Question: Faith of –, and a Name of greenway has what type? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text ); Question: Who was the opponent that played at Launceston Cricket Club Ground, launceston ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text ); Question: What was the rank of the team during season 2006/07? <|assistant|> SELECT "rank...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text ); Question: What was the venue where there were 55 runs? <|assistant|> SELECT "venue" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text ); Question: What was the venue where there were 62 runs? <|assistant|> SELECT "venue" FROM ...
<|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" text ); Question: Which driver had an accident and laps smaller than 53? <|assistant|> SELECT "driver" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text ); Question: What language has a publicat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text ); Question: What is the status for a jou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text ); Question: What is the language with a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text ); Question: What is the ISSN number of a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text ); Question: What is the language for a j...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dvd_releases" ( "volume" text, "discs" real, "episodes" real, "region_1_release" text, "region_2_release" text, "region_4_release" text ); Question: What is the region 4 release that has july...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dvd_releases" ( "volume" text, "discs" real, "episodes" real, "region_1_release" text, "region_2_release" text, "region_4_release" text ); Question: What is the region 1 release that has july...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dvd_releases" ( "volume" text, "discs" real, "episodes" real, "region_1_release" text, "region_2_release" text, "region_4_release" text ); Question: What is the average episode that has Septe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text ); Question: What is the scheduled value for the farm h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text ); Question: What is the type of turbine having fewer t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text ); Question: When is the scheduled date for the farm ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text ); Question: What is the average capacity for the farm ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text ); Question: What is the title of the king who left office i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text ); Question: When did the king who entered office in 1012 le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text ); Question: What are the family relations of the king with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text ); Question: What is teh born-died dates of the king with a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Which Opponents have a Partner of irina-camelia be...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Which Surface has a Partner of galina voskoboeva? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Which Opponents have a Surface of hard, and an Out...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Which Partner has a Date of 12 july 2009? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Which Surface has a Partner of sorana cîrstea? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Name the least overall with pick number more than 27 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eighthfinals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: what's the first leg with gran canaria as team #2? <|assistant|> SELECT "1st_leg" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eighthfinals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: with team #1 as lukoil academic what is team #2? <|assistant|> SELECT "team_num2" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eighthfinals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: with team #2 as akasvayu girona what is team #1? <|assistant|> SELECT "team_num1" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: Which virtue is acedia(Latin)? <|assistant|> SELECT "virtue" FROM "seven_heavenly_vir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: Which Virtue has a (vice) of lust? <|assistant|> SELECT "virtue" FROM "seven_heavenly...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: Which virtue is Invidia(Latin)? <|assistant|> SELECT "virtue" FROM "seven_heavenly_vi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: What's the gloss with Castitas(Latin)? <|assistant|> SELECT "gloss" FROM "seven_heave...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: What is the Diligence Virtues Gloss? <|assistant|> SELECT "gloss" FROM "seven_heavenl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: What is the Virtue of Temperance in Latin? <|assistant|> SELECT "latin" FROM "seven_h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: In what year(s) did South Korea win silver? <|assistant|> SELECT "year" FROM "team" WHERE "silver"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Which nation(s) won silver in Doha? <|assistant|> SELECT "silver" FROM "team" WHERE "location"='doha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What was the first year that South Korea won gold and Malaysia won bronze? <|assistant|> SELECT MIN(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What country won gold in the year(s) that Chinese Taipei won bronze? <|assistant|> SELECT "gold" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" text, "tier" real, "league" text, "pos" real, "postseason" text, "dutch_cup" text, "european_competitions" text ); Question: Which European competitions have a Pos of 6?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" text, "tier" real, "league" text, "pos" real, "postseason" text, "dutch_cup" text, "european_competitions" text ); Question: Which Pos has a Dutch Cup of winner, and a T...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: What is the average Frequency MHz that is on farwel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: WHich City of license has a FCC info of fcc, and 10...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: WHich FCC info has 3,000 ERP W? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What's the average game against the New Jersey Devils with 19 points? ...
<|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, "record" text, "game_site" text, "attendance" real ); Question: Opponent of at boston patriots, and a Week larger than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geography_of_students" ( "maryland_counties" text, "fall_05" real, "fall_06" real, "fall_07" real, "fall_08" real, "fall_09" real ); Question: Name the average fall 07 for fall 07 more than 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: Name the player for fc dallas pick number less than 3 <|assistant|> SELECT "player...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: Name the most pick number for real salt lake and affiliation of ucla los angeles s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: Name the player with pick number of 7 <|assistant|> SELECT "player" FROM "round_on...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game has a March smaller than 12, and a Score of 10–1? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Score has Points of 88, and a Record of 38–22–12? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game has an Opponent of detroit red wings, and a March smaller than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Points have a Game smaller than 70, and a Score of 4–8? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which segment a's Netflix is S05...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which series episode has a segme...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What largest episode number's Ne...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which segment c's segment b is r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "points" text, "position" text ); Question: Which races did they accumulate at least 125 points? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: Which Series has a Score of 3 – 8? <|assistant|> SELECT "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: Which Date has a Decision of myre? <|assistant|> SELECT "d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: How many Attendances on may 24? <|assistant|> SELECT MIN("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: Which Series are on may 18? <|assistant|> SELECT "series" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: How many Attendances that has a Visitor of philadelphia on...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: who is the Visitor that has a Series of series tied 2–2? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: How many Attendances have a Score of 4 – 5? Question 4 <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: WHo has a Home of philadelphia and a Series of flyers lead...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the class of the Charlotte Camel gt 500 race? <|assistant|> SELECT "class" FROM "schedule"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the race 12 hours in length? <|assistant|> SELECT "race" FROM "schedule" WHERE "length"='1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the class of the Coca-cola classic 12 hours of sebring race? <|assistant|> SELECT "class" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the date of the Paul Revere 250 race in the Daytona International Speedway circuit? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What race is 12 hours in length? <|assistant|> SELECT "race" FROM "schedule" WHERE "length"='12 ho...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: What is the highest round for the pick from Finland? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: What is the total number of rounds that Joe Barnes was picked? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: What is the total 2nd of Thomas Morgenstern,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iaba_olympic_medals" ( "order" text, "year" real, "olympic_games" text, "medal" text, "weight" text, "boxer" text, "club" text ); Question: What was the order of the Tokyo olympic games? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iaba_olympic_medals" ( "order" text, "year" real, "olympic_games" text, "medal" text, "weight" text, "boxer" text, "club" text ); Question: What was the 15th club in 2012? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iaba_olympic_medals" ( "order" text, "year" real, "olympic_games" text, "medal" text, "weight" text, "boxer" text, "club" text ); Question: What medal did Michael Conlon, with a weight of f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: How many losses have more than 45,036 attendance? <|assistant|> SELECT "loss...
<|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: on april 29, what was the attendance? <|assistant|> SELECT SUM("attendance")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: on april 9 what was the attendance? <|assistant|> SELECT AVG("attendance") F...
<|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, "record" text ); Question: What date has postponed (rain) rescheduled for august 7 as the score? <|assistant|> SELECT "date"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: Failures larger than 0, and a Successes of 1 has what lowest partial failu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: Successes smaller than 6, and Launches larger than 1, and a Failures of 2 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: Who was the opposing team during a game in the Pontiac Silverdome? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What was the final score for the January 23 game? <|assistant|> SELECT "score"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: What is the highest Feb value having an opponent of the Philadelphia Flyers and i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: Who was the opponent in games over 58, after Feb 16, and having a record of 40-20...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grammy_hall_of_fame" ( "year" real, "title" text, "genre" text, "label" text, "year_inducted" real ); Question: Which Year has a Genre of rock (track)? <|assistant|> SELECT SUM("year") FROM "gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grammy_hall_of_fame" ( "year" real, "title" text, "genre" text, "label" text, "year_inducted" real ); Question: Which Year Inducted is the highest one that has a Year smaller than 1965? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Overall is the highest one that has a Pick...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Round is the lowest one that has a Positio...
<|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, "save" text, "record" text ); Question: What was the Record on September 21? <|assistant|> SELECT "record" FROM "game_log"...
<|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, "save" text, "record" text ); Question: What was the record the day David Weathers (15) had a save? <|assistant|> SELECT "...
<|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, "save" text, "record" text ); Question: Who had a save on September 2? <|assistant|> SELECT "save" FROM "game_log" WHERE "...