text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "planica" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: Who is shown for the 2nd (m) of 220.5? <|assistant|> SELECT "name" FROM "planica" WHERE "2nd_m"='220.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "planica" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: What is the 2nd (m) when the 1st (m) is 216.5? <|assistant|> SELECT "2nd_m" FROM "planica" WHERE "1st_m"='216.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "planica" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: For the nationality of FIN and the points of 418.8 what is the overall wc points? <|assistant|> SELECT "overall_wc_points_rank" FROM "planica" WHERE "nationality"='FIN' AND "points"='418.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "planica" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: What are the overall wc points for points of 397.2? <|assistant|> SELECT "overall_wc_points_rank" FROM "planica" WHERE "points"='397.2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "planica" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: What is shown for 2nd (m) if the is 1st (m) is 203.5? <|assistant|> SELECT "2nd_m" FROM "planica" WHERE "1st_m"='203.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "planica" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: What are the overall wc points for 2nd (m) of 214.5? <|assistant|> SELECT "overall_wc_points_rank" FROM "planica" WHERE "2nd_m"='214.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "villach" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: The competitor for FIN had how many overall WC points? <|assistant|> SELECT "overall_wc_points_rank" FROM "villach" WHERE "nationality"='FIN';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "villach" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: How many full names are provided for the jumper whose 2nd jump was 96.0m? <|assistant|> SELECT COUNT("name") FROM "villach" WHERE "2nd_m"='96.0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "villach" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text ); Question: What was the length of the jumper representing FIN, in meters? <|assistant|> SELECT "1st_m" FROM "villach" WHERE "nationality"='FIN';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "garmisch_partenkirchen" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_fht_points" text, "overall_wc_points_rank" text ); Question: What is the 1st(m) score for the Person who had a total points of 272.7 <|assistant|> SELECT "1st_m" FROM "garmisch_partenkirchen" WHERE "points"='272.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "garmisch_partenkirchen" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_fht_points" text, "overall_wc_points_rank" text ); Question: How many total points did roman Koudelka have <|assistant|> SELECT "overall_wc_points_rank" FROM "garmisch_partenkirchen" WHERE "name"='Roman Koudelka';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "time_et" text, "tv" text, "result" text, "record" text, "game_site" text ); Question: Name the opponent for week 12 <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "time_et" text, "tv" text, "result" text, "record" text, "game_site" text ); Question: Name the number of date for shea stadium <|assistant|> SELECT COUNT("date") FROM "schedule" WHERE "game_site"='Shea Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "time_et" text, "tv" text, "result" text, "record" text, "game_site" text ); Question: Name the opponent for astrodome <|assistant|> SELECT "opponent" FROM "schedule" WHERE "game_site"='Astrodome';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" text, "date" text, "time" text, "report" text ); Question: How many home team scores have a time of 4:40 PM? <|assistant|> SELECT COUNT("home_team_score") FROM "round_1" WHERE "time"='4:40 PM';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" text, "date" text, "time" text, "report" text ); Question: What stadiums had an attendance of 8,256? <|assistant|> SELECT "ground" FROM "round_1" WHERE "crowd"='8,256';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" text, "date" text, "time" text, "report" text ); Question: What is the total number of attendees where the home team was Port Adelaide? <|assistant|> SELECT COUNT("crowd") FROM "round_1" WHERE "home_team"='Port Adelaide';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "kickoff_et" text, "tv" text, "opponent" text, "result" text, "record" text, "game_site" text ); Question: Which team did they play at Rich Stadium? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "game_site"='Rich Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "kickoff_et" text, "tv" text, "opponent" text, "result" text, "record" text, "game_site" text ); Question: What date did they play in Cleveland Municipal Stadium? <|assistant|> SELECT "date" FROM "schedule" WHERE "game_site"='Cleveland Municipal Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "year_model" text, "engine" text, "cylinder_volume" text, "power" text, "torque" text, "fuel_system" text ); Question: Name the year model for 4-cyl straight engine dohc 16v and 1.5 crdi <|assistant|> SELECT "year_model" FROM "engines" WHERE "engine"='4-cyl Straight engine DOHC 16V' AND "model"='1.5 CRDi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "model" text, "year_model" text, "engine" text, "cylinder_volume" text, "power" text, "torque" text, "fuel_system" text ); Question: Name the year model for 1.3 <|assistant|> SELECT "year_model" FROM "engines" WHERE "model"='1.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14460937_2" ( "pos" real, "member_association" text, "points_total_500" real, "clubs" text, "group_stage" real, "play_off" real, "afc_cup" real ); Question: what is the minimum pos with clubs being 16 <|assistant|> SELECT MIN("pos") FROM "table1_14460937_2" WHERE "clubs"='16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14460937_2" ( "pos" real, "member_association" text, "points_total_500" real, "clubs" text, "group_stage" real, "play_off" real, "afc_cup" real ); Question: what is the maximum value for afc cup <|assistant|> SELECT MAX("afc_cup") FROM "table1_14460937_2";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14460937_2" ( "pos" real, "member_association" text, "points_total_500" real, "clubs" text, "group_stage" real, "play_off" real, "afc_cup" real ); Question: how many pos with member association being china pr <|assistant|> SELECT COUNT("pos") FROM "table1_14460937_2" WHERE "member_association"='China PR';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14460937_2" ( "pos" real, "member_association" text, "points_total_500" real, "clubs" text, "group_stage" real, "play_off" real, "afc_cup" real ); Question: how many points (total 500) with pos being 11 <|assistant|> SELECT COUNT("points_total_500") FROM "table1_14460937_2" WHERE "pos"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1987_88" text, "1988_89" text, "1989_90" real ); Question: How many points in 89/90 for the team with 55 in 87/88? <|assistant|> SELECT "1989_90" FROM "relegation" WHERE "1987_88"='55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1987_88" text, "1988_89" text, "1989_90" real ); Question: How many points in 87/88 for racing de córdoba? <|assistant|> SELECT "1987_88" FROM "relegation" WHERE "team"='Racing de Córdoba';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1987_88" text, "1988_89" text, "1989_90" real ); Question: What is the lowest number of games played for deportivo español? <|assistant|> SELECT MIN("played") FROM "relegation" WHERE "team"='Deportivo Español';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1987_88" text, "1988_89" text, "1989_90" real ); Question: What is the average for the team with 34 in 88/89? <|assistant|> SELECT "average" FROM "relegation" WHERE "1988_89"='34';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1987_88" text, "1988_89" text, "1989_90" real ); Question: How many points total for san lorenzo? <|assistant|> SELECT COUNT("points") FROM "relegation" WHERE "team"='San Lorenzo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "number" real, "name_of_administrative_unit" text, "telephone_052" text, "area_km_2" text, "population_people" real ); Question: Name the telephone 052 for area km2 being 5.42 <|assistant|> SELECT "telephone_052" FROM "administrative_divisions" WHERE "area_km_2"='5.42';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "number" real, "name_of_administrative_unit" text, "telephone_052" text, "area_km_2" text, "population_people" real ); Question: Name the population of people for area being 24.35 <|assistant|> SELECT "population_people" FROM "administrative_divisions" WHERE "area_km_2"='24.35';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "number" real, "name_of_administrative_unit" text, "telephone_052" text, "area_km_2" text, "population_people" real ); Question: Name the total number of telephone 052 for 362.81 <|assistant|> SELECT COUNT("telephone_052") FROM "administrative_divisions" WHERE "area_km_2"='362.81';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "number" real, "name_of_administrative_unit" text, "telephone_052" text, "area_km_2" text, "population_people" real ); Question: Name the number of administrative unit for number 4 <|assistant|> SELECT "name_of_administrative_unit" FROM "administrative_divisions" WHERE "number"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "number" real, "name_of_administrative_unit" text, "telephone_052" text, "area_km_2" text, "population_people" real ); Question: Name the name of administrative unit for 3464 people <|assistant|> SELECT "name_of_administrative_unit" FROM "administrative_divisions" WHERE "population_people"=3464;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "snap_ins_and_hosts" ( "application" text, "version" text, "cmdlets" text, "provider" text, "management_gui" text ); Question: How many of the cmdlets are the 2008 version? <|assistant|> SELECT COUNT("cmdlets") FROM "snap_ins_and_hosts" WHERE "version"='2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "snap_ins_and_hosts" ( "application" text, "version" text, "cmdlets" text, "provider" text, "management_gui" text ); Question: Which providers use exchange server? <|assistant|> SELECT "provider" FROM "snap_ins_and_hosts" WHERE "application"='Exchange Server';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "snap_ins_and_hosts" ( "application" text, "version" text, "cmdlets" text, "provider" text, "management_gui" text ); Question: Which providers use version 2008? <|assistant|> SELECT "provider" FROM "snap_ins_and_hosts" WHERE "version"='2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "snap_ins_and_hosts" ( "application" text, "version" text, "cmdlets" text, "provider" text, "management_gui" text ); Question: Which providers don't use exchange server? <|assistant|> SELECT "provider" FROM "snap_ins_and_hosts" WHERE "application"='Exchange Server';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); Question: how many points did the team that scored 27 points in the 1987-88 season score? <|assistant|> SELECT COUNT("played") FROM "relegation" WHERE "1987_88"='27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); Question: how many points did the argentinos juniors team score during the 1986-87 season? <|assistant|> SELECT "1986_87" FROM "relegation" WHERE "team"='Argentinos Juniors';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); Question: how many points did the team that scored 38 points in the 1986-87 season score during the 1988-89 season? <|assistant|> SELECT MIN("1988_89") FROM "relegation" WHERE "1986_87"='38';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); Question: what is the maximum number of matches played by a team? <|assistant|> SELECT MAX("played") FROM "relegation";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "1986_87" text, "1987_88" text, "1988_89" real ); Question: list the number of matches played by the teams that got an average of 1.079 <|assistant|> SELECT "1986_87" FROM "relegation" WHERE "average"='1.079';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "tour" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the womens singles for korea open super series <|assistant|> SELECT "womens_singles" FROM "winners" WHERE "tour"='Korea Open Super Series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "tour" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the tour when mens singles is chen jin and womens doubles is zhang yawen zhao tingting <|assistant|> SELECT "tour" FROM "winners" WHERE "mens_singles"='Chen Jin' AND "womens_doubles"='Zhang Yawen Zhao Tingting';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "tour" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the womens doubles when tour is malaysia super series <|assistant|> SELECT "womens_doubles" FROM "winners" WHERE "tour"='Malaysia Super Series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "tour" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the mens singles when womens singles is wang lin and mixed doubles is joachim fischer nielsen christinna pedersen <|assistant|> SELECT "mens_singles" FROM "winners" WHERE "womens_singles"='Wang Lin' AND "mixed_doubles"='Joachim Fischer Nielsen Christinna Pedersen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "tour" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the mixed doubles when tour is hong kong super series <|assistant|> SELECT "mixed_doubles" FROM "winners" WHERE "tour"='Hong Kong Super Series';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "tour" text, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text ); Question: Name the mixed doubles for zhu lin <|assistant|> SELECT "mixed_doubles" FROM "winners" WHERE "womens_singles"='Zhu Lin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "time_et" text, "tv" text, "result" text, "record" text ); Question: Name the week for kingdome <|assistant|> SELECT "week" FROM "schedule" WHERE "location"='Kingdome';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "time_et" text, "tv" text, "result" text, "record" text ); Question: Name the date when result is l 13–10 ot <|assistant|> SELECT "date" FROM "schedule" WHERE "result"='L 13–10 OT';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "time_et" text, "tv" text, "result" text, "record" text ); Question: Name the record for l 24–22 <|assistant|> SELECT "record" FROM "schedule" WHERE "result"='L 24–22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_versions" ( "country" text, "local_name" text, "host" text, "channel" text, "year_aired" text, "top_prize" text ); Question: Which Country is the show aired on Fox? <|assistant|> SELECT "country" FROM "international_versions" WHERE "channel"='Fox';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_versions" ( "country" text, "local_name" text, "host" text, "channel" text, "year_aired" text, "top_prize" text ); Question: Where is the show aired in New Zealand? <|assistant|> SELECT "channel" FROM "international_versions" WHERE "country"='New Zealand';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_versions" ( "country" text, "local_name" text, "host" text, "channel" text, "year_aired" text, "top_prize" text ); Question: What channel had the prize of €100,000? <|assistant|> SELECT "channel" FROM "international_versions" WHERE "top_prize"='€100,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_versions" ( "country" text, "local_name" text, "host" text, "channel" text, "year_aired" text, "top_prize" text ); Question: How many hosts were on Seven Network? <|assistant|> SELECT COUNT("host") FROM "international_versions" WHERE "channel"='Seven Network';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_versions" ( "country" text, "local_name" text, "host" text, "channel" text, "year_aired" text, "top_prize" text ); Question: What country is the show aired on TVNZ? <|assistant|> SELECT "country" FROM "international_versions" WHERE "channel"='TVNZ';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "region" text, "capital" text, "area_km" real, "area_sq_mi" real, "population" real ); Question: What is the capital of Umbria? <|assistant|> SELECT "capital" FROM "administrative_divisions" WHERE "region"='Umbria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "region" text, "capital" text, "area_km" real, "area_sq_mi" real, "population" real ); Question: What is the region where Milan is located? <|assistant|> SELECT "region" FROM "administrative_divisions" WHERE "capital"='Milan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "region" text, "capital" text, "area_km" real, "area_sq_mi" real, "population" real ); Question: What is the area of Tuscany? <|assistant|> SELECT MAX("area_km") FROM "administrative_divisions" WHERE "region"='Tuscany';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "breakdown_by_region_and_height" ( "country" text, "total" real, "4000ft" real, "3500_4000ft" real, "3000_3500ft" real, "2500_3000ft" real, "2000_2500ft" real ); Question: Name the minimum for 2500-3000 ft for scotland <|assistant|> SELECT MIN("2500_3000ft") FROM "breakdown_by_region_and_height" WHERE "country"='Scotland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "breakdown_by_region_and_height" ( "country" text, "total" real, "4000ft" real, "3500_4000ft" real, "3000_3500ft" real, "2500_3000ft" real, "2000_2500ft" real ); Question: Name the most of 2500-3000ft <|assistant|> SELECT MAX("2500_3000ft") FROM "breakdown_by_region_and_height";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "breakdown_by_region_and_height" ( "country" text, "total" real, "4000ft" real, "3500_4000ft" real, "3000_3500ft" real, "2500_3000ft" real, "2000_2500ft" real ); Question: Name the minimum total for ireland <|assistant|> SELECT MIN("total") FROM "breakdown_by_region_and_height" WHERE "country"='Ireland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14562722_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: Who directed all the episodes that were written by aaron ehasz & john o'bryan? <|assistant|> SELECT "directed_by" FROM "table1_14562722_1" WHERE "written_by"='Aaron Ehasz & John O''Bryan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14562722_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What was the production code of the episode that was written by michael dante dimartino and directed by lauren macmullan? <|assistant|> SELECT "production_code" FROM "table1_14562722_1" WHERE "written_by"='Michael Dante DiMartino' AND "directed_by"='Lauren MacMullan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14562722_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); Question: What was the airdate of the episode that was directed by giancarlo volpe and written by is john o'bryan? <|assistant|> SELECT "original_air_date" FROM "table1_14562722_1" WHERE "directed_by"='Giancarlo Volpe' AND "written_by"='John O''Bryan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14570857_1" ( "num" real, "episode_title" text, "situation" text, "date_of_situation" text, "nature_of_situation" text, "original_u_s_airdate" text ); Question: Which situation has an original u.s. airdate of December 5, 2007? <|assistant|> SELECT "situation" FROM "table1_14570857_1" WHERE "original_u_s_airdate"='December 5, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14570857_1" ( "num" real, "episode_title" text, "situation" text, "date_of_situation" text, "nature_of_situation" text, "original_u_s_airdate" text ); Question: What is the date of situation for the original u.s. airdate of December 5, 2007? <|assistant|> SELECT "date_of_situation" FROM "table1_14570857_1" WHERE "original_u_s_airdate"='December 5, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14570857_1" ( "num" real, "episode_title" text, "situation" text, "date_of_situation" text, "nature_of_situation" text, "original_u_s_airdate" text ); Question: How many entries are there for date of situation for #4? <|assistant|> SELECT COUNT("date_of_situation") FROM "table1_14570857_1" WHERE "num"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14570857_1" ( "num" real, "episode_title" text, "situation" text, "date_of_situation" text, "nature_of_situation" text, "original_u_s_airdate" text ); Question: How many # entries are there for the date of situation of 23 January 2003? <|assistant|> SELECT COUNT("num") FROM "table1_14570857_1" WHERE "date_of_situation"='23 January 2003';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14570857_1" ( "num" real, "episode_title" text, "situation" text, "date_of_situation" text, "nature_of_situation" text, "original_u_s_airdate" text ); Question: For the 8 October 2005 – 12 October 2005 situation dates what was the nature of the situation? <|assistant|> SELECT "nature_of_situation" FROM "table1_14570857_1" WHERE "date_of_situation"='8 October 2005 – 12 October 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "circuit" text, "date" text, "length" text, "pole_position" text, "gt3_winner" text, "gt4_winner" text ); Question: Name the circuit for gt3 alex mortimer bradley ellis <|assistant|> SELECT "circuit" FROM "calendar" WHERE "gt3_winner"='Alex Mortimer Bradley Ellis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14562722_2" ( "volume" real, "discs" real, "episodes" real, "region_1" text, "region_2" text, "region_4" text ); Question: Name the episodes when region 1 is september 19, 2006 <|assistant|> SELECT "episodes" FROM "table1_14562722_2" WHERE "region_1"='September 19, 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14562722_2" ( "volume" real, "discs" real, "episodes" real, "region_1" text, "region_2" text, "region_4" text ); Question: Name the maximum discs <|assistant|> SELECT MAX("discs") FROM "table1_14562722_2";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14562722_2" ( "volume" real, "discs" real, "episodes" real, "region_1" text, "region_2" text, "region_4" text ); Question: Name the most epiosdes when region 4 is march 13, 2008 <|assistant|> SELECT MAX("episodes") FROM "table1_14562722_2" WHERE "region_4"='March 13, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_summary" ( "nation" text, "total_wins" real, "team_wins" real, "individual_wins" real, "individual_winners" real ); Question: what's the individual winners with nation being australia <|assistant|> SELECT "individual_winners" FROM "national_summary" WHERE "nation"='Australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_summary" ( "nation" text, "total_wins" real, "team_wins" real, "individual_wins" real, "individual_winners" real ); Question: what is the value for minimum total wins <|assistant|> SELECT MIN("total_wins") FROM "national_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "1890_no_game" text, "1891_no_game" text, "1892_no_game" text, "1893_no_game" text, "1894_wsu_10_0_moscow" text, "1895_wsu_10_4_pullman" text, "1896_no_game" text, "1897_no_game" text, "1898_no_game" text, "1899_wsu_11_0_pullman" text ); Question: When 1994 no game is the 1894 wsu 10–0 moscow what is the 1896 no game? <|assistant|> SELECT "1896_no_game" FROM "game_results" WHERE "1894_wsu_10_0_moscow"='1994 No game';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "1890_no_game" text, "1891_no_game" text, "1892_no_game" text, "1893_no_game" text, "1894_wsu_10_0_moscow" text, "1895_wsu_10_4_pullman" text, "1896_no_game" text, "1897_no_game" text, "1898_no_game" text, "1899_wsu_11_0_pullman" text ); Question: When 1963 wsu* 14–10 pullman is the 1893 no game what is the 1894 wsu 10–0 moscow? <|assistant|> SELECT "1894_wsu_10_0_moscow" FROM "game_results" WHERE "1893_no_game"='1963 WSU* 14–10 Pullman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "1890_no_game" text, "1891_no_game" text, "1892_no_game" text, "1893_no_game" text, "1894_wsu_10_0_moscow" text, "1895_wsu_10_4_pullman" text, "1896_no_game" text, "1897_no_game" text, "1898_no_game" text, "1899_wsu_11_0_pullman" text ); Question: When 1934 wsu* 19–0 pullman is the 1894 wsu 10–0 moscow how many 1899 wsu* 11–0 pullmans are there? <|assistant|> SELECT COUNT("1899_wsu_11_0_pullman") FROM "game_results" WHERE "1894_wsu_10_0_moscow"='1934 WSU* 19–0 Pullman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "1890_no_game" text, "1891_no_game" text, "1892_no_game" text, "1893_no_game" text, "1894_wsu_10_0_moscow" text, "1895_wsu_10_4_pullman" text, "1896_no_game" text, "1897_no_game" text, "1898_no_game" text, "1899_wsu_11_0_pullman" text ); Question: When 1987 no game is the 1897 no game what is the 1890 no game? <|assistant|> SELECT "1890_no_game" FROM "game_results" WHERE "1897_no_game"='1987 No game';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "1890_no_game" text, "1891_no_game" text, "1892_no_game" text, "1893_no_game" text, "1894_wsu_10_0_moscow" text, "1895_wsu_10_4_pullman" text, "1896_no_game" text, "1897_no_game" text, "1898_no_game" text, "1899_wsu_11_0_pullman" text ); Question: When 1971 no game is the 1891 no game what is the 1896 no game? <|assistant|> SELECT "1896_no_game" FROM "game_results" WHERE "1891_no_game"='1971 No game';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_results" ( "1890_no_game" text, "1891_no_game" text, "1892_no_game" text, "1893_no_game" text, "1894_wsu_10_0_moscow" text, "1895_wsu_10_4_pullman" text, "1896_no_game" text, "1897_no_game" text, "1898_no_game" text, "1899_wsu_11_0_pullman" text ); Question: When the 1907 ui* 5–4 moscow is the 1897 no game what is the 1895 wsu* 10–4 pullman? <|assistant|> SELECT "1895_wsu_10_4_pullman" FROM "game_results" WHERE "1897_no_game"='1907 UI* 5–4 Moscow';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What is the total amount o teams where winnings is $1,752,299? <|assistant|> SELECT COUNT("team_s") FROM "nascar_sprint_cup_series" WHERE "winnings"='$1,752,299';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What is the avg start that starts at 30? <|assistant|> SELECT "avg_start" FROM "nascar_sprint_cup_series" WHERE "starts"=30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: What is the totl amount of years where avg start is 27.3? <|assistant|> SELECT COUNT("year") FROM "nascar_sprint_cup_series" WHERE "avg_start"='27.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_history" ( "name_alma_mater" text, "seasons" text, "games" real, "wins" real, "losses" real, "win_pct" text, "ncaa_tour" text, "nit_tour" text, "mcc_tour" text, "a_10_tour" text ); Question: What coach had 15 wins? <|assistant|> SELECT "name_alma_mater" FROM "coaching_history" WHERE "wins"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_history" ( "name_alma_mater" text, "seasons" text, "games" real, "wins" real, "losses" real, "win_pct" text, "ncaa_tour" text, "nit_tour" text, "mcc_tour" text, "a_10_tour" text ); Question: How many losses for the coach that coached 19 games? <|assistant|> SELECT "losses" FROM "coaching_history" WHERE "games"=19;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the school year for class a for sterling city and little elm <|assistant|> SELECT "school_year" FROM "team" WHERE "class_a"='Sterling City' AND "class_aa"='Little Elm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the number of class aa for bridgeport and 1999-2000 <|assistant|> SELECT COUNT("class_aa") FROM "team" WHERE "class_aaa"='Bridgeport' AND "school_year"='1999-2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the class aa for 1998-99 <|assistant|> SELECT "class_aa" FROM "team" WHERE "school_year"='1998-99';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the class a for pearland <|assistant|> SELECT "class_a" FROM "team" WHERE "class_aaaaa"='Pearland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the class aaaaa for 2005-06 <|assistant|> SELECT "class_aaaaa" FROM "team" WHERE "school_year"='2005-06';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Name the number of class aaaaa for 1988-89 <|assistant|> SELECT COUNT("class_aaaaa") FROM "team" WHERE "school_year"='1988-89';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14598_9" ( "state_ut_code" real, "india_state_ut" text, "literate_persons_pct" text, "males_pct" text, "females_pct" text ); Question: What is the percentage of females where in India and are maharashtra? <|assistant|> SELECT "females_pct" FROM "table1_14598_9" WHERE "india_state_ut"='Maharashtra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14598_9" ( "state_ut_code" real, "india_state_ut" text, "literate_persons_pct" text, "males_pct" text, "females_pct" text ); Question: What is the percentage of all females that are literate people have a percentage of 68.74? <|assistant|> SELECT "females_pct" FROM "table1_14598_9" WHERE "literate_persons_pct"='68.74';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14598_9" ( "state_ut_code" real, "india_state_ut" text, "literate_persons_pct" text, "males_pct" text, "females_pct" text ); Question: What is the percentage of females where the state code is a 4? <|assistant|> SELECT "females_pct" FROM "table1_14598_9" WHERE "state_ut_code"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14598_9" ( "state_ut_code" real, "india_state_ut" text, "literate_persons_pct" text, "males_pct" text, "females_pct" text ); Question: What is the percentage of all the literate people where females are 73.17? <|assistant|> SELECT "literate_persons_pct" FROM "table1_14598_9" WHERE "females_pct"='73.17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_14598_9" ( "state_ut_code" real, "india_state_ut" text, "literate_persons_pct" text, "males_pct" text, "females_pct" text ); Question: What is the percentage of literate people where india is andaman and Nicobar Islands? <|assistant|> SELECT "literate_persons_pct" FROM "table1_14598_9" WHERE "india_state_ut"='Andaman and Nicobar Islands';<|endoftext|>