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 \"table1_18424435_5\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"canadian_air_date\" text,\n \"u_s_air_date\" text,\n \"production_code\" real,\n \"canadian_viewers_million\" text\n);\n\nQuestion: How many production codes have the title \"the better man\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"production_code\") FROM \"table1_18424435_5\" WHERE \"title\"='\\\"The Better Man\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18424435_5\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"canadian_air_date\" text,\n \"u_s_air_date\" text,\n \"production_code\" real,\n \"canadian_viewers_million\" text\n);\n\nQuestion: Who directed the episode that aired on July 29, 2011?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_18424435_5\" WHERE \"u_s_air_date\"='July 29, 2011';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18424435_5\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"canadian_air_date\" text,\n \"u_s_air_date\" text,\n \"production_code\" real,\n \"canadian_viewers_million\" text\n);\n\nQuestion: How many air dates where directed by jim donovan?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"u_s_air_date\") FROM \"table1_18424435_5\" WHERE \"directed_by\"='Jim Donovan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18424435_5\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"canadian_air_date\" text,\n \"u_s_air_date\" text,\n \"production_code\" real,\n \"canadian_viewers_million\" text\n);\n\nQuestion: What is the smallest number?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"num\") FROM \"table1_18424435_5\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18424435_5\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"canadian_air_date\" text,\n \"u_s_air_date\" text,\n \"production_code\" real,\n \"canadian_viewers_million\" text\n);\n\nQuestion: Which air dates have 1.229 canadian viewers (millions)?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_air_date\" FROM \"table1_18424435_5\" WHERE \"canadian_viewers_million\"='1.229';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"punjab\" (\n \"serial_no\" real,\n \"district\" text,\n \"headquartered_city\" text,\n \"city_population_2009\" real,\n \"city_area_km_2\" real\n);\n\nQuestion: In what district is the city listed in Serial number 9?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"district\") FROM \"punjab\" WHERE \"serial_no\"=9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"punjab\" (\n \"serial_no\" real,\n \"district\" text,\n \"headquartered_city\" text,\n \"city_population_2009\" real,\n \"city_area_km_2\" real\n);\n\nQuestion: What is the area of the city in the Sargodha district?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"city_area_km_2\") FROM \"punjab\" WHERE \"district\"='Sargodha District';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"punjab\" (\n \"serial_no\" real,\n \"district\" text,\n \"headquartered_city\" text,\n \"city_population_2009\" real,\n \"city_area_km_2\" real\n);\n\nQuestion: What is the smallest city area?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"city_area_km_2\") FROM \"punjab\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes\" (\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);\n\nQuestion: If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"episodes\" WHERE \"directed_by\"='Di Drew';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_districts\" (\n \"district\" text,\n \"s_barangay\" real,\n \"population_2010_census\" real,\n \"area_has\" text,\n \"pop_density_per_km2\" text\n);\n\nQuestion: What is the population (2010 census) if s barangay is 51?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population_2010_census\") FROM \"administrative_districts\" WHERE \"s_barangay\"=51;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"administrative_districts\" (\n \"district\" text,\n \"s_barangay\" real,\n \"population_2010_census\" real,\n \"area_has\" text,\n \"pop_density_per_km2\" text\n);\n\nQuestion: What is the population (2010 census) if the area is 66.11?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"population_2010_census\") FROM \"administrative_districts\" WHERE \"area_has\"='66.11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"elimination_chamber_entrances_and_elimin\" (\n \"eliminated\" real,\n \"wrestler\" text,\n \"entered\" real,\n \"eliminated_by\" text,\n \"method_of_elimination\" text,\n \"time\" text\n);\n\nQuestion: How many entered the match with a time of 14:42? "
},
{
"role": "assistant",
"content": "SELECT \"entered\" FROM \"elimination_chamber_entrances_and_elimin\" WHERE \"time\"='14:42';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"elimination_chamber_entrances_and_elimin\" (\n \"eliminated\" real,\n \"wrestler\" text,\n \"entered\" real,\n \"eliminated_by\" text,\n \"method_of_elimination\" text,\n \"time\" text\n);\n\nQuestion: What was the time for the match with Cena? "
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"elimination_chamber_entrances_and_elimin\" WHERE \"wrestler\"='Cena';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"elimination_chamber_entrances_and_elimin\" (\n \"eliminated\" real,\n \"wrestler\" text,\n \"entered\" real,\n \"eliminated_by\" text,\n \"method_of_elimination\" text,\n \"time\" text\n);\n\nQuestion: What was the time of the match where Chris Jericho eliminated the wrestler? "
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"elimination_chamber_entrances_and_elimin\" WHERE \"eliminated_by\"='Chris Jericho';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_rf\" text,\n \"owned_since\" real,\n \"affiliation\" text\n);\n\nQuestion: What are all the stations with a license in Cincinnati?"
},
{
"role": "assistant",
"content": "SELECT \"station\" FROM \"television_stations\" WHERE \"city_of_license_market\"='Cincinnati';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_rf\" text,\n \"owned_since\" real,\n \"affiliation\" text\n);\n\nQuestion: What station is affiliated with kmgh-tv?"
},
{
"role": "assistant",
"content": "SELECT \"affiliation\" FROM \"television_stations\" WHERE \"station\"='KMGH-TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_rf\" text,\n \"owned_since\" real,\n \"affiliation\" text\n);\n\nQuestion: How many stations have been owned since wfts-tv?"
},
{
"role": "assistant",
"content": "SELECT \"owned_since\" FROM \"television_stations\" WHERE \"station\"='WFTS-TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_rf\" text,\n \"owned_since\" real,\n \"affiliation\" text\n);\n\nQuestion: What city of license/market has the channel of 41?"
},
{
"role": "assistant",
"content": "SELECT \"city_of_license_market\" FROM \"television_stations\" WHERE \"channel_tv_rf\"='41';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"television_stations\" (\n \"city_of_license_market\" text,\n \"station\" text,\n \"channel_tv_rf\" text,\n \"owned_since\" real,\n \"affiliation\" text\n);\n\nQuestion: What is the minimum stations owned since kero-tv?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"owned_since\") FROM \"television_stations\" WHERE \"station\"='KERO-TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_sites\" (\n \"transmitter\" text,\n \"service_area\" text,\n \"radio_1_m_hz\" text,\n \"2_fm_m_hz\" text,\n \"rna_g_m_hz\" text,\n \"lyric_fm_m_hz\" text,\n \"erp_k_w\" text\n);\n\nQuestion: What is the lyric fm for rnag 93.2?"
},
{
"role": "assistant",
"content": "SELECT \"lyric_fm_m_hz\" FROM \"main_sites\" WHERE \"rna_g_m_hz\"='93.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_sites\" (\n \"transmitter\" text,\n \"service_area\" text,\n \"radio_1_m_hz\" text,\n \"2_fm_m_hz\" text,\n \"rna_g_m_hz\" text,\n \"lyric_fm_m_hz\" text,\n \"erp_k_w\" text\n);\n\nQuestion: What are the 2fm's for erp 16?"
},
{
"role": "assistant",
"content": "SELECT \"2_fm_m_hz\" FROM \"main_sites\" WHERE \"erp_k_w\"='16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_sites\" (\n \"transmitter\" text,\n \"service_area\" text,\n \"radio_1_m_hz\" text,\n \"2_fm_m_hz\" text,\n \"rna_g_m_hz\" text,\n \"lyric_fm_m_hz\" text,\n \"erp_k_w\" text\n);\n\nQuestion: What is the rnag for kippure transmitter? "
},
{
"role": "assistant",
"content": "SELECT \"rna_g_m_hz\" FROM \"main_sites\" WHERE \"transmitter\"='Kippure';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_sites\" (\n \"transmitter\" text,\n \"service_area\" text,\n \"radio_1_m_hz\" text,\n \"2_fm_m_hz\" text,\n \"rna_g_m_hz\" text,\n \"lyric_fm_m_hz\" text,\n \"erp_k_w\" text\n);\n\nQuestion: What is the rnag for lyric fm 98.7? "
},
{
"role": "assistant",
"content": "SELECT \"rna_g_m_hz\" FROM \"main_sites\" WHERE \"lyric_fm_m_hz\"='98.7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_sites\" (\n \"transmitter\" text,\n \"service_area\" text,\n \"radio_1_m_hz\" text,\n \"2_fm_m_hz\" text,\n \"rna_g_m_hz\" text,\n \"lyric_fm_m_hz\" text,\n \"erp_k_w\" text\n);\n\nQuestion: What is the 2fm for rnag 94.4?"
},
{
"role": "assistant",
"content": "SELECT \"2_fm_m_hz\" FROM \"main_sites\" WHERE \"rna_g_m_hz\"='94.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senate\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: How many reasons were given when A. Willis Robertson (D) resigned?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"reason_for_change\") FROM \"senate\" WHERE \"vacator\"='A. Willis Robertson (D)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senate\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: Who vacated his post when his successor was formally installed on May 11, 1966?"
},
{
"role": "assistant",
"content": "SELECT \"vacator\" FROM \"senate\" WHERE \"date_of_successors_formal_installation\"='May 11, 1966';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senate\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: What was the state (class) where the new successor was formally installed on May 11, 1966?"
},
{
"role": "assistant",
"content": "SELECT \"state_class\" FROM \"senate\" WHERE \"date_of_successors_formal_installation\"='May 11, 1966';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"best_selling_albums_in_the_uk\" (\n \"no\" real,\n \"album\" text,\n \"artist\" text,\n \"record_label\" text,\n \"released\" text,\n \"chart_peak\" real,\n \"number_of_times_certified_platinum\" text\n);\n\nQuestion: When abba is the artist what is the album?"
},
{
"role": "assistant",
"content": "SELECT \"album\" FROM \"best_selling_albums_in_the_uk\" WHERE \"artist\"='ABBA';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"best_selling_albums_in_the_uk\" (\n \"no\" real,\n \"album\" text,\n \"artist\" text,\n \"record_label\" text,\n \"released\" text,\n \"chart_peak\" real,\n \"number_of_times_certified_platinum\" text\n);\n\nQuestion: When 35 is the number what is the album?"
},
{
"role": "assistant",
"content": "SELECT \"album\" FROM \"best_selling_albums_in_the_uk\" WHERE \"no\"=35;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"best_selling_albums_in_the_uk\" (\n \"no\" real,\n \"album\" text,\n \"artist\" text,\n \"record_label\" text,\n \"released\" text,\n \"chart_peak\" real,\n \"number_of_times_certified_platinum\" text\n);\n\nQuestion: When bat out of hell is the album what is the lowest number?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no\") FROM \"best_selling_albums_in_the_uk\" WHERE \"album\"='Bat Out of Hell';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"best_selling_albums_in_the_uk\" (\n \"no\" real,\n \"album\" text,\n \"artist\" text,\n \"record_label\" text,\n \"released\" text,\n \"chart_peak\" real,\n \"number_of_times_certified_platinum\" text\n);\n\nQuestion: When cannot handle non-empty timestamp argument! 2007 is released what is the no.? "
},
{
"role": "assistant",
"content": "SELECT \"no\" FROM \"best_selling_albums_in_the_uk\" WHERE \"released\"='Cannot handle non-empty timestamp argument! 2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1847180_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: Which district did Ralph Harvey (r) vacated when he resigned?"
},
{
"role": "assistant",
"content": "SELECT \"district\" FROM \"table1_1847180_4\" WHERE \"vacator\"='Ralph Harvey (R)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1847180_4\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: Who did Walter B. Jones, Sr. (d) succeeded in office?"
},
{
"role": "assistant",
"content": "SELECT \"vacator\" FROM \"table1_1847180_4\" WHERE \"successor\"='Walter B. Jones, Sr. (D)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18481791_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: What number episode in the series was titled \"Never the Bride\"?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_18481791_2\" WHERE \"title\"='\\\"Never the Bride\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18481791_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: Who wrote the episode titled \"Trojan Horst\"?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_18481791_2\" WHERE \"title\"='\\\"Trojan Horst\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18481791_2\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_in_millions\" text\n);\n\nQuestion: What was the title of the episode directed by John T. Kretchmer? "
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_18481791_2\" WHERE \"directed_by\"='John T. Kretchmer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18481791_3\" (\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 \"u_s_viewers_in_millions\" text\n);\n\nQuestion: How many seasons were directed by Bryan Spicer?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_season\") FROM \"table1_18481791_3\" WHERE \"directed_by\"='Bryan Spicer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18481791_3\" (\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 \"u_s_viewers_in_millions\" text\n);\n\nQuestion: What is the title of series 23?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_18481791_3\" WHERE \"no_in_series\"=23;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18481791_3\" (\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 \"u_s_viewers_in_millions\" text\n);\n\nQuestion: When did the title \"training video\" originally air?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_18481791_3\" WHERE \"title\"='\\\"Training Video\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18481791_3\" (\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 \"u_s_viewers_in_millions\" text\n);\n\nQuestion: Who directed season 1?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_18481791_3\" WHERE \"no_in_season\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_18481791_3\" (\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 \"u_s_viewers_in_millions\" text\n);\n\nQuestion: What is the title when u.s. viewers (millions) is 3.97?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_18481791_3\" WHERE \"u_s_viewers_in_millions\"='3.97';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_184803_4\" (\n \"voting_order\" real,\n \"country\" text,\n \"spokespersons\" text,\n \"commentator\" text,\n \"broadcaster\" text\n);\n\nQuestion: how many people commentated where broadcaster is orf"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"commentator\") FROM \"table1_184803_4\" WHERE \"broadcaster\"='ORF';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_184803_4\" (\n \"voting_order\" real,\n \"country\" text,\n \"spokespersons\" text,\n \"commentator\" text,\n \"broadcaster\" text\n);\n\nQuestion: list the spokespersons where voting order is 9"
},
{
"role": "assistant",
"content": "SELECT \"spokespersons\" FROM \"table1_184803_4\" WHERE \"voting_order\"=9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_184803_4\" (\n \"voting_order\" real,\n \"country\" text,\n \"spokespersons\" text,\n \"commentator\" text,\n \"broadcaster\" text\n);\n\nQuestion: which countries were commentated on by gordana bonetti"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"table1_184803_4\" WHERE \"commentator\"='Gordana Bonetti';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_184803_4\" (\n \"voting_order\" real,\n \"country\" text,\n \"spokespersons\" text,\n \"commentator\" text,\n \"broadcaster\" text\n);\n\nQuestion: wich spokesperson talked on luxembourg"
},
{
"role": "assistant",
"content": "SELECT \"spokespersons\" FROM \"table1_184803_4\" WHERE \"country\"='Luxembourg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_184803_4\" (\n \"voting_order\" real,\n \"country\" text,\n \"spokespersons\" text,\n \"commentator\" text,\n \"broadcaster\" text\n);\n\nQuestion: who was the commentator when spokesperson was claude darget"
},
{
"role": "assistant",
"content": "SELECT \"commentator\" FROM \"table1_184803_4\" WHERE \"spokespersons\"='Claude Darget';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"years_in_iiac_approx\" text,\n \"team_nickname\" text\n);\n\nQuestion: List all institutions with a team name of the Cardinals. "
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"membership\" WHERE \"team_nickname\"='Cardinals';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"membership\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"years_in_iiac_approx\" text,\n \"team_nickname\" text\n);\n\nQuestion: List the total number of institutions founded in Rock Island, Illinois."
},
{
"role": "assistant",
"content": "SELECT COUNT(\"founded\") FROM \"membership\" WHERE \"location\"='Rock Island, Illinois';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1849243_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: How many viewers in millions watched the episode 23:55 minutes long?"
},
{
"role": "assistant",
"content": "SELECT \"viewers_in_millions\" FROM \"table1_1849243_1\" WHERE \"run_time\"='23:55';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1849243_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What is the broadcast date of the 16mm t/r episode?"
},
{
"role": "assistant",
"content": "SELECT \"broadcast_date\" FROM \"table1_1849243_1\" WHERE \"archive\"='16mm t/r';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1849243_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: How many viewers watched the 16mm t/r episode?"
},
{
"role": "assistant",
"content": "SELECT \"viewers_in_millions\" FROM \"table1_1849243_1\" WHERE \"archive\"='16mm t/r';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcasters\" (\n \"mexico\" text,\n \"ma_ana_es_para_siempre\" text,\n \"el_canal_de_las_estrellas\" text,\n \"october_20_2008\" text,\n \"june_14_2009\" text,\n \"monday_to_friday\" text\n);\n\nQuestion: state el canal de las estrellas where october 20, 2008 stat is june 5, 2009"
},
{
"role": "assistant",
"content": "SELECT \"el_canal_de_las_estrellas\" FROM \"broadcasters\" WHERE \"october_20_2008\"='June 5, 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcasters\" (\n \"mexico\" text,\n \"ma_ana_es_para_siempre\" text,\n \"el_canal_de_las_estrellas\" text,\n \"october_20_2008\" text,\n \"june_14_2009\" text,\n \"monday_to_friday\" text\n);\n\nQuestion: state el canal de las estrellas where ma\u00f1ana es para siempre is impreuna pentru totdeauna"
},
{
"role": "assistant",
"content": "SELECT \"el_canal_de_las_estrellas\" FROM \"broadcasters\" WHERE \"ma_ana_es_para_siempre\"='Impreuna pentru totdeauna';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcasters\" (\n \"mexico\" text,\n \"ma_ana_es_para_siempre\" text,\n \"el_canal_de_las_estrellas\" text,\n \"october_20_2008\" text,\n \"june_14_2009\" text,\n \"monday_to_friday\" text\n);\n\nQuestion: what is the june 14, 2009 stat where october 20, 2008 stat is november 15, 2010"
},
{
"role": "assistant",
"content": "SELECT \"june_14_2009\" FROM \"broadcasters\" WHERE \"october_20_2008\"='November 15, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcasters\" (\n \"mexico\" text,\n \"ma_ana_es_para_siempre\" text,\n \"el_canal_de_las_estrellas\" text,\n \"october_20_2008\" text,\n \"june_14_2009\" text,\n \"monday_to_friday\" text\n);\n\nQuestion: what is the mexico stat where ma\u00f1ana es para siempre is love never dies"
},
{
"role": "assistant",
"content": "SELECT \"mexico\" FROM \"broadcasters\" WHERE \"ma_ana_es_para_siempre\"='Love Never Dies';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcasters\" (\n \"mexico\" text,\n \"ma_ana_es_para_siempre\" text,\n \"el_canal_de_las_estrellas\" text,\n \"october_20_2008\" text,\n \"june_14_2009\" text,\n \"monday_to_friday\" text\n);\n\nQuestion: state el canal de las estrellas where october 20, 2008 stat is june 5, 2009"
},
{
"role": "assistant",
"content": "SELECT \"el_canal_de_las_estrellas\" FROM \"broadcasters\" WHERE \"october_20_2008\"='June 5, 2009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcasters\" (\n \"mexico\" text,\n \"ma_ana_es_para_siempre\" text,\n \"el_canal_de_las_estrellas\" text,\n \"october_20_2008\" text,\n \"june_14_2009\" text,\n \"monday_to_friday\" text\n);\n\nQuestion: what is the october 20, 2008 stat where mexico stat is romania"
},
{
"role": "assistant",
"content": "SELECT \"october_20_2008\" FROM \"broadcasters\" WHERE \"mexico\"='Romania';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1850282_7\" (\n \"species\" text,\n \"common_name\" text,\n \"trinidad\" text,\n \"tobago\" text,\n \"bocas_is\" text,\n \"other\" text\n);\n\nQuestion: Name the other for chironius multiventris septentrionalis"
},
{
"role": "assistant",
"content": "SELECT \"other\" FROM \"table1_1850282_7\" WHERE \"species\"='Chironius multiventris septentrionalis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1850282_7\" (\n \"species\" text,\n \"common_name\" text,\n \"trinidad\" text,\n \"tobago\" text,\n \"bocas_is\" text,\n \"other\" text\n);\n\nQuestion: Name the trinidad for yellow-bellied puffing snake"
},
{
"role": "assistant",
"content": "SELECT \"trinidad\" FROM \"table1_1850282_7\" WHERE \"common_name\"='Yellow-bellied puffing snake';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1850282_7\" (\n \"species\" text,\n \"common_name\" text,\n \"trinidad\" text,\n \"tobago\" text,\n \"bocas_is\" text,\n \"other\" text\n);\n\nQuestion: Name the bocas for chironius multiventris septentrionalis"
},
{
"role": "assistant",
"content": "SELECT \"bocas_is\" FROM \"table1_1850282_7\" WHERE \"species\"='Chironius multiventris septentrionalis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1850282_7\" (\n \"species\" text,\n \"common_name\" text,\n \"trinidad\" text,\n \"tobago\" text,\n \"bocas_is\" text,\n \"other\" text\n);\n\nQuestion: Name the trindad for yellow-bellied puffing snake"
},
{
"role": "assistant",
"content": "SELECT \"trinidad\" FROM \"table1_1850282_7\" WHERE \"common_name\"='Yellow-bellied puffing snake';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1850282_7\" (\n \"species\" text,\n \"common_name\" text,\n \"trinidad\" text,\n \"tobago\" text,\n \"bocas_is\" text,\n \"other\" text\n);\n\nQuestion: Name the common name for chironius multiventris septentrionalis"
},
{
"role": "assistant",
"content": "SELECT \"common_name\" FROM \"table1_1850282_7\" WHERE \"species\"='Chironius multiventris septentrionalis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_2\" (\n \"contestant_name\" text,\n \"episode_num\" real,\n \"date_premiered_2009\" text,\n \"winning_amount\" text,\n \"eliminated_contestant\" text\n);\n\nQuestion: What contestant was premiered on July 25? "
},
{
"role": "assistant",
"content": "SELECT \"contestant_name\" FROM \"season_2\" WHERE \"date_premiered_2009\"='July 25';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1850339_2\" (\n \"season\" real,\n \"trophy_winner\" text,\n \"air_force_navy_score\" text,\n \"air_force_army_score\" text,\n \"army_navy_score\" text\n);\n\nQuestion: What's the Air Force - Navy score in the 2018 season?"
},
{
"role": "assistant",
"content": "SELECT \"air_force_navy_score\" FROM \"table1_1850339_2\" WHERE \"season\"=2018;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1850339_2\" (\n \"season\" real,\n \"trophy_winner\" text,\n \"air_force_navy_score\" text,\n \"air_force_army_score\" text,\n \"army_navy_score\" text\n);\n\nQuestion: What was the Air Force - Navy score in the 1983 season?"
},
{
"role": "assistant",
"content": "SELECT \"air_force_navy_score\" FROM \"table1_1850339_2\" WHERE \"season\"=1983;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1850339_2\" (\n \"season\" real,\n \"trophy_winner\" text,\n \"air_force_navy_score\" text,\n \"air_force_army_score\" text,\n \"army_navy_score\" text\n);\n\nQuestion: How many different season have an Army - Navy score of 10 dec. 2016 at Baltimore, MD (M&T Bank Stadium)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"table1_1850339_2\" WHERE \"army_navy_score\"='10 Dec. 2016 at Baltimore, MD (M&T Bank Stadium)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_5\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: In the first episode of Garfield titled Robodie II, what is the title of the U.S. Acres Episode?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_acres_episode\" FROM \"table1_1852270_5\" WHERE \"garfield_episode_1\"='Robodie II';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_5\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is the title of the first episode of Garfield that is followed by the second episode of Garfield titled Mamma Manicotti?"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_1\" FROM \"table1_1852270_5\" WHERE \"garfield_episode_2\"='Mamma Manicotti';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_5\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is the name of the US Acres episode following the Garfield episode titled Robodie II?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_acres_episode\" FROM \"table1_1852270_5\" WHERE \"garfield_episode_1\"='Robodie II';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_4\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: what is the 2nd garfield episode for garfield episode 1 twice told tale"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_2\" FROM \"table1_1852270_4\" WHERE \"garfield_episode_1\"='Twice Told Tale';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_4\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: what is the 2nd garfield episode where u.s. acres episode is the orson awards"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_1\" FROM \"table1_1852270_4\" WHERE \"u_s_acres_episode\"='The Orson Awards';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_4\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: how many 2nd episodes for u.s. acres episode the orson awards"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"garfield_episode_2\") FROM \"table1_1852270_4\" WHERE \"u_s_acres_episode\"='The Orson Awards';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_4\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: what is the original airdate for garfield episode 2 the wise man"
},
{
"role": "assistant",
"content": "SELECT \"original_airdate\" FROM \"table1_1852270_4\" WHERE \"garfield_episode_2\"='The Wise Man';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_4\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: what is the 2nd garfield episode where u.s. acres episode is the bunny rabbits is coming!"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_2\" FROM \"table1_1852270_4\" WHERE \"u_s_acres_episode\"='The Bunny Rabbits is Coming!';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_4\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: which episode had garfield episode 1 ship shape"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"table1_1852270_4\" WHERE \"garfield_episode_1\"='Ship Shape';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_6\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: Which Garfield episode 2 has Garfield episode 1 as the first annual Garfield watchers test?"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_2\" FROM \"table1_1852270_6\" WHERE \"garfield_episode_1\"='The First Annual Garfield Watchers Test';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_6\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is the original air date of the u.s. acres episode who done it?"
},
{
"role": "assistant",
"content": "SELECT \"original_airdate\" FROM \"table1_1852270_6\" WHERE \"u_s_acres_episode\"='Who Done It?';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_6\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: Which episode in Garfield episode 1 is the worst pizza in the history of mankind?"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"table1_1852270_6\" WHERE \"garfield_episode_1\"='The Worst Pizza in the History of Mankind';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_6\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: How many original airdates is Garfield episode 1 is cute for loot?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_airdate\") FROM \"table1_1852270_6\" WHERE \"garfield_episode_1\"='Cute for Loot';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_6\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: Which u.s.acres episode has \"show 79\" as the episode?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_acres_episode\" FROM \"table1_1852270_6\" WHERE \"episode\"='\\\"Show 79\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_6\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: How many u.s. episodes have Garfield episode 2 the picnic panic?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"u_s_acres_episode\") FROM \"table1_1852270_6\" WHERE \"garfield_episode_2\"='The Picnic Panic';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_2\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: what is the garfield episode where us acres episode is banana nose?"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_2\" FROM \"table1_1852270_2\" WHERE \"u_s_acres_episode\"='Banana Nose';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_2\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: what is the original airdate for shell shocked sheldon?"
},
{
"role": "assistant",
"content": "SELECT \"original_airdate\" FROM \"table1_1852270_2\" WHERE \"u_s_acres_episode\"='Shell Shocked Sheldon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_3\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is episode 2 for Robodie?"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_2\" FROM \"table1_1852270_3\" WHERE \"garfield_episode_1\"='Robodie';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_3\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: What are the episodes for \"Crime and Nourishment\"?"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"table1_1852270_3\" WHERE \"garfield_episode_2\"='Crime and Nourishment';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_8\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is the garfield episode 2 when episode 1 is \"change of mind\"?"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_2\" FROM \"table1_1852270_8\" WHERE \"garfield_episode_1\"='Change Of Mind';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_8\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is the title of garfield episode 2 when \"the horror hostess (part 1)\" is episode 1?"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_2\" FROM \"table1_1852270_8\" WHERE \"garfield_episode_1\"='The Horror Hostess (Part 1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_8\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is the name of episode 2 for garfield when episode 1 is \"suburban jungle\"?"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_2\" FROM \"table1_1852270_8\" WHERE \"garfield_episode_1\"='Suburban Jungle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1852270_8\" (\n \"episode\" text,\n \"garfield_episode_1\" text,\n \"u_s_acres_episode\" text,\n \"garfield_episode_2\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is episode 2 of garfield when episode 1 is \"the horror hostess (part 1)\"?"
},
{
"role": "assistant",
"content": "SELECT \"garfield_episode_2\" FROM \"table1_1852270_8\" WHERE \"garfield_episode_1\"='The Horror Hostess (Part 1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_indicators_for_international\" (\n \"country\" text,\n \"tourist_arrivals_2011_millions\" text,\n \"tourism_receipts_2011_millions_of_us\" real,\n \"tourism_receipts_2011_us_per_arrival\" real,\n \"tourism_receipts_2011_us_per_capita\" real,\n \"tourism_receipts_2003_as_pct_of_gdp\" text,\n \"tourism_receipts_2003_as_pct_of_exports\" text,\n \"direct_and_indirect_employment_in_tourism_2005_pct\" text,\n \"tourism_competitiveness_2011_ttci\" text\n);\n\nQuestion: Name the tourism receipts 2003 for tourism competitiveness 3.26"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tourism_receipts_2003_as_pct_of_exports\") FROM \"performance_indicators_for_international\" WHERE \"tourism_competitiveness_2011_ttci\"='3.26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_indicators_for_international\" (\n \"country\" text,\n \"tourist_arrivals_2011_millions\" text,\n \"tourism_receipts_2011_millions_of_us\" real,\n \"tourism_receipts_2011_us_per_arrival\" real,\n \"tourism_receipts_2011_us_per_capita\" real,\n \"tourism_receipts_2003_as_pct_of_gdp\" text,\n \"tourism_receipts_2003_as_pct_of_exports\" text,\n \"direct_and_indirect_employment_in_tourism_2005_pct\" text,\n \"tourism_competitiveness_2011_ttci\" text\n);\n\nQuestion: Name the tourism receipts 2003 for colombia"
},
{
"role": "assistant",
"content": "SELECT \"tourism_receipts_2003_as_pct_of_gdp\" FROM \"performance_indicators_for_international\" WHERE \"country\"='Colombia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_indicators_for_international\" (\n \"country\" text,\n \"tourist_arrivals_2011_millions\" text,\n \"tourism_receipts_2011_millions_of_us\" real,\n \"tourism_receipts_2011_us_per_arrival\" real,\n \"tourism_receipts_2011_us_per_capita\" real,\n \"tourism_receipts_2003_as_pct_of_gdp\" text,\n \"tourism_receipts_2003_as_pct_of_exports\" text,\n \"direct_and_indirect_employment_in_tourism_2005_pct\" text,\n \"tourism_competitiveness_2011_ttci\" text\n);\n\nQuestion: Name the total number of tourism receipts 2011 where tourism receipts 2003 13.5"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tourism_receipts_2011_us_per_capita\") FROM \"performance_indicators_for_international\" WHERE \"tourism_receipts_2003_as_pct_of_gdp\"='13.5';"
}
]
|
[
{
"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 \"call_sign\" text,\n \"branding\" text,\n \"format\" text,\n \"owner\" text,\n \"language_rebroadcast\" text\n);\n\nQuestion: When classic hits 102.1 cjcy is the branding who is the owner?"
},
{
"role": "assistant",
"content": "SELECT \"owner\" FROM \"radio\" WHERE \"branding\"='Classic Hits 102.1 CJCY';"
}
]
|
[
{
"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 \"call_sign\" text,\n \"branding\" text,\n \"format\" text,\n \"owner\" text,\n \"language_rebroadcast\" text\n);\n\nQuestion: When hot adult contemporary is the format what is the call sign?"
},
{
"role": "assistant",
"content": "SELECT \"call_sign\" FROM \"radio\" WHERE \"format\"='hot adult contemporary';"
}
]
|
[
{
"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 \"call_sign\" text,\n \"branding\" text,\n \"format\" text,\n \"owner\" text,\n \"language_rebroadcast\" text\n);\n\nQuestion: When vista radio is the owner how many call signs are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"call_sign\") FROM \"radio\" WHERE \"owner\"='Vista Radio';"
}
]
|
[
{
"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 \"call_sign\" text,\n \"branding\" text,\n \"format\" text,\n \"owner\" text,\n \"language_rebroadcast\" text\n);\n\nQuestion: When fm 97.3 is the frequency how many formats are there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"format\") FROM \"radio\" WHERE \"frequency\"='FM 97.3';"
}
]
|
[
{
"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 \"call_sign\" text,\n \"branding\" text,\n \"format\" text,\n \"owner\" text,\n \"language_rebroadcast\" text\n);\n\nQuestion: When vista radio is the owner what is the frequency? "
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"radio\" WHERE \"owner\"='Vista Radio';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Name the team for 5 september 2008 for date of vacancy for 30 august 2008"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"managerial_changes\" WHERE \"date_of_appointment\"='5 September 2008' AND \"date_of_vacancy\"='30 August 2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Name the date of vacancy for daniel uberti"
},
{
"role": "assistant",
"content": "SELECT \"date_of_vacancy\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Daniel Uberti';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"replaced_by\" text,\n \"date_of_appointment\" text,\n \"position_in_table\" text\n);\n\nQuestion: Name the manner of departure for date of vacancy 25 august 2008"
},
{
"role": "assistant",
"content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"date_of_vacancy\"='25 August 2008';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.