text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is Score, when Leading Scorer is Tyrone Hill , 20 Points? <|assistant|> SELECT "score" FROM "january" WHERE "leading_scorer"='tyrone hill , 20 points';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is Home, when Score is 103-93? <|assistant|> SELECT "home" FROM "january" WHERE "score"='103-93';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is Attendance, when Home is Cleveland, and when Date is January 30? <|assistant|> SELECT "attendance" FROM "january" WHERE "home"='cleveland' AND "date"='january 30';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is Leading Scorer, when Attendance is Gund Arena 20,562, and when Record is 20-10? <|assistant|> SELECT "leading_scorer" FROM "january" WHERE "attendance"='gund arena 20,562' AND "record"='20-10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is Score, when Date is January 12? <|assistant|> SELECT "score" FROM "january" WHERE "date"='january 12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What is Score, when Attendance is Gund Arena 20,562, and when Date is January 27? <|assistant|> SELECT "score" FROM "january" WHERE "attendance"='gund arena 20,562' AND "date"='january 27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the sum of Top-10(s), when Cuts made is less than 10, and when Top-5 is less than 0? <|assistant|> SELECT SUM("top_10") FROM "summary" WHERE "cuts_made"<10 AND "top_5"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the lowest Top-25, when Events is 10, and when Wins is greater than 0? <|assistant|> SELECT MIN("top_25") FROM "summary" WHERE "events"=10 AND "wins">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the lowest Top-5, when Top-25 is less than 4, and when Cuts made is less than 7? <|assistant|> SELECT MIN("top_5") FROM "summary" WHERE "top_25"<4 AND "cuts_made"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text ); Question: What is the Height of Junior Meghan Austin? <|assistant|> SELECT "height" FROM "roster" WHERE "year"='junior' AND "name"='meghan austin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text ); Question: What is Martina Wood's Position? <|assistant|> SELECT "position" FROM "roster" WHERE "name"='martina wood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text ); Question: What is the Name of the Player from Charlotte, NC? <|assistant|> SELECT "name" FROM "roster" WHERE "home_town"='charlotte, nc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text ); Question: What is 6-2 Martina Wood's Position? <|assistant|> SELECT "position" FROM "roster" WHERE "height"='6-2' AND "name"='martina wood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text ); Question: What is the Position of the Player from Temple Hills, MD? <|assistant|> SELECT "position" FROM "roster" WHERE "home_town"='temple hills, md';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "height" text, "position" text, "year" text, "home_town" text ); Question: What is the Name of the Junior from Fayetteville, NC? <|assistant|> SELECT "name" FROM "roster" WHERE "year"='junior' AND "home_town"='fayetteville, nc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text ); Question: What rank has jo angel (wa) as the player? <|assistant|> SELECT "rank" FROM "most_career_wickets" WHERE "player"='jo angel (wa)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text ); Question: What average has 1 as rhe rank? <|assistant|> SELECT "average" FROM "most_career_wickets" WHERE "rank"='1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text ); Question: What rank has andy bichel (qld) as the player? <|assistant|> SELECT "rank" FROM "most_career_wickets" WHERE "player"='andy bichel (qld)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text ); Question: What is the average that has 2 for the rank? <|assistant|> SELECT "average" FROM "most_career_wickets" WHERE "rank"='2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text ); Question: What playee has 24.21 as the average? <|assistant|> SELECT "player" FROM "most_career_wickets" WHERE "average"='24.21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text ); Question: What is the average that has 441 as wicket? <|assistant|> SELECT "average" FROM "most_career_wickets" WHERE "s_wicket"='441';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text ); Question: What was the year Elected of Republican Incumbent Dave Reichert? <|assistant|> SELECT "elected" FROM "races_and_results" WHERE "party"='republican' AND "incumbent"='dave reichert';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text ); Question: What were the Results in the Washington 2 District? <|assistant|> SELECT "results" FROM "races_and_results" WHERE "district"='washington 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text ); Question: What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott? <|assistant|> SELECT "2008_candidates" FROM "races_and_results" WHERE "elected"<1994 AND "incumbent"='jim mcdermott';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text ); Question: Who is the Incumbent with Results of 68% 32%? <|assistant|> SELECT "incumbent" FROM "races_and_results" WHERE "results"='68% 32%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races_and_results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "2008_candidates" text, "results" text ); Question: What District had Republican Incumbent Cathy McMorris? <|assistant|> SELECT "district" FROM "races_and_results" WHERE "party"='republican' AND "incumbent"='cathy mcmorris';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What was Italy's highest total when there were less than 4 bronze and 1 gold? <|assistant|> SELECT MAX("total") FROM "medals_table" WHERE "bronze"<4 AND "gold"=1 AND "nation"='italy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many totals had more than 4 bronze? <|assistant|> SELECT SUM("total") FROM "medals_table" WHERE "bronze">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What was Austria's lowest total when the gold was more than 3? <|assistant|> SELECT MIN("total") FROM "medals_table" WHERE "nation"='austria' AND "gold">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What are the years won when the to par is +5? <|assistant|> SELECT "year_s_won" FROM "made_the_cut" WHERE "to_par"='+5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What is the average total for Tiger Woods? <|assistant|> SELECT AVG("total") FROM "made_the_cut" WHERE "player"='tiger woods';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which country had a total of 295? <|assistant|> SELECT "country" FROM "made_the_cut" WHERE "total"=295;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What is the finish when the to par is +18? <|assistant|> SELECT "finish" FROM "made_the_cut" WHERE "to_par"='+18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results" ( "matches" real, "wins" real, "losses" real, "no_result" real, "success_rate" text ); Question: How many total No Results occured when the team had less than 46 wins and more than 16 matches? <|assistant|> SELECT SUM("no_result") FROM "summary_of_results" WHERE "matches">16 AND "wins"<46;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results" ( "matches" real, "wins" real, "losses" real, "no_result" real, "success_rate" text ); Question: When the team had more than 46 wins, what were the average losses? <|assistant|> SELECT AVG("losses") FROM "summary_of_results" WHERE "wins">46;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary_of_results" ( "matches" real, "wins" real, "losses" real, "no_result" real, "success_rate" text ); Question: How many total No Results are recorded for less than 6 wins? <|assistant|> SELECT COUNT("no_result") FROM "summary_of_results" WHERE "wins"<6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text ); Question: What Interview subject was on a Date that is 11-92? <|assistant|> SELECT "interview_subject" FROM "1992" WHERE "date"='11-92';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is the lowest game number with Aris Thessaloniki with points smaller than 120? <|assistant|> SELECT MIN("games") FROM "points" WHERE "team"='aris thessaloniki' AND "points"<120;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "points" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); Question: What is the game average that has a rank larger than 2 with team Olympiacos and points larger than 113? <|assistant|> SELECT AVG("games") FROM "points" WHERE "rank">2 AND "team"='olympiacos' AND "points">113;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Which result was there when the opponents were the Buffalo Bills? <|assistant|> SELECT "result" FROM "season_schedule" WHERE "opponent"='buffalo bills';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text ); Question: What was the Purse ($) total for Iowa? <|assistant|> SELECT COUNT("purse") FROM "tournament_results" WHERE "location"='iowa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text ); Question: When did the Score of 195 (-21) happen? <|assistant|> SELECT "date" FROM "tournament_results" WHERE "score"='195 (-21)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text ); Question: When did Scott Hoch (2) win? <|assistant|> SELECT "date" FROM "tournament_results" WHERE "winner"='scott hoch (2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_01_to_date" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text ); Question: What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth? <|assistant|> SELECT "second" FROM "2000_01_to_date" WHERE "fifth"='western australia' AND "sixth"='south australia' AND "fourth"='tasmania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_01_to_date" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text ); Question: What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first? <|assistant|> SELECT "sixth" FROM "2000_01_to_date" WHERE "fourth"='western australia' AND "first"='tasmania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_01_to_date" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text ); Question: What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth? <|assistant|> SELECT "sixth" FROM "2000_01_to_date" WHERE "second"='tasmania' AND "fourth"='western australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_01_to_date" ( "season" text, "first" text, "second" text, "third" text, "fourth" text, "fifth" text, "sixth" text ); Question: What team placed fifth during the season where Victoria placed second, Tasmania placed first, and South Australia placed sixth? <|assistant|> SELECT "fifth" FROM "2000_01_to_date" WHERE "second"='victoria' AND "first"='tasmania' AND "sixth"='south australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the smallest number of losses for a position greater than 2 with 4 points and more than 2 draws? <|assistant|> SELECT MIN("lost") FROM "campeonato_paulista" WHERE "position">2 AND "points"=4 AND "drawn">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many points occurred with a difference of 2 for position less than 4? <|assistant|> SELECT COUNT("points") FROM "campeonato_paulista" WHERE "difference"='2' AND "position"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the highest number of points for a position less than 3 and less than 1 loss? <|assistant|> SELECT MAX("points") FROM "campeonato_paulista" WHERE "position"<3 AND "lost"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "premier_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: Which date's attendance was more than 39,058 with an opponent of Motherwell? <|assistant|> SELECT "date" FROM "premier_division" WHERE "attendance">'39,058' AND "opponent"='motherwell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round_ii" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: In the round that had a 2nd leg score of 0-2, what did they score for the 1st leg? <|assistant|> SELECT "1st_leg" FROM "preliminary_round_ii" WHERE "2nd_leg"='0-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round_ii" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: When Estudiantes was team #2, what was their agg. value? <|assistant|> SELECT "agg" FROM "preliminary_round_ii" WHERE "team_num2"='estudiantes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round_ii" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Who played against TSV bayer 04 leverkusen when they were team #1? <|assistant|> SELECT "2nd_leg" FROM "preliminary_round_ii" WHERE "team_num1"='tsv bayer 04 leverkusen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round_ii" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Who played against Hapoel tel aviv when they were team #1? <|assistant|> SELECT "team_num2" FROM "preliminary_round_ii" WHERE "team_num1"='hapoel tel aviv';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" text, "team" text, "conf" text, "conf_finish" text, "div" text, "div_finish" text, "awards" text, "head_coach" text ); Question: what is the division in the western conference that finished 2nd in their division under rick adelman? <|assistant|> SELECT "div" FROM "seasons" WHERE "conf"='western' AND "div_finish"='2nd' AND "head_coach"='rick adelman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bafa_national_leagues" ( "team" text, "location" text, "years_in_senior_adult_league" text, "2013_bafa_adult_division" text, "2013_bafa_adult_flag_division" text, "2013_bafa_junior_division" text, "other_teams" text ); Question: What is the 2013 BAFA adult flag division in Aylesbury? <|assistant|> SELECT "2013_bafa_adult_flag_division" FROM "bafa_national_leagues" WHERE "location"='aylesbury';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bafa_national_leagues" ( "team" text, "location" text, "years_in_senior_adult_league" text, "2013_bafa_adult_division" text, "2013_bafa_adult_flag_division" text, "2013_bafa_junior_division" text, "other_teams" text ); Question: What is the 2013 BAFA junior division with a 2013 BAFA adult division in national central in the Birkenhead location? <|assistant|> SELECT "2013_bafa_junior_division" FROM "bafa_national_leagues" WHERE "2013_bafa_adult_division"='national central' AND "location"='birkenhead';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Records from Kontor Records from the catalog of Kontor446 was released in what format? <|assistant|> SELECT "format" FROM "release_history" WHERE "label"='kontor records' AND "catalog"='kontor446';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What date was the release that was Wrongun as the label? <|assistant|> SELECT "date" FROM "release_history" WHERE "label"='wrongun';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Catalog Nebdj068 was released when? <|assistant|> SELECT "date" FROM "release_history" WHERE "catalog"='nebdj068';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: In what format was the release from the Nebt068 catalog on April 11, 2005 in? <|assistant|> SELECT "format" FROM "release_history" WHERE "date"='april 11, 2005' AND "catalog"='nebt068';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What region has the date of 2005 and Playground Music Scandinavia as a label? <|assistant|> SELECT "region" FROM "release_history" WHERE "date"='2005' AND "label"='playground music scandinavia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: What is the Result with a Venue that is filbert street? <|assistant|> SELECT "result" FROM "first_division" WHERE "venue"='filbert street';<|endoftext|>
<|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 did the Texans play BYE? <|assistant|> SELECT "date" FROM "schedule" WHERE "opponent"='bye';<|endoftext|>
<|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: Who did the Texans play when there were 70,724 people in attendance? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "attendance"='70,724';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_taxa" ( "name" text, "novelty" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text ); Question: Who has the status of jr synonym of protosialis casca? <|assistant|> SELECT "novelty" FROM "new_taxa" WHERE "status"='jr synonym of protosialis casca';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_taxa" ( "name" text, "novelty" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text ); Question: Which writer is named mongolbittacus? <|assistant|> SELECT "authors" FROM "new_taxa" WHERE "name"='mongolbittacus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the score of the game that had 359 people in attendance? <|assistant|> SELECT "score" FROM "second_round" WHERE "attendance"='359';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the home team of the game that ended with a score of 0-1? <|assistant|> SELECT "home_team" FROM "second_round" WHERE "score"='0-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: How many people attended Match No. 31? <|assistant|> SELECT "attendance" FROM "second_round" WHERE "match_no"='31';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: Who is the Home Team for Match No. 23? <|assistant|> SELECT "home_team" FROM "second_round" WHERE "match_no"='23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "match_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the score of the game with 1,125 people in attendance? <|assistant|> SELECT "score" FROM "second_round" WHERE "attendance"='1,125';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_channels" ( "channel" text, "country" text, "type" text, "launched" text, "description" text ); Question: What is the Country with a Launched that is april 3, 1990? <|assistant|> SELECT "country" FROM "tv_channels" WHERE "launched"='april 3, 1990';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tv_channels" ( "channel" text, "country" text, "type" text, "launched" text, "description" text ); Question: What is the Launched from a Country that is spain? <|assistant|> SELECT "launched" FROM "tv_channels" WHERE "country"='spain';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_ministers_for_small_business" ( "order" real, "minister" text, "party_affiliation" text, "prime_minister" text, "term_start" text, "term_end" text, "term_in_office" text ); Question: What is the lowest order with a Minister that is joe hockey? <|assistant|> SELECT MIN("order") FROM "list_of_ministers_for_small_business" WHERE "minister"='joe hockey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which Years in Orlando has a Nationality of united states, and a Player of doug overton? <|assistant|> SELECT "years_in_orlando" FROM "o" WHERE "nationality"='united states' AND "player"='doug overton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham? <|assistant|> SELECT "years_in_orlando" FROM "o" WHERE "nationality"='united states' AND "position"='center' AND "player"='jawann oldham';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which Years in Orlando has a Player of bo outlaw? <|assistant|> SELECT "years_in_orlando" FROM "o" WHERE "player"='bo outlaw';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which Years in Orlando has a School/Club Team of seattle? <|assistant|> SELECT "years_in_orlando" FROM "o" WHERE "school_club_team"='seattle';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which Nationality has a Position of center, and a Years in Orlando of 2010–2012? <|assistant|> SELECT "nationality" FROM "o" WHERE "position"='center' AND "years_in_orlando"='2010–2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); Question: Which Nationality has a School/Club Team of seattle? <|assistant|> SELECT "nationality" FROM "o" WHERE "school_club_team"='seattle';<|endoftext|>
<|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: When did they play at Candlestick Park? <|assistant|> SELECT "date" FROM "schedule" WHERE "game_site"='candlestick park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average number of top-10s for events under 57 and 0 top-5s? <|assistant|> SELECT AVG("top_10") FROM "summary" WHERE "events"<57 AND "top_5"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average number of top-10s for events with more than 12 cuts made and 0 wins? <|assistant|> SELECT AVG("top_10") FROM "summary" WHERE "cuts_made">12 AND "wins"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average number of top-25s for events with less than 2 top-10s? <|assistant|> SELECT AVG("top_25") FROM "summary" WHERE "top_10"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" text, "works_number" text ); Question: Which Works number has a Builder of canadian engine & machinery company, and a Number smaller than 3? <|assistant|> SELECT "works_number" FROM "locomotives" WHERE "builder"='canadian engine & machinery company' AND "number"<3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" text, "works_number" text ); Question: Which Works number has a Builder of avonside engine company, and a Type of 4-6-0, and a Number smaller than 12, and a Date of december 1871? <|assistant|> SELECT "works_number" FROM "locomotives" WHERE "builder"='avonside engine company' AND "type"='4-6-0' AND "number"<12 AND "date"='december 1871';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" text, "works_number" text ); Question: Which Type has a Builder of avonside engine company, and a Number of 9? <|assistant|> SELECT "type" FROM "locomotives" WHERE "builder"='avonside engine company' AND "number"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" text, "works_number" text ); Question: Which Date has a Type of 4-6-0, and a Number larger than 11? <|assistant|> SELECT "date" FROM "locomotives" WHERE "type"='4-6-0' AND "number">11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives" ( "number" real, "builder" text, "type" text, "date" text, "works_number" text ); Question: Which Builder has a Date of early 1871? <|assistant|> SELECT "builder" FROM "locomotives" WHERE "date"='early 1871';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What ist he Home with a Score that is 42-64? <|assistant|> SELECT "home" FROM "round_four" WHERE "score"='42-64';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What is the Home with a Time that is 12:00? <|assistant|> SELECT "home" FROM "round_four" WHERE "time"='12:00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_four" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What is the Ground with a Score that is 49-80? <|assistant|> SELECT "ground" FROM "round_four" WHERE "score"='49-80';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text ); Question: What's the smallest March when the record is 22-12-6? <|assistant|> SELECT MIN("march") FROM "schedule_and_results" WHERE "record"='22-12-6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text ); Question: Which record's march was 26? <|assistant|> SELECT "record" FROM "schedule_and_results" WHERE "march"=26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What is the Lost with a Losing Bonus that is 4? <|assistant|> SELECT "lost" FROM "league_table" WHERE "losing_bonus"='4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What is the Points with a Tries For that is 21? <|assistant|> SELECT "points" FROM "league_table" WHERE "tries_for"='21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: What is the Lost with a Try Bonus that is try bonus? <|assistant|> SELECT "lost" FROM "league_table" WHERE "try_bonus"='try bonus';<|endoftext|>
<|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 highest Total for the rank 12, and gold less than 0? <|assistant|> SELECT MAX("total") FROM "medal_table" WHERE "rank"='12' AND "gold"<0;<|endoftext|>