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