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 \"performance_summary_in_indian_premier_le\" (\n \"year\" real,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"tied\" real,\n \"success_rate\" text,\n \"position\" text,\n \"summary\" text\n);\n\nQuestion: Name the summary for the success rate for 68.75%"
},
{
"role": "assistant",
"content": "SELECT \"summary\" FROM \"performance_summary_in_indian_premier_le\" WHERE \"success_rate\"='68.75%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_summary_in_indian_premier_le\" (\n \"year\" real,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"tied\" real,\n \"success_rate\" text,\n \"position\" text,\n \"summary\" text\n);\n\nQuestion: Name the least tied"
},
{
"role": "assistant",
"content": "SELECT MIN(\"tied\") FROM \"performance_summary_in_indian_premier_le\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_summary_in_indian_premier_le\" (\n \"year\" real,\n \"matches\" real,\n \"wins\" real,\n \"losses\" real,\n \"no_result\" real,\n \"tied\" real,\n \"success_rate\" text,\n \"position\" text,\n \"summary\" text\n);\n\nQuestion: Name the least wins of 56.25%"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"performance_summary_in_indian_premier_le\" WHERE \"success_rate\"='56.25%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"locomotives\" (\n \"no\" real,\n \"name\" text,\n \"livery\" text,\n \"locomotive_type\" text,\n \"wheel_arrangement\" text,\n \"builder\" text,\n \"year_built\" real,\n \"status\" text\n);\n\nQuestion: How many locomotives have a name of City of Birmingham"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no\") FROM \"locomotives\" WHERE \"name\"='City of Birmingham';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"locomotives\" (\n \"no\" real,\n \"name\" text,\n \"livery\" text,\n \"locomotive_type\" text,\n \"wheel_arrangement\" text,\n \"builder\" text,\n \"year_built\" real,\n \"status\" text\n);\n\nQuestion: How many locomotives have a livery that is highland railway green"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"name\") FROM \"locomotives\" WHERE \"livery\"='Highland Railway green';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"locomotives\" (\n \"no\" real,\n \"name\" text,\n \"livery\" text,\n \"locomotive_type\" text,\n \"wheel_arrangement\" text,\n \"builder\" text,\n \"year_built\" real,\n \"status\" text\n);\n\nQuestion: Which locomotive type has a status in static display"
},
{
"role": "assistant",
"content": "SELECT \"locomotive_type\" FROM \"locomotives\" WHERE \"status\"='Static display';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"result\" text,\n \"record\" text,\n \"opponent\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"first_downs\" real,\n \"attendance\" real\n);\n\nQuestion: What is the maximum number of points against when the attendance was 47678?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points_against\") FROM \"schedule\" WHERE \"attendance\"=47678;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"result\" text,\n \"record\" text,\n \"opponent\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"first_downs\" real,\n \"attendance\" real\n);\n\nQuestion: What was the total number of first down on October 23?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"first_downs\") FROM \"schedule\" WHERE \"date\"='October 23';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15838081_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: Name the most series number for giula sandler"
},
{
"role": "assistant",
"content": "SELECT MAX(\"series_num\") FROM \"table1_15838081_3\" WHERE \"writer_s\"='Giula Sandler';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15838081_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: Name the number of season number for jeff truman"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season_num\") FROM \"table1_15838081_3\" WHERE \"writer_s\"='Jeff Truman';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"institutions\" (\n \"school\" text,\n \"location\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment\" real,\n \"founded\" real\n);\n\nQuestion: Name the minimum enrollment for montana tech of the university of montana"
},
{
"role": "assistant",
"content": "SELECT MIN(\"enrollment\") FROM \"institutions\" WHERE \"school\"='Montana Tech of the University of Montana';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"institutions\" (\n \"school\" text,\n \"location\" text,\n \"control\" text,\n \"type\" text,\n \"enrollment\" real,\n \"founded\" real\n);\n\nQuestion: Name the location when control is private and founded is 1870"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"institutions\" WHERE \"control\"='Private' AND \"founded\"=1870;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15861776_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 TV broadcast s03e19?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_15861776_1\" WHERE \"tv_broadcast\"='S03E19';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15861776_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: What episode in the series is TV broadcast s03e20?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_15861776_1\" WHERE \"tv_broadcast\"='S03E20';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: WHAT WAS THE SCORE FOR GAME 31?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=31;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: WHO DID THE RAPTORS PLAY ON JANUARY 9?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"date\"='January 9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_special_cities_now_core_or_design\" (\n \"name\" text,\n \"japanese\" text,\n \"date_of_designation\" text,\n \"date_of_reclassification\" text,\n \"region\" text,\n \"prefecture\" text\n);\n\nQuestion: Name thenames for 2002-04-01"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"former_special_cities_now_core_or_design\" WHERE \"date_of_designation\"='2002-04-01';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_special_cities_now_core_or_design\" (\n \"name\" text,\n \"japanese\" text,\n \"date_of_designation\" text,\n \"date_of_reclassification\" text,\n \"region\" text,\n \"prefecture\" text\n);\n\nQuestion: Name all the date of designations for kurume"
},
{
"role": "assistant",
"content": "SELECT \"date_of_designation\" FROM \"former_special_cities_now_core_or_design\" WHERE \"name\"='Kurume';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_special_cities_now_core_or_design\" (\n \"name\" text,\n \"japanese\" text,\n \"date_of_designation\" text,\n \"date_of_reclassification\" text,\n \"region\" text,\n \"prefecture\" text\n);\n\nQuestion: Name the total number of japanese for amagasaki"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"japanese\") FROM \"former_special_cities_now_core_or_design\" WHERE \"name\"='Amagasaki';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_special_cities_now_core_or_design\" (\n \"name\" text,\n \"japanese\" text,\n \"date_of_designation\" text,\n \"date_of_reclassification\" text,\n \"region\" text,\n \"prefecture\" text\n);\n\nQuestion: Name the region for iwate"
},
{
"role": "assistant",
"content": "SELECT \"region\" FROM \"former_special_cities_now_core_or_design\" WHERE \"prefecture\"='Iwate';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15861819_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 wrote the \"Head of State\" episode?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_15861819_1\" WHERE \"title\"='\\\"Head of State\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15861819_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: The \"Head of State\" episode was authored by which person?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_15861819_1\" WHERE \"title\"='\\\"Head of State\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15861819_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 was the director of the episode \"graduation day: class of 2105\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_15861819_1\" WHERE \"title\"='\\\"Graduation Day: Class of 2105\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who scored the most rebounds in the game against Chicago?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"team\"='Chicago';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What were the dates of the games where Jalen Rose (32) had the highest points?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"high_points\"='Jalen Rose (32)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the location and total attendance for games played against New Orleans?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"team\"='New Orleans';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many teams are listed for February 18?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"team\") FROM \"game_log\" WHERE \"date\"='February 18';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What were the high rebounds on February 24?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"date\"='February 24';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score in game 51?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"game\"=51;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the score when they played against San Antonio?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"team\"='San Antonio';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who was the high point scorer in game number 68?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"game\"=68;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many players had the most assists against New Jersey?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"high_assists\") FROM \"game_log\" WHERE \"team\"='New Jersey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many games were played in the season?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") 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 \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What team had high assists Rafer Alston (5)?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"high_assists\"='Rafer Alston (5)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who has the most assists on January 3?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"date\"='January 3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"residence_hall\" text,\n \"sex\" text,\n \"established\" real,\n \"rector\" text,\n \"campus\" text,\n \"capacity\" real,\n \"colors\" text,\n \"mascot\" text\n);\n\nQuestion: Who is the rector of the residence hall who's mascot is the phoxes?"
},
{
"role": "assistant",
"content": "SELECT \"rector\" FROM \"references\" WHERE \"mascot\"='Phoxes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"residence_hall\" text,\n \"sex\" text,\n \"established\" real,\n \"rector\" text,\n \"campus\" text,\n \"capacity\" real,\n \"colors\" text,\n \"mascot\" text\n);\n\nQuestion: What is the mascot with the colors green and navy?"
},
{
"role": "assistant",
"content": "SELECT \"mascot\" FROM \"references\" WHERE \"colors\"='Green and Navy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"residence_hall\" text,\n \"sex\" text,\n \"established\" real,\n \"rector\" text,\n \"campus\" text,\n \"capacity\" real,\n \"colors\" text,\n \"mascot\" text\n);\n\nQuestion: What residence hall has the vermin mascot?"
},
{
"role": "assistant",
"content": "SELECT \"residence_hall\" FROM \"references\" WHERE \"mascot\"='Vermin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"residence_hall\" text,\n \"sex\" text,\n \"established\" real,\n \"rector\" text,\n \"campus\" text,\n \"capacity\" real,\n \"colors\" text,\n \"mascot\" text\n);\n\nQuestion: What are the colors of Howard Hall?"
},
{
"role": "assistant",
"content": "SELECT \"colors\" FROM \"references\" WHERE \"residence_hall\"='Howard Hall';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"national_terrestrial_and_sky_tg24\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What is the content of la7 television service?"
},
{
"role": "assistant",
"content": "SELECT \"content\" FROM \"national_terrestrial_and_sky_tg24\" WHERE \"television_service\"='LA7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"national_terrestrial_and_sky_tg24\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What is the content of the rai 1 television service?"
},
{
"role": "assistant",
"content": "SELECT \"content\" FROM \"national_terrestrial_and_sky_tg24\" WHERE \"television_service\"='Rai 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"national_terrestrial_and_sky_tg24\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What are the package/options when the TV service is rai 3?"
},
{
"role": "assistant",
"content": "SELECT \"package_option\" FROM \"national_terrestrial_and_sky_tg24\" WHERE \"television_service\"='Rai 3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"national_terrestrial_and_sky_tg24\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What high definition television options are available for Italia 1?"
},
{
"role": "assistant",
"content": "SELECT \"hdtv\" FROM \"national_terrestrial_and_sky_tg24\" WHERE \"television_service\"='Italia 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"shopping\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: How many values of HDTV apply when television service is elite shopping tv?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"hdtv\") FROM \"shopping\" WHERE \"television_service\"='Elite Shopping TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"shopping\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: How many countries have content of arte?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"country\") FROM \"shopping\" WHERE \"content\"='arte';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"shopping\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: How many values of HDTV correspond to television service of la sorgente sat 1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"hdtv\") FROM \"shopping\" WHERE \"television_service\"='La Sorgente Sat 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"shopping\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: What values of HDTV correspond to n\u00b0 of 862?"
},
{
"role": "assistant",
"content": "SELECT \"hdtv\" FROM \"shopping\" WHERE \"n\"=862;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"music\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the content for sky famiglia for italian and dar 16:9 for mtv hits"
},
{
"role": "assistant",
"content": "SELECT \"content\" FROM \"music\" WHERE \"package_option\"='Sky Famiglia' AND \"language\"='Italian' AND \"dar\"='16:9' AND \"television_service\"='MTV Hits';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"music\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the least number for mydeejay"
},
{
"role": "assistant",
"content": "SELECT MIN(\"n\") FROM \"music\" WHERE \"television_service\"='myDeejay';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"music\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the number of package options for music box italia"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"package_option\") FROM \"music\" WHERE \"television_service\"='Music Box Italia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"music\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the hdtv for sky famiglia and dar 16:9 for mydeejay"
},
{
"role": "assistant",
"content": "SELECT \"hdtv\" FROM \"music\" WHERE \"package_option\"='Sky Famiglia' AND \"dar\"='16:9' AND \"television_service\"='myDeejay';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"music\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the dar for mtv rocks"
},
{
"role": "assistant",
"content": "SELECT \"dar\" FROM \"music\" WHERE \"television_service\"='MTV Rocks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"music\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the ppv for sky famiglia and dar 16:9 for mtv dance"
},
{
"role": "assistant",
"content": "SELECT \"ppv\" FROM \"music\" WHERE \"package_option\"='Sky Famiglia' AND \"dar\"='16:9' AND \"television_service\"='MTV Dance';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"others\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the dar for telenord"
},
{
"role": "assistant",
"content": "SELECT \"dar\" FROM \"others\" WHERE \"television_service\"='Telenord';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"others\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the total number of hdtv for eurotic tv"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"hdtv\") FROM \"others\" WHERE \"television_service\"='Eurotic TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"others\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the dar for 912"
},
{
"role": "assistant",
"content": "SELECT \"dar\" FROM \"others\" WHERE \"n\"=912;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"conto_tv_teleitalia\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: How many times was something listed under content when the television was R-light?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"content\") FROM \"conto_tv_teleitalia\" WHERE \"television_service\"='R-LIGHT';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"conto_tv_teleitalia\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: Was there PPV when the service was SCT?"
},
{
"role": "assistant",
"content": "SELECT \"ppv\" FROM \"conto_tv_teleitalia\" WHERE \"television_service\"='SCT';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"conto_tv_teleitalia\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: Was there HDTV when the service was Priv\u00e8?"
},
{
"role": "assistant",
"content": "SELECT \"hdtv\" FROM \"conto_tv_teleitalia\" WHERE \"television_service\"='PRIV\u00c8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"conto_tv_teleitalia\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: In what laguage was Contotv 5?"
},
{
"role": "assistant",
"content": "SELECT \"language\" FROM \"conto_tv_teleitalia\" WHERE \"television_service\"='ContoTV 5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sport\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: What's the content of the Tutti i Pacchetti + Sky HD package?"
},
{
"role": "assistant",
"content": "SELECT \"content\" FROM \"sport\" WHERE \"package_option\"='Tutti i pacchetti + Sky HD';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sport\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: What package offers Fox Sports HD?"
},
{
"role": "assistant",
"content": "SELECT \"package_option\" FROM \"sport\" WHERE \"television_service\"='FOX Sports HD';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sport\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: What packages offer the Cartello Promozionale Sky HD service?"
},
{
"role": "assistant",
"content": "SELECT \"package_option\" FROM \"sport\" WHERE \"television_service\"='Cartello promozionale Sky HD';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sport\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: How many different contents are offered by the Qualsiasi Tranne Sky HD package?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"content\") FROM \"sport\" WHERE \"package_option\"='qualsiasi tranne Sky HD';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sport\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: What's the content offered by the package number 204?"
},
{
"role": "assistant",
"content": "SELECT \"content\" FROM \"sport\" WHERE \"n\"=204;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cinema\" (\n \"n\" text,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: How many PPV values are listed for when television service Sky Cinema 1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ppv\") FROM \"cinema\" WHERE \"television_service\"='Sky Cinema 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cinema\" (\n \"n\" text,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: What DAR is available for n. 336 in Italian?"
},
{
"role": "assistant",
"content": "SELECT \"dar\" FROM \"cinema\" WHERE \"n\"='336' AND \"language\"='Italian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cinema\" (\n \"n\" text,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: What are the values of n for cinema content provided by Sky Cinema +24 on its Sky Cinema package?"
},
{
"role": "assistant",
"content": "SELECT \"n\" FROM \"cinema\" WHERE \"package_option\"='Sky Cinema' AND \"content\"='cinema' AND \"television_service\"='Sky Cinema +24';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cinema\" (\n \"n\" text,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: What language is Sky Cinema Passion television service n. 308?"
},
{
"role": "assistant",
"content": "SELECT \"language\" FROM \"cinema\" WHERE \"television_service\"='Sky Cinema Passion' AND \"n\"='308';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cinema\" (\n \"n\" text,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: What package offers cinema content and is n. 333?"
},
{
"role": "assistant",
"content": "SELECT \"package_option\" FROM \"cinema\" WHERE \"content\"='cinema' AND \"n\"='333';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"children\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the total number of dar for disney channel and number is 613"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"dar\") FROM \"children\" WHERE \"television_service\"='Disney Channel' AND \"n\"=613;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"children\" (\n \"n\" real,\n \"television_service\" text,\n \"country\" text,\n \"language\" text,\n \"content\" text,\n \"dar\" text,\n \"hdtv\" text,\n \"ppv\" text,\n \"package_option\" text\n);\n\nQuestion: Name the country when dar is 16:9 for italian english for disney xd +2"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"children\" WHERE \"dar\"='16:9' AND \"language\"='Italian English' AND \"television_service\"='Disney XD +2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_class_bowling_statistics\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"maidens\" real,\n \"runs\" real,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"5w\" real,\n \"10w\" real,\n \"best_bowling\" text\n);\n\nQuestion: Who was the player with a bowling best of 2/43?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"first_class_bowling_statistics\" WHERE \"best_bowling\"='2/43';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_class_bowling_statistics\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"maidens\" real,\n \"runs\" real,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"5w\" real,\n \"10w\" real,\n \"best_bowling\" text\n);\n\nQuestion: What is the highest number of maidens when the bowling best was 1/13?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"maidens\") FROM \"first_class_bowling_statistics\" WHERE \"best_bowling\"='1/13';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_class_bowling_statistics\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"maidens\" real,\n \"runs\" real,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"5w\" real,\n \"10w\" real,\n \"best_bowling\" text\n);\n\nQuestion: How many overs did Oliver Hannon-Dalby have?"
},
{
"role": "assistant",
"content": "SELECT \"overs\" FROM \"first_class_bowling_statistics\" WHERE \"player\"='Oliver Hannon-Dalby';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_class_bowling_statistics\" (\n \"player\" text,\n \"matches\" real,\n \"overs\" text,\n \"maidens\" real,\n \"runs\" real,\n \"wickets\" real,\n \"average\" text,\n \"economy\" text,\n \"5w\" real,\n \"10w\" real,\n \"best_bowling\" text\n);\n\nQuestion: What is the highest number of 5w when there was a 21.33 average?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"5w\") FROM \"first_class_bowling_statistics\" WHERE \"average\"='21.33';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"freshwater_withdrawal_by_country_and_sec\" (\n \"country\" text,\n \"total_freshwater_withdrawal_km_3_yr\" text,\n \"per_capita_withdrawal_m_3_p_yr\" real,\n \"domestic_use_m_3_p_yr_in_pct\" text,\n \"industrial_use_m_3_p_yr_in_pct\" text,\n \"agricultural_use_m_3_p_yr_in_pct\" text\n);\n\nQuestion: What are the countries in which the agricultural use (m 3 /p/yr)(in %) is 2040(93%)?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"freshwater_withdrawal_by_country_and_sec\" WHERE \"agricultural_use_m_3_p_yr_in_pct\"='2040(93%)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"freshwater_withdrawal_by_country_and_sec\" (\n \"country\" text,\n \"total_freshwater_withdrawal_km_3_yr\" text,\n \"per_capita_withdrawal_m_3_p_yr\" real,\n \"domestic_use_m_3_p_yr_in_pct\" text,\n \"industrial_use_m_3_p_yr_in_pct\" text,\n \"agricultural_use_m_3_p_yr_in_pct\" text\n);\n\nQuestion: How many countries had a per capita withdrawal (m 3 /p/yr) of 372?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"country\") FROM \"freshwater_withdrawal_by_country_and_sec\" WHERE \"per_capita_withdrawal_m_3_p_yr\"=372;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"freshwater_withdrawal_by_country_and_sec\" (\n \"country\" text,\n \"total_freshwater_withdrawal_km_3_yr\" text,\n \"per_capita_withdrawal_m_3_p_yr\" real,\n \"domestic_use_m_3_p_yr_in_pct\" text,\n \"industrial_use_m_3_p_yr_in_pct\" text,\n \"agricultural_use_m_3_p_yr_in_pct\" text\n);\n\nQuestion: How many countries had a total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 428(62%)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total_freshwater_withdrawal_km_3_yr\") FROM \"freshwater_withdrawal_by_country_and_sec\" WHERE \"agricultural_use_m_3_p_yr_in_pct\"='428(62%)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"freshwater_withdrawal_by_country_and_sec\" (\n \"country\" text,\n \"total_freshwater_withdrawal_km_3_yr\" text,\n \"per_capita_withdrawal_m_3_p_yr\" real,\n \"domestic_use_m_3_p_yr_in_pct\" text,\n \"industrial_use_m_3_p_yr_in_pct\" text,\n \"agricultural_use_m_3_p_yr_in_pct\" text\n);\n\nQuestion: In Pakistan, what was the total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 1029(96%)?"
},
{
"role": "assistant",
"content": "SELECT \"total_freshwater_withdrawal_km_3_yr\" FROM \"freshwater_withdrawal_by_country_and_sec\" WHERE \"agricultural_use_m_3_p_yr_in_pct\"='1029(96%)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"freshwater_withdrawal_by_country_and_sec\" (\n \"country\" text,\n \"total_freshwater_withdrawal_km_3_yr\" text,\n \"per_capita_withdrawal_m_3_p_yr\" real,\n \"domestic_use_m_3_p_yr_in_pct\" text,\n \"industrial_use_m_3_p_yr_in_pct\" text,\n \"agricultural_use_m_3_p_yr_in_pct\" text\n);\n\nQuestion: What was the country in which the agricultural use (m 3 /p/yr)(in %) was 794(86%)?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"freshwater_withdrawal_by_country_and_sec\" WHERE \"agricultural_use_m_3_p_yr_in_pct\"='794(86%)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"freshwater_withdrawal_by_country_and_sec\" (\n \"country\" text,\n \"total_freshwater_withdrawal_km_3_yr\" text,\n \"per_capita_withdrawal_m_3_p_yr\" real,\n \"domestic_use_m_3_p_yr_in_pct\" text,\n \"industrial_use_m_3_p_yr_in_pct\" text,\n \"agricultural_use_m_3_p_yr_in_pct\" text\n);\n\nQuestion: In how many countries was the total freshwater withdrawal (km 3 /yr) 169.39?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"country\") FROM \"freshwater_withdrawal_by_country_and_sec\" WHERE \"total_freshwater_withdrawal_km_3_yr\"='169.39';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_tour_wins_7\" (\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: Name the date of winning score being 67-67-63=197"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"european_tour_wins_7\" WHERE \"winning_score\"='67-67-63=197';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_tour_wins_7\" (\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: Name the runners up for when tournament is wgc-accenture match play championship"
},
{
"role": "assistant",
"content": "SELECT \"runner_s_up\" FROM \"european_tour_wins_7\" WHERE \"tournament\"='WGC-Accenture Match Play Championship';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_tour_wins_7\" (\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: Name the total number when date is 30 may 2010"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no\") FROM \"european_tour_wins_7\" WHERE \"date\"='30 May 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_tour_wins_7\" (\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: Name th margin of victory when date is 10 jul 2011"
},
{
"role": "assistant",
"content": "SELECT \"margin_of_victory\" FROM \"european_tour_wins_7\" WHERE \"date\"='10 Jul 2011';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"european_tour_wins_7\" (\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: Name the most number when tournament is madrid masters"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no\") FROM \"european_tour_wins_7\" WHERE \"tournament\"='Madrid Masters';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_2\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text\n);\n\nQuestion: Name who knows the most about the guest host panels for episode 5"
},
{
"role": "assistant",
"content": "SELECT \"who_knows_the_most_about_the_guest_host_panelists\" FROM \"series_2\" WHERE \"episode_number\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_2\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text\n);\n\nQuestion: Name the number of panelists for 20 january 2006 air date"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"who_knows_the_most_about_the_guest_host_panelists\") FROM \"series_2\" WHERE \"air_date\"='20 January 2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_2\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text\n);\n\nQuestion: Name the number of music guests for jade goody and kenzie"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"musical_guest_song_performed\") FROM \"series_2\" WHERE \"who_knows_the_most_about_the_guest_host_panelists\"='Jade Goody and Kenzie';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_2\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text\n);\n\nQuestion: Name the panelists for guest host jamie oliver"
},
{
"role": "assistant",
"content": "SELECT \"who_knows_the_most_about_the_guest_host_panelists\" FROM \"series_2\" WHERE \"guest_host\"='Jamie Oliver';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_2\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text\n);\n\nQuestion: Name the most episode numbers of 6 january 2006"
},
{
"role": "assistant",
"content": "SELECT MAX(\"episode_number\") FROM \"series_2\" WHERE \"air_date\"='6 January 2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_3\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text\n);\n\nQuestion: Who was the musical guest and what song was performed when Dominic Wood and Nikki Grahame were the panelists?"
},
{
"role": "assistant",
"content": "SELECT \"musical_guest_song_performed\" FROM \"series_3\" WHERE \"who_knows_the_most_about_the_guest_host_panelists\"='Dominic Wood and Nikki Grahame';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_3\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text\n);\n\nQuestion: On what date were Gary Lucy and Susie Verrico the panelists."
},
{
"role": "assistant",
"content": "SELECT \"air_date\" FROM \"series_3\" WHERE \"who_knows_the_most_about_the_guest_host_panelists\"='Gary Lucy and Susie Verrico';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_3\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text\n);\n\nQuestion: List the date when Jeremy Edwards and Grace Adams-Short were the panelists."
},
{
"role": "assistant",
"content": "SELECT \"air_date\" FROM \"series_3\" WHERE \"who_knows_the_most_about_the_guest_host_panelists\"='Jeremy Edwards and Grace Adams-Short';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"series_3\" (\n \"episode_number\" real,\n \"air_date\" text,\n \"guest_host\" text,\n \"musical_guest_song_performed\" text,\n \"who_knows_the_most_about_the_guest_host_panelists\" text\n);\n\nQuestion: Who was the musical guest and what song was performed when Matt Willis and Chantelle Houghton were the panelists?"
},
{
"role": "assistant",
"content": "SELECT \"musical_guest_song_performed\" FROM \"series_3\" WHERE \"who_knows_the_most_about_the_guest_host_panelists\"='Matt Willis and Chantelle Houghton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15905399_1\" (\n \"issuing_network\" text,\n \"iin_ranges\" text,\n \"active\" text,\n \"length\" text,\n \"validation\" text\n);\n\nQuestion: How many validations are listed for the iin range 36?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"validation\") FROM \"table1_15905399_1\" WHERE \"iin_ranges\"='36';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15905399_1\" (\n \"issuing_network\" text,\n \"iin_ranges\" text,\n \"active\" text,\n \"length\" text,\n \"validation\" text\n);\n\nQuestion: What is the validation for iin ranges 5610, 560221-560225?"
},
{
"role": "assistant",
"content": "SELECT \"validation\" FROM \"table1_15905399_1\" WHERE \"iin_ranges\"='5610, 560221-560225';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15905399_1\" (\n \"issuing_network\" text,\n \"iin_ranges\" text,\n \"active\" text,\n \"length\" text,\n \"validation\" text\n);\n\nQuestion: What is the length for iin range 51-55?"
},
{
"role": "assistant",
"content": "SELECT \"length\" FROM \"table1_15905399_1\" WHERE \"iin_ranges\"='51-55';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15905399_1\" (\n \"issuing_network\" text,\n \"iin_ranges\" text,\n \"active\" text,\n \"length\" text,\n \"validation\" text\n);\n\nQuestion: Is the iin range 4 active?"
},
{
"role": "assistant",
"content": "SELECT \"active\" FROM \"table1_15905399_1\" WHERE \"iin_ranges\"='4';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.