text
stringlengths
310
1.28k
<|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 total number of Total when the Silver is less than 2, and a Bronze is less than 0? <|assistant|> SELECT COUNT("total") FROM "medal_table" WHERE "silver"<2 AND "bronze"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delaware_ice_hockey_teams" ( "school" text, "nickname" text, "colors" text, "league" text, "class" text, "division" text ); Question: What is the nickname of the team that has the colors blue and gold? <|assistant|> SELECT "nickname" FROM "delaware_ice_hockey_teams" WHERE "colors"='blue and gold';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delaware_ice_hockey_teams" ( "school" text, "nickname" text, "colors" text, "league" text, "class" text, "division" text ); Question: What is the nickname of the team that has the colors black and gold? <|assistant|> SELECT "nickname" FROM "delaware_ice_hockey_teams" WHERE "colors"='black and gold';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delaware_ice_hockey_teams" ( "school" text, "nickname" text, "colors" text, "league" text, "class" text, "division" text ); Question: What is the nickname of the team in division 2? <|assistant|> SELECT "nickname" FROM "delaware_ice_hockey_teams" WHERE "division"='division 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delaware_ice_hockey_teams" ( "school" text, "nickname" text, "colors" text, "league" text, "class" text, "division" text ); Question: What is the class of the Middletown High School team that is in the DSHA league? <|assistant|> SELECT "class" FROM "delaware_ice_hockey_teams" WHERE "league"='dsha' AND "school"='middletown high school';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delaware_ice_hockey_teams" ( "school" text, "nickname" text, "colors" text, "league" text, "class" text, "division" text ); Question: What school is the team from that has the colors blue and gold? <|assistant|> SELECT "school" FROM "delaware_ice_hockey_teams" WHERE "colors"='blue and gold';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delaware_ice_hockey_teams" ( "school" text, "nickname" text, "colors" text, "league" text, "class" text, "division" text ); Question: What are the colors for the division 2 team with the nickname, the seahawks? <|assistant|> SELECT "colors" FROM "delaware_ice_hockey_teams" WHERE "division"='division 2' AND "nickname"='seahawks';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "date" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); Question: Who's the Centerfold model with a Pictorials of adrianne curry, girls of tuscany? <|assistant|> SELECT "centerfold_model" FROM "2006" WHERE "pictorials"='adrianne curry, girls of tuscany';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "date" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); Question: Which Date has a 20 Questions of jason lee? <|assistant|> SELECT "date" FROM "2006" WHERE "20_questions"='jason lee';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "date" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); Question: Which Interview subject has a Pictorials of vida guerra? <|assistant|> SELECT "interview_subject" FROM "2006" WHERE "pictorials"='vida guerra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "date" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); Question: Which Date has a Pictorials of mercedes mcnab, girls of hawaiian tropic? <|assistant|> SELECT "date" FROM "2006" WHERE "pictorials"='mercedes mcnab, girls of hawaiian tropic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "date" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); Question: Which Pictorials has a 20 Questions of eva longoria? <|assistant|> SELECT "pictorials" FROM "2006" WHERE "20_questions"='eva longoria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2006" ( "date" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); Question: Which Interview subject has a Centerfold model of athena lundberg? <|assistant|> SELECT "interview_subject" FROM "2006" WHERE "centerfold_model"='athena lundberg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_general_election" ( "party" text, "candidate" text, "votes" real, "pct_share" text, "change" text ); Question: What is the total number of votes from the Labour Party? <|assistant|> SELECT COUNT("votes") FROM "2005_general_election" WHERE "party"='labour';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_general_election" ( "party" text, "candidate" text, "votes" real, "pct_share" text, "change" text ); Question: Which party has less than 11,484 votes? <|assistant|> SELECT "party" FROM "2005_general_election" WHERE "votes"<'11,484';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "d" ( "name" text, "position" text, "number" real, "season" text, "acquisition_via" text ); Question: How many numbers had Brandon Dean as a name? <|assistant|> SELECT SUM("number") FROM "d" WHERE "name"='brandon dean';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number" ( "singular" text, "singular_gender" text, "plural" text, "plural_gender" text, "meaning" text ); Question: What is the singular for the Meaning of night? <|assistant|> SELECT "singular" FROM "number" WHERE "meaning"='night';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number" ( "singular" text, "singular_gender" text, "plural" text, "plural_gender" text, "meaning" text ); Question: What is the plural for the Meaning of night? <|assistant|> SELECT "plural" FROM "number" WHERE "meaning"='night';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number" ( "singular" text, "singular_gender" text, "plural" text, "plural_gender" text, "meaning" text ); Question: What is the plural if the singular is nyaqot? <|assistant|> SELECT "plural" FROM "number" WHERE "singular"='nyaqot';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number" ( "singular" text, "singular_gender" text, "plural" text, "plural_gender" text, "meaning" text ); Question: What is the plural if the meaning is python and the plural gender is n? <|assistant|> SELECT "plural" FROM "number" WHERE "plural_gender"='n' AND "meaning"='python';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number" ( "singular" text, "singular_gender" text, "plural" text, "plural_gender" text, "meaning" text ); Question: What is the plural if the singular is awu? <|assistant|> SELECT "plural" FROM "number" WHERE "singular"='awu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "number" ( "singular" text, "singular_gender" text, "plural" text, "plural_gender" text, "meaning" text ); Question: What is the singular if the plural is xweer(a)du? <|assistant|> SELECT "singular" FROM "number" WHERE "plural"='xweer(a)du';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real ); Question: What is the Total againsts for the Sant'Anna team with a position number greater than 10? <|assistant|> SELECT COUNT("against") FROM "laf_s_campeonato_paulista" WHERE "team"='sant''anna' AND "position">10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real ); Question: What is the total number of games played with 3 losses, 1 or more drawns and 10 or fewer points? <|assistant|> SELECT SUM("played") FROM "laf_s_campeonato_paulista" WHERE "lost"=3 AND "drawn">1 AND "points"<10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real ); Question: What is the average lost of games played of more than 9? <|assistant|> SELECT AVG("lost") FROM "laf_s_campeonato_paulista" WHERE "played">9;<|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 is the lowest number of bronze medals for Great Britain with more than 2 medals total? <|assistant|> SELECT MIN("bronze") FROM "medals_table" WHERE "nation"='great britain' AND "total">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_lyga_zone_south" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What is the lowest wins the club with a position of 4 and less than 4 losses has? <|assistant|> SELECT MIN("wins") FROM "2_lyga_zone_south" WHERE "position"=4 AND "loses"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_lyga_zone_south" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What is the sum of the points of club nevėžis-2 kėdainiai, which has more than 35 goals conceded? <|assistant|> SELECT SUM("points") FROM "2_lyga_zone_south" WHERE "club"='nevėžis-2 kėdainiai' AND "goals_conceded">35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_lyga_zone_south" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What is the total number of games played of the team with 4 wins and a position less than 9? <|assistant|> SELECT COUNT("games_played") FROM "2_lyga_zone_south" WHERE "wins"=4 AND "position"<9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2_lyga_zone_south" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What is the highest number of wins of the team with a position less than 1? <|assistant|> SELECT MAX("wins") FROM "2_lyga_zone_south" WHERE "position"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the total losses against 1412, and 10 wins, but draws less than 0? <|assistant|> SELECT SUM("losses") FROM "2011_ladder" WHERE "against">1412 AND "wins"=10 AND "draws"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the highest draw against 2161? <|assistant|> SELECT MAX("draws") FROM "2011_ladder" WHERE "against">2161;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the total number of losses against 1412, and Byes less than 2? <|assistant|> SELECT COUNT("losses") FROM "2011_ladder" WHERE "against"=1412 AND "byes"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the lowest wins with less than 2 Byes? <|assistant|> SELECT MIN("wins") FROM "2011_ladder" WHERE "byes"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the highest score with 0 wins and more than 2 Byes? <|assistant|> SELECT MAX("against") FROM "2011_ladder" WHERE "wins"=0 AND "byes">2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_ladder" ( "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the sum of wins against the smaller score 1148? <|assistant|> SELECT SUM("wins") FROM "2011_ladder" WHERE "against"<1148;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" text, "goals" real ); Question: Who had a rank larger than 7, less than 305 goals, and 418 matches? <|assistant|> SELECT "name" FROM "list_of_top_association_football_goal_sc" WHERE "rank">7 AND "goals"<305 AND "matches"='418';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" text, "goals" real ); Question: How many goals ranked 6? <|assistant|> SELECT COUNT("goals") FROM "list_of_top_association_football_goal_sc" WHERE "rank"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "matches" text, "goals" real ); Question: How many matches had 360 goals? <|assistant|> SELECT "matches" FROM "list_of_top_association_football_goal_sc" WHERE "goals"=360;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "original_london_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: What is the Nominee from the Category that is best costume design? <|assistant|> SELECT "nominee" FROM "original_london_production" WHERE "category"='best costume design';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southeast_asian_games" ( "country" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Total has a Bronze larger than 12, and a Silver larger than 772, and a Country of thailand? <|assistant|> SELECT SUM("total") FROM "southeast_asian_games" WHERE "bronze">12 AND "silver">772 AND "country"='thailand';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southeast_asian_games" ( "country" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Gold has a Total of 2998, and a Bronze smaller than 1191? <|assistant|> SELECT AVG("gold") FROM "southeast_asian_games" WHERE "total"=2998 AND "bronze"<1191;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southeast_asian_games" ( "country" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Country of malaysia, and a Total smaller than 2644? <|assistant|> SELECT SUM("bronze") FROM "southeast_asian_games" WHERE "country"='malaysia' AND "total"<2644;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "southeast_asian_games" ( "country" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Silver has a Bronze smaller than 618, and a Country of laos? <|assistant|> SELECT "silver" FROM "southeast_asian_games" WHERE "bronze"<618 AND "country"='laos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the Score with a Team that is @ portland? <|assistant|> SELECT "score" FROM "game_log" WHERE "team"='@ portland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the High points with a Date that is january 20? <|assistant|> SELECT "high_points" FROM "game_log" WHERE "date"='january 20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: Who was the home team that the Clippers played? <|assistant|> SELECT "home" FROM "november" WHERE "visitor"='clippers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: What's the record of the game where Lebron James (16) was the leading scorer? <|assistant|> SELECT "record" FROM "november" WHERE "leading_scorer"='lebron james (16)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "irn_bru_second_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: When the venue was A and the date was 2 january 2008, what was the average attendance? <|assistant|> SELECT AVG("attendance") FROM "irn_bru_second_division" WHERE "venue"='a' AND "date"='2 january 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "irn_bru_second_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: On 10 November 2007, what was the venue? <|assistant|> SELECT "venue" FROM "irn_bru_second_division" WHERE "date"='10 november 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "irn_bru_second_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: On what date was the opponent Ayr United, the result 1–0, and the attendance more than 668? <|assistant|> SELECT "date" FROM "irn_bru_second_division" WHERE "result"='1–0' AND "attendance">668 AND "opponent"='ayr united';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "irn_bru_second_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: When the opponent was Brechin City and the attendance was 656, what was the Result? <|assistant|> SELECT "result" FROM "irn_bru_second_division" WHERE "opponent"='brechin city' AND "attendance"=656;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "irn_bru_second_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: On 1 september 2007, at the Venue A, what was the average attendance? <|assistant|> SELECT AVG("attendance") FROM "irn_bru_second_division" WHERE "venue"='a' AND "date"='1 september 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "venue" text, "winner" text, "country" text, "score" text ); Question: Which Score has a Country of england, and a Year larger than 1971? <|assistant|> SELECT "score" FROM "winners" WHERE "country"='england' AND "year">1971;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "venue" text, "winner" text, "country" text, "score" text ); Question: What is Scotland's winner? <|assistant|> SELECT "winner" FROM "winners" WHERE "country"='scotland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "time" text, "opponent" text, "result" text, "game_site" text, "record" text ); Question: What time was the game in week 2? <|assistant|> SELECT "time" FROM "regular_season" WHERE "week"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "time" text, "opponent" text, "result" text, "game_site" text, "record" text ); Question: What was the score of the game on September 14, 2008? <|assistant|> SELECT "result" FROM "regular_season" WHERE "date"='september 14, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "time" text, "opponent" text, "result" text, "game_site" text, "record" text ); Question: What was the final score of the game on November 23, 2008? <|assistant|> SELECT "result" FROM "regular_season" WHERE "date"='november 23, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usage" ( "species" text, "indole" text, "methyl_red" text, "voges_proskauer" text, "citrate" text ); Question: Which species has a Voges-Proskauer reading of negative and an indole reading of negative? <|assistant|> SELECT "species" FROM "usage" WHERE "voges_proskauer"='negative' AND "indole"='negative';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usage" ( "species" text, "indole" text, "methyl_red" text, "voges_proskauer" text, "citrate" text ); Question: What is the Voges-Proskauer reading for proteus mirabilis? <|assistant|> SELECT "voges_proskauer" FROM "usage" WHERE "species"='proteus mirabilis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usage" ( "species" text, "indole" text, "methyl_red" text, "voges_proskauer" text, "citrate" text ); Question: What is the methyl red reading for the species that tests positive for indole? <|assistant|> SELECT "methyl_red" FROM "usage" WHERE "indole"='positive';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "usage" ( "species" text, "indole" text, "methyl_red" text, "voges_proskauer" text, "citrate" text ); Question: What is the methyl red reading for proteus mirabilis? <|assistant|> SELECT "methyl_red" FROM "usage" WHERE "species"='proteus mirabilis';<|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 silver medals for Russia with more than 5 bronze medals? <|assistant|> SELECT MAX("silver") FROM "medal_table" WHERE "nation"='russia' AND "bronze">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "worlds_cultures" ( "television_service" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What package/option has sky arte hd as the television service? <|assistant|> SELECT "package_option" FROM "worlds_cultures" WHERE "television_service"='sky arte hd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "worlds_cultures" ( "television_service" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What language has NO, as the HDTV, sky famiglia as the package/option, and national geographic channel as the television service? <|assistant|> SELECT "language" FROM "worlds_cultures" WHERE "hdtv"='no' AND "package_option"='sky famiglia' AND "television_service"='national geographic channel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "worlds_cultures" ( "television_service" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What language has sky famiglia as the package/option? <|assistant|> SELECT "language" FROM "worlds_cultures" WHERE "package_option"='sky famiglia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "worlds_cultures" ( "television_service" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What language has viaggi as the content? <|assistant|> SELECT "language" FROM "worlds_cultures" WHERE "content"='viaggi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "worlds_cultures" ( "television_service" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What television service has italian as the language, and sky famiglia as the package option? <|assistant|> SELECT "television_service" FROM "worlds_cultures" WHERE "language"='italian' AND "package_option"='sky famiglia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "worlds_cultures" ( "television_service" text, "language" text, "content" text, "hdtv" text, "package_option" text ); Question: What package/option has documentaries as the content, yes as the HDTV, and a television service of history hd? <|assistant|> SELECT "package_option" FROM "worlds_cultures" WHERE "content"='documentaries' AND "hdtv"='yes' AND "television_service"='history hd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text, "time" text, "location" text ); Question: What was the resolution for the match that ended by Submission (armbar)? <|assistant|> SELECT "res" FROM "mixed_martial_arts_record" WHERE "method"='submission (armbar)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text, "time" text, "location" text ); Question: What was the total time for the match that ocurred in Round 3 with opponent Keith Wisniewski? <|assistant|> SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"='3' AND "opponent"='keith wisniewski';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text, "time" text, "location" text ); Question: Where did the match with opponent Laverne Clark occur? <|assistant|> SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='laverne clark';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_craters" ( "gill" text, "latitude" text, "longitude" text, "diameter_km" text, "diameter_mi" text ); Question: What is the Diameter (mi) when the Longitude is 79.8° e? <|assistant|> SELECT "diameter_mi" FROM "satellite_craters" WHERE "longitude"='79.8° e';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_craters" ( "gill" text, "latitude" text, "longitude" text, "diameter_km" text, "diameter_mi" text ); Question: What is the Latitude when the Diameter (km) is 13km, and the Longitude is 72.9° e? <|assistant|> SELECT "latitude" FROM "satellite_craters" WHERE "diameter_km"='13km' AND "longitude"='72.9° e';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_craters" ( "gill" text, "latitude" text, "longitude" text, "diameter_km" text, "diameter_mi" text ); Question: What shows for the Longitude when there is a Diameter (km) of 31km? <|assistant|> SELECT "longitude" FROM "satellite_craters" WHERE "diameter_km"='31km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_craters" ( "gill" text, "latitude" text, "longitude" text, "diameter_km" text, "diameter_mi" text ); Question: What shows for the Diameter (mi) when the Gill is g? <|assistant|> SELECT "diameter_mi" FROM "satellite_craters" WHERE "gill"='g';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_craters" ( "gill" text, "latitude" text, "longitude" text, "diameter_km" text, "diameter_mi" text ); Question: What shows for the Diameter (km) when the Diameter (mi) is 8mi, and a Gill is e? <|assistant|> SELECT "diameter_km" FROM "satellite_craters" WHERE "diameter_mi"='8mi' AND "gill"='e';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "satellite_craters" ( "gill" text, "latitude" text, "longitude" text, "diameter_km" text, "diameter_mi" text ); Question: What shows as the Diameter (km) when the Diameter (mi) is 5mi? <|assistant|> SELECT "diameter_km" FROM "satellite_craters" WHERE "diameter_mi"='5mi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season_players_current_to_round_19_" ( "player" text, "squad_no" real, "appearances" real, "tries" real, "goals" real, "f_goals" real, "points" real, "contract_ends" real ); Question: What was the lowest squad with 0 goals? <|assistant|> SELECT MIN("squad_no") FROM "2008_season_players_current_to_round_19_" WHERE "goals"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_cincinnati_bengals_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the number for overall for angelo craig? <|assistant|> SELECT COUNT("overall") FROM "2008_cincinnati_bengals_draft_selections" WHERE "player"='angelo craig';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_cincinnati_bengals_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the Round when there is an overall of 246? <|assistant|> SELECT "round" FROM "2008_cincinnati_bengals_draft_selections" WHERE "overall"=246;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_cincinnati_bengals_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the lowest Overall for the wide receiver in a round less than 2? <|assistant|> SELECT MIN("overall") FROM "2008_cincinnati_bengals_draft_selections" WHERE "position"='wide receiver' AND "round"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_cincinnati_bengals_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text ); Question: What is the Player from appalachian state? <|assistant|> SELECT "player" FROM "2008_cincinnati_bengals_draft_selections" WHERE "college"='appalachian state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "date" text, "title" text, "director" text, "producer" text, "production_cost" text, "singapore_gross" text ); Question: What is the Production Cost with a Date that is february 2000? <|assistant|> SELECT "production_cost" FROM "2000" WHERE "date"='february 2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "date" text, "title" text, "director" text, "producer" text, "production_cost" text, "singapore_gross" text ); Question: What is the Singapore Gross with a Title that is 2000? <|assistant|> SELECT "singapore_gross" FROM "2000" WHERE "title"='2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "date" text, "title" text, "director" text, "producer" text, "production_cost" text, "singapore_gross" text ); Question: What is the Singapore Gross with a Producer that is 2000? <|assistant|> SELECT "singapore_gross" FROM "2000" WHERE "producer"='2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "name" text, "date_of_birth" text, "height" real, "weight" real, "spike" real, "block" real ); Question: What is Average Height, when Weight is less than 93, when Spike is less than 336, and when Block is 305? <|assistant|> SELECT AVG("height") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "weight"<93 AND "spike"<336 AND "block"=305;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "name" text, "date_of_birth" text, "height" real, "weight" real, "spike" real, "block" real ); Question: What is Name, when Block is 320, when Spike is more than 336, and when Date of Birth is 12.10.1978? <|assistant|> SELECT "name" FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "block"=320 AND "spike">336 AND "date_of_birth"='12.10.1978';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "name" text, "date_of_birth" text, "height" real, "weight" real, "spike" real, "block" real ); Question: What is the total number of Block(s), when Spike is less than 341, when Weight is greater than 82, and when Name is Theodoros Baev? <|assistant|> SELECT COUNT("block") FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "spike"<341 AND "weight">82 AND "name"='theodoros baev';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" ( "name" text, "date_of_birth" text, "height" real, "weight" real, "spike" real, "block" real ); Question: What is Name, when Spike is greater than 343, and when Date of Birth is 02.03.1973? <|assistant|> SELECT "name" FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "spike">343 AND "date_of_birth"='02.03.1973';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_14" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the date of the Paco Rabanne Open de France? <|assistant|> SELECT "date" FROM "european_tour_wins_14" WHERE "tournament"='paco rabanne open de france';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_tour_wins_14" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: On which date did Ian Mosey finish runner-up? <|assistant|> SELECT "date" FROM "european_tour_wins_14" WHERE "runner_s_up"='ian mosey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_d" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What set 2 has a set 4 of 21-25? <|assistant|> SELECT "set_2" FROM "results_pool_d" WHERE "set_4"='21-25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_d" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: What was the score when set 3 was 26-28? <|assistant|> SELECT "score" FROM "results_pool_d" WHERE "set_3"='26-28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_pool_d" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" text, "set_5" text, "total" text ); Question: When was set 3 of 18-25? <|assistant|> SELECT "date" FROM "results_pool_d" WHERE "set_3"='18-25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "england_in_australia_1907_8" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who was the away captain with a result of Eng by 1 wkt? <|assistant|> SELECT "away_captain" FROM "england_in_australia_1907_8" WHERE "result"='eng by 1 wkt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "england_in_australia_1907_8" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: On what date was the result Eng by 1 wkt? <|assistant|> SELECT "date" FROM "england_in_australia_1907_8" WHERE "result"='eng by 1 wkt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "england_in_australia_1907_8" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: On what date was Arthur Jones the away captain at Sydney Cricket Ground? <|assistant|> SELECT "date" FROM "england_in_australia_1907_8" WHERE "away_captain"='arthur jones' AND "venue"='sydney cricket ground';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "name" text, "height_cm" real, "weight_kg" real, "birthdate" text, "birthplace" text, "1963_1964_team" text ); Question: What was the birthplace of the player who was part of the Blind River Hockey Club team between 1963-1964? <|assistant|> SELECT "birthplace" FROM "list_of_united_states_national_ice_hocke" WHERE "1963_1964_team"='blind river hockey club';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spokespersons" ( "draw" real, "artist" text, "song" text, "first_vote" real, "place" real ); Question: What is the highest place for song that was draw number 6? <|assistant|> SELECT MAX("place") FROM "spokespersons" WHERE "draw"=6;<|endoftext|>