text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); Question: What position does the player from arkansas play? <|assistant|> SELECT "position" FROM "...
<|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 is the away side at glenferrie oval?...
<|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 is the away side's score when richm...
<|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: WHAT WAS THE HOME TEAM'S SCORE WHEN THEY ...
<|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: AT WHAT VENUE DID THE HOME TEAM SCORE 10....
<|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: AT WHAT VENUE DID THE HOME TEAM SCORE 10....
<|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: WHAT HOME TEAM SCORED 9.11 (65)? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the crowd size at Collingwood's ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the crowd size at Arden Street O...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_matches_between_the_home_n" ( "date" text, "stadium" text, "fixture" text, "status_of_match" text, "score" text ); Question: What is the status of the match between Scotland v Nor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: In what week was the game on August 10, 1956 played? <|assistant|> SELECT AVG("we...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the attendance of the game in week 6? <|assistant|> SELECT "attendance" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: In what week was the game on August 24, 1956 played in front of 40,175 fans? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "media" ( "translator_call_letters" text, "b_mountain_channel" text, "laurel_mountain_channel" text, "psip" text, "station_call_letters" text, "network_affiliation_id" text, "original_channel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "media" ( "translator_call_letters" text, "b_mountain_channel" text, "laurel_mountain_channel" text, "psip" text, "station_call_letters" text, "network_affiliation_id" text, "original_channel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "media" ( "translator_call_letters" text, "b_mountain_channel" text, "laurel_mountain_channel" text, "psip" text, "station_call_letters" text, "network_affiliation_id" text, "original_channel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "media" ( "translator_call_letters" text, "b_mountain_channel" text, "laurel_mountain_channel" text, "psip" text, "station_call_letters" text, "network_affiliation_id" text, "original_channel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "media" ( "translator_call_letters" text, "b_mountain_channel" text, "laurel_mountain_channel" text, "psip" text, "station_call_letters" text, "network_affiliation_id" text, "original_channel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What team was the away team with a score...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What date was fitzroy the home team? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "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_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the away team at the game at Arden...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the venue where the home team is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the venue for the game on 1 June ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1971_isle_of_man_senior_tt_500cc_final_s" ( "place" real, "rider" text, "country" text, "machine" text, "speed" text, "time" text, "points" real ); Question: What was the speed of the rider...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "blue_team" ( "learner_driver" text, "partner" text, "driver_s_age" real, "years_on_learners" real, "licence_test_attempts" real, "passed_yet" text ); Question: Which partner has fewer than 17...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What away team is playing at the Brunswi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What date does the Home team of Richmond...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the home team at Victoria Park on ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the home team at the game where th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_stations" ( "station" text, "municipality" text, "county" text, "former_railroad" text, "closed" real ); Question: What municipality is the Harmon Cove station located in? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_stations" ( "station" text, "municipality" text, "county" text, "former_railroad" text, "closed" real ); Question: What municipality is the Benson Street station located in? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_30_12_18" ( "outcome" text, "date" text, "tournament" text, "partner" text, "opponents_in_the_final" text ); Question: What date shows corrado barazzutti's partner? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_30_12_18" ( "outcome" text, "date" text, "tournament" text, "partner" text, "opponents_in_the_final" text ); Question: Which date has the tom gullikson butch walts final, and who was th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the home team of the game against ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text ); Question: Who is the color commentator for ESPN from 1990 to 1992? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text ); Question: Who was the sideline reporter prior to 1993? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text ); Question: Who was the play by play commentator for ABC after 1998? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text ); Question: What's the earliest year that Al Michaels was the play-by-play com...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text ); Question: For how many years combined were Frank Gifford and Dan Dierdorf co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "network" text, "play_by_play" text, "color_commentator_s" text, "sideline_reporter_s" text ); Question: Which sideline reporters worked alongside Frank Gifford and Dan Di...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southern_railway_batch" ( "br_no" real, "sr_no" text, "name" text, "builder" text, "whenbuilt" text, "withdrawn" text ); Question: When was the Lundy withdrawn? <|assistant|> SELECT "withdraw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southern_railway_batch" ( "br_no" real, "sr_no" text, "name" text, "builder" text, "whenbuilt" text, "withdrawn" text ); Question: When was the locomotive named fighter command built? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which country has a rand of 2 and a silver less than 6? <|assistant|> SELECT MA...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest total of medals that has a gold of 3 and a silver less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the average size of the crowd f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team score for the gam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: For the game played at Windy Hill, who 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, "crowd" real, "date" text ); Question: For the game where the away team was Nor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: What is the Weight for the 2012 club, Victorian Tigers? <|assistant|> SELECT "weight" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: What is the Weight for the Name Billy Miller Category:Articles with hcards? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_squad" ( "name" text, "pos" text, "height" text, "weight" text, "2012_club" text ); Question: What is the 2012 club for the Billy Miller Category:Articles with hcards (Name)? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many medals did China receive? <|assistant|> SELECT MIN("total") FROM "med...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_election_results" ( "general_election" real, "num_of_candidates" real, "num_of_seats_won" real, "pct_of_popular_vote" text, "result" text ); Question: What is the # of candidates that h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_election_results" ( "general_election" real, "num_of_candidates" real, "num_of_seats_won" real, "pct_of_popular_vote" text, "result" text ); Question: What is the # of candidates of lib...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_election_results" ( "general_election" real, "num_of_candidates" real, "num_of_seats_won" real, "pct_of_popular_vote" text, "result" text ); Question: How many general elections that ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue did melbourne play at as the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the essendon score when they we...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the date of the game where the h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue did melbourne play at as the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "nationality" text, "position" text, "apps" real, "goals" real, "years" text ); Question: What Years have a Goal of 82? <|assistant|> SELECT "years" FROM "references" WHERE "goals...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the total of overall values with a safety position ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_new_england_patriots_draft_selectio" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the average overall value for a round less than 4 a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the average attendance in weeks after 16? <|assistant|> SELECT AVG("attendance") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "incident_no" text, "date" text, "place" text, "killed" real, "injured" real ); Question: What is the highest number killed in incident #14? <|assistant|> SELECT MAX("killed") FROM "201...
<|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 was the crowd size when the away te...
<|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 was the largest crowd at Arden Stre...
<|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 was the home teams score at Arden 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: What was the lowest crowd size when the ...
<|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 was the venue where the home team s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What was the gold medal total for a total of 44 medals? <|assistant|> SELECT MI...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silver medals were won with a total medal of 3 and a rank above 9? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: How many weeks had an attendance of over 68,000? <|assistant|> SELECT COUNT("week...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" real, "chassis" text, "engine" text, "start" text, "finish" text, "team" text ); Question: What engine was used by the team the finished 2nd? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" real, "chassis" text, "engine" text, "start" text, "finish" text, "team" text ); Question: What chassis was used with the Chevrolet engine in 1991? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" real, "chassis" text, "engine" text, "start" text, "finish" text, "team" text ); Question: What was the most recent year when a g-force chassis started in 1st? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" real, "chassis" text, "engine" text, "start" text, "finish" text, "team" text ); Question: What was the starting position in the year before 1986? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet" ( "vessel_name" text, "type" text, "built" real, "class" text, "flag" text ); Question: What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet" ( "vessel_name" text, "type" text, "built" real, "class" text, "flag" text ); Question: Which year was the vessel Deva built as a Panamax DNV class ship? <|assistant|> SELECT SUM("built"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet" ( "vessel_name" text, "type" text, "built" real, "class" text, "flag" text ); Question: What is the class of vessel of the ship Hyundai Smart? <|assistant|> SELECT "class" FROM "fleet" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet" ( "vessel_name" text, "type" text, "built" real, "class" text, "flag" text ); Question: In which class would the vessel Hyundai Tenacity be placed? <|assistant|> SELECT "class" FROM "fle...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the result for week 14? <|assistant|> SELECT "result" FROM "schedule" WHERE "week"=...
<|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 was the home team when the away team ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "player" text, "years" text, "games" real, "reb_avg" real, "total_rebounds" real ); Question: Which lowest rank(player) has a rebound average larger than 9, out of 92...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "player" text, "years" text, "games" real, "reb_avg" real, "total_rebounds" real ); Question: How many ranks have a rebound average smaller than 6.1? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: Which player was drafted higher than 374 and went to the school Stephen F. Austin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "overall" real, "player" text, "position" text, "school_club_team" text ); Question: What is the lowest round Trinity school was drafted with an overall higher than 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "lane" real, "swimmer" text, "nationality" text, "100m" real, "200m" text, "300m" text, "400m" text, "500m" text, "600m" text, "700m" text, "time" text ); Question: Who got...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "lane" real, "swimmer" text, "nationality" text, "100m" real, "200m" text, "300m" text, "400m" text, "500m" text, "600m" text, "700m" text, "time" text ); Question: Which s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "lane" real, "swimmer" text, "nationality" text, "100m" real, "200m" text, "300m" text, "400m" text, "500m" text, "600m" text, "700m" text, "time" text ); Question: Which s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "stadium" text, "record" text, "box_scores" text, "attendance" text ); Question: Which of the opponents has bye as th...
<|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, "stadium" text, "record" text, "box_scores" text, "attendance" text ); Question: How many people attended the game ag...
<|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, "stadium" text, "record" text, "box_scores" text, "attendance" text ); Question: What was the result of the game on S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "stadium" text, "record" text, "box_scores" text, "attendance" text ); Question: What is the date of the game later t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_caps" ( "rank" real, "player" text, "nation" text, "caps" real, "goals" real, "years" text ); Question: What is the sum of caps for players with less than 9 goals ranked below 8? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_judges" ( "state" text, "born_died" text, "active_service" text, "chief_judge" text, "senior_status" text, "appointed_by" text, "reason_for_termination" text ); Question: What were t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_judges" ( "state" text, "born_died" text, "active_service" text, "chief_judge" text, "senior_status" text, "appointed_by" text, "reason_for_termination" text ); Question: What were t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_judges" ( "state" text, "born_died" text, "active_service" text, "chief_judge" text, "senior_status" text, "appointed_by" text, "reason_for_termination" text ); Question: Which activ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: Which date featured the Boston Patriots as the opponent? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: Who was the opponent during week 8? <|assistant|> SELECT "opponent" FROM...