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