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 \"division_ii\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: What conference does Gonzaga University play in?"
},
{
"role": "assistant",
"content": "SELECT \"primary_conference\" FROM \"division_ii\" WHERE \"institution\"='Gonzaga University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_ii\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: How many Universities were founded in Tacoma, Washington?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"founded\") FROM \"division_ii\" WHERE \"location\"='Tacoma, Washington';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_ii\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: Which school's team has the nickname of the Wildcats?"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"division_ii\" WHERE \"team_nickname\"='Wildcats';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_ii\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: What year was the university that is located in Ellensburg, Washington established?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"founded\") FROM \"division_ii\" WHERE \"location\"='Ellensburg, Washington';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_ii\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text\n);\n\nQuestion: Where is the university located that's nicknamed the Wolves?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"division_ii\" WHERE \"team_nickname\"='Wolves';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_standard_ratings\" (\n \"num\" real,\n \"air_date\" text,\n \"timeslot\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49\" text,\n \"viewers\" text,\n \"weekly_rank\" text\n);\n\nQuestion: What is the total number of viewers where the share is 7 and the week rank is 64?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"viewers\") FROM \"u_s_standard_ratings\" WHERE \"share\"=7 AND \"weekly_rank\"='64';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_standard_ratings\" (\n \"num\" real,\n \"air_date\" text,\n \"timeslot\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49\" text,\n \"viewers\" text,\n \"weekly_rank\" text\n);\n\nQuestion: How many episodes have a share bigger than 7.0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"num\") FROM \"u_s_standard_ratings\" WHERE \"share\">7.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_standard_ratings\" (\n \"num\" real,\n \"air_date\" text,\n \"timeslot\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49\" text,\n \"viewers\" text,\n \"weekly_rank\" text\n);\n\nQuestion: How many episodes have a weekly rank tba and are broadcast at 8:00 p.m.?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"num\") FROM \"u_s_standard_ratings\" WHERE \"weekly_rank\"='TBA' AND \"timeslot\"='8:00 P.M.';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_standard_ratings\" (\n \"num\" real,\n \"air_date\" text,\n \"timeslot\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49\" text,\n \"viewers\" text,\n \"weekly_rank\" text\n);\n\nQuestion: What are the timeslot(s) for broadcast on February 22, 2008?"
},
{
"role": "assistant",
"content": "SELECT \"timeslot\" FROM \"u_s_standard_ratings\" WHERE \"air_date\"='February 22, 2008';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"u_s_standard_ratings\" (\n \"num\" real,\n \"air_date\" text,\n \"timeslot\" text,\n \"rating\" text,\n \"share\" real,\n \"18_49\" text,\n \"viewers\" text,\n \"weekly_rank\" text\n);\n\nQuestion: What broadcast dates have a weekly rank of 73?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"air_date\") FROM \"u_s_standard_ratings\" WHERE \"weekly_rank\"='73';"
}
]
|
[
{
"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);\n\nQuestion: When was the date of appointment for St. Johnstone's manager? "
},
{
"role": "assistant",
"content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"team\"='St. Johnstone';"
}
]
|
[
{
"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);\n\nQuestion: Who was the outgoing manager for Aberdeen? "
},
{
"role": "assistant",
"content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"team\"='Aberdeen';"
}
]
|
[
{
"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);\n\nQuestion: When was the date of appointment for the manager replacing Wim Jansen? "
},
{
"role": "assistant",
"content": "SELECT \"date_of_appointment\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Wim Jansen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"usage\" (\n \"species\" text,\n \"indole\" text,\n \"methyl_red\" text,\n \"voges_proskauer\" text,\n \"citrate\" text\n);\n\nQuestion: What is the result for salmonella spp. if you use citrate?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"citrate\") FROM \"usage\" WHERE \"species\"='Salmonella spp.';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"usage\" (\n \"species\" text,\n \"indole\" text,\n \"methyl_red\" text,\n \"voges_proskauer\" text,\n \"citrate\" text\n);\n\nQuestion: Which species show a negative result with both voges-proskauer and indole?"
},
{
"role": "assistant",
"content": "SELECT \"species\" FROM \"usage\" WHERE \"voges_proskauer\"='Negative' AND \"indole\"='Negative';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"usage\" (\n \"species\" text,\n \"indole\" text,\n \"methyl_red\" text,\n \"voges_proskauer\" text,\n \"citrate\" text\n);\n\nQuestion: What are the results for testing the species with voges-proskauer when citrate yields a positive result?"
},
{
"role": "assistant",
"content": "SELECT \"voges_proskauer\" FROM \"usage\" WHERE \"citrate\"='Positive';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"usage\" (\n \"species\" text,\n \"indole\" text,\n \"methyl_red\" text,\n \"voges_proskauer\" text,\n \"citrate\" text\n);\n\nQuestion: What is the result of proteus mirabilis tested with indole?"
},
{
"role": "assistant",
"content": "SELECT \"indole\" FROM \"usage\" WHERE \"species\"='Proteus mirabilis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16090262_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"tv_broadcast\" text\n);\n\nQuestion: When was the show originally aired that had a TV broadcast of S07E04?"
},
{
"role": "assistant",
"content": "SELECT \"originalairdate\" FROM \"table1_16090262_1\" WHERE \"tv_broadcast\"='S07E04';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16090262_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"tv_broadcast\" text\n);\n\nQuestion: Which title was No. 4 in season?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_16090262_1\" WHERE \"no_in_season\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16090262_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"originalairdate\" text,\n \"tv_broadcast\" text\n);\n\nQuestion: Who directed the show that had a TV broadcast of S07E04?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_16090262_1\" WHERE \"tv_broadcast\"='S07E04';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"1st_place\" text,\n \"2nd_place\" text,\n \"3rd_place\" text,\n \"4th_place\" text\n);\n\nQuestion: What seasons did unicaja m\u00e1laga finish in 3rd?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"by_season\" WHERE \"3rd_place\"='Unicaja M\u00e1laga';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"1st_place\" text,\n \"2nd_place\" text,\n \"3rd_place\" text,\n \"4th_place\" text\n);\n\nQuestion: What teams finished 3rd when limoges finished 4th?"
},
{
"role": "assistant",
"content": "SELECT \"3rd_place\" FROM \"by_season\" WHERE \"4th_place\"='Limoges';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"1st_place\" text,\n \"2nd_place\" text,\n \"3rd_place\" text,\n \"4th_place\" text\n);\n\nQuestion: What team finished in 1st when tau cer\u00e1mica was in 3rd?"
},
{
"role": "assistant",
"content": "SELECT \"1st_place\" FROM \"by_season\" WHERE \"3rd_place\"='TAU Cer\u00e1mica';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"1st_place\" text,\n \"2nd_place\" text,\n \"3rd_place\" text,\n \"4th_place\" text\n);\n\nQuestion: What teams finished in 3rd when panathinaikos finished 2nd?"
},
{
"role": "assistant",
"content": "SELECT \"3rd_place\" FROM \"by_season\" WHERE \"2nd_place\"='Panathinaikos';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16105186_2\" (\n \"vehicle\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"alaska_juneau\" text,\n \"california_san_francisco\" text,\n \"mid_atlantic_south_washington_d_c\" text,\n \"u_s_national_average_electric_mix\" text,\n \"southeast_atlanta\" text,\n \"midwest_des_moines\" text,\n \"rocky_mountains_denver\" text\n);\n\nQuestion: What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California?"
},
{
"role": "assistant",
"content": "SELECT \"mid_atlantic_south_washington_d_c\" FROM \"table1_16105186_2\" WHERE \"alaska_juneau\"='90 g/mi (56 g/km)' AND \"california_san_francisco\"='110 g/mi (68 g/km)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16105186_2\" (\n \"vehicle\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"alaska_juneau\" text,\n \"california_san_francisco\" text,\n \"mid_atlantic_south_washington_d_c\" text,\n \"u_s_national_average_electric_mix\" text,\n \"southeast_atlanta\" text,\n \"midwest_des_moines\" text,\n \"rocky_mountains_denver\" text\n);\n\nQuestion: What was the emission rating in Mid-Atlantic South for the vehicle that was rated 300 g/mi (186 g/km) in the Midwest?"
},
{
"role": "assistant",
"content": "SELECT \"mid_atlantic_south_washington_d_c\" FROM \"table1_16105186_2\" WHERE \"midwest_des_moines\"='300 g/mi (186 g/km)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16105186_2\" (\n \"vehicle\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"alaska_juneau\" text,\n \"california_san_francisco\" text,\n \"mid_atlantic_south_washington_d_c\" text,\n \"u_s_national_average_electric_mix\" text,\n \"southeast_atlanta\" text,\n \"midwest_des_moines\" text,\n \"rocky_mountains_denver\" text\n);\n\nQuestion: What was the US national average electric mix rating for the vehicle that was rated 280 g/mi (174 g/km) in the Midwest?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_national_average_electric_mix\" FROM \"table1_16105186_2\" WHERE \"midwest_des_moines\"='280 g/mi (174 g/km)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16105186_2\" (\n \"vehicle\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"alaska_juneau\" text,\n \"california_san_francisco\" text,\n \"mid_atlantic_south_washington_d_c\" text,\n \"u_s_national_average_electric_mix\" text,\n \"southeast_atlanta\" text,\n \"midwest_des_moines\" text,\n \"rocky_mountains_denver\" text\n);\n\nQuestion: How many Ford Focus electric vehicle emission test scores were recorded in California?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"california_san_francisco\") FROM \"table1_16105186_2\" WHERE \"vehicle\"='Ford Focus Electric';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16105186_2\" (\n \"vehicle\" text,\n \"epa_rated_all_electric_range\" text,\n \"epa_rated_combined_fuel_economy\" text,\n \"alaska_juneau\" text,\n \"california_san_francisco\" text,\n \"mid_atlantic_south_washington_d_c\" text,\n \"u_s_national_average_electric_mix\" text,\n \"southeast_atlanta\" text,\n \"midwest_des_moines\" text,\n \"rocky_mountains_denver\" text\n);\n\nQuestion: What was the emission rating in California for the vehicle that was rated 80 g/mi (50 g/km) in Alaska and 250 g/mi (155 g/km) in the Southeast ?"
},
{
"role": "assistant",
"content": "SELECT \"california_san_francisco\" FROM \"table1_16105186_2\" WHERE \"alaska_juneau\"='80 g/mi (50 g/km)' AND \"southeast_atlanta\"='250 g/mi (155 g/km)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the lowest no. of attendance on record?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") FROM \"game_log\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: When was the game played if the attendance is less than 6427.0?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"attendance\"<6427.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"num\" real,\n \"date\" text,\n \"at_vs\" text,\n \"opponent\" text,\n \"score\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: How many were in attendance during the game on January 9, 1988?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"game_log\" WHERE \"date\"='January 9, 1988';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"code\" text,\n \"district\" text,\n \"headquarters\" text,\n \"population_2011\" real,\n \"area_km\" real,\n \"density_km\" real,\n \"official_website\" text\n);\n\nQuestion: Where is the headquarters of the place whose abbreviation is hy?"
},
{
"role": "assistant",
"content": "SELECT \"headquarters\" FROM \"external_links\" WHERE \"code\"='HY';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"code\" text,\n \"district\" text,\n \"headquarters\" text,\n \"population_2011\" real,\n \"area_km\" real,\n \"density_km\" real,\n \"official_website\" text\n);\n\nQuestion: Where is the headquarters of the place whose population in 2011 was 3811738?"
},
{
"role": "assistant",
"content": "SELECT \"headquarters\" FROM \"external_links\" WHERE \"population_2011\"=3811738;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"code\" text,\n \"district\" text,\n \"headquarters\" text,\n \"population_2011\" real,\n \"area_km\" real,\n \"density_km\" real,\n \"official_website\" text\n);\n\nQuestion: What was the minimum population in 2011 of the district of Prakasam?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"population_2011\") FROM \"external_links\" WHERE \"district\"='Prakasam';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"code\" text,\n \"district\" text,\n \"headquarters\" text,\n \"population_2011\" real,\n \"area_km\" real,\n \"density_km\" real,\n \"official_website\" text\n);\n\nQuestion: What is the abbreviation of the district of Mahbubnagar?"
},
{
"role": "assistant",
"content": "SELECT \"code\" FROM \"external_links\" WHERE \"district\"='Mahbubnagar';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"external_links\" (\n \"code\" text,\n \"district\" text,\n \"headquarters\" text,\n \"population_2011\" real,\n \"area_km\" real,\n \"density_km\" real,\n \"official_website\" text\n);\n\nQuestion: What is the 2011 population of the district of East Godavari?"
},
{
"role": "assistant",
"content": "SELECT \"population_2011\" FROM \"external_links\" WHERE \"district\"='East Godavari';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1610496_3\" (\n \"year\" real,\n \"gdp_nominal_billions\" text,\n \"gdp_adjusted_billions\" text,\n \"population_millions\" text,\n \"gdp_per_capita_nominal\" real,\n \"gdp_per_capita_adjusted\" real\n);\n\nQuestion: What is the adjusted GDP when the nominal GDP per capita is 2874?"
},
{
"role": "assistant",
"content": "SELECT \"gdp_adjusted_billions\" FROM \"table1_1610496_3\" WHERE \"gdp_per_capita_nominal\"=2874;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1610496_3\" (\n \"year\" real,\n \"gdp_nominal_billions\" text,\n \"gdp_adjusted_billions\" text,\n \"population_millions\" text,\n \"gdp_per_capita_nominal\" real,\n \"gdp_per_capita_adjusted\" real\n);\n\nQuestion: What is the adjusted GDP per capita when the population is 37.376 million?"
},
{
"role": "assistant",
"content": "SELECT \"gdp_per_capita_adjusted\" FROM \"table1_1610496_3\" WHERE \"population_millions\"='37.376';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1610496_3\" (\n \"year\" real,\n \"gdp_nominal_billions\" text,\n \"gdp_adjusted_billions\" text,\n \"population_millions\" text,\n \"gdp_per_capita_nominal\" real,\n \"gdp_per_capita_adjusted\" real\n);\n\nQuestion: What is the nominal GDP per capita when the population is 63.056 million?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"gdp_per_capita_nominal\") FROM \"table1_1610496_3\" WHERE \"population_millions\"='63.056';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1610496_3\" (\n \"year\" real,\n \"gdp_nominal_billions\" text,\n \"gdp_adjusted_billions\" text,\n \"population_millions\" text,\n \"gdp_per_capita_nominal\" real,\n \"gdp_per_capita_adjusted\" real\n);\n\nQuestion: What is the adjusted GDP when the population is 5.141 million?"
},
{
"role": "assistant",
"content": "SELECT \"gdp_adjusted_billions\" FROM \"table1_1610496_3\" WHERE \"population_millions\"='5.141';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1610496_3\" (\n \"year\" real,\n \"gdp_nominal_billions\" text,\n \"gdp_adjusted_billions\" text,\n \"population_millions\" text,\n \"gdp_per_capita_nominal\" real,\n \"gdp_per_capita_adjusted\" real\n);\n\nQuestion: What is the population in millions when the adjusted GDP is 492 billion?"
},
{
"role": "assistant",
"content": "SELECT \"population_millions\" FROM \"table1_1610496_3\" WHERE \"gdp_adjusted_billions\"='492';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1610496_3\" (\n \"year\" real,\n \"gdp_nominal_billions\" text,\n \"gdp_adjusted_billions\" text,\n \"population_millions\" text,\n \"gdp_per_capita_nominal\" real,\n \"gdp_per_capita_adjusted\" real\n);\n\nQuestion: What is the adjusted GDP when the nominal GDP is 8.43 (in billions)?"
},
{
"role": "assistant",
"content": "SELECT \"gdp_adjusted_billions\" FROM \"table1_1610496_3\" WHERE \"gdp_nominal_billions\"='8.43';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singapore_airlines_group_financial_highl\" (\n \"year_ended\" text,\n \"revenue_s_m\" text,\n \"expenditure_s_m\" text,\n \"operating_profit_s_m\" text,\n \"profit_before_taxation_s_m\" text,\n \"profit_attributable_to_equity_holders_s_m\" text,\n \"eps_after_tax_diluted_cents\" text\n);\n\nQuestion: What was the opearint profit (s$m) associated with an expenditure (s$m) of 12,127.8?"
},
{
"role": "assistant",
"content": "SELECT \"operating_profit_s_m\" FROM \"singapore_airlines_group_financial_highl\" WHERE \"expenditure_s_m\"='12,127.8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singapore_airlines_group_financial_highl\" (\n \"year_ended\" text,\n \"revenue_s_m\" text,\n \"expenditure_s_m\" text,\n \"operating_profit_s_m\" text,\n \"profit_before_taxation_s_m\" text,\n \"profit_attributable_to_equity_holders_s_m\" text,\n \"eps_after_tax_diluted_cents\" text\n);\n\nQuestion: What was the expenditure (s$m) associated with an operating profit (s$m) of 717.1?"
},
{
"role": "assistant",
"content": "SELECT \"expenditure_s_m\" FROM \"singapore_airlines_group_financial_highl\" WHERE \"operating_profit_s_m\"='717.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singapore_airlines_group_financial_highl\" (\n \"year_ended\" text,\n \"revenue_s_m\" text,\n \"expenditure_s_m\" text,\n \"operating_profit_s_m\" text,\n \"profit_before_taxation_s_m\" text,\n \"profit_attributable_to_equity_holders_s_m\" text,\n \"eps_after_tax_diluted_cents\" text\n);\n\nQuestion: How many years was the operating profit (s$m) 717.1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"profit_before_taxation_s_m\") FROM \"singapore_airlines_group_financial_highl\" WHERE \"operating_profit_s_m\"='717.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"development_of_chinese_mind_monkey_terms\" (\n \"date_ce\" text,\n \"text\" text,\n \"simplified_characters\" text,\n \"traditional_characters\" text,\n \"pinyin\" text,\n \"wade_giles\" text,\n \"literal_meaning\" text\n);\n\nQuestion: Name the simplified characters for wade giles is ch'ing-y\u00fcan \u2026 i-ma"
},
{
"role": "assistant",
"content": "SELECT \"simplified_characters\" FROM \"development_of_chinese_mind_monkey_terms\" WHERE \"wade_giles\"='ch''ing-y\u00fcan \u2026 i-ma';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"development_of_chinese_mind_monkey_terms\" (\n \"date_ce\" text,\n \"text\" text,\n \"simplified_characters\" text,\n \"traditional_characters\" text,\n \"pinyin\" text,\n \"wade_giles\" text,\n \"literal_meaning\" text\n);\n\nQuestion: Name the pinyin for 657 date"
},
{
"role": "assistant",
"content": "SELECT \"pinyin\" FROM \"development_of_chinese_mind_monkey_terms\" WHERE \"date_ce\"='657';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"development_of_chinese_mind_monkey_terms\" (\n \"date_ce\" text,\n \"text\" text,\n \"simplified_characters\" text,\n \"traditional_characters\" text,\n \"pinyin\" text,\n \"wade_giles\" text,\n \"literal_meaning\" text\n);\n\nQuestion: Name the text for \u5fc3\u733f\u610f\u9a6c"
},
{
"role": "assistant",
"content": "SELECT \"text\" FROM \"development_of_chinese_mind_monkey_terms\" WHERE \"simplified_characters\"='\u5fc3\u733f\u610f\u9a6c';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"development_of_chinese_mind_monkey_terms\" (\n \"date_ce\" text,\n \"text\" text,\n \"simplified_characters\" text,\n \"traditional_characters\" text,\n \"pinyin\" text,\n \"wade_giles\" text,\n \"literal_meaning\" text\n);\n\nQuestion: Name the simplified charaacters being hsin-y\u00fcan \u2026 i-ma"
},
{
"role": "assistant",
"content": "SELECT \"simplified_characters\" FROM \"development_of_chinese_mind_monkey_terms\" WHERE \"wade_giles\"='hsin-y\u00fcan \u2026 i-ma';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"development_of_chinese_mind_monkey_terms\" (\n \"date_ce\" text,\n \"text\" text,\n \"simplified_characters\" text,\n \"traditional_characters\" text,\n \"pinyin\" text,\n \"wade_giles\" text,\n \"literal_meaning\" text\n);\n\nQuestion: Name the total number of pinyin for hsin-y\u00fcan-i-ma"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pinyin\") FROM \"development_of_chinese_mind_monkey_terms\" WHERE \"wade_giles\"='hsin-y\u00fcan-i-ma';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"development_of_chinese_mind_monkey_terms\" (\n \"date_ce\" text,\n \"text\" text,\n \"simplified_characters\" text,\n \"traditional_characters\" text,\n \"pinyin\" text,\n \"wade_giles\" text,\n \"literal_meaning\" text\n);\n\nQuestion: Name the date for q\u00edngyu\u00e1n \u2026 y\u00ecm\u01ce"
},
{
"role": "assistant",
"content": "SELECT \"date_ce\" FROM \"development_of_chinese_mind_monkey_terms\" WHERE \"pinyin\"='q\u00edngyu\u00e1n \u2026 y\u00ecm\u01ce';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"services\" (\n \"platform\" real,\n \"frequency_per_hour\" real,\n \"destination\" text,\n \"service_pattern\" text,\n \"operator\" text,\n \"line\" text\n);\n\nQuestion: Which line offers Fast to Norwood Junction?"
},
{
"role": "assistant",
"content": "SELECT \"line\" FROM \"services\" WHERE \"service_pattern\"='Fast to Norwood Junction';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"services\" (\n \"platform\" real,\n \"frequency_per_hour\" real,\n \"destination\" text,\n \"service_pattern\" text,\n \"operator\" text,\n \"line\" text\n);\n\nQuestion: Who is the operator to Highbury & Islington?"
},
{
"role": "assistant",
"content": "SELECT \"operator\" FROM \"services\" WHERE \"destination\"='Highbury & Islington';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"services\" (\n \"platform\" real,\n \"frequency_per_hour\" real,\n \"destination\" text,\n \"service_pattern\" text,\n \"operator\" text,\n \"line\" text\n);\n\nQuestion: How many frequency figures are given for next station service pattern?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"frequency_per_hour\") FROM \"services\" WHERE \"service_pattern\"='Next station';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"services\" (\n \"platform\" real,\n \"frequency_per_hour\" real,\n \"destination\" text,\n \"service_pattern\" text,\n \"operator\" text,\n \"line\" text\n);\n\nQuestion: Who is the operator to destination Dalston Junction?"
},
{
"role": "assistant",
"content": "SELECT \"operator\" FROM \"services\" WHERE \"destination\"='Dalston Junction';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1615980_4\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: How many tournament wins were at Volvo Masters Andalucia?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no\") FROM \"table1_1615980_4\" WHERE \"tournament\"='Volvo Masters Andalucia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1615980_4\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Who was the runner up at the Volvo Masters Andalucia?"
},
{
"role": "assistant",
"content": "SELECT \"runner_s_up\" FROM \"table1_1615980_4\" WHERE \"tournament\"='Volvo Masters Andalucia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1615980_4\" (\n \"no\" real,\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"to_par\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: In what tournament was the winning score 68-67-65-66=266?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"table1_1615980_4\" WHERE \"winning_score\"='68-67-65-66=266';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_conference_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text,\n \"left\" text,\n \"current_conference\" text\n);\n\nQuestion: Name the joined for blue hose"
},
{
"role": "assistant",
"content": "SELECT \"joined\" FROM \"former_conference_members\" WHERE \"nickname\"='Blue Hose';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_conference_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text,\n \"left\" text,\n \"current_conference\" text\n);\n\nQuestion: Name the maximum founded for blue hose"
},
{
"role": "assistant",
"content": "SELECT MAX(\"founded\") FROM \"former_conference_members\" WHERE \"nickname\"='Blue Hose';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_conference_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text,\n \"left\" text,\n \"current_conference\" text\n);\n\nQuestion: Name the maximum enrollment for st. andrews university"
},
{
"role": "assistant",
"content": "SELECT MAX(\"enrollment\") FROM \"former_conference_members\" WHERE \"institution\"='St. Andrews University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_conference_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text,\n \"left\" text,\n \"current_conference\" text\n);\n\nQuestion: Name the current conference for 1974, 1989"
},
{
"role": "assistant",
"content": "SELECT \"current_conference\" FROM \"former_conference_members\" WHERE \"left\"='1974, 1989';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16175064_3\" (\n \"season_num\" real,\n \"series_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is the total number of episodes where alexa wyatt is the writer?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"series_num\") FROM \"table1_16175064_3\" WHERE \"writer_s\"='Alexa Wyatt';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16175064_3\" (\n \"season_num\" real,\n \"series_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who is the director when Chris Hawkshaw is the writer?"
},
{
"role": "assistant",
"content": "SELECT \"director_s\" FROM \"table1_16175064_3\" WHERE \"writer_s\"='Chris Hawkshaw';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16175064_3\" (\n \"season_num\" real,\n \"series_num\" real,\n \"title\" text,\n \"director_s\" text,\n \"writer_s\" text,\n \"original_airdate\" text\n);\n\nQuestion: What is the season number of the episode directed by Donald Crombie and the series number is 40?"
},
{
"role": "assistant",
"content": "SELECT \"season_num\" FROM \"table1_16175064_3\" WHERE \"director_s\"='Donald Crombie' AND \"series_num\"=40;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"i_que_ds\" (\n \"western_title\" text,\n \"chinese_title\" text,\n \"pinyin\" text,\n \"released_date\" text,\n \"genre\" text,\n \"game_modes\" text\n);\n\nQuestion: What is the released date for Super Mario 64 DS?"
},
{
"role": "assistant",
"content": "SELECT \"released_date\" FROM \"i_que_ds\" WHERE \"western_title\"='Super Mario 64 DS';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"i_que_ds\" (\n \"western_title\" text,\n \"chinese_title\" text,\n \"pinyin\" text,\n \"released_date\" text,\n \"genre\" text,\n \"game_modes\" text\n);\n\nQuestion: What are the game modes for the game released in 2007?"
},
{
"role": "assistant",
"content": "SELECT \"game_modes\" FROM \"i_que_ds\" WHERE \"released_date\"='2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"i_que_ds\" (\n \"western_title\" text,\n \"chinese_title\" text,\n \"pinyin\" text,\n \"released_date\" text,\n \"genre\" text,\n \"game_modes\" text\n);\n\nQuestion: How many games share their western title with the Chinese title of \u6478\u6478\u8000\u897f-\u4e91\u4e2d\u6f2b\u6b65 ?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"western_title\") FROM \"i_que_ds\" WHERE \"chinese_title\"='\u6478\u6478\u8000\u897f-\u4e91\u4e2d\u6f2b\u6b65';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"i_que_ds\" (\n \"western_title\" text,\n \"chinese_title\" text,\n \"pinyin\" text,\n \"released_date\" text,\n \"genre\" text,\n \"game_modes\" text\n);\n\nQuestion: What was the released date of Polarium?"
},
{
"role": "assistant",
"content": "SELECT \"released_date\" FROM \"i_que_ds\" WHERE \"western_title\"='Polarium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"i_que_ds\" (\n \"western_title\" text,\n \"chinese_title\" text,\n \"pinyin\" text,\n \"released_date\" text,\n \"genre\" text,\n \"game_modes\" text\n);\n\nQuestion: What game modes are there when the pinyin is zh\u00edg\u01cen y\u012b b\u01d0 ?"
},
{
"role": "assistant",
"content": "SELECT \"game_modes\" FROM \"i_que_ds\" WHERE \"pinyin\"='Zh\u00edg\u01cen Y\u012b B\u01d0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16175217_1\" (\n \"country\" text,\n \"donor_payment\" text,\n \"children_per_donor\" text,\n \"donor_anonymity\" text,\n \"allowed_recipients\" text\n);\n\nQuestion: What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients?"
},
{
"role": "assistant",
"content": "SELECT \"donor_payment\" FROM \"table1_16175217_1\" WHERE \"children_per_donor\"='6 children' AND \"allowed_recipients\"='no data';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16175217_1\" (\n \"country\" text,\n \"donor_payment\" text,\n \"children_per_donor\" text,\n \"donor_anonymity\" text,\n \"allowed_recipients\" text\n);\n\nQuestion: What are donor payments in the country where there are 12 children to 6 families (2 per family)?"
},
{
"role": "assistant",
"content": "SELECT \"donor_payment\" FROM \"table1_16175217_1\" WHERE \"children_per_donor\"='12 children to 6 families (2 per family)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16175217_1\" (\n \"country\" text,\n \"donor_payment\" text,\n \"children_per_donor\" text,\n \"donor_anonymity\" text,\n \"allowed_recipients\" text\n);\n\nQuestion: What is the donor payment in Belgium?"
},
{
"role": "assistant",
"content": "SELECT \"donor_payment\" FROM \"table1_16175217_1\" WHERE \"country\"='Belgium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16175217_1\" (\n \"country\" text,\n \"donor_payment\" text,\n \"children_per_donor\" text,\n \"donor_anonymity\" text,\n \"allowed_recipients\" text\n);\n\nQuestion: What is the country where there are 8 children per donor and no data for donor payments?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"table1_16175217_1\" WHERE \"children_per_donor\"='8 children' AND \"donor_payment\"='no data';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16175217_1\" (\n \"country\" text,\n \"donor_payment\" text,\n \"children_per_donor\" text,\n \"donor_anonymity\" text,\n \"allowed_recipients\" text\n);\n\nQuestion: What are the children per donor in the country where the allowed recipients are married or in cohabitation?"
},
{
"role": "assistant",
"content": "SELECT \"children_per_donor\" FROM \"table1_16175217_1\" WHERE \"allowed_recipients\"='Married or in cohabitation';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16175217_1\" (\n \"country\" text,\n \"donor_payment\" text,\n \"children_per_donor\" text,\n \"donor_anonymity\" text,\n \"allowed_recipients\" text\n);\n\nQuestion: List the possible children per donor levels for countries where the allowed recipients is no data."
},
{
"role": "assistant",
"content": "SELECT \"children_per_donor\" FROM \"table1_16175217_1\" WHERE \"allowed_recipients\"='no data';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_other_opponents_at_least_15_ga\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text\n);\n\nQuestion: Against which team does Missouri Tigers have a record of mu, 2-1 at a neutral site?"
},
{
"role": "assistant",
"content": "SELECT \"missouri_vs\" FROM \"record_vs_other_opponents_at_least_15_ga\" WHERE \"at_neutral_site\"='MU, 2-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_other_opponents_at_least_15_ga\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text\n);\n\nQuestion: Which is the team against which Missouri Tigers have a record of ui, 4-1 at the opponent's venue?How"
},
{
"role": "assistant",
"content": "SELECT \"missouri_vs\" FROM \"record_vs_other_opponents_at_least_15_ga\" WHERE \"at_opponents_venue\"='UI, 4-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_other_opponents_at_least_15_ga\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text\n);\n\nQuestion: How many times did the team achieve an overrall record of mu, 21-19?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"last_5_meetings\") FROM \"record_vs_other_opponents_at_least_15_ga\" WHERE \"overall_record\"='MU, 21-19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_other_opponents_at_least_15_ga\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text\n);\n\nQuestion: What is the record at the neutral site for when the overall record is ui, 27-16?"
},
{
"role": "assistant",
"content": "SELECT \"at_neutral_site\" FROM \"record_vs_other_opponents_at_least_15_ga\" WHERE \"overall_record\"='UI, 27-16';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_other_opponents_at_least_15_ga\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text\n);\n\nQuestion: What is the record at the opponent's venue against the team for which the record for the last 5 meetings is mu, 4-1 and the record at the neutral site is tied, 0-0?"
},
{
"role": "assistant",
"content": "SELECT \"at_opponents_venue\" FROM \"record_vs_other_opponents_at_least_15_ga\" WHERE \"last_5_meetings\"='MU, 4-1' AND \"at_neutral_site\"='Tied, 0-0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"revenues_from_stamp_duties\" (\n \"year\" text,\n \"stamp_duty_reserve_tax\" text,\n \"standard_stamp_duty\" text,\n \"standard_duties_total_revenue_in_million\" real,\n \"over_total_tax_revenue_in_pct\" text,\n \"over_gdp_in_pct\" text\n);\n\nQuestion: What is the stamp duty reserve tax when the percentage over total tax revenue is 0.79?"
},
{
"role": "assistant",
"content": "SELECT \"stamp_duty_reserve_tax\" FROM \"revenues_from_stamp_duties\" WHERE \"over_total_tax_revenue_in_pct\"='0.79';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"revenues_from_stamp_duties\" (\n \"year\" text,\n \"stamp_duty_reserve_tax\" text,\n \"standard_stamp_duty\" text,\n \"standard_duties_total_revenue_in_million\" real,\n \"over_total_tax_revenue_in_pct\" text,\n \"over_gdp_in_pct\" text\n);\n\nQuestion: When the standard stamp duty is 367 what is the percentage over gdp?"
},
{
"role": "assistant",
"content": "SELECT \"over_gdp_in_pct\" FROM \"revenues_from_stamp_duties\" WHERE \"standard_stamp_duty\"='367';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"revenues_from_stamp_duties\" (\n \"year\" text,\n \"stamp_duty_reserve_tax\" text,\n \"standard_stamp_duty\" text,\n \"standard_duties_total_revenue_in_million\" real,\n \"over_total_tax_revenue_in_pct\" text,\n \"over_gdp_in_pct\" text\n);\n\nQuestion: When the stamp duty reserve tax is 3,669 what is the percentage over gdp?"
},
{
"role": "assistant",
"content": "SELECT \"over_gdp_in_pct\" FROM \"revenues_from_stamp_duties\" WHERE \"stamp_duty_reserve_tax\"='3,669';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"revenues_from_stamp_duties\" (\n \"year\" text,\n \"stamp_duty_reserve_tax\" text,\n \"standard_stamp_duty\" text,\n \"standard_duties_total_revenue_in_million\" real,\n \"over_total_tax_revenue_in_pct\" text,\n \"over_gdp_in_pct\" text\n);\n\nQuestion: During what years are the percentage over total tax revenue is 0.65?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"revenues_from_stamp_duties\" WHERE \"over_total_tax_revenue_in_pct\"='0.65';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_big_12_opponents\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"during_time_in_big_12\" text\n);\n\nQuestion: Name the total number of opponets venue for oklahoma"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"at_opponents_venue\") FROM \"record_vs_big_12_opponents\" WHERE \"missouri_vs\"='Oklahoma';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_big_12_opponents\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"during_time_in_big_12\" text\n);\n\nQuestion: Name the total number of last 5 meetings for texas tech"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"last_5_meetings\") FROM \"record_vs_big_12_opponents\" WHERE \"missouri_vs\"='Texas Tech';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"num\" real,\n \"series_sorted\" text,\n \"title\" text,\n \"author\" text,\n \"doctor\" text,\n \"featuring\" text,\n \"released\" text\n);\n\nQuestion: Name the total number of series sorted for when released is april 2010"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"series_sorted\") FROM \"series_1\" WHERE \"released\"='April 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"num\" real,\n \"series_sorted\" text,\n \"title\" text,\n \"author\" text,\n \"doctor\" text,\n \"featuring\" text,\n \"released\" text\n);\n\nQuestion: Name the author for 6y/ae"
},
{
"role": "assistant",
"content": "SELECT \"author\" FROM \"series_1\" WHERE \"series_sorted\"='6Y/AE';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"num\" real,\n \"series_sorted\" text,\n \"title\" text,\n \"author\" text,\n \"doctor\" text,\n \"featuring\" text,\n \"released\" text\n);\n\nQuestion: Name the author for peri and april 2010"
},
{
"role": "assistant",
"content": "SELECT \"author\" FROM \"series_1\" WHERE \"featuring\"='Peri' AND \"released\"='April 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"num\" real,\n \"series_sorted\" text,\n \"title\" text,\n \"author\" text,\n \"doctor\" text,\n \"featuring\" text,\n \"released\" text\n);\n\nQuestion: Name the released for pat mills"
},
{
"role": "assistant",
"content": "SELECT \"released\" FROM \"series_1\" WHERE \"author\"='Pat Mills';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_1\" (\n \"num\" real,\n \"series_sorted\" text,\n \"title\" text,\n \"author\" text,\n \"doctor\" text,\n \"featuring\" text,\n \"released\" text\n);\n\nQuestion: Name the featuring for pat mills"
},
{
"role": "assistant",
"content": "SELECT \"featuring\" FROM \"series_1\" WHERE \"author\"='Pat Mills';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_sec_opponents\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"since_joining_sec\" text\n);\n\nQuestion: What are the outcomes of the last 5 meetings where the overall record is UM, 2-1?"
},
{
"role": "assistant",
"content": "SELECT \"last_5_meetings\" FROM \"record_vs_sec_opponents\" WHERE \"overall_record\"='UM, 2-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_sec_opponents\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"since_joining_sec\" text\n);\n\nQuestion: What is the record of wins/losses that were played at opponents venue (uf, 1-0)"
},
{
"role": "assistant",
"content": "SELECT \"overall_record\" FROM \"record_vs_sec_opponents\" WHERE \"at_opponents_venue\"='UF, 1-0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_sec_opponents\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"since_joining_sec\" text\n);\n\nQuestion: Who are the opponents of Missouri that have an overall record of MU, 3-1?"
},
{
"role": "assistant",
"content": "SELECT \"missouri_vs\" FROM \"record_vs_sec_opponents\" WHERE \"overall_record\"='MU, 3-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"record_vs_sec_opponents\" (\n \"missouri_vs\" text,\n \"overall_record\" text,\n \"at_columbia\" text,\n \"at_opponents_venue\" text,\n \"at_neutral_site\" text,\n \"last_5_meetings\" text,\n \"last_10_meetings\" text,\n \"current_streak\" text,\n \"since_joining_sec\" text\n);\n\nQuestion: What is the record at Columbia for the team overall record of MU, 3-1?"
},
{
"role": "assistant",
"content": "SELECT \"at_columbia\" FROM \"record_vs_sec_opponents\" WHERE \"overall_record\"='MU, 3-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tunnels\" (\n \"no\" real,\n \"name\" text,\n \"mi_from_kingston\" text,\n \"km_from_kingston\" text,\n \"parish\" text,\n \"length_feet\" real,\n \"length_meters\" text\n);\n\nQuestion: How many feet in length are there when the length is 106.1 meters? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"length_feet\") FROM \"tunnels\" WHERE \"length_meters\"='106.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tunnels\" (\n \"no\" real,\n \"name\" text,\n \"mi_from_kingston\" text,\n \"km_from_kingston\" text,\n \"parish\" text,\n \"length_feet\" real,\n \"length_meters\" text\n);\n\nQuestion: When the kilometers from kingston is 105.4 what is the minimum amount of length in feet? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"length_feet\") FROM \"tunnels\" WHERE \"km_from_kingston\"='105.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tunnels\" (\n \"no\" real,\n \"name\" text,\n \"mi_from_kingston\" text,\n \"km_from_kingston\" text,\n \"parish\" text,\n \"length_feet\" real,\n \"length_meters\" text\n);\n\nQuestion: Which parishes have a railroad length of 51.8 meters? "
},
{
"role": "assistant",
"content": "SELECT \"parish\" FROM \"tunnels\" WHERE \"length_meters\"='51.8';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.