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 \"references\" (\n \"draw\" real,\n \"song\" text,\n \"performer\" text,\n \"points\" real,\n \"rank\" text\n);\n\nQuestion: What is the sum of Points, when the Performer is fe-mail?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"points\") FROM \"references\" WHERE \"performer\"='fe-mail';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_1\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text,\n \"report\" text\n);\n\nQuestion: What is the score for set 3 with a time at 15:04?"
},
{
"role": "assistant",
"content": "SELECT \"set_3\" FROM \"tournament_1\" WHERE \"time\"='15:04';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_1\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text,\n \"report\" text\n);\n\nQuestion: What was the overall score when the score of set 3 was 29\u201327?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"tournament_1\" WHERE \"set_3\"='29\u201327';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_1\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text,\n \"report\" text\n);\n\nQuestion: What was the score for set 2 when set 3 was 25\u201322?"
},
{
"role": "assistant",
"content": "SELECT \"set_2\" FROM \"tournament_1\" WHERE \"set_3\"='25\u201322';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_1\" (\n \"date\" text,\n \"time\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"set_3\" text,\n \"total\" text,\n \"report\" text\n);\n\nQuestion: What was the overall score when set 1 was 23\u201325?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"tournament_1\" WHERE \"set_1\"='23\u201325';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: What school/club team did Amal McCaskill play for?"
},
{
"role": "assistant",
"content": "SELECT \"school_club_team\" FROM \"m\" WHERE \"player\"='amal mccaskill';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Mike Miller played for what school/club team?"
},
{
"role": "assistant",
"content": "SELECT \"school_club_team\" FROM \"m\" WHERE \"player\"='mike miller';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who is the player that played for the school/club team Maryland?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"m\" WHERE \"school_club_team\"='maryland';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Cuttino Mobley is what nationality?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"m\" WHERE \"player\"='cuttino mobley';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Corey Maggette from the United States plays what position?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"m\" WHERE \"nationality\"='united states' AND \"player\"='corey maggette';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"m\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_in_orlando\" text,\n \"school_club_team\" text\n);\n\nQuestion: Amal McCaskill who plays forward-center played for what school/club team?"
},
{
"role": "assistant",
"content": "SELECT \"school_club_team\" FROM \"m\" WHERE \"position\"='forward-center' AND \"player\"='amal mccaskill';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station\" text,\n \"local_authority_a\" text,\n \"servedby\" text,\n \"station_users_2004_05\" real,\n \"station_users_2005_06\" real\n);\n\nQuestion: Which Servedby has a Local authority [a ] of thurrock, and a Station of ockendon?"
},
{
"role": "assistant",
"content": "SELECT \"servedby\" FROM \"stations\" WHERE \"local_authority_a\"='thurrock' AND \"station\"='ockendon';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station\" text,\n \"local_authority_a\" text,\n \"servedby\" text,\n \"station_users_2004_05\" real,\n \"station_users_2005_06\" real\n);\n\nQuestion: Which Station users 2005\u201306 has a Station users 2004\u201305 of 2,117,300?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"station_users_2005_06\") FROM \"stations\" WHERE \"station_users_2004_05\"='2,117,300';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"stations\" (\n \"station\" text,\n \"local_authority_a\" text,\n \"servedby\" text,\n \"station_users_2004_05\" real,\n \"station_users_2005_06\" real\n);\n\nQuestion: How many Station users 2005\u201306 that has a Station users 2004\u201305 of 1,455,700?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"station_users_2005_06\") FROM \"stations\" WHERE \"station_users_2004_05\"='1,455,700';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"itf_doubles_27_15_12\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What is the Opponents from the final with a Tournament that is puebla?"
},
{
"role": "assistant",
"content": "SELECT \"opponents_in_the_final\" FROM \"itf_doubles_27_15_12\" WHERE \"tournament\"='puebla';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What was the date of the game held at the Al-Rashid Stadium, Dubai?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"international_goals\" WHERE \"venue\"='al-rashid stadium, dubai';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"chart\" text,\n \"track\" text,\n \"peak\" real,\n \"weeks_on_chart\" real\n);\n\nQuestion: When the Track is ESO, the peak is smaller than 25, and the year is larger than 2004, what is the total number of Weeks on Chart?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"weeks_on_chart\") FROM \"singles\" WHERE \"track\"='eso' AND \"peak\"<25 AND \"year\">2004;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"chart\" text,\n \"track\" text,\n \"peak\" real,\n \"weeks_on_chart\" real\n);\n\nQuestion: Which year has fewer Weeks on Chart than 17, a Peak of 23, and the track is reg\u00e1lame la silla donde te esper\u00e9?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"singles\" WHERE \"weeks_on_chart\"<17 AND \"track\"='reg\u00e1lame la silla donde te esper\u00e9' AND \"peak\"=23;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"year\" real,\n \"chart\" text,\n \"track\" text,\n \"peak\" real,\n \"weeks_on_chart\" real\n);\n\nQuestion: What is the lowest Peak with fewer than 8 Weeks on Chart?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"peak\") FROM \"singles\" WHERE \"weeks_on_chart\"<8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ranking_round\" (\n \"final_rank\" real,\n \"ranking_round_rank\" real,\n \"nation\" text,\n \"ranking_score\" real,\n \"round_of_16\" text\n);\n\nQuestion: What is the Round of 16 value for the nation with a value of 5 for Ranking Round Rank?"
},
{
"role": "assistant",
"content": "SELECT \"round_of_16\" FROM \"ranking_round\" WHERE \"ranking_round_rank\"=5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"city_state\" text,\n \"members\" text,\n \"team\" text,\n \"first_round\" text,\n \"final_round\" text\n);\n\nQuestion: What Team had the first round of 1:00?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"contestants\" WHERE \"first_round\"='1:00';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"city_state\" text,\n \"members\" text,\n \"team\" text,\n \"first_round\" text,\n \"final_round\" text\n);\n\nQuestion: What City/State did the Atlanta Hawks (retired) team play for?"
},
{
"role": "assistant",
"content": "SELECT \"city_state\" FROM \"contestants\" WHERE \"team\"='atlanta hawks (retired)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"city_state\" text,\n \"members\" text,\n \"team\" text,\n \"first_round\" text,\n \"final_round\" text\n);\n\nQuestion: What was the final round value for member Chris Webber?"
},
{
"role": "assistant",
"content": "SELECT \"final_round\" FROM \"contestants\" WHERE \"members\"='chris webber';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"contestants\" (\n \"city_state\" text,\n \"members\" text,\n \"team\" text,\n \"first_round\" text,\n \"final_round\" text\n);\n\nQuestion: What was the first round time for member Kenny Smith?"
},
{
"role": "assistant",
"content": "SELECT \"first_round\" FROM \"contestants\" WHERE \"members\"='kenny smith';"
}
] |
[
{
"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_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which team was the opponent on December 30?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"date\"='december 30';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"religious\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What content is provided by the television service ewtn?"
},
{
"role": "assistant",
"content": "SELECT \"content\" FROM \"religious\" WHERE \"television_service\"='ewtn';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"religious\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What is the content of the television service ewtn in the United Kingdom?"
},
{
"role": "assistant",
"content": "SELECT \"content\" FROM \"religious\" WHERE \"country\"='united kingdom' AND \"television_service\"='ewtn';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"religious\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What is the package/option for Italy when the language is italian?"
},
{
"role": "assistant",
"content": "SELECT \"package_option\" FROM \"religious\" WHERE \"country\"='italy' AND \"language\"='italian';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"religious\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What is the package/option in Italy when the content is religione?"
},
{
"role": "assistant",
"content": "SELECT \"package_option\" FROM \"religious\" WHERE \"content\"='religione' AND \"country\"='italy';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"religious\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: Which television service has italian for its language?"
},
{
"role": "assistant",
"content": "SELECT \"television_service\" FROM \"religious\" WHERE \"language\"='italian';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"religious\" (\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: Does daystar television network provide HDTV?"
},
{
"role": "assistant",
"content": "SELECT \"hdtv\" FROM \"religious\" WHERE \"television_service\"='daystar television network';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text,\n \"attendance\" real\n);\n\nQuestion: What was the Attendance when Oxford United was the Home team?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"attendance\") FROM \"second_round_proper\" WHERE \"home_team\"='oxford united';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text,\n \"attendance\" real\n);\n\nQuestion: What was the Home team when Farnborough Town was the Away team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"second_round_proper\" WHERE \"away_team\"='farnborough town';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text,\n \"attendance\" real\n);\n\nQuestion: What was the Away Team of Blackpool's Home game?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"second_round_proper\" WHERE \"home_team\"='blackpool';"
}
] |
[
{
"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: Which Bronze has a Rank of 9?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"bronze\") FROM \"medal_table\" WHERE \"rank\"='9';"
}
] |
[
{
"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: Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"bronze\") FROM \"medal_table\" WHERE \"gold\"<1 AND \"rank\"='17' AND \"nation\"='china';"
}
] |
[
{
"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: Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 1?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"medal_table\" WHERE \"bronze\"<1 AND \"total\">1 AND \"silver\"=1;"
}
] |
[
{
"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: Which Total has a Rank of 17, and a Gold larger than 0?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"total\") FROM \"medal_table\" WHERE \"rank\"='17' AND \"gold\">0;"
}
] |
[
{
"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: Which Gold has a Rank of 15, and a Total smaller than 2?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"gold\") FROM \"medal_table\" WHERE \"rank\"='15' AND \"total\"<2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_by_season_results\" (\n \"season\" text,\n \"games\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"pct_pct\" real,\n \"goals_for\" real,\n \"goals_against\" real\n);\n\nQuestion: What is the number of games for the season with 10 ties?"
},
{
"role": "assistant",
"content": "SELECT \"games\" FROM \"season_by_season_results\" WHERE \"tied\"=10;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winner_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What was the surface where the opponent was Nathalie Dechy Meilen Tu?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"winner_5\" WHERE \"opponent_in_the_final\"='nathalie dechy meilen tu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"date\" text,\n \"event\" text,\n \"winner\" text,\n \"team\" text,\n \"series_leader\" text\n);\n\nQuestion: What is the Series leader with a Date that is may 31?"
},
{
"role": "assistant",
"content": "SELECT \"series_leader\" FROM \"events\" WHERE \"date\"='may 31';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"events\" (\n \"date\" text,\n \"event\" text,\n \"winner\" text,\n \"team\" text,\n \"series_leader\" text\n);\n\nQuestion: What is the Series leader with a Date that is october 9?"
},
{
"role": "assistant",
"content": "SELECT \"series_leader\" FROM \"events\" WHERE \"date\"='october 9';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_titles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Which Tournament has a Date of january 10, 1994?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"doubles_titles_5\" WHERE \"date\"='january 10, 1994';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_titles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Which Opponents in the final have a Date of june 10, 1996?"
},
{
"role": "assistant",
"content": "SELECT \"opponents_in_the_final\" FROM \"doubles_titles_5\" WHERE \"date\"='june 10, 1996';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_titles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Who's the Opponents in the final with a Date of june 10, 1996?"
},
{
"role": "assistant",
"content": "SELECT \"opponents_in_the_final\" FROM \"doubles_titles_5\" WHERE \"date\"='june 10, 1996';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_titles_5\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partnering\" text,\n \"opponents_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Which Tournament has Opponents in the final of maria lindstr\u00f6m maria strandlund?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"doubles_titles_5\" WHERE \"opponents_in_the_final\"='maria lindstr\u00f6m maria strandlund';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"champions\" (\n \"season\" real,\n \"venue\" text,\n \"teams\" real,\n \"drivers\" real,\n \"champion\" text,\n \"second\" text,\n \"third\" text\n);\n\nQuestion: What country came in third when there were 13 teams in 1996?"
},
{
"role": "assistant",
"content": "SELECT \"third\" FROM \"champions\" WHERE \"teams\"=13 AND \"season\"=1996;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"champions\" (\n \"season\" real,\n \"venue\" text,\n \"teams\" real,\n \"drivers\" real,\n \"champion\" text,\n \"second\" text,\n \"third\" text\n);\n\nQuestion: What is the sum of season when the venue was donington park, and Brazil came in second?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"season\") FROM \"champions\" WHERE \"venue\"='donington park' AND \"second\"='brazil';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"champions\" (\n \"season\" real,\n \"venue\" text,\n \"teams\" real,\n \"drivers\" real,\n \"champion\" text,\n \"second\" text,\n \"third\" text\n);\n\nQuestion: What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"season\") FROM \"champions\" WHERE \"venue\"='circuit de nevers magny-cours' AND \"drivers\">30;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"club\" text,\n \"wins\" real,\n \"losses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" real,\n \"points\" real\n);\n\nQuestion: What is the total number of Losses when the percentage is 54.83, with more than 8 points?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"losses\") FROM \"standings\" WHERE \"percentage\"=54.83 AND \"points\">8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"club\" text,\n \"wins\" real,\n \"losses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" real,\n \"points\" real\n);\n\nQuestion: What is the average Points For when there are Points Against more than 780, and Points smaller than 0?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"points_for\") FROM \"standings\" WHERE \"points_against\">780 AND \"points\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"club\" text,\n \"wins\" real,\n \"losses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" real,\n \"points\" real\n);\n\nQuestion: What is the average Points when the Points Against is 594, and Losses is more than 3?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"points\") FROM \"standings\" WHERE \"points_against\"=594 AND \"losses\">3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"club\" text,\n \"wins\" real,\n \"losses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" real,\n \"points\" real\n);\n\nQuestion: What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"percentage\") FROM \"standings\" WHERE \"wins\">0 AND \"points_against\">481 AND \"losses\"=8 AND \"points_for\">826;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"club\" text,\n \"wins\" real,\n \"losses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" real,\n \"points\" real\n);\n\nQuestion: What is the lowest Wins when the Club is broadview hawks, and Points Against is more than 594?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"standings\" WHERE \"club\"='broadview hawks' AND \"points_against\">594;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalkeeping_leaders\" (\n \"rank\" real,\n \"goalkeeper\" text,\n \"club\" text,\n \"mins\" real,\n \"shts\" real,\n \"w_l_t\" text\n);\n\nQuestion: What Goalkeeper has MINS less than 2160"
},
{
"role": "assistant",
"content": "SELECT \"goalkeeper\" FROM \"goalkeeping_leaders\" WHERE \"mins\"<2160;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalkeeping_leaders\" (\n \"rank\" real,\n \"goalkeeper\" text,\n \"club\" text,\n \"mins\" real,\n \"shts\" real,\n \"w_l_t\" text\n);\n\nQuestion: What is the highest SHTS of Kasey Keller"
},
{
"role": "assistant",
"content": "SELECT MAX(\"shts\") FROM \"goalkeeping_leaders\" WHERE \"goalkeeper\"='kasey keller';"
}
] |
[
{
"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 most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"bronze\") FROM \"medals_table\" WHERE \"total\">1 AND \"rank\">1 AND \"gold\">1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2001_ladder\" (\n \"ballarat_fl\" text,\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 that Melton had when they had fewer Draws than 0?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"losses\") FROM \"2001_ladder\" WHERE \"ballarat_fl\"='melton' AND \"draws\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2001_ladder\" (\n \"ballarat_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the lowest number of Against that Lake Wendouree had when they had more than 7 Losses?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"against\") FROM \"2001_ladder\" WHERE \"ballarat_fl\"='lake wendouree' AND \"losses\">7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2001_ladder\" (\n \"ballarat_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What was the total number of Byes for the team that had 1136 Against and fewer than 0 Draws?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"byes\") FROM \"2001_ladder\" WHERE \"against\"=1136 AND \"draws\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2001_ladder\" (\n \"ballarat_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What was the greatest number of Losses for the team that had 1427 Against and more than 5 Wins?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"losses\") FROM \"2001_ladder\" WHERE \"against\">1427 AND \"wins\">5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2001_ladder\" (\n \"ballarat_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the average number of Byes for the team that had 15 Losses, and less than 1 Win?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"byes\") FROM \"2001_ladder\" WHERE \"losses\"=15 AND \"wins\"<1;"
}
] |
[
{
"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: Which nation's total is less than 19 when there's less than 1 bronze?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"medal_table\" WHERE \"total\"<19 AND \"bronze\"<1;"
}
] |
[
{
"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: How many totals does Chile have when the number of silvers is more than 0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total\") FROM \"medal_table\" WHERE \"nation\"='chile' AND \"silver\">0;"
}
] |
[
{
"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 \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What was the record when TKO (punches and elbows) was the method?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='tko (punches and elbows)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_individual_scores\" (\n \"rank\" text,\n \"runs\" text,\n \"player\" text,\n \"match\" text,\n \"venue\" text,\n \"season\" text\n);\n\nQuestion: What venue has don bradman (nsw) as the player?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"highest_individual_scores\" WHERE \"player\"='don bradman (nsw)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_individual_scores\" (\n \"rank\" text,\n \"runs\" text,\n \"player\" text,\n \"match\" text,\n \"venue\" text,\n \"season\" text\n);\n\nQuestion: What rank has Bill Ponsford (vic) as the player?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"highest_individual_scores\" WHERE \"player\"='bill ponsford (vic)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_individual_scores\" (\n \"rank\" text,\n \"runs\" text,\n \"player\" text,\n \"match\" text,\n \"venue\" text,\n \"season\" text\n);\n\nQuestion: What match has Clem Hill (sa) as the player?"
},
{
"role": "assistant",
"content": "SELECT \"match\" FROM \"highest_individual_scores\" WHERE \"player\"='clem hill (sa)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"brazil_national_team\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"brazil_scorers\" text,\n \"competition\" text\n);\n\nQuestion: Who played on December 25, 1925?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"brazil_national_team\" WHERE \"date\"='december 25, 1925';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"brazil_national_team\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"brazil_scorers\" text,\n \"competition\" text\n);\n\nQuestion: What was the score for the South American Championship dated December 13, 1925?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"brazil_national_team\" WHERE \"competition\"='south american championship' AND \"date\"='december 13, 1925';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"parliamentary_parties\" (\n \"abbr\" text,\n \"political_leader\" text,\n \"international_affiliation\" text,\n \"votes_2012\" text,\n \"house_of_rep_seats\" real,\n \"senate_seats\" real,\n \"european_parliament_seats\" real\n);\n\nQuestion: What is the average number of House of Representatives seats had an abbreviation of d66?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"house_of_rep_seats\") FROM \"parliamentary_parties\" WHERE \"abbr\"='d66';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senior_pga_tour_wins_24\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: For the tournament played on Oct 17, 1982, what was the winning score?"
},
{
"role": "assistant",
"content": "SELECT \"winning_score\" FROM \"senior_pga_tour_wins_24\" WHERE \"date\"='oct 17, 1982';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senior_pga_tour_wins_24\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: For the tournament played Nov 13, 1988, ending with a margin of victory of 5 strokes, who was the runner-up?"
},
{
"role": "assistant",
"content": "SELECT \"runner_s_up\" FROM \"senior_pga_tour_wins_24\" WHERE \"margin_of_victory\"='5 strokes' AND \"date\"='nov 13, 1988';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senior_pga_tour_wins_24\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: On what date was the tournament played that eneded with a winning score of +6 (74-71-70-71=286) and margin of victory of 2 strokes, and with Arnold palmer as the runner-up?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"senior_pga_tour_wins_24\" WHERE \"runner_s_up\"='arnold palmer' AND \"margin_of_victory\"='2 strokes' AND \"winning_score\"='+6 (74-71-70-71=286)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is 2008, when 2006 is \"Grand Slam Tournaments\"?"
},
{
"role": "assistant",
"content": "SELECT \"2008\" FROM \"singles_performance_timeline\" WHERE \"2006\"='grand slam tournaments';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is 2007, when 2003 is 1R?"
},
{
"role": "assistant",
"content": "SELECT \"2007\" FROM \"singles_performance_timeline\" WHERE \"2003\"='1r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is the Tournament, when 2012 is 3R?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_performance_timeline\" WHERE \"2012\"='3r';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"2011\" text,\n \"2012\" text\n);\n\nQuestion: What is Tournament, when 2009 is \"Grand Slam Tournaments\"?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_performance_timeline\" WHERE \"2009\"='grand slam tournaments';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"proto_austronesian_personal_pronouns\" (\n \"free\" text,\n \"free_polite\" text,\n \"genitive_1\" text,\n \"genitive_2\" text,\n \"genitive_3\" text\n);\n\nQuestion: Which Free polite has a Genitive 3 of *ni-da?"
},
{
"role": "assistant",
"content": "SELECT \"free_polite\" FROM \"proto_austronesian_personal_pronouns\" WHERE \"genitive_3\"='*ni-da';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"proto_austronesian_personal_pronouns\" (\n \"free\" text,\n \"free_polite\" text,\n \"genitive_1\" text,\n \"genitive_2\" text,\n \"genitive_3\" text\n);\n\nQuestion: Which Free polite has a Genitive 1 of *=ku?"
},
{
"role": "assistant",
"content": "SELECT \"free_polite\" FROM \"proto_austronesian_personal_pronouns\" WHERE \"genitive_1\"='*=ku';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"proto_austronesian_personal_pronouns\" (\n \"free\" text,\n \"free_polite\" text,\n \"genitive_1\" text,\n \"genitive_2\" text,\n \"genitive_3\" text\n);\n\nQuestion: Which Free has a Free polite of *[i-]k-ita?"
},
{
"role": "assistant",
"content": "SELECT \"free\" FROM \"proto_austronesian_personal_pronouns\" WHERE \"free_polite\"='*[i-]k-ita';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"proto_austronesian_personal_pronouns\" (\n \"free\" text,\n \"free_polite\" text,\n \"genitive_1\" text,\n \"genitive_2\" text,\n \"genitive_3\" text\n);\n\nQuestion: Which Free polite has a Genitive 3 of *n(i)-ami?"
},
{
"role": "assistant",
"content": "SELECT \"free_polite\" FROM \"proto_austronesian_personal_pronouns\" WHERE \"genitive_3\"='*n(i)-ami';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"proto_austronesian_personal_pronouns\" (\n \"free\" text,\n \"free_polite\" text,\n \"genitive_1\" text,\n \"genitive_2\" text,\n \"genitive_3\" text\n);\n\nQuestion: Which Genitive 1 has a Free polite of \u2013, and a Genitive 2 of \u2013, and a Genitive 3 of *n(i)-ia?"
},
{
"role": "assistant",
"content": "SELECT \"genitive_1\" FROM \"proto_austronesian_personal_pronouns\" WHERE \"free_polite\"='\u2013' AND \"genitive_2\"='\u2013' AND \"genitive_3\"='*n(i)-ia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"proto_austronesian_personal_pronouns\" (\n \"free\" text,\n \"free_polite\" text,\n \"genitive_1\" text,\n \"genitive_2\" text,\n \"genitive_3\" text\n);\n\nQuestion: Which Genitive 1 has a Genitive 3 of *n(i)-ia?"
},
{
"role": "assistant",
"content": "SELECT \"genitive_1\" FROM \"proto_austronesian_personal_pronouns\" WHERE \"genitive_3\"='*n(i)-ia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"verbs\" (\n \"verb\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: What is the Proto-Oceanic verb for the verb to sew?"
},
{
"role": "assistant",
"content": "SELECT \"proto_oceanic\" FROM \"verbs\" WHERE \"verb\"='to sew';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"verbs\" (\n \"verb\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: What is the verb for the Proto-Austronesian word *diri?"
},
{
"role": "assistant",
"content": "SELECT \"verb\" FROM \"verbs\" WHERE \"proto_austronesian\"='*diri';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"verbs\" (\n \"verb\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: What is the Proto-Oceanic verb for to die, be dead?"
},
{
"role": "assistant",
"content": "SELECT \"proto_oceanic\" FROM \"verbs\" WHERE \"verb\"='to die, be dead';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"verbs\" (\n \"verb\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: What is the verb for the Proto-Polynesian word *mohe?"
},
{
"role": "assistant",
"content": "SELECT \"verb\" FROM \"verbs\" WHERE \"proto_polynesian\"='*mohe';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"verbs\" (\n \"verb\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: What is the Proto-Austronesian word for the Proto-Polynesian word *tui?"
},
{
"role": "assistant",
"content": "SELECT \"proto_austronesian\" FROM \"verbs\" WHERE \"proto_polynesian\"='*tui';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"verbs\" (\n \"verb\" text,\n \"proto_austronesian\" text,\n \"proto_malayo_polynesian\" text,\n \"proto_oceanic\" text,\n \"proto_polynesian\" text\n);\n\nQuestion: What is the Proto-Malayo-Polynesian word for the Proto-Oceanic word of *saqit, *turi?"
},
{
"role": "assistant",
"content": "SELECT \"proto_malayo_polynesian\" FROM \"verbs\" WHERE \"proto_oceanic\"='*saqit, *turi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"radio\" (\n \"frequency\" text,\n \"station\" text,\n \"operator\" text,\n \"language\" text,\n \"genre\" text,\n \"coverage_area\" text\n);\n\nQuestion: What station has a genre of talk music and is in Malay English language?"
},
{
"role": "assistant",
"content": "SELECT \"station\" FROM \"radio\" WHERE \"genre\"='talk music' AND \"language\"='malay english';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"radio\" (\n \"frequency\" text,\n \"station\" text,\n \"operator\" text,\n \"language\" text,\n \"genre\" text,\n \"coverage_area\" text\n);\n\nQuestion: Which genre is the fly fm station?"
},
{
"role": "assistant",
"content": "SELECT \"genre\" FROM \"radio\" WHERE \"station\"='fly fm';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"radio\" (\n \"frequency\" text,\n \"station\" text,\n \"operator\" text,\n \"language\" text,\n \"genre\" text,\n \"coverage_area\" text\n);\n\nQuestion: What frequency is the xfm station, which is part of the talk music genre?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"radio\" WHERE \"genre\"='talk music' AND \"station\"='xfm';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"radio\" (\n \"frequency\" text,\n \"station\" text,\n \"operator\" text,\n \"language\" text,\n \"genre\" text,\n \"coverage_area\" text\n);\n\nQuestion: What is the coverage area of muzik fm station, which has a music genre?"
},
{
"role": "assistant",
"content": "SELECT \"coverage_area\" FROM \"radio\" WHERE \"genre\"='music' AND \"station\"='muzik fm';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"24_hours_of_le_mans_results\" (\n \"year\" real,\n \"co_drivers\" text,\n \"class\" text,\n \"laps\" real,\n \"pos\" text,\n \"class_pos\" text\n);\n\nQuestion: What is Co-Drivers, when Laps is greater than 196, and when Year is before 2010?"
},
{
"role": "assistant",
"content": "SELECT \"co_drivers\" FROM \"24_hours_of_le_mans_results\" WHERE \"laps\">196 AND \"year\"<2010;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Date when the week is more than 3 and the attendance shows bye?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\">3 AND \"attendance\"='bye';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What is the Result when the week is later than 9, and there are 65,858 people in attendance?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\">9 AND \"attendance\"='65,858';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_tour_results_timeline\" (\n \"1935\" text,\n \"1936\" text,\n \"1937\" text,\n \"1938\" text,\n \"1939\" text,\n \"1940\" text,\n \"1941\" text,\n \"1943\" text,\n \"1945\" text,\n \"1946\" text,\n \"1947\" text,\n \"1948\" text,\n \"1949\" text,\n \"1950\" text,\n \"1951\" text,\n \"1952\" text,\n \"1953\" text\n);\n\nQuestion: What is the 1938 that has N/A for 1948?"
},
{
"role": "assistant",
"content": "SELECT \"1938\" FROM \"grand_tour_results_timeline\" WHERE \"1948\"='n/a';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_tour_results_timeline\" (\n \"1935\" text,\n \"1936\" text,\n \"1937\" text,\n \"1938\" text,\n \"1939\" text,\n \"1940\" text,\n \"1941\" text,\n \"1943\" text,\n \"1945\" text,\n \"1946\" text,\n \"1947\" text,\n \"1948\" text,\n \"1949\" text,\n \"1950\" text,\n \"1951\" text,\n \"1952\" text,\n \"1953\" text\n);\n\nQuestion: What 1953 has 2 for 1947, and dne as 1938?"
},
{
"role": "assistant",
"content": "SELECT \"1953\" FROM \"grand_tour_results_timeline\" WHERE \"1947\"='2' AND \"1938\"='dne';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.