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