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 \"round_four\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: What Nationality is Dave Hynes?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"round_four\" WHERE \"player\"='dave hynes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" text,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: The Estevan Bruins (WCHL) are affiliated with what NHL team?"
},
{
"role": "assistant",
"content": "SELECT \"nhl_team\" FROM \"round_four\" WHERE \"college_junior_club_team\"='estevan bruins (wchl)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"head_to_head_records_against_other_count\" (\n \"games\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_differential\" text\n);\n\nQuestion: what's the number of games with a Goals Against smaller than 14, and a Wins larger than 1, and a Draws smaller than 2, and a Goals For of 3?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"games\") FROM \"head_to_head_records_against_other_count\" WHERE \"goals_against\"<14 AND \"wins\">1 AND \"draws\"<2 AND \"goals_for\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"head_to_head_records_against_other_count\" (\n \"games\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_differential\" text\n);\n\nQuestion: what's the total win count for Games smaller than 7, and a Goals For larger than 2, and a Goals Against smaller than 6, and Draws of 1"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wins\") FROM \"head_to_head_records_against_other_count\" WHERE \"games\"<7 AND \"goals_for\">2 AND \"goals_against\"<6 AND \"draws\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"head_to_head_records_against_other_count\" (\n \"games\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_differential\" text\n);\n\nQuestion: for a Goals Against smaller than 9, and a Goal Differential of 0, and a Draws smaller than 2, and a Wins of 1, what's the goal total?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"goals_for\") FROM \"head_to_head_records_against_other_count\" WHERE \"goals_against\"<9 AND \"goal_differential\"='0' AND \"draws\"<2 AND \"wins\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_9_8_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What tournament happened on 12 november 2006?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_9_8_1\" WHERE \"date\"='12 november 2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_9_8_1\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: what was the score on 6 june 2010?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"singles_9_8_1\" WHERE \"date\"='6 june 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"belfast_and_county_down_railway\" (\n \"type\" text,\n \"fleet_numbers\" text,\n \"quantity_made\" text,\n \"manufacturer\" text,\n \"date_made\" text\n);\n\nQuestion: When was the railmotor made?"
},
{
"role": "assistant",
"content": "SELECT \"date_made\" FROM \"belfast_and_county_down_railway\" WHERE \"type\"='railmotor';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"belfast_and_county_down_railway\" (\n \"type\" text,\n \"fleet_numbers\" text,\n \"quantity_made\" text,\n \"manufacturer\" text,\n \"date_made\" text\n);\n\nQuestion: What are the fleet number for the 4-6-4t locomotive?"
},
{
"role": "assistant",
"content": "SELECT \"fleet_numbers\" FROM \"belfast_and_county_down_railway\" WHERE \"type\"='4-6-4t';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_results\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"fast_laps\" text,\n \"points\" text,\n \"pos\" text\n);\n\nQuestion: How many fast laps have 0 points in the World Series by Nissan?"
},
{
"role": "assistant",
"content": "SELECT \"fast_laps\" FROM \"career_results\" WHERE \"points\"='0' AND \"series\"='world series by nissan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_results\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"fast_laps\" text,\n \"points\" text,\n \"pos\" text\n);\n\nQuestion: How many fast laps are in 6 races with 30 points in the World Series by Nissan?"
},
{
"role": "assistant",
"content": "SELECT \"fast_laps\" FROM \"career_results\" WHERE \"series\"='world series by nissan' AND \"races\"='6' AND \"points\"='30';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_results\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"fast_laps\" text,\n \"points\" text,\n \"pos\" text\n);\n\nQuestion: Which team has the points category of test driver?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"career_results\" WHERE \"points\"='test driver';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_results\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"fast_laps\" text,\n \"points\" text,\n \"pos\" text\n);\n\nQuestion: What is the position with 0 points in Season of 2007\u201308?"
},
{
"role": "assistant",
"content": "SELECT \"pos\" FROM \"career_results\" WHERE \"points\"='0' AND \"season\"='2007\u201308';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"democratic_primary\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"dianne_feinstein\" text,\n \"jerry_brown\" text,\n \"antonio_villaraigosa\" text,\n \"gavin_newsom\" text,\n \"john_garamendi\" text,\n \"jack_o_connell\" text,\n \"steve_westly\" text,\n \"bill_lockyer\" text\n);\n\nQuestion: tell me the Dates administered that sees a Steve Westly* of \u2013\u2013, an Antonio Villaraigosa* of \u2013\u2013, and 47% for jerry brown."
},
{
"role": "assistant",
"content": "SELECT \"dates_administered\" FROM \"democratic_primary\" WHERE \"steve_westly\"='\u2013\u2013' AND \"antonio_villaraigosa\"='\u2013\u2013' AND \"jerry_brown\"='47%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"democratic_primary\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"dianne_feinstein\" text,\n \"jerry_brown\" text,\n \"antonio_villaraigosa\" text,\n \"gavin_newsom\" text,\n \"john_garamendi\" text,\n \"jack_o_connell\" text,\n \"steve_westly\" text,\n \"bill_lockyer\" text\n);\n\nQuestion: tell me the Antonio Villaraigosa* that has a Steve Westly* of \u2013\u2013, and 47% for jerry brown."
},
{
"role": "assistant",
"content": "SELECT \"antonio_villaraigosa\" FROM \"democratic_primary\" WHERE \"steve_westly\"='\u2013\u2013' AND \"jerry_brown\"='47%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"motorcycle_grand_prix_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: Name the least year for wins more than 0"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"motorcycle_grand_prix_results\" WHERE \"wins\">0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"motorcycle_grand_prix_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: Name the least wins for 6 points"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"motorcycle_grand_prix_results\" WHERE \"points\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"motorcycle_grand_prix_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: Name the wins for 1963 bultaco"
},
{
"role": "assistant",
"content": "SELECT \"wins\" FROM \"motorcycle_grand_prix_results\" WHERE \"year\"=1963 AND \"team\"='bultaco';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_winners\" (\n \"year\" real,\n \"film\" text,\n \"director\" text,\n \"nationality_of_director\" text,\n \"award\" text\n);\n\nQuestion: Year larger than 2008, and a Nationality of director of lebanon is what director?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"prize_winners\" WHERE \"year\">2008 AND \"nationality_of_director\"='lebanon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_winners\" (\n \"year\" real,\n \"film\" text,\n \"director\" text,\n \"nationality_of_director\" text,\n \"award\" text\n);\n\nQuestion: ilm of taukukauppiaat has how many total number of years?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"prize_winners\" WHERE \"film\"='taukukauppiaat';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_winners\" (\n \"year\" real,\n \"film\" text,\n \"director\" text,\n \"nationality_of_director\" text,\n \"award\" text\n);\n\nQuestion: Award of troisi\u00e8me prix, and a Year smaller than 2010, and a Director of jan komasa is what film?"
},
{
"role": "assistant",
"content": "SELECT \"film\" FROM \"prize_winners\" WHERE \"award\"='troisi\u00e8me prix' AND \"year\"<2010 AND \"director\"='jan komasa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"prize_winners\" (\n \"year\" real,\n \"film\" text,\n \"director\" text,\n \"nationality_of_director\" text,\n \"award\" text\n);\n\nQuestion: Film of um sol alaranjado director is what nationality?"
},
{
"role": "assistant",
"content": "SELECT \"nationality_of_director\" FROM \"prize_winners\" WHERE \"film\"='um sol alaranjado';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_colts_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the position for round 5 from alabama state?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"indianapolis_colts_draft_history\" WHERE \"round\"=5 AND \"college\"='alabama state';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_colts_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what is the pick # when overall is more than 131, position is wide receiver and the round is less than 5?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pick_num\") FROM \"indianapolis_colts_draft_history\" WHERE \"overall\">131 AND \"position\"='wide receiver' AND \"round\"<5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_colts_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what is the highest round for anthony gonzalez?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"round\") FROM \"indianapolis_colts_draft_history\" WHERE \"name\"='anthony gonzalez';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_colts_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many times is brannon condren with and overall more than 131 drafted?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"indianapolis_colts_draft_history\" WHERE \"name\"='brannon condren' AND \"overall\">131;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moto_gp_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which rider has the time of +31.426?"
},
{
"role": "assistant",
"content": "SELECT \"rider\" FROM \"moto_gp_classification\" WHERE \"time_retired\"='+31.426';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"moto_gp_classification\" (\n \"rider\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the grid for the rider who rides a Suzuki and has the time of +1:01.894?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"grid\") FROM \"moto_gp_classification\" WHERE \"manufacturer\"='suzuki' AND \"time_retired\"='+1:01.894';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the score for Australia with a place of 4?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"country\"='australia' AND \"place\"='4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the place of To par of e when Arron Oberholser was the player ?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"third_round\" WHERE \"to_par\"='e' AND \"player\"='arron oberholser';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the score with a place of t6 for the player k.j. choi?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"place\"='t6' AND \"player\"='k.j. choi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the country for the player Tiger Woods?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"player\"='tiger woods';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the name of the player with a score of 72-68-70=210?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"third_round\" WHERE \"score\"='72-68-70=210';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the name of the player with t6 as his place and a country of United states?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"third_round\" WHERE \"place\"='t6' AND \"country\"='united states';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"150_yuan\" (\n \"year\" real,\n \"denomination\" text,\n \"reverse\" text,\n \"weight\" text,\n \"diameter\" text,\n \"fineness\" text,\n \"series\" text\n);\n\nQuestion: What is the fineness of the 2008 chinese cuju sport Reverse?"
},
{
"role": "assistant",
"content": "SELECT \"fineness\" FROM \"150_yuan\" WHERE \"year\"=2008 AND \"reverse\"='chinese cuju sport';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"150_yuan\" (\n \"year\" real,\n \"denomination\" text,\n \"reverse\" text,\n \"weight\" text,\n \"diameter\" text,\n \"fineness\" text,\n \"series\" text\n);\n\nQuestion: What's the diameter of the 2006 equestrian Reverse?"
},
{
"role": "assistant",
"content": "SELECT \"diameter\" FROM \"150_yuan\" WHERE \"year\"=2006 AND \"reverse\"='equestrian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"150_yuan\" (\n \"year\" real,\n \"denomination\" text,\n \"reverse\" text,\n \"weight\" text,\n \"diameter\" text,\n \"fineness\" text,\n \"series\" text\n);\n\nQuestion: What denomination was produced in 2006?"
},
{
"role": "assistant",
"content": "SELECT \"denomination\" FROM \"150_yuan\" WHERE \"year\"=2006;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"150_yuan\" (\n \"year\" real,\n \"denomination\" text,\n \"reverse\" text,\n \"weight\" text,\n \"diameter\" text,\n \"fineness\" text,\n \"series\" text\n);\n\nQuestion: What was the fineness prior to 2007?"
},
{
"role": "assistant",
"content": "SELECT \"fineness\" FROM \"150_yuan\" WHERE \"year\"<2007;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"150_yuan\" (\n \"year\" real,\n \"denomination\" text,\n \"reverse\" text,\n \"weight\" text,\n \"diameter\" text,\n \"fineness\" text,\n \"series\" text\n);\n\nQuestion: What does the ii Series weigh?"
},
{
"role": "assistant",
"content": "SELECT \"weight\" FROM \"150_yuan\" WHERE \"series\"='ii series';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What loss has 10-16 as the record?"
},
{
"role": "assistant",
"content": "SELECT \"loss\" FROM \"game_log\" WHERE \"record\"='10-16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the least attendance that has 3-5 as a record?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") FROM \"game_log\" WHERE \"record\"='3-5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the average attendance for the date of april 4?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"attendance\") FROM \"game_log\" WHERE \"date\"='april 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which opponent has april 2 as the date?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"date\"='april 2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_fleet_size\" (\n \"rank\" real,\n \"airline\" text,\n \"country\" text,\n \"fleet_size\" real,\n \"remarks\" text\n);\n\nQuestion: What is the Remark of Airline of Dutch Antilles Express?"
},
{
"role": "assistant",
"content": "SELECT \"remarks\" FROM \"current_fleet_size\" WHERE \"airline\"='dutch antilles express';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"title\" text,\n \"result\" text\n);\n\nQuestion: What Category has a Year that's smaller than 2006, has Result of Nominated, and a Title of Cold Feet?"
},
{
"role": "assistant",
"content": "SELECT \"category\" FROM \"awards_and_nominations\" WHERE \"year\"<2006 AND \"result\"='nominated' AND \"title\"='cold feet';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"title\" text,\n \"result\" text\n);\n\nQuestion: What is recorded as the lowest Year that has the Title of Cold Feet?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"awards_and_nominations\" WHERE \"title\"='cold feet';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"title\" text,\n \"result\" text\n);\n\nQuestion: What Category has a Result of Nominated, Year of 2006, and the Title of Pierrepoint?"
},
{
"role": "assistant",
"content": "SELECT \"category\" FROM \"awards_and_nominations\" WHERE \"result\"='nominated' AND \"year\"=2006 AND \"title\"='pierrepoint';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"title\" text,\n \"result\" text\n);\n\nQuestion: What Title is listed for the Year of 1999?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"awards_and_nominations\" WHERE \"year\"=1999;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"year\" real,\n \"award\" text,\n \"category\" text,\n \"title\" text,\n \"result\" text\n);\n\nQuestion: What is the total number of Year for the Title of The Queen, has an Award of British Academy Film Award, and has a Result of Won?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"awards_and_nominations\" WHERE \"title\"='the queen' AND \"award\"='british academy film award' AND \"result\"='won';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1942\" (\n \"date\" text,\n \"opponent\" text,\n \"city\" text,\n \"result\" text,\n \"score\" text\n);\n\nQuestion: What was the date of the game against Northwestern?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"1942\" WHERE \"opponent\"='northwestern';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1942\" (\n \"date\" text,\n \"opponent\" text,\n \"city\" text,\n \"result\" text,\n \"score\" text\n);\n\nQuestion: Who was the opponent when the city was Louisville?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"1942\" WHERE \"city\"='louisville';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1942\" (\n \"date\" text,\n \"opponent\" text,\n \"city\" text,\n \"result\" text,\n \"score\" text\n);\n\nQuestion: What was the score of the game against Minnesota?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"1942\" WHERE \"opponent\"='minnesota';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: On what date was a friendly competition and a result of 3\u20130?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"competition\"='friendly' AND \"result\"='3\u20130';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: When was the score 1\u20130, and the result 4\u20130?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"score\"='1\u20130' AND \"result\"='4\u20130';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the result at dakar , senegal, on 3 september 2011, and with a Score of 2\u20130?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"international_goals\" WHERE \"venue\"='dakar , senegal' AND \"date\"='3 september 2011' AND \"score\"='2\u20130';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_2\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Which time has a Rank larger than 3, and a Name of andrey kapralov?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"semifinal_2\" WHERE \"rank\">3 AND \"name\"='andrey kapralov';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_2\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: Which Nationality has a Name of igor koleda?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"semifinal_2\" WHERE \"name\"='igor koleda';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"largest_nordic_companies_according_to_fo\" (\n \"rank\" text,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"revenue_billion\" real,\n \"profits_billion\" real,\n \"s_asset_billion\" real,\n \"market_value_billion\" real\n);\n\nQuestion: Where is the headquarters of the getinge group located?"
},
{
"role": "assistant",
"content": "SELECT \"headquarters\" FROM \"largest_nordic_companies_according_to_fo\" WHERE \"company\"='getinge group';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"largest_nordic_companies_according_to_fo\" (\n \"rank\" text,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"revenue_billion\" real,\n \"profits_billion\" real,\n \"s_asset_billion\" real,\n \"market_value_billion\" real\n);\n\nQuestion: How much is the total assets of a company based in Stockholm, Sweden with a market capitalization smaller than 39.8 with revenues greater than 5.8 and profit of 1.1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"s_asset_billion\") FROM \"largest_nordic_companies_according_to_fo\" WHERE \"headquarters\"='stockholm, sweden' AND \"market_value_billion\"<39.8 AND \"revenue_billion\">5.8 AND \"profits_billion\"=1.1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_15_8_7\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the date for zi yan jie zheng opponent"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"doubles_15_8_7\" WHERE \"opponents\"='zi yan jie zheng';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_15_8_7\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the partner for 14 october 2007"
},
{
"role": "assistant",
"content": "SELECT \"partner\" FROM \"doubles_15_8_7\" WHERE \"date\"='14 october 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_15_8_7\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the partner for opponents of alexandra dulgheru magdal\u00e9na ryb\u00e1rikov\u00e1"
},
{
"role": "assistant",
"content": "SELECT \"partner\" FROM \"doubles_15_8_7\" WHERE \"opponents\"='alexandra dulgheru magdal\u00e9na ryb\u00e1rikov\u00e1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_15_8_7\" (\n \"outcome\" text,\n \"date\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the opponents for 24 july 2011"
},
{
"role": "assistant",
"content": "SELECT \"opponents\" FROM \"doubles_15_8_7\" WHERE \"date\"='24 july 2011';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"indianapolis_colts_draft_history\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is Ken Walter's lowest pick number with an overall pick number larger than 195?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pick_num\") FROM \"indianapolis_colts_draft_history\" WHERE \"name\"='ken walter' AND \"overall\">195;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_2_physical_properties_of_polypheny\" (\n \"polyphenyl_ether\" text,\n \"appearance\" text,\n \"thermal_stability_f_c\" text,\n \"viscosity_c_st_at_100_f_38_c\" real,\n \"viscosity_c_st_at_210_f_99_c\" real\n);\n\nQuestion: What does Polyphenyl Ether of 3- and 4-ring oxythio look like?"
},
{
"role": "assistant",
"content": "SELECT \"appearance\" FROM \"table_2_physical_properties_of_polypheny\" WHERE \"polyphenyl_ether\"='3- and 4-ring oxythio';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stage_results\" (\n \"date\" text,\n \"course\" text,\n \"distance\" text,\n \"winner\" text,\n \"race_leader\" text\n);\n\nQuestion: How long was the course from Naples to Foggia?"
},
{
"role": "assistant",
"content": "SELECT \"distance\" FROM \"stage_results\" WHERE \"course\"='naples to foggia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_17_14_titles_3_runners_up\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Name the score with opponent of milos raonic"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"singles_17_14_titles_3_runners_up\" WHERE \"opponent\"='milos raonic';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_17_14_titles_3_runners_up\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Name the date with a hard surface and tournament of usa f5, brownsville"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"singles_17_14_titles_3_runners_up\" WHERE \"surface\"='hard' AND \"tournament\"='usa f5, brownsville';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_17_14_titles_3_runners_up\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Name the outcome with tournament of mexico f12, obreg\u00f3n"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"singles_17_14_titles_3_runners_up\" WHERE \"tournament\"='mexico f12, obreg\u00f3n';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_17_14_titles_3_runners_up\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Name the tournament for march 25, 2012"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_17_14_titles_3_runners_up\" WHERE \"date\"='march 25, 2012';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_12_7_5\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What was the final score for the August 25, 1996 match?"
},
{
"role": "assistant",
"content": "SELECT \"score_in_the_final\" FROM \"singles_12_7_5\" WHERE \"date\"='august 25, 1996';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What is the average year of an entrant that had fewer than 6 points and a Maserati Straight-6 engine?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"year\") FROM \"complete_formula_one_world_championship_\" WHERE \"points\"<6 AND \"engine\"='maserati straight-6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What entrant had a Maserati 250F chassis and fewer than 6 points before 1957?"
},
{
"role": "assistant",
"content": "SELECT \"entrant\" FROM \"complete_formula_one_world_championship_\" WHERE \"chassis\"='maserati 250f' AND \"year\"<1957 AND \"points\"<6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What chassis has a year of 1951?"
},
{
"role": "assistant",
"content": "SELECT \"chassis\" FROM \"complete_formula_one_world_championship_\" WHERE \"year\"=1951;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"complete_formula_one_world_championship_\" (\n \"year\" real,\n \"entrant\" text,\n \"chassis\" text,\n \"engine\" text,\n \"points\" real\n);\n\nQuestion: What is the chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fewer than 6 points?"
},
{
"role": "assistant",
"content": "SELECT \"chassis\" FROM \"complete_formula_one_world_championship_\" WHERE \"engine\"='maserati straight-6' AND \"entrant\"='officine alfieri maserati' AND \"points\"<6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" real\n);\n\nQuestion: Which lane has a time less than 49.67, is from Michael Klim and less than 1 rank?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"lane\") FROM \"semifinal_1\" WHERE \"time\"<49.67 AND \"name\"='michael klim' AND \"rank\"<1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"semifinal_1\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" real\n);\n\nQuestion: What is the lowest lane with Lorenzo Vismara and a time higher than 49.67?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"lane\") FROM \"semifinal_1\" WHERE \"name\"='lorenzo vismara' AND \"time\">49.67;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"january\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the visitor on January 24?"
},
{
"role": "assistant",
"content": "SELECT \"visitor\" FROM \"january\" WHERE \"date\"='january 24';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"january\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the home team on January 8?"
},
{
"role": "assistant",
"content": "SELECT \"home\" FROM \"january\" WHERE \"date\"='january 8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Who was the Opponent when the Attendance was 38,150?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"attendance\"='38,150';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: Where is NCAA division ii Franklin Pierce University located at?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"former_members\" WHERE \"classification\"='ncaa division ii' AND \"institution\"='franklin pierce university';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: Post University has what nickname?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"former_members\" WHERE \"institution\"='post university';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: The River Hawks belonged to what current conference?"
},
{
"role": "assistant",
"content": "SELECT \"current_conference\" FROM \"former_members\" WHERE \"nickname\"='river hawks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: What is the nickname of the school located in Manchester, New Hampshire?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"former_members\" WHERE \"location\"='manchester, new hampshire';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: What is the classification for the school in the NEC Conference located in New Britain, Connecticut?"
},
{
"role": "assistant",
"content": "SELECT \"classification\" FROM \"former_members\" WHERE \"current_conference\"='nec' AND \"location\"='new britain, connecticut';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"current_conference\" text,\n \"classification\" text\n);\n\nQuestion: What institution is a NCAA Division i school and part of the NEC conference with a nickname the Blue Devils?"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"former_members\" WHERE \"classification\"='ncaa division i' AND \"current_conference\"='nec' AND \"nickname\"='blue devils';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: What was the record at the home of the Montreal Maroons"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"home\"='montreal maroons';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"num_county\" text,\n \"enrollment_08_09\" real,\n \"ihsaa_class\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: which school shows #/county of 29 hamilton?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"membership\" WHERE \"num_county\"='29 hamilton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"num_county\" text,\n \"enrollment_08_09\" real,\n \"ihsaa_class\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: what is the mascot for the enrollment 08-09 of 320?"
},
{
"role": "assistant",
"content": "SELECT \"mascot\" FROM \"membership\" WHERE \"enrollment_08_09\"=320;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"num_county\" text,\n \"enrollment_08_09\" real,\n \"ihsaa_class\" text,\n \"year_joined\" real,\n \"previous_conference\" text\n);\n\nQuestion: what is the school in michigantown?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"membership\" WHERE \"location\"='michigantown';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"name\" text,\n \"city_state\" text,\n \"country\" text,\n \"status\" text,\n \"status_date\" text,\n \"episode_number\" text\n);\n\nQuestion: Which episode number was associated with Vibhav Gautam?"
},
{
"role": "assistant",
"content": "SELECT \"episode_number\" FROM \"contestants\" WHERE \"name\"='vibhav gautam';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"name\" text,\n \"city_state\" text,\n \"country\" text,\n \"status\" text,\n \"status_date\" text,\n \"episode_number\" text\n);\n\nQuestion: Which city/state was associated with a contestant whose status was 2nd runner-up?"
},
{
"role": "assistant",
"content": "SELECT \"city_state\" FROM \"contestants\" WHERE \"status\"='2nd runner-up';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"name\" text,\n \"city_state\" text,\n \"country\" text,\n \"status\" text,\n \"status_date\" text,\n \"episode_number\" text\n);\n\nQuestion: Which contestant was associated with episode 34?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"contestants\" WHERE \"episode_number\"='episode 34';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"name\" text,\n \"city_state\" text,\n \"country\" text,\n \"status\" text,\n \"status_date\" text,\n \"episode_number\" text\n);\n\nQuestion: What is the status of the city/state of Indor, Madhya Pradesh?"
},
{
"role": "assistant",
"content": "SELECT \"status_date\" FROM \"contestants\" WHERE \"city_state\"='indor, madhya pradesh';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1934\" (\n \"title\" text,\n \"studio\" text,\n \"role\" text,\n \"leading_lady\" text,\n \"director\" text\n);\n\nQuestion: What role did John Wayne play in The Trail Beyond, directed by R.N. Bradbury?"
},
{
"role": "assistant",
"content": "SELECT \"role\" FROM \"1934\" WHERE \"director\"='r.n. bradbury' AND \"title\"='the trail beyond';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1934\" (\n \"title\" text,\n \"studio\" text,\n \"role\" text,\n \"leading_lady\" text,\n \"director\" text\n);\n\nQuestion: Who directed the movie The Star Packer?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"1934\" WHERE \"title\"='the star packer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1934\" (\n \"title\" text,\n \"studio\" text,\n \"role\" text,\n \"leading_lady\" text,\n \"director\" text\n);\n\nQuestion: What role did John Wayne play in The Lawless Frontier, with Sheila Terry as the leading lady?"
},
{
"role": "assistant",
"content": "SELECT \"role\" FROM \"1934\" WHERE \"leading_lady\"='sheila terry' AND \"title\"='the lawless frontier';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1934\" (\n \"title\" text,\n \"studio\" text,\n \"role\" text,\n \"leading_lady\" text,\n \"director\" text\n);\n\nQuestion: In what movie did John Wayne play the role of Chris Morrell?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"1934\" WHERE \"role\"='chris morrell';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1934\" (\n \"title\" text,\n \"studio\" text,\n \"role\" text,\n \"leading_lady\" text,\n \"director\" text\n);\n\nQuestion: What role did John Wayne play with Verna Hillie as the leading lady?"
},
{
"role": "assistant",
"content": "SELECT \"role\" FROM \"1934\" WHERE \"leading_lady\"='verna hillie';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1934\" (\n \"title\" text,\n \"studio\" text,\n \"role\" text,\n \"leading_lady\" text,\n \"director\" text\n);\n\nQuestion: Who directed the movie when John Wayne played the role of John Travers?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"1934\" WHERE \"role\"='john travers';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.