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 \"franchises\" (\n \"team\" text,\n \"province\" text,\n \"owner_s\" text,\n \"price\" text,\n \"captain\" text,\n \"head_coach\" text,\n \"icon_player\" text\n);\n\nQuestion: What's the price of the team whose captain is Sanath Jayasuriya?"
},
{
"role": "assistant",
"content": "SELECT \"price\" FROM \"franchises\" WHERE \"captain\"='Sanath Jayasuriya';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"franchises\" (\n \"team\" text,\n \"province\" text,\n \"owner_s\" text,\n \"price\" text,\n \"captain\" text,\n \"head_coach\" text,\n \"icon_player\" text\n);\n\nQuestion: What team is from the Eastern province?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"franchises\" WHERE \"province\"='Eastern';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"franchises\" (\n \"team\" text,\n \"province\" text,\n \"owner_s\" text,\n \"price\" text,\n \"captain\" text,\n \"head_coach\" text,\n \"icon_player\" text\n);\n\nQuestion: Who's the head coach of the team with a price of $3.22 million?"
},
{
"role": "assistant",
"content": "SELECT \"head_coach\" FROM \"franchises\" WHERE \"price\"='$3.22 million';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"franchises\" (\n \"team\" text,\n \"province\" text,\n \"owner_s\" text,\n \"price\" text,\n \"captain\" text,\n \"head_coach\" text,\n \"icon_player\" text\n);\n\nQuestion: In how many teams is Waqar Younis the head coach?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"team\") FROM \"franchises\" WHERE \"head_coach\"='Waqar Younis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"franchises\" (\n \"team\" text,\n \"province\" text,\n \"owner_s\" text,\n \"price\" text,\n \"captain\" text,\n \"head_coach\" text,\n \"icon_player\" text\n);\n\nQuestion: What province does the Ruhuna Royals team come from?"
},
{
"role": "assistant",
"content": "SELECT \"province\" FROM \"franchises\" WHERE \"team\"='Ruhuna Royals';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_roster_season_2009_2010\" (\n \"shirt_no\" real,\n \"nationality\" text,\n \"player\" text,\n \"birth_date\" text,\n \"height\" real,\n \"position\" text\n);\n\nQuestion: When was Alexey Kuleshov born?"
},
{
"role": "assistant",
"content": "SELECT \"birth_date\" FROM \"team_roster_season_2009_2010\" WHERE \"player\"='Alexey Kuleshov';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"colt_model_no\" text,\n \"military_designation\" text,\n \"barrel_length\" text,\n \"barrel\" text,\n \"handguard_type\" text,\n \"buttstock_type\" text,\n \"pistol_grip_type\" text,\n \"lower_receiver_type\" text,\n \"upper_receiver_type\" text,\n \"rear_sight_type\" text,\n \"front_sight_type\" text,\n \"muzzle_device\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"bayonet_lug\" text,\n \"trigger_pack\" text\n);\n\nQuestion: What is the trigger pack on the Colt 602 with the a1 rear sight type? "
},
{
"role": "assistant",
"content": "SELECT \"trigger_pack\" FROM \"summary\" WHERE \"rear_sight_type\"='A1' AND \"colt_model_no\"='602';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"colt_model_no\" text,\n \"military_designation\" text,\n \"barrel_length\" text,\n \"barrel\" text,\n \"handguard_type\" text,\n \"buttstock_type\" text,\n \"pistol_grip_type\" text,\n \"lower_receiver_type\" text,\n \"upper_receiver_type\" text,\n \"rear_sight_type\" text,\n \"front_sight_type\" text,\n \"muzzle_device\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"bayonet_lug\" text,\n \"trigger_pack\" text\n);\n\nQuestion: How many case deflectors are there for the Colt 646? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"case_deflector\") FROM \"summary\" WHERE \"colt_model_no\"='646';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"colt_model_no\" text,\n \"military_designation\" text,\n \"barrel_length\" text,\n \"barrel\" text,\n \"handguard_type\" text,\n \"buttstock_type\" text,\n \"pistol_grip_type\" text,\n \"lower_receiver_type\" text,\n \"upper_receiver_type\" text,\n \"rear_sight_type\" text,\n \"front_sight_type\" text,\n \"muzzle_device\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"bayonet_lug\" text,\n \"trigger_pack\" text\n);\n\nQuestion: What is the rear sight type on the model with the acr muzzle brake device? "
},
{
"role": "assistant",
"content": "SELECT \"rear_sight_type\" FROM \"summary\" WHERE \"muzzle_device\"='ACR muzzle brake';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary\" (\n \"colt_model_no\" text,\n \"military_designation\" text,\n \"barrel_length\" text,\n \"barrel\" text,\n \"handguard_type\" text,\n \"buttstock_type\" text,\n \"pistol_grip_type\" text,\n \"lower_receiver_type\" text,\n \"upper_receiver_type\" text,\n \"rear_sight_type\" text,\n \"front_sight_type\" text,\n \"muzzle_device\" text,\n \"forward_assist\" text,\n \"case_deflector\" text,\n \"bayonet_lug\" text,\n \"trigger_pack\" text\n);\n\nQuestion: Which muzzle devices are on the Colt 603? "
},
{
"role": "assistant",
"content": "SELECT \"muzzle_device\" FROM \"summary\" WHERE \"colt_model_no\"='603';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19925114_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many millions of people in the US watched the episode with season number 8?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_millions\" FROM \"table1_19925114_1\" WHERE \"no_in_season\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19925114_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many episodes had the series number of 38?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_19925114_1\" WHERE \"no_in_series\"=38;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19925114_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many different numbers of people in the US who'd seen the episode with a season number 8 are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"u_s_viewers_millions\") FROM \"table1_19925114_1\" WHERE \"no_in_season\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"rufus_guest\" text,\n \"marcus_guest\" text,\n \"winner\" text\n);\n\nQuestion: Name the rufus guest for 15 december 2008"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rufus_guest\") FROM \"series_1\" WHERE \"first_broadcast\"='15 December 2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"rufus_guest\" text,\n \"marcus_guest\" text,\n \"winner\" text\n);\n\nQuestion: Name the winner for jason byrne"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"series_1\" WHERE \"marcus_guest\"='Jason Byrne';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"rufus_guest\" text,\n \"marcus_guest\" text,\n \"winner\" text\n);\n\nQuestion: Name the rufus guest for episode 1x07"
},
{
"role": "assistant",
"content": "SELECT \"rufus_guest\" FROM \"series_1\" WHERE \"episode\"='1x07';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"rufus_guest\" text,\n \"marcus_guest\" text,\n \"winner\" text\n);\n\nQuestion: Name the winner for 26 january 2009"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"series_1\" WHERE \"first_broadcast\"='26 January 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19930660_2\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"rufus_guest\" text,\n \"marcus_guest\" text,\n \"winner\" text\n);\n\nQuestion: When was episode 2x11 aired for the first time?"
},
{
"role": "assistant",
"content": "SELECT \"first_broadcast\" FROM \"table1_19930660_2\" WHERE \"episode\"='2x11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19930660_2\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"rufus_guest\" text,\n \"marcus_guest\" text,\n \"winner\" text\n);\n\nQuestion: Who won the episode in which Sean Lock was Rufus's guest?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"table1_19930660_2\" WHERE \"rufus_guest\"='Sean Lock';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19930660_2\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"rufus_guest\" text,\n \"marcus_guest\" text,\n \"winner\" text\n);\n\nQuestion: When was the episode 2x10 aired for the first time?"
},
{
"role": "assistant",
"content": "SELECT \"first_broadcast\" FROM \"table1_19930660_2\" WHERE \"episode\"='2x10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19930660_2\" (\n \"episode\" text,\n \"first_broadcast\" text,\n \"rufus_guest\" text,\n \"marcus_guest\" text,\n \"winner\" text\n);\n\nQuestion: Who was Marcus's guest in the episode when Rufus's guest was Rory McGrath?"
},
{
"role": "assistant",
"content": "SELECT \"marcus_guest\" FROM \"table1_19930660_2\" WHERE \"rufus_guest\"='Rory McGrath';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"seasonal_ratings\" (\n \"season\" real,\n \"timeslot_edt\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank_spanish_language\" real,\n \"viewers_in_millions\" text\n);\n\nQuestion: Name the total number of timeslot for august 9, 2007 finale"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"timeslot_edt\") FROM \"seasonal_ratings\" WHERE \"season_finale\"='August 9, 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"seasonal_ratings\" (\n \"season\" real,\n \"timeslot_edt\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank_spanish_language\" real,\n \"viewers_in_millions\" text\n);\n\nQuestion: Name the timeslot for 9.4 viewers for 2006"
},
{
"role": "assistant",
"content": "SELECT \"timeslot_edt\" FROM \"seasonal_ratings\" WHERE \"viewers_in_millions\"='9.4' AND \"tv_season\"='2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"other\" (\n \"index_year\" text,\n \"author_editor_source\" text,\n \"year_of_publication\" text,\n \"countries_sampled\" real,\n \"world_ranking_1\" text,\n \"ranking_l_a_2\" text\n);\n\nQuestion: How many items were under ranking l.a.(2) when the world ranking was 21st?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ranking_l_a_2\") FROM \"other\" WHERE \"world_ranking_1\"='21st';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"other\" (\n \"index_year\" text,\n \"author_editor_source\" text,\n \"year_of_publication\" text,\n \"countries_sampled\" real,\n \"world_ranking_1\" text,\n \"ranking_l_a_2\" text\n);\n\nQuestion: What was the author/editor/source when the l.a. ranking was 1st?"
},
{
"role": "assistant",
"content": "SELECT \"author_editor_source\" FROM \"other\" WHERE \"ranking_l_a_2\"='1st';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"other\" (\n \"index_year\" text,\n \"author_editor_source\" text,\n \"year_of_publication\" text,\n \"countries_sampled\" real,\n \"world_ranking_1\" text,\n \"ranking_l_a_2\" text\n);\n\nQuestion: How many years were listed under index when there were 157 countries sampled?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"index_year\") FROM \"other\" WHERE \"countries_sampled\"=157;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"other\" (\n \"index_year\" text,\n \"author_editor_source\" text,\n \"year_of_publication\" text,\n \"countries_sampled\" real,\n \"world_ranking_1\" text,\n \"ranking_l_a_2\" text\n);\n\nQuestion: What was the publication year ranking l.a. is 1st?"
},
{
"role": "assistant",
"content": "SELECT \"year_of_publication\" FROM \"other\" WHERE \"ranking_l_a_2\"='1st';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"other\" (\n \"index_year\" text,\n \"author_editor_source\" text,\n \"year_of_publication\" text,\n \"countries_sampled\" real,\n \"world_ranking_1\" text,\n \"ranking_l_a_2\" text\n);\n\nQuestion: How many years were recorded when world ranking was 21st?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"index_year\") FROM \"other\" WHERE \"world_ranking_1\"='21st';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"intel_centrino\" (\n \"wireless_lan\" text,\n \"chipset\" text,\n \"centrino\" text,\n \"processor\" text,\n \"codename\" text,\n \"release_date\" real,\n \"process_technology\" text,\n \"microarchitecture\" text\n);\n\nQuestion: What Wireless LAN had a process technology of 90nm and a Carmel centrino?"
},
{
"role": "assistant",
"content": "SELECT \"wireless_lan\" FROM \"intel_centrino\" WHERE \"process_technology\"='90nm' AND \"centrino\"='Carmel';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"intel_centrino\" (\n \"wireless_lan\" text,\n \"chipset\" text,\n \"centrino\" text,\n \"processor\" text,\n \"codename\" text,\n \"release_date\" real,\n \"process_technology\" text,\n \"microarchitecture\" text\n);\n\nQuestion: How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?"
},
{
"role": "assistant",
"content": "SELECT \"chipset\" FROM \"intel_centrino\" WHERE \"codename\"='Arrandale' AND \"wireless_lan\"='Intel Centrino Ultimate-N 6300';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"intel_centrino\" (\n \"wireless_lan\" text,\n \"chipset\" text,\n \"centrino\" text,\n \"processor\" text,\n \"codename\" text,\n \"release_date\" real,\n \"process_technology\" text,\n \"microarchitecture\" text\n);\n\nQuestion: What's the process technology of the Intel WiFi Link 5100 wireless LAN?"
},
{
"role": "assistant",
"content": "SELECT \"process_technology\" FROM \"intel_centrino\" WHERE \"wireless_lan\"='Intel WiFi Link 5100';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"intel_centrino\" (\n \"wireless_lan\" text,\n \"chipset\" text,\n \"centrino\" text,\n \"processor\" text,\n \"codename\" text,\n \"release_date\" real,\n \"process_technology\" text,\n \"microarchitecture\" text\n);\n\nQuestion: What type of processor does the Intel Centrino Wireless-N 105 wireless LAN have?"
},
{
"role": "assistant",
"content": "SELECT \"processor\" FROM \"intel_centrino\" WHERE \"wireless_lan\"='Intel Centrino Wireless-N 105';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"intel_centrino\" (\n \"wireless_lan\" text,\n \"chipset\" text,\n \"centrino\" text,\n \"processor\" text,\n \"codename\" text,\n \"release_date\" real,\n \"process_technology\" text,\n \"microarchitecture\" text\n);\n\nQuestion: What's the code name of the wireless LAN with Chief River Centrino?"
},
{
"role": "assistant",
"content": "SELECT \"codename\" FROM \"intel_centrino\" WHERE \"centrino\"='Chief River';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"aircraft\" (\n \"number\" real,\n \"registration\" text,\n \"first_flew\" text,\n \"last_flew\" text,\n \"flying_hours\" real,\n \"location\" text\n);\n\nQuestion: on 19 april 1985 how many of number last flew"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"number\") FROM \"aircraft\" WHERE \"last_flew\"='19 April 1985';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"aircraft\" (\n \"number\" real,\n \"registration\" text,\n \"first_flew\" text,\n \"last_flew\" text,\n \"flying_hours\" real,\n \"location\" text\n);\n\nQuestion: what is the registration located on 31 january 1975 where first flew?"
},
{
"role": "assistant",
"content": "SELECT \"registration\" FROM \"aircraft\" WHERE \"first_flew\"='31 January 1975';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"aircraft\" (\n \"number\" real,\n \"registration\" text,\n \"first_flew\" text,\n \"last_flew\" text,\n \"flying_hours\" real,\n \"location\" text\n);\n\nQuestion: at what location is the last flew on 11 june 2000"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"aircraft\" WHERE \"last_flew\"='11 June 2000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"aircraft\" (\n \"number\" real,\n \"registration\" text,\n \"first_flew\" text,\n \"last_flew\" text,\n \"flying_hours\" real,\n \"location\" text\n);\n\nQuestion: how many number is located at registration f-bvff?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"number\") FROM \"aircraft\" WHERE \"registration\"='F-BVFF';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"commentators_and_spokespersons\" (\n \"year_s\" real,\n \"television_commentator\" text,\n \"dual_television_commentator\" text,\n \"radio_commentator\" text,\n \"spokesperson\" text\n);\n\nQuestion: Who is the television commentator when the radio commentator is Galyna Babiy?"
},
{
"role": "assistant",
"content": "SELECT \"television_commentator\" FROM \"commentators_and_spokespersons\" WHERE \"radio_commentator\"='Galyna Babiy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"commentators_and_spokespersons\" (\n \"year_s\" real,\n \"television_commentator\" text,\n \"dual_television_commentator\" text,\n \"radio_commentator\" text,\n \"spokesperson\" text\n);\n\nQuestion: Who is the television commentator when the spokesperson is Kateryna Osadcha?"
},
{
"role": "assistant",
"content": "SELECT \"television_commentator\" FROM \"commentators_and_spokespersons\" WHERE \"spokesperson\"='Kateryna Osadcha';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"commentators_and_spokespersons\" (\n \"year_s\" real,\n \"television_commentator\" text,\n \"dual_television_commentator\" text,\n \"radio_commentator\" text,\n \"spokesperson\" text\n);\n\nQuestion: What is the year when the spoksperson is Ruslana?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year_s\") FROM \"commentators_and_spokespersons\" WHERE \"spokesperson\"='Ruslana';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"commentators_and_spokespersons\" (\n \"year_s\" real,\n \"television_commentator\" text,\n \"dual_television_commentator\" text,\n \"radio_commentator\" text,\n \"spokesperson\" text\n);\n\nQuestion: Who is the television commentator for the year 2006?"
},
{
"role": "assistant",
"content": "SELECT \"television_commentator\" FROM \"commentators_and_spokespersons\" WHERE \"year_s\"=2006;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19995378_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the season number of the episode seen by 10.11 million people in the US?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_season\" FROM \"table1_19995378_1\" WHERE \"u_s_viewers_millions\"='10.11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19995378_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many different series number does the episode titled \"Skate or Die\" have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_series\") FROM \"table1_19995378_1\" WHERE \"title\"='\\\"Skate or Die\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19995378_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the series number of the episode titled \"Rapture\"?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_19995378_1\" WHERE \"title\"='\\\"Rapture\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_19995378_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many episodes with different series numbers were seen by 8.69 people in the US?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_season\") FROM \"table1_19995378_1\" WHERE \"u_s_viewers_millions\"='8.69';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"language\" text,\n \"concepci_n_municipality_pct\" real,\n \"san_javier_municipality_pct\" real,\n \"san_ram_n_municipality_pct\" real,\n \"san_juli_n_municipality_pct\" real,\n \"san_antonio_de_lomer_o_municipality_pct\" text,\n \"cuatro_ca_adas_municipality_pct\" text\n);\n\nQuestion: If the language is only native, what is the percentage of the San Antonio de Lomerio municipality?"
},
{
"role": "assistant",
"content": "SELECT \"san_antonio_de_lomer_o_municipality_pct\" FROM \"population\" WHERE \"language\"='Only native';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"language\" text,\n \"concepci_n_municipality_pct\" real,\n \"san_javier_municipality_pct\" real,\n \"san_ram_n_municipality_pct\" real,\n \"san_juli_n_municipality_pct\" real,\n \"san_antonio_de_lomer_o_municipality_pct\" text,\n \"cuatro_ca_adas_municipality_pct\" text\n);\n\nQuestion: For language Aymara Simi, what was the maximum San Javier municipality percentage?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"san_javier_municipality_pct\") FROM \"population\" WHERE \"language\"='Aymara simi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"language\" text,\n \"concepci_n_municipality_pct\" real,\n \"san_javier_municipality_pct\" real,\n \"san_ram_n_municipality_pct\" real,\n \"san_juli_n_municipality_pct\" real,\n \"san_antonio_de_lomer_o_municipality_pct\" text,\n \"cuatro_ca_adas_municipality_pct\" text\n);\n\nQuestion: If the San Antonio de Lomerio municipality percentage is 5.480, what is the total percentage for the San Julian municipality?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"san_juli_n_municipality_pct\") FROM \"population\" WHERE \"san_antonio_de_lomer_o_municipality_pct\"='5.480';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"language\" text,\n \"concepci_n_municipality_pct\" real,\n \"san_javier_municipality_pct\" real,\n \"san_ram_n_municipality_pct\" real,\n \"san_juli_n_municipality_pct\" real,\n \"san_antonio_de_lomer_o_municipality_pct\" text,\n \"cuatro_ca_adas_municipality_pct\" text\n);\n\nQuestion: What is the municipality percentage for San Antonio de Lomerio is San Javier municipality percentage is 31?"
},
{
"role": "assistant",
"content": "SELECT \"san_antonio_de_lomer_o_municipality_pct\" FROM \"population\" WHERE \"san_javier_municipality_pct\"=31;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"language\" text,\n \"concepci_n_municipality_pct\" real,\n \"san_javier_municipality_pct\" real,\n \"san_ram_n_municipality_pct\" real,\n \"san_juli_n_municipality_pct\" real,\n \"san_antonio_de_lomer_o_municipality_pct\" text,\n \"cuatro_ca_adas_municipality_pct\" text\n);\n\nQuestion: If the Cuatro Ca\u00f1adas municipality percentage is 252, what are all the San Antonio de Lomer\u00edo municipality percentage?"
},
{
"role": "assistant",
"content": "SELECT \"san_antonio_de_lomer_o_municipality_pct\" FROM \"population\" WHERE \"cuatro_ca_adas_municipality_pct\"='252';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"language\" text,\n \"concepci_n_municipality_pct\" real,\n \"san_javier_municipality_pct\" real,\n \"san_ram_n_municipality_pct\" real,\n \"san_juli_n_municipality_pct\" real,\n \"san_antonio_de_lomer_o_municipality_pct\" text,\n \"cuatro_ca_adas_municipality_pct\" text\n);\n\nQuestion: What is the San Javier municipality percentage if the Cuatro Ca\u00f1adas municipality percentage is 202?"
},
{
"role": "assistant",
"content": "SELECT \"san_javier_municipality_pct\" FROM \"population\" WHERE \"cuatro_ca_adas_municipality_pct\"='202';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"films_in_series\" (\n \"num\" real,\n \"title\" text,\n \"maneater\" text,\n \"television_premiere\" text,\n \"dvd_release\" text,\n \"writer\" text,\n \"director\" text,\n \"producer\" text\n);\n\nQuestion: How many total number have robert young as the director?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"num\") FROM \"films_in_series\" WHERE \"director\"='Robert Young';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"films_in_series\" (\n \"num\" real,\n \"title\" text,\n \"maneater\" text,\n \"television_premiere\" text,\n \"dvd_release\" text,\n \"writer\" text,\n \"director\" text,\n \"producer\" text\n);\n\nQuestion: How many numbers have Charles Salmon as the producer and January 27, 2007 was the television premiere?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"num\") FROM \"films_in_series\" WHERE \"producer\"='Charles Salmon' AND \"television_premiere\"='January 27, 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"films_in_series\" (\n \"num\" real,\n \"title\" text,\n \"maneater\" text,\n \"television_premiere\" text,\n \"dvd_release\" text,\n \"writer\" text,\n \"director\" text,\n \"producer\" text\n);\n\nQuestion: How many dvd releases where directed by david decoteau?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"dvd_release\") FROM \"films_in_series\" WHERE \"director\"='David DeCoteau';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"films_in_series\" (\n \"num\" real,\n \"title\" text,\n \"maneater\" text,\n \"television_premiere\" text,\n \"dvd_release\" text,\n \"writer\" text,\n \"director\" text,\n \"producer\" text\n);\n\nQuestion: When was the dvd release directed by Billy O'Brien?"
},
{
"role": "assistant",
"content": "SELECT \"dvd_release\" FROM \"films_in_series\" WHERE \"director\"='Billy O''Brien';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the record after game 20?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"game\"=20;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: For the game against Iowa, who had the most assists?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"schedule\" WHERE \"team\"='Iowa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: state high assists on february 15"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"schedule\" WHERE \"date\"='February 15';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: how many high points where date is february 19"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_points\") FROM \"schedule\" WHERE \"date\"='February 19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: state the number of location attendance where record is 15\u201310 (5\u20137)"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location_attendance\") FROM \"schedule\" WHERE \"record\"='15\u201310 (5\u20137)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: how many dates where high assists is stu douglass (5) \u2013 4"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"schedule\" WHERE \"high_assists\"='Stu Douglass (5) \u2013 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: how many records were made on february 22"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"record\") FROM \"schedule\" WHERE \"date\"='February 22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lb1_and_lb4\" (\n \"year\" text,\n \"horsepower\" text,\n \"torque\" text,\n \"fuel_system\" text,\n \"compression_ratio\" text,\n \"rpo\" text,\n \"applications\" real\n);\n\nQuestion: Name the most applications for 1986"
},
{
"role": "assistant",
"content": "SELECT MAX(\"applications\") FROM \"lb1_and_lb4\" WHERE \"year\"='1986';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"lb1_and_lb4\" (\n \"year\" text,\n \"horsepower\" text,\n \"torque\" text,\n \"fuel_system\" text,\n \"compression_ratio\" text,\n \"rpo\" text,\n \"applications\" real\n);\n\nQuestion: Name the torque for 1986"
},
{
"role": "assistant",
"content": "SELECT \"torque\" FROM \"lb1_and_lb4\" WHERE \"year\"='1986';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_details\" (\n \"season\" real,\n \"network\" text,\n \"host\" text,\n \"contestants\" real,\n \"winner\" text,\n \"destination\" text\n);\n\nQuestion: What network showed the season with Australia as the destination?"
},
{
"role": "assistant",
"content": "SELECT \"network\" FROM \"series_details\" WHERE \"destination\"='Australia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_details\" (\n \"season\" real,\n \"network\" text,\n \"host\" text,\n \"contestants\" real,\n \"winner\" text,\n \"destination\" text\n);\n\nQuestion: What was the latest season with 20 contestants?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season\") FROM \"series_details\" WHERE \"contestants\"=20;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_details\" (\n \"season\" real,\n \"network\" text,\n \"host\" text,\n \"contestants\" real,\n \"winner\" text,\n \"destination\" text\n);\n\nQuestion: What season was won by Ashutosh Kaushik?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"season\") FROM \"series_details\" WHERE \"winner\"='Ashutosh Kaushik';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_details\" (\n \"season\" real,\n \"network\" text,\n \"host\" text,\n \"contestants\" real,\n \"winner\" text,\n \"destination\" text\n);\n\nQuestion: What was the destination of the season won by Anwar Syed?"
},
{
"role": "assistant",
"content": "SELECT \"destination\" FROM \"series_details\" WHERE \"winner\"='Anwar Syed';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_details\" (\n \"season\" real,\n \"network\" text,\n \"host\" text,\n \"contestants\" real,\n \"winner\" text,\n \"destination\" text\n);\n\nQuestion: What season was won by Anthony Yeh?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"series_details\" WHERE \"winner\"='Anthony Yeh';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_details\" (\n \"season\" real,\n \"network\" text,\n \"host\" text,\n \"contestants\" real,\n \"winner\" text,\n \"destination\" text\n);\n\nQuestion: Who won the season with Africa as its destination?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"series_details\" WHERE \"destination\"='Africa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20042805_2\" (\n \"ostrich\" text,\n \"hamerkop\" text,\n \"hadeda_ibis\" text,\n \"african_spoonbill\" text,\n \"whitefaced_duck\" text,\n \"knobbilled_duck\" text\n);\n\nQuestion: What is the African Spoonbill when the Hadeda Ibis is the Brown Snake Eagle?"
},
{
"role": "assistant",
"content": "SELECT \"african_spoonbill\" FROM \"table1_20042805_2\" WHERE \"hadeda_ibis\"='Brown Snake Eagle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20042805_2\" (\n \"ostrich\" text,\n \"hamerkop\" text,\n \"hadeda_ibis\" text,\n \"african_spoonbill\" text,\n \"whitefaced_duck\" text,\n \"knobbilled_duck\" text\n);\n\nQuestion: What is the Hadeda Ibis when the Ostrich is Dark Chanting Goshawk?"
},
{
"role": "assistant",
"content": "SELECT \"hadeda_ibis\" FROM \"table1_20042805_2\" WHERE \"ostrich\"='Dark Chanting Goshawk';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20042805_2\" (\n \"ostrich\" text,\n \"hamerkop\" text,\n \"hadeda_ibis\" text,\n \"african_spoonbill\" text,\n \"whitefaced_duck\" text,\n \"knobbilled_duck\" text\n);\n\nQuestion: What is the African Spoonbill when the Hadeda Ibis is Flernecked Nightjar?"
},
{
"role": "assistant",
"content": "SELECT \"african_spoonbill\" FROM \"table1_20042805_2\" WHERE \"hadeda_ibis\"='Flernecked Nightjar';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20042805_2\" (\n \"ostrich\" text,\n \"hamerkop\" text,\n \"hadeda_ibis\" text,\n \"african_spoonbill\" text,\n \"whitefaced_duck\" text,\n \"knobbilled_duck\" text\n);\n\nQuestion: What is the Hadeda Ibis when the Knobbilled Duck is Pied Crow?"
},
{
"role": "assistant",
"content": "SELECT \"hadeda_ibis\" FROM \"table1_20042805_2\" WHERE \"knobbilled_duck\"='Pied Crow';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20042805_2\" (\n \"ostrich\" text,\n \"hamerkop\" text,\n \"hadeda_ibis\" text,\n \"african_spoonbill\" text,\n \"whitefaced_duck\" text,\n \"knobbilled_duck\" text\n);\n\nQuestion: What is the African Spoonbill when the Ostrich is Brown-hooded Kingfisher?"
},
{
"role": "assistant",
"content": "SELECT \"african_spoonbill\" FROM \"table1_20042805_2\" WHERE \"ostrich\"='Brown-hooded Kingfisher';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20042805_2\" (\n \"ostrich\" text,\n \"hamerkop\" text,\n \"hadeda_ibis\" text,\n \"african_spoonbill\" text,\n \"whitefaced_duck\" text,\n \"knobbilled_duck\" text\n);\n\nQuestion: What is the Hadeda Ibis when the Whitefaced Duck is Blacksmith Plover?"
},
{
"role": "assistant",
"content": "SELECT \"hadeda_ibis\" FROM \"table1_20042805_2\" WHERE \"whitefaced_duck\"='Blacksmith Plover';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"location\" text,\n \"country\" text,\n \"date\" text,\n \"fastest_qualifying\" text,\n \"winning_pilot\" text,\n \"winning_aircraft\" text\n);\n\nQuestion: Name the winning pilot for hungary"
},
{
"role": "assistant",
"content": "SELECT \"winning_pilot\" FROM \"race_calendar_and_results\" WHERE \"country\"='Hungary';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"location\" text,\n \"country\" text,\n \"date\" text,\n \"fastest_qualifying\" text,\n \"winning_pilot\" text,\n \"winning_aircraft\" text\n);\n\nQuestion: Name the most round for michael goulian"
},
{
"role": "assistant",
"content": "SELECT MAX(\"round\") FROM \"race_calendar_and_results\" WHERE \"winning_pilot\"='Michael Goulian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"location\" text,\n \"country\" text,\n \"date\" text,\n \"fastest_qualifying\" text,\n \"winning_pilot\" text,\n \"winning_aircraft\" text\n);\n\nQuestion: Name the country for hannes arch"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"race_calendar_and_results\" WHERE \"winning_pilot\"='Hannes Arch';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20046379_3\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote the episode with series number 45?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_20046379_3\" WHERE \"no_in_series\"='45';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20046379_3\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many millions of people in the US saw the episode with production code 214?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_millions\" FROM \"table1_20046379_3\" WHERE \"production_code\"='214';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20046379_3\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the title of the episode seen by 3.8 million people in the US?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_20046379_3\" WHERE \"u_s_viewers_millions\"='3.8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20046379_3\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote the episode titled \"Mission gone bad\" \"Trapped in Paris\"?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_20046379_3\" WHERE \"title\"='\\\"Mission Gone Bad\\\" \\\"Trapped in Paris\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_20046379_3\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: On how many different dates did the episode with series number 35 air for the first time?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_20046379_3\" WHERE \"no_in_series\"='35';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2006661_1\" (\n \"year\" real,\n \"date\" text,\n \"type\" text,\n \"species\" text,\n \"author_species\" text,\n \"value\" text,\n \"scott\" text,\n \"yvert\" real,\n \"mitchell\" real,\n \"sta_gib\" real,\n \"order\" text,\n \"family\" text\n);\n\nQuestion: Name the date for value 55c"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"table1_2006661_1\" WHERE \"value\"='55c';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2006661_1\" (\n \"year\" real,\n \"date\" text,\n \"type\" text,\n \"species\" text,\n \"author_species\" text,\n \"value\" text,\n \"scott\" text,\n \"yvert\" real,\n \"mitchell\" real,\n \"sta_gib\" real,\n \"order\" text,\n \"family\" text\n);\n\nQuestion: Name the scott for chloropsis hardwickii"
},
{
"role": "assistant",
"content": "SELECT \"scott\" FROM \"table1_2006661_1\" WHERE \"species\"='Chloropsis hardwickii';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"no\" real,\n \"barangay\" text,\n \"area_in_km_2\" text,\n \"rank\" real,\n \"population_2000\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"population_density_2010\" text\n);\n\nQuestion: How many people lived in bulac in the year 2000?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_2000\") FROM \"demographics\" WHERE \"barangay\"='Bulac';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"no\" real,\n \"barangay\" text,\n \"area_in_km_2\" text,\n \"rank\" real,\n \"population_2000\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"population_density_2010\" text\n);\n\nQuestion: In 2010, how many people lived in cities with a population density of 3,965.02?"
},
{
"role": "assistant",
"content": "SELECT \"population_2010\" FROM \"demographics\" WHERE \"population_density_2010\"='3,965.02';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"no\" real,\n \"barangay\" text,\n \"area_in_km_2\" text,\n \"rank\" real,\n \"population_2000\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"population_density_2010\" text\n);\n\nQuestion: What's the name of the barangay whose area is 3.6787 km\u00b2 ?"
},
{
"role": "assistant",
"content": "SELECT \"barangay\" FROM \"demographics\" WHERE \"area_in_km_2\"='3.6787';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"no\" real,\n \"barangay\" text,\n \"area_in_km_2\" text,\n \"rank\" real,\n \"population_2000\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"population_density_2010\" text\n);\n\nQuestion: How many people lived in the city which has 1.2530 km\u00b2 in the year 2000?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_2000\") FROM \"demographics\" WHERE \"area_in_km_2\"='1.2530';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demographics\" (\n \"no\" real,\n \"barangay\" text,\n \"area_in_km_2\" text,\n \"rank\" real,\n \"population_2000\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"population_density_2010\" text\n);\n\nQuestion: How many people lived in san gabriel in the year 2000?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population_2000\") FROM \"demographics\" WHERE \"barangay\"='San Gabriel';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"representative\" text,\n \"state\" text,\n \"training\" text,\n \"title\" text,\n \"appointment\" text,\n \"presentation_of_credentials\" text,\n \"termination_of_mission\" text,\n \"reason\" text\n);\n\nQuestion: How many different titles does the representative whose mission was terminated on August 5, 1984 have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"title\") FROM \"see_also\" WHERE \"termination_of_mission\"='August 5, 1984';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"representative\" text,\n \"state\" text,\n \"training\" text,\n \"title\" text,\n \"appointment\" text,\n \"presentation_of_credentials\" text,\n \"termination_of_mission\" text,\n \"reason\" text\n);\n\nQuestion: What state does the representative whose mission was terminated on November 29, 1973 represent?"
},
{
"role": "assistant",
"content": "SELECT \"state\" FROM \"see_also\" WHERE \"termination_of_mission\"='November 29, 1973';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"representative\" text,\n \"state\" text,\n \"training\" text,\n \"title\" text,\n \"appointment\" text,\n \"presentation_of_credentials\" text,\n \"termination_of_mission\" text,\n \"reason\" text\n);\n\nQuestion: Who trained the representative whose presentation of credentials happened on February 24, 1950?"
},
{
"role": "assistant",
"content": "SELECT \"training\" FROM \"see_also\" WHERE \"presentation_of_credentials\"='February 24, 1950';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: When was the film H\u00e4r har du ditt liv used in nomination?"
},
{
"role": "assistant",
"content": "SELECT \"year_ceremony\" FROM \"submissions\" WHERE \"original_title\"='H\u00e4r har du ditt liv';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What's the original title of the film Zozo?"
},
{
"role": "assistant",
"content": "SELECT \"original_title\" FROM \"submissions\" WHERE \"film_title_used_in_nomination\"='Zozo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What's the original title of The New Land?"
},
{
"role": "assistant",
"content": "SELECT \"original_title\" FROM \"submissions\" WHERE \"film_title_used_in_nomination\"='The New Land';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_doubles_15_3_titles_5_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the championship for winner and judy tegart dalton lesley turner bowrey"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"championship\") FROM \"women_s_doubles_15_3_titles_5_runner_ups\" WHERE \"outcome\"='Winner' AND \"opponents\"='Judy Tegart Dalton Lesley Turner Bowrey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_doubles_15_3_titles_5_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the outcome for wimbledon"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"women_s_doubles_15_3_titles_5_runner_ups\" WHERE \"championship\"='Wimbledon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_doubles_15_3_titles_5_runner_ups\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: Name the opponets for 6\u20134, 3\u20136, 6\u20132"
},
{
"role": "assistant",
"content": "SELECT \"opponents\" FROM \"women_s_doubles_15_3_titles_5_runner_ups\" WHERE \"score\"='6\u20134, 3\u20136, 6\u20132';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.