text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1682865_1" ( "english_name" text, "irish_name" text, "numeral" text, "reverse" text, "introduction" text, "withdrawal" text, "1_fraction" text ); Question: What is the numeral where the English name is Florin? <|assistant|> SELECT "numeral" FROM "table1_1682865_1" WHERE "english_name"='Florin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1682865_1" ( "english_name" text, "irish_name" text, "numeral" text, "reverse" text, "introduction" text, "withdrawal" text, "1_fraction" text ); Question: What is the £1 fraction when the reverse is hare? <|assistant|> SELECT "1_fraction" FROM "table1_1682865_1" WHERE "reverse"='Hare';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1682865_1" ( "english_name" text, "irish_name" text, "numeral" text, "reverse" text, "introduction" text, "withdrawal" text, "1_fraction" text ); Question: What date was the 6d introduced? <|assistant|> SELECT "introduction" FROM "table1_1682865_1" WHERE "numeral"='6d';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1682865_1" ( "english_name" text, "irish_name" text, "numeral" text, "reverse" text, "introduction" text, "withdrawal" text, "1_fraction" text ); Question: What is the Irish name for the £1 fraction of 1/240? <|assistant|> SELECT "irish_name" FROM "table1_1682865_1" WHERE "1_fraction"='1/240';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1682865_1" ( "english_name" text, "irish_name" text, "numeral" text, "reverse" text, "introduction" text, "withdrawal" text, "1_fraction" text ); Question: What is the reverse when the £1 fraction is 1/480? <|assistant|> SELECT "reverse" FROM "table1_1682865_1" WHERE "1_fraction"='1/480';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "election_results" ( "election" real, "candidates_fielded" real, "num_of_seats_won" real, "total_votes" real, "pct_of_popular_vote" text, "place" text ); Question: What is the largest number of seats won? <|assistant|> SELECT MAX("num_of_seats_won") FROM "election_results";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "election_results" ( "election" real, "candidates_fielded" real, "num_of_seats_won" real, "total_votes" real, "pct_of_popular_vote" text, "place" text ); Question: How many percentages are listed for the election in 1983? <|assistant|> SELECT COUNT("pct_of_popular_vote") FROM "election_results" WHERE "election"=1983;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "election_results" ( "election" real, "candidates_fielded" real, "num_of_seats_won" real, "total_votes" real, "pct_of_popular_vote" text, "place" text ); Question: What place did the party finish in the year when they earned 0.86% of the vote? <|assistant|> SELECT "place" FROM "election_results" WHERE "pct_of_popular_vote"='0.86%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "homologs" ( "species" text, "species_common_name" text, "ncbi_accession_number_m_rna_protein" text, "length_bp_aa" text, "protein_identity" text ); Question: What is the NCBI Accession Number for the length of 5304bp/377aa? <|assistant|> SELECT "ncbi_accession_number_m_rna_protein" FROM "homologs" WHERE "length_bp_aa"='5304bp/377aa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "homologs" ( "species" text, "species_common_name" text, "ncbi_accession_number_m_rna_protein" text, "length_bp_aa" text, "protein_identity" text ); Question: What is the NCBI Accession Number of the Homo Sapiens species? <|assistant|> SELECT "ncbi_accession_number_m_rna_protein" FROM "homologs" WHERE "species"='Homo sapiens';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "homologs" ( "species" text, "species_common_name" text, "ncbi_accession_number_m_rna_protein" text, "length_bp_aa" text, "protein_identity" text ); Question: What is the common name for the Felis Catus species? <|assistant|> SELECT "species_common_name" FROM "homologs" WHERE "species"='Felis catus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "homologs" ( "species" text, "species_common_name" text, "ncbi_accession_number_m_rna_protein" text, "length_bp_aa" text, "protein_identity" text ); Question: What is the species with the common name "mouse"? <|assistant|> SELECT COUNT("species") FROM "homologs" WHERE "species_common_name"='Mouse';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "homologs" ( "species" text, "species_common_name" text, "ncbi_accession_number_m_rna_protein" text, "length_bp_aa" text, "protein_identity" text ); Question: What is the protein identity with a length of 5304bp/377aa? <|assistant|> SELECT "protein_identity" FROM "homologs" WHERE "length_bp_aa"='5304bp/377aa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "releases" ( "cat_num" text, "artist" text, "title" text, "release_date" text, "format" text, "other_information" text ); Question: When was "Tell You When" released? <|assistant|> SELECT "release_date" FROM "releases" WHERE "title"='Tell You When';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: Where was game 62 played? <|assistant|> SELECT "location" FROM "game_log" WHERE "game"=62;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: What was the final score when the Maple Leafs played the Columbus Blue Jackets? <|assistant|> SELECT "score" FROM "game_log" WHERE "opponent"='Columbus Blue Jackets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16884579_1" ( "country" text, "name" text, "network" text, "premiere" text, "host_s" text, "judges" text, "seasons_and_winners" text ); Question: Name the network for dré steemans ann van elsen <|assistant|> SELECT "network" FROM "table1_16884579_1" WHERE "host_s"='Dré Steemans Ann Van Elsen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16884579_1" ( "country" text, "name" text, "network" text, "premiere" text, "host_s" text, "judges" text, "seasons_and_winners" text ); Question: Name the seasons and winners that airs 28 january 2007 <|assistant|> SELECT "seasons_and_winners" FROM "table1_16884579_1" WHERE "premiere"='28 January 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16884579_1" ( "country" text, "name" text, "network" text, "premiere" text, "host_s" text, "judges" text, "seasons_and_winners" text ); Question: Name the host for prime <|assistant|> SELECT "host_s" FROM "table1_16884579_1" WHERE "network"='Prime';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16884579_1" ( "country" text, "name" text, "network" text, "premiere" text, "host_s" text, "judges" text, "seasons_and_winners" text ); Question: Name the number of judges for dré steemans ann van elsen <|assistant|> SELECT COUNT("judges") FROM "table1_16884579_1" WHERE "host_s"='Dré Steemans Ann Van Elsen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canada" ( "team_name_affiliation" text, "year_started" real, "number_of_cars" real, "current_car" text, "car_num" text, "website" text ); Question: Name the website for car number of 92 <|assistant|> SELECT "website" FROM "canada" WHERE "car_num"='92';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canada" ( "team_name_affiliation" text, "year_started" real, "number_of_cars" real, "current_car" text, "car_num" text, "website" text ); Question: Name the year started where car number is 55 <|assistant|> SELECT MAX("year_started") FROM "canada" WHERE "car_num"='55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canada" ( "team_name_affiliation" text, "year_started" real, "number_of_cars" real, "current_car" text, "car_num" text, "website" text ); Question: Name the car number for 1997 <|assistant|> SELECT "car_num" FROM "canada" WHERE "year_started"=1997;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "religion" text, "suriname" text, "paramaribo" text, "wanica" text, "nickerie" text, "coronie" text, "saramacca" text, "commewijne" text, "marowijne" text, "para" text, "brokopondo" text, "sipaliwini" text ); Question: Name the nickerie for marowijne being 4.7% <|assistant|> SELECT COUNT("nickerie") FROM "demography" WHERE "marowijne"='4.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "religion" text, "suriname" text, "paramaribo" text, "wanica" text, "nickerie" text, "coronie" text, "saramacca" text, "commewijne" text, "marowijne" text, "para" text, "brokopondo" text, "sipaliwini" text ); Question: Name the coronie for marowijne being 6.8% <|assistant|> SELECT "coronie" FROM "demography" WHERE "marowijne"='6.8%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "demography" ( "religion" text, "suriname" text, "paramaribo" text, "wanica" text, "nickerie" text, "coronie" text, "saramacca" text, "commewijne" text, "marowijne" text, "para" text, "brokopondo" text, "sipaliwini" text ); Question: Name the para for 1.5% commewijne <|assistant|> SELECT "para" FROM "demography" WHERE "commewijne"='1.5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "class" text, "motorcycle" text, "team" text, "races" real, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" text, "placement" text ); Question: Name the least amount of races for 2 poles <|assistant|> SELECT MIN("races") FROM "by_season" WHERE "poles"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "class" text, "motorcycle" text, "team" text, "races" real, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" text, "placement" text ); Question: Name the motorcycle for season 2012 <|assistant|> SELECT "motorcycle" FROM "by_season" WHERE "season"=2012;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "class" text, "motorcycle" text, "team" text, "races" real, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" text, "placement" text ); Question: Name the number of flaps for 63 points <|assistant|> SELECT COUNT("f_laps") FROM "by_season" WHERE "points"='63';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" real, "class" text, "motorcycle" text, "team" text, "races" real, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" text, "placement" text ); Question: Name the least flaps <|assistant|> SELECT MIN("f_laps") FROM "by_season";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "returning" ( "player" text, "gp" real, "k_ret" real, "kr_yds" real, "kr_avg" text, "kr_td" real, "kr_lg" real, "p_ret" real, "pr_yds" real, "pr_avg" text, "pr_td" real, "pr_lg" real, "mfg_ret" real, "mfg_yds" real, "mfg_avg" text, "mfg_lg" real, "mfg_td" real ); Question: How many p.ret are there when kr avg is 11.3 ? <|assistant|> SELECT COUNT("p_ret") FROM "returning" WHERE "kr_avg"='11.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "returning" ( "player" text, "gp" real, "k_ret" real, "kr_yds" real, "kr_avg" text, "kr_td" real, "kr_lg" real, "p_ret" real, "pr_yds" real, "pr_avg" text, "pr_td" real, "pr_lg" real, "mfg_ret" real, "mfg_yds" real, "mfg_avg" text, "mfg_lg" real, "mfg_td" real ); Question: What is the kr td when mfg lg is 64? <|assistant|> SELECT "kr_td" FROM "returning" WHERE "mfg_lg"=64;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "returning" ( "player" text, "gp" real, "k_ret" real, "kr_yds" real, "kr_avg" text, "kr_td" real, "kr_lg" real, "p_ret" real, "pr_yds" real, "pr_avg" text, "pr_td" real, "pr_lg" real, "mfg_ret" real, "mfg_yds" real, "mfg_avg" text, "mfg_lg" real, "mfg_td" real ); Question: Who's average is 24.8? <|assistant|> SELECT "player" FROM "returning" WHERE "kr_avg"='24.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "returning" ( "player" text, "gp" real, "k_ret" real, "kr_yds" real, "kr_avg" text, "kr_td" real, "kr_lg" real, "p_ret" real, "pr_yds" real, "pr_avg" text, "pr_td" real, "pr_lg" real, "mfg_ret" real, "mfg_yds" real, "mfg_avg" text, "mfg_lg" real, "mfg_td" real ); Question: What is the pr avg, when kr lg is 49? <|assistant|> SELECT "pr_avg" FROM "returning" WHERE "kr_lg"=49;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities" ( "municipality" text, "income_class" text, "district" text, "population_2010" real, "area_km" real ); Question: what is the population where municipality is san jacinto? <|assistant|> SELECT "population_2010" FROM "municipalities" WHERE "municipality"='San Jacinto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities" ( "municipality" text, "income_class" text, "district" text, "population_2010" real, "area_km" real ); Question: what is the income class for area 75? <|assistant|> SELECT "income_class" FROM "municipalities" WHERE "area_km"=75;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities" ( "municipality" text, "income_class" text, "district" text, "population_2010" real, "area_km" real ); Question: what is th area where the municipaity is labrador? <|assistant|> SELECT "area_km" FROM "municipalities" WHERE "municipality"='Labrador';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities" ( "municipality" text, "income_class" text, "district" text, "population_2010" real, "area_km" real ); Question: what is the municipality where the area is 73? <|assistant|> SELECT "municipality" FROM "municipalities" WHERE "area_km"=73;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "riders" ( "position" real, "driver_passenger" text, "equipment" text, "bike_no" real, "points" real ); Question: Name the equipment for bike number 6 <|assistant|> SELECT "equipment" FROM "riders" WHERE "bike_no"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "riders" ( "position" real, "driver_passenger" text, "equipment" text, "bike_no" real, "points" real ); Question: Name the driver passenger for 394 points <|assistant|> SELECT "driver_passenger" FROM "riders" WHERE "points"=394;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "riders" ( "position" real, "driver_passenger" text, "equipment" text, "bike_no" real, "points" real ); Question: Name the equipment for bike number being 3 <|assistant|> SELECT "equipment" FROM "riders" WHERE "bike_no"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1694492_2" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: In district New York 10th, what was the reason for change? <|assistant|> SELECT "reason_for_change" FROM "table1_1694492_2" WHERE "district"='New York 10th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1694505_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: In the district Wisconsin 2nd, what was the reason for change? <|assistant|> SELECT "reason_for_change" FROM "table1_1694505_4" WHERE "district"='Wisconsin 2nd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sterilization_operations_by_age_date" ( "date_of_sterilization" text, "age_10_19" real, "age_20_29" real, "age_30_39" real, "age_40_49" real, "age_50_59" real, "age_unknown" real, "total" real ); Question: Name the least age 30-39 where age 20-29 is 593 <|assistant|> SELECT MIN("age_30_39") FROM "sterilization_operations_by_age_date" WHERE "age_20_29"=593;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sterilization_operations_by_age_date" ( "date_of_sterilization" text, "age_10_19" real, "age_20_29" real, "age_30_39" real, "age_40_49" real, "age_50_59" real, "age_unknown" real, "total" real ); Question: Name the least age 40-49 <|assistant|> SELECT MIN("age_40_49") FROM "sterilization_operations_by_age_date";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sterilization_operations_by_age_date" ( "date_of_sterilization" text, "age_10_19" real, "age_20_29" real, "age_30_39" real, "age_40_49" real, "age_50_59" real, "age_unknown" real, "total" real ); Question: Name the age 30-39 and age 10-19 380 <|assistant|> SELECT "age_30_39" FROM "sterilization_operations_by_age_date" WHERE "age_10_19"=380;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "num" text, "date" text, "at_vs" text, "opponent" text, "score" text, "attendance" real, "record" text ); Question: Name the score for number 4 <|assistant|> SELECT "score" FROM "game_log" WHERE "num"='4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "religious_group_breakdown" ( "religion" text, "chester" text, "congleton" text, "crewe_and_nantwich" text, "ellesmere_port_and_neston" text, "macclesfield" text, "vale_royal" text, "total" text ); Question: How many numbers were recorded for Chester when the religion was Hindu? <|assistant|> SELECT COUNT("chester") FROM "religious_group_breakdown" WHERE "religion"='Hindu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "best_finish" text, "earnings" real, "money_list_rank" text ); Question: what was Casey Martin's minimum yearly earnings? <|assistant|> SELECT MIN("earnings") FROM "pga_tour_results";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "best_finish" text, "earnings" real, "money_list_rank" text ); Question: when Casey Martin's best finish was t-65, where did he land in the money list rankings? <|assistant|> SELECT "money_list_rank" FROM "pga_tour_results" WHERE "best_finish"='T-65';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_results" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "best_finish" text, "earnings" real, "money_list_rank" text ); Question: how many times did Casey Martin win? <|assistant|> SELECT MAX("wins") FROM "pga_tour_results";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16976547_2" ( "cycle_no" text, "air_dates" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: Name the total number of air dates for 05 cycle <|assistant|> SELECT COUNT("air_dates") FROM "table1_16976547_2" WHERE "cycle_no"='05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16976547_2" ( "cycle_no" text, "air_dates" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: Name the vote for gigit <|assistant|> SELECT "vote" FROM "table1_16976547_2" WHERE "eliminated"='Gigit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16976547_2" ( "cycle_no" text, "air_dates" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: Name the finish for patani <|assistant|> SELECT "finish" FROM "table1_16976547_2" WHERE "eliminated"='Patani';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_16976547_2" ( "cycle_no" text, "air_dates" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); Question: Name the total number of immunity for cycle number of 13 <|assistant|> SELECT COUNT("immunity") FROM "table1_16976547_2" WHERE "cycle_no"='13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_during_2000" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: For the NBC network, what was the new/returning/same network status? <|assistant|> SELECT "new_returning_same_network" FROM "programs_returning_during_2000" WHERE "previous_network"='NBC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_during_2000" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Which show was sent to syndication for its new/returning/same network. <|assistant|> SELECT "show" FROM "programs_returning_during_2000" WHERE "new_returning_same_network"='Syndication';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_during_2000" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: What is the new/returning/same network name for This Week in Baseball? <|assistant|> SELECT "new_returning_same_network" FROM "programs_returning_during_2000" WHERE "show"='This Week in Baseball';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_during_2000" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Which show as previously on The Family Channel? <|assistant|> SELECT "show" FROM "programs_returning_during_2000" WHERE "previous_network"='The Family Channel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_during_2000" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Did the name change for the program last aired in 1958? <|assistant|> SELECT "retitled_as_same" FROM "programs_returning_during_2000" WHERE "last_aired"=1958;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "episode_number" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_overall" text ); Question: What was the rating of the episode with an overall ranking of 190? <|assistant|> SELECT "rating" FROM "u_s_nielsen_ratings" WHERE "rank_overall"='190';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "episode_number" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_overall" text ); Question: What was the rating of episode titled "110"? <|assistant|> SELECT "rating" FROM "u_s_nielsen_ratings" WHERE "episode"='\"110\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "episode_number" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_overall" text ); Question: How much were the shares during the episode "113"? <|assistant|> SELECT MAX("share") FROM "u_s_nielsen_ratings" WHERE "episode"='\"113\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "episode_number" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_overall" text ); Question: How many were the shares when the viewers reached 3.11 million? <|assistant|> SELECT COUNT("share") FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='3.11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); Question: Name the saka era for malayalam മിഥുനം <|assistant|> SELECT "saka_era" FROM "comparative_table_showing_corresponding_" WHERE "in_malayalam"='മിഥുനം';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); Question: Name the months in the malayalam era for കുംഭം <|assistant|> SELECT "months_in_malayalam_era" FROM "comparative_table_showing_corresponding_" WHERE "in_malayalam"='കുംഭം';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); Question: Name the sign of zodiac for chithirai <|assistant|> SELECT "sign_of_zodiac" FROM "comparative_table_showing_corresponding_" WHERE "tamil_calendar"='Chithirai';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); Question: Name the saka era for sign of zodiac being pisces <|assistant|> SELECT "saka_era" FROM "comparative_table_showing_corresponding_" WHERE "sign_of_zodiac"='Pisces';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_table_showing_corresponding_" ( "months_in_malayalam_era" text, "in_malayalam" text, "gregorian_calendar" text, "tamil_calendar" text, "saka_era" text, "sign_of_zodiac" text ); Question: Name the number of gregorian calenda rof gemini <|assistant|> SELECT COUNT("gregorian_calendar") FROM "comparative_table_showing_corresponding_" WHERE "sign_of_zodiac"='Gemini';<|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: For High Assists of Raymond Felton (12), who were the High rebounds? <|assistant|> SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='Raymond Felton (12)';<|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: On what date was the team Philadelphia? <|assistant|> SELECT "date" FROM "game_log" WHERE "team"='Philadelphia';<|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 rebound for the high assists of d. j. augustin (8)? <|assistant|> SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='D. J. Augustin (8)';<|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 final score of the game with gerald wallace (14) as the High Rebound? <|assistant|> SELECT "record" FROM "game_log" WHERE "high_rebounds"='Gerald Wallace (14)';<|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 final score in game 15? <|assistant|> SELECT "score" FROM "game_log" WHERE "game"=15;<|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 had the most assists and how many did they have in the game against Miami? <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "team"='Miami';<|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: Name the location attendance for game 55 <|assistant|> SELECT "location_attendance" FROM "game_log" WHERE "game"=55;<|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 got the game high rebounds in game 46? <|assistant|> SELECT "high_rebounds" FROM "game_log" WHERE "game"=46;<|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 scores are listed for game 37? <|assistant|> SELECT COUNT("score") FROM "game_log" WHERE "game"=37;<|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 date was the opposing team Milwaukee? <|assistant|> SELECT "date" FROM "game_log" WHERE "team"='Milwaukee';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mean_free_path_in_kinetic_theory" ( "vacuum_range" text, "pressure_in_h_pa_mbar" text, "molecules_cm_3" text, "molecules_m_3" text, "mean_free_path" text ); Question: What is the pressure in ultra high vacuum? <|assistant|> SELECT "pressure_in_h_pa_mbar" FROM "mean_free_path_in_kinetic_theory" WHERE "vacuum_range"='Ultra high vacuum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "episode_number_production_number" text, "title" text, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "weekly_rank" text, "nightly_rank" text ); Question: what is the nightly rank where the episode number production number is 06 1-06? <|assistant|> SELECT COUNT("nightly_rank") FROM "ratings" WHERE "episode_number_production_number"='06 1-06';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "episode_number_production_number" text, "title" text, "sydney" real, "melbourne" real, "brisbane" real, "adelaide" real, "perth" real, "total" real, "weekly_rank" text, "nightly_rank" text ); Question: what is the number of weekly rank where the total is 1980000? <|assistant|> SELECT COUNT("weekly_rank") FROM "ratings" WHERE "total"=1980000;<|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: Name the high assists for 70 game <|assistant|> SELECT "high_assists" FROM "game_log" WHERE "game"=70;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subdivisions" ( "no" real, "hanyu" text, "tongyong" text, "pe_h_e_j" text, "chinese" text, "area_km" text, "no_of_villages" real, "population_2010" real ); Question: Name the pe̍h-ōe-jī for 前金區 <|assistant|> SELECT "pe_h_e_j" FROM "subdivisions" WHERE "chinese"='前金區';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subdivisions" ( "no" real, "hanyu" text, "tongyong" text, "pe_h_e_j" text, "chinese" text, "area_km" text, "no_of_villages" real, "population_2010" real ); Question: Name the number of villages for mituo <|assistant|> SELECT "no_of_villages" FROM "subdivisions" WHERE "hanyu"='Mituo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subdivisions" ( "no" real, "hanyu" text, "tongyong" text, "pe_h_e_j" text, "chinese" text, "area_km" text, "no_of_villages" real, "population_2010" real ); Question: Name the number where population 2010 is 171906 <|assistant|> SELECT "no" FROM "subdivisions" WHERE "population_2010"=171906;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subdivisions" ( "no" real, "hanyu" text, "tongyong" text, "pe_h_e_j" text, "chinese" text, "area_km" text, "no_of_villages" real, "population_2010" real ); Question: Name the tongyong for chinese of 湖內區 <|assistant|> SELECT "tongyong" FROM "subdivisions" WHERE "chinese"='湖內區';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subdivisions" ( "no" real, "hanyu" text, "tongyong" text, "pe_h_e_j" text, "chinese" text, "area_km" text, "no_of_villages" real, "population_2010" real ); Question: Name the tongyong for qiaotou <|assistant|> SELECT COUNT("tongyong") FROM "subdivisions" WHERE "hanyu"='Qiaotou';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1701371_2" ( "graphics_mode" real, "char_cells" text, "pixels" text, "hardware_colours" real, "used_kb" real, "map" text, "type" text ); Question: How many pixels would be found in a hardware colour of 8? <|assistant|> SELECT "pixels" FROM "table1_1701371_2" WHERE "hardware_colours"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1701371_2" ( "graphics_mode" real, "char_cells" text, "pixels" text, "hardware_colours" real, "used_kb" real, "map" text, "type" text ); Question: If hardware colours is 8 what would the char cells be? <|assistant|> SELECT "char_cells" FROM "table1_1701371_2" WHERE "hardware_colours"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17025328_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: Name the year for le confessional <|assistant|> SELECT "year_ceremony" FROM "table1_17025328_1" WHERE "original_title"='Le Confessional';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17025328_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: Name the year for les portes tournantes <|assistant|> SELECT "year_ceremony" FROM "table1_17025328_1" WHERE "original_title"='Les portes tournantes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "province" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: How many values are in the PF cell when Jennifer Jones is skip? <|assistant|> SELECT COUNT("pf") FROM "standings" WHERE "skip"='Jennifer Jones';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "province" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: How many points for did the team with Shannon Kleibrink as skip score? <|assistant|> SELECT MAX("pf") FROM "standings" WHERE "skip"='Shannon Kleibrink';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "province" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: Of the teams that lost 5 games, what is the highest number of wins? <|assistant|> SELECT MAX("w") FROM "standings" WHERE "l"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "province" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: What is the highest number of ends lost? <|assistant|> SELECT MAX("ends_lost") FROM "standings";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "province" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: How many values are in the ends won cell corresponding to a PA of 39? <|assistant|> SELECT COUNT("ends_won") FROM "standings" WHERE "pa"=39;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "province" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: When the skip is Glenn Howard, what the minimum PF? <|assistant|> SELECT MIN("pf") FROM "standings" WHERE "skip"='Glenn Howard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "province" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: Who was Alberta's skip when the shot pct was 88? <|assistant|> SELECT "skip" FROM "standings" WHERE "shot_pct"=88 AND "province"='Alberta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "province" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); Question: What is the top Points Allowed? <|assistant|> SELECT MAX("pa") FROM "standings";<|endoftext|>