text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_results" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: What week #(s featured sara bareilles as the original artist? <|assistant|> SELECT "week_num" FROM "performances_results" WHERE "original_artist"='Sara Bareilles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_results" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: What week # featured first solo as the theme? <|assistant|> SELECT "week_num" FROM "performances_results" WHERE "theme"='First Solo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_results" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: How many weeks featured duffy as the original artist? <|assistant|> SELECT COUNT("theme") FROM "performances_results" WHERE "original_artist"='Duffy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_results" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: Who was the originally artist when Jasmine Murray was selected? <|assistant|> SELECT "original_artist" FROM "performances_results" WHERE "result"='Selected';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_results" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: With theme the Year They Were Born, what is the song of choice? <|assistant|> SELECT "song_choice" FROM "performances_results" WHERE "theme"='Year They Were Born';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_results" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: With order number 7 and the theme is Motown, who were the original artists? <|assistant|> SELECT "original_artist" FROM "performances_results" WHERE "order_num"='7' AND "theme"='Motown';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_results" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: With an original artist names Bette Midler, what is the order number? <|assistant|> SELECT COUNT("order_num") FROM "performances_results" WHERE "original_artist"='Bette Midler';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_results" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: With original artist of Tina Turner, what is the week number? <|assistant|> SELECT "week_num" FROM "performances_results" WHERE "original_artist"='Tina Turner';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_results" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: Who is the original artist with a theme of N/A? <|assistant|> SELECT "original_artist" FROM "performances_results" WHERE "theme"='N/A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2150776_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Name the team for june 16 jeff gordon <|assistant|> SELECT "team" FROM "table1_2150776_1" WHERE "date"='June 16' AND "driver"='Jeff Gordon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2150776_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Name the driver for 200 laps 1997 <|assistant|> SELECT "driver" FROM "table1_2150776_1" WHERE "laps"='200' AND "year"='1997';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2150776_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Name the team for ricky rudd <|assistant|> SELECT "team" FROM "table1_2150776_1" WHERE "driver"='Ricky Rudd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "total_pts" real, "ranking" real ); Question: What is the rank when RR2 has 4 points? <|assistant|> SELECT "ranking" FROM "round_robin" WHERE "rr2_pts"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "total_pts" real, "ranking" real ); Question: How many points does Swedish America's Cup Challenge have for rr1? <|assistant|> SELECT COUNT("rr1_pts") FROM "round_robin" WHERE "team_name"='Swedish America''s Cup Challenge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "political_party_strength" ( "state" text, "governor" text, "senior_u_s_senator" text, "junior_u_s_senator" text, "u_s_house_delegation" text, "upper_house_majority" text, "lower_house_majority" text ); Question: Who was the senior US senator in the state whose governor was D. Patrick? <|assistant|> SELECT "senior_u_s_senator" FROM "political_party_strength" WHERE "governor"='D. Patrick';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "political_party_strength" ( "state" text, "governor" text, "senior_u_s_senator" text, "junior_u_s_senator" text, "u_s_house_delegation" text, "upper_house_majority" text, "lower_house_majority" text ); Question: What's the lower house majority in the state whose Senior senator is J. Shaheen? <|assistant|> SELECT "lower_house_majority" FROM "political_party_strength" WHERE "senior_u_s_senator"='J. Shaheen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_cet" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: Who is every name for time(cet) of 09:58? <|assistant|> SELECT "name" FROM "special_stages" WHERE "time_cet"='09:58';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_cet" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: What is every time(cet) for the name of Lillehammer 2? <|assistant|> SELECT "time_cet" FROM "special_stages" WHERE "name"='Lillehammer 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_cet" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: Who is every name for time(cet) of 09:03? <|assistant|> SELECT "name" FROM "special_stages" WHERE "time_cet"='09:03';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_cet" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: Which days have a stage of ss11? <|assistant|> SELECT "day" FROM "special_stages" WHERE "stage"='SS11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_cet" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: What is every time(cet) for a time of 5:04.8? <|assistant|> SELECT "time_cet" FROM "special_stages" WHERE "time"='5:04.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "euronorm_standard_for_security_glazing" ( "class" text, "weapon" text, "caliber" text, "type" text, "weight_g" text, "range_m" text, "velocity_m_s" text, "impact_energy" text, "shots" real ); Question: How many calibers require the type LB/RN? <|assistant|> SELECT COUNT("caliber") FROM "euronorm_standard_for_security_glazing" WHERE "type"='LB/RN';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "euronorm_standard_for_security_glazing" ( "class" text, "weapon" text, "caliber" text, "type" text, "weight_g" text, "range_m" text, "velocity_m_s" text, "impact_energy" text, "shots" real ); Question: Type FJ/RN/SC is associated with what class? <|assistant|> SELECT "class" FROM "euronorm_standard_for_security_glazing" WHERE "type"='FJ/RN/SC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "euronorm_standard_for_security_glazing" ( "class" text, "weapon" text, "caliber" text, "type" text, "weight_g" text, "range_m" text, "velocity_m_s" text, "impact_energy" text, "shots" real ); Question: What type of glazing will stop a .44 magnum? <|assistant|> SELECT "type" FROM "euronorm_standard_for_security_glazing" WHERE "caliber"='.44 Magnum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "euronorm_standard_for_security_glazing" ( "class" text, "weapon" text, "caliber" text, "type" text, "weight_g" text, "range_m" text, "velocity_m_s" text, "impact_energy" text, "shots" real ); Question: What is the fewest shots a glazing can handle? <|assistant|> SELECT MIN("shots") FROM "euronorm_standard_for_security_glazing";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "euronorm_standard_for_security_glazing" ( "class" text, "weapon" text, "caliber" text, "type" text, "weight_g" text, "range_m" text, "velocity_m_s" text, "impact_energy" text, "shots" real ); Question: What range does type FJ/PB/SCP work at? <|assistant|> SELECT "range_m" FROM "euronorm_standard_for_security_glazing" WHERE "type"='FJ/PB/SCP';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21530474_1" ( "chassis_code" text, "model_no" text, "production_years" text, "drivetrain" text, "transmission" text, "engine_type" text, "engine_code" text, "region_s" text ); Question: Name the drivetrain for 2ur-fse <|assistant|> SELECT "drivetrain" FROM "table1_21530474_1" WHERE "engine_code"='2UR-FSE';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21530474_1" ( "chassis_code" text, "model_no" text, "production_years" text, "drivetrain" text, "transmission" text, "engine_type" text, "engine_code" text, "region_s" text ); Question: Name the regions for usf45 <|assistant|> SELECT "region_s" FROM "table1_21530474_1" WHERE "chassis_code"='USF45';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21530474_1" ( "chassis_code" text, "model_no" text, "production_years" text, "drivetrain" text, "transmission" text, "engine_type" text, "engine_code" text, "region_s" text ); Question: Name the model number for usf46 <|assistant|> SELECT "model_no" FROM "table1_21530474_1" WHERE "chassis_code"='USF46';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21530474_1" ( "chassis_code" text, "model_no" text, "production_years" text, "drivetrain" text, "transmission" text, "engine_type" text, "engine_code" text, "region_s" text ); Question: Name the drivetrain for 1ur-fse for usf41 <|assistant|> SELECT "drivetrain" FROM "table1_21530474_1" WHERE "engine_code"='1UR-FSE' AND "chassis_code"='USF41';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "unemployment_rates_in_new_england" ( "employment_area" text, "october_2010" text, "october_2011" text, "october_2012" text, "net_change" text ); Question: For the area which was 9.1 in October 2010, what is the figure for October 2012? <|assistant|> SELECT "october_2012" FROM "unemployment_rates_in_new_england" WHERE "october_2010"='9.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "unemployment_rates_in_new_england" ( "employment_area" text, "october_2010" text, "october_2011" text, "october_2012" text, "net_change" text ); Question: Where is the rate 5.7 in October 2010? <|assistant|> SELECT "employment_area" FROM "unemployment_rates_in_new_england" WHERE "october_2010"='5.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21550870_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); Question: Name the original air date for 9.16 viewers <|assistant|> SELECT "original_air_date" FROM "table1_21550870_1" WHERE "u_s_viewers_million"='9.16';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21550870_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); Question: Name the total number of production code for episode by steve cohen & andrew dettman <|assistant|> SELECT COUNT("production_code") FROM "table1_21550870_1" WHERE "written_by"='Steve Cohen & Andrew Dettman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "country" text, "area_km" text, "population_millions_2011" text, "gdp_ppp_usd_per_capita" real, "gdp_nominal_billions_usd" text, "hdi_2011" text ); Question: What is the population in millions for 2011 where the HDI for 2011 is 0.453 (low)? <|assistant|> SELECT "population_millions_2011" FROM "members" WHERE "hdi_2011"='0.453 (low)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "country" text, "area_km" text, "population_millions_2011" text, "gdp_ppp_usd_per_capita" real, "gdp_nominal_billions_usd" text, "hdi_2011" text ); Question: What is the population in millions for 2011 where the GDP (nominal) (billions USD) is 4? <|assistant|> SELECT "population_millions_2011" FROM "members" WHERE "gdp_nominal_billions_usd"='4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "country" text, "area_km" text, "population_millions_2011" text, "gdp_ppp_usd_per_capita" real, "gdp_nominal_billions_usd" text, "hdi_2011" text ); Question: What is the HDI for 2011 in Tunisia? <|assistant|> SELECT "hdi_2011" FROM "members" WHERE "country"='Tunisia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "country" text, "area_km" text, "population_millions_2011" text, "gdp_ppp_usd_per_capita" real, "gdp_nominal_billions_usd" text, "hdi_2011" text ); Question: What is the area (km2) where the population in millions for 2011 is 37.1? <|assistant|> SELECT "area_km" FROM "members" WHERE "population_millions_2011"='37.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "country" text, "area_km" text, "population_millions_2011" text, "gdp_ppp_usd_per_capita" real, "gdp_nominal_billions_usd" text, "hdi_2011" text ); Question: What is the GDP (PPP) (USD, per capita) for Algeria? <|assistant|> SELECT MIN("gdp_ppp_usd_per_capita") FROM "members" WHERE "country"='Algeria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "country" text, "area_km" text, "population_millions_2011" text, "gdp_ppp_usd_per_capita" real, "gdp_nominal_billions_usd" text, "hdi_2011" text ); Question: What is the GDP (nominal) (billions USD) where the population in millions for 2011 is 3.4? <|assistant|> SELECT "gdp_nominal_billions_usd" FROM "members" WHERE "population_millions_2011"='3.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2155350_2" ( "category" text, "sub_category" text, "cab_size" text, "drive_wheels" text, "capacity_litres" text ); Question: Name the number of cab size for 4 medium tanker <|assistant|> SELECT COUNT("cab_size") FROM "table1_2155350_2" WHERE "category"='4 Medium tanker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2155350_2" ( "category" text, "sub_category" text, "cab_size" text, "drive_wheels" text, "capacity_litres" text ); Question: Name the category for cab size crew and super tanker <|assistant|> SELECT "category" FROM "table1_2155350_2" WHERE "cab_size"='Crew' AND "sub_category"='Super tanker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2155350_2" ( "category" text, "sub_category" text, "cab_size" text, "drive_wheels" text, "capacity_litres" text ); Question: Name the capacity for single cab size 2 medium tanker <|assistant|> SELECT "capacity_litres" FROM "table1_2155350_2" WHERE "cab_size"='Single' AND "category"='2 Medium tanker';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "school" text, "location" text, "catchment" text, "roll" real, "gender" text, "external_link" text ); Question: What school is in Brechin? <|assistant|> SELECT "external_link" FROM "external_links" WHERE "location"='Brechin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "school" text, "location" text, "catchment" text, "roll" real, "gender" text, "external_link" text ); Question: How many kids go to Brechin High School? <|assistant|> SELECT MAX("roll") FROM "external_links" WHERE "school"='Brechin High School';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_teams" ( "team" text, "sport" text, "league" text, "established" real, "began_in_st_louis" real, "venue" text, "championships_in_st_louis" text, "left_st_louis" real ); Question: What year did Negro American League join? <|assistant|> SELECT MIN("began_in_st_louis") FROM "former_teams" WHERE "league"='Negro American League';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_teams" ( "team" text, "sport" text, "league" text, "established" real, "began_in_st_louis" real, "venue" text, "championships_in_st_louis" text, "left_st_louis" real ); Question: What year did the team who played at the Scottrade Center leave the city? <|assistant|> SELECT MIN("left_st_louis") FROM "former_teams" WHERE "venue"='Scottrade Center';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_teams" ( "team" text, "sport" text, "league" text, "established" real, "began_in_st_louis" real, "venue" text, "championships_in_st_louis" text, "left_st_louis" real ); Question: How may championships were won by the team that started in 1950? <|assistant|> SELECT "championships_in_st_louis" FROM "former_teams" WHERE "began_in_st_louis"=1950;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_teams" ( "team" text, "sport" text, "league" text, "established" real, "began_in_st_louis" real, "venue" text, "championships_in_st_louis" text, "left_st_louis" real ); Question: How many championships were won for arena football? <|assistant|> SELECT "championships_in_st_louis" FROM "former_teams" WHERE "sport"='Arena Football';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text, "asian_team_classification" text ); Question: When samai amari is the asian rider classification how many asian team classifications are there? <|assistant|> SELECT COUNT("asian_team_classification") FROM "classification_leadership" WHERE "asian_rider_classification"='Samai Amari';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "asian_rider_classification" text, "team_classification" text, "asian_team_classification" text ); Question: When 4 is the stage who is the general classification? <|assistant|> SELECT "general_classification" FROM "classification_leadership" WHERE "stage"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2156758_4" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What is the number in season for the episode written by Chris Mitchell and Erik Wiese? <|assistant|> SELECT "no_in_season" FROM "table1_2156758_4" WHERE "written_by"='Chris Mitchell and Erik Wiese';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2156758_4" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: What is the title for episode number in series of 28? <|assistant|> SELECT "title" FROM "table1_2156758_4" WHERE "no_in_series"='28';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2156758_4" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: Who directed the episode titled "Jack and the Zombies"? <|assistant|> SELECT "directed_by" FROM "table1_2156758_4" WHERE "title"='\"Jack and the Zombies\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2156758_4" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Question: How many titles were written by Don Shank and Genndy Tartakovsky? <|assistant|> SELECT COUNT("title") FROM "table1_2156758_4" WHERE "written_by"='Don Shank and Genndy Tartakovsky';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_finishes" ( "season" text, "mens_1st_xi" text, "mens_2nd_xi" text, "mens_3rd_xi" text, "ladies_1st_xi" text ); Question: When 3rd, sedgemoor division 1 is the ladies 1st xi what is the mens 3rd xi? <|assistant|> SELECT "mens_3rd_xi" FROM "league_finishes" WHERE "ladies_1st_xi"='3rd, Sedgemoor Division 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_finishes" ( "season" text, "mens_1st_xi" text, "mens_2nd_xi" text, "mens_3rd_xi" text, "ladies_1st_xi" text ); Question: When 10th, south west district 1 is the mens 2nd xi what is the ladies 1st xi? <|assistant|> SELECT "ladies_1st_xi" FROM "league_finishes" WHERE "mens_2nd_xi"='10th, South West District 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_finishes" ( "season" text, "mens_1st_xi" text, "mens_2nd_xi" text, "mens_3rd_xi" text, "ladies_1st_xi" text ); Question: When 5th, south western district 2 is the mens 2nd xi what is the season? <|assistant|> SELECT "season" FROM "league_finishes" WHERE "mens_2nd_xi"='5th, South Western District 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_finishes" ( "season" text, "mens_1st_xi" text, "mens_2nd_xi" text, "mens_3rd_xi" text, "ladies_1st_xi" text ); Question: When 6th, south division 2 is the mens 1st xi what is the mens 2nd xi? <|assistant|> SELECT "mens_2nd_xi" FROM "league_finishes" WHERE "mens_1st_xi"='6th, South Division 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_eet" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: Which stage has kourdali as the name? <|assistant|> SELECT "stage" FROM "special_stages" WHERE "name"='Kourdali';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_eet" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: Which stage has 15:17 as time? <|assistant|> SELECT "stage" FROM "special_stages" WHERE "time_eet"='15:17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_eet" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: What is the time when time is 10:46? <|assistant|> SELECT "time" FROM "special_stages" WHERE "time_eet"='10:46';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "day" text, "stage" text, "time_eet" text, "name" text, "length" text, "winner" text, "time" text, "avg_spd" text, "rally_leader" text ); Question: What is the time when ss12 is stage? <|assistant|> SELECT "time" FROM "special_stages" WHERE "stage"='SS12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159506_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); Question: Name the state class for resigned november 3, 1964 <|assistant|> SELECT "state_class" FROM "table1_2159506_3" WHERE "reason_for_change"='Resigned November 3, 1964';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21584646_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); Question: How many champions are shown for the runner-up of stefan edberg? <|assistant|> SELECT COUNT("champion") FROM "table1_21584646_10" WHERE "runner_up"='Stefan Edberg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21584646_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); Question: What week was stefan edberg anders järryd was semifinalist and champion is john mcenroe 7–6, 6–3? <|assistant|> SELECT "week_of" FROM "table1_21584646_10" WHERE "semifinalists"='Stefan Edberg Anders Järryd' AND "champion"='John McEnroe 7–6, 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21584646_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); Question: Who is the runner up for the champion of john mcenroe 6–2, 6–3? <|assistant|> SELECT "runner_up" FROM "table1_21584646_10" WHERE "champion"='John McEnroe 6–2, 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21584646_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); Question: Who were the quarterfinalists for the runner-ups of mike de palmer gary donnelly? <|assistant|> SELECT "quarterfinalists" FROM "table1_21584646_10" WHERE "runner_up"='Mike De Palmer Gary Donnelly';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21584646_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); Question: Who are the quarterfinalists for runner-up jimmy connors? <|assistant|> SELECT "quarterfinalists" FROM "table1_21584646_10" WHERE "runner_up"='Jimmy Connors';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21584646_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); Question: How many weeks are shown for the champion of john mcenroe 6–2, 6–3? <|assistant|> SELECT COUNT("week_of") FROM "table1_21584646_10" WHERE "champion"='John McEnroe 6–2, 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159571_1" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); Question: What is every reason for change for the date of successors installation is March 16, 1960? <|assistant|> SELECT "reason_for_change" FROM "table1_2159571_1" WHERE "date_of_successors_formal_installation"='March 16, 1960';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159571_1" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); Question: Who is every vacator if date of successors formal installation is August 8, 1960? <|assistant|> SELECT "vacator" FROM "table1_2159571_1" WHERE "date_of_successors_formal_installation"='August 8, 1960';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159571_2" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: Who is every successor for the Washington 3rd District? <|assistant|> SELECT "successor" FROM "table1_2159571_2" WHERE "district"='Washington 3rd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159571_2" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: What is every reason for change for the Washington 3rd District? <|assistant|> SELECT "reason_for_change" FROM "table1_2159571_2" WHERE "district"='Washington 3rd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159571_2" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: Who is every vacator with reason for change as resigned December 31, 1959? <|assistant|> SELECT "vacator" FROM "table1_2159571_2" WHERE "reason_for_change"='Resigned December 31, 1959';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159537_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: In what district was the successor seated August 31, 1943? <|assistant|> SELECT "district" FROM "table1_2159537_3" WHERE "date_successor_seated"='August 31, 1943';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159537_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: Who was the successor for the reason for change being "died January 16, 1944? <|assistant|> SELECT "successor" FROM "table1_2159537_3" WHERE "reason_for_change"='Died January 16, 1944';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159537_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: Who was the successor in New York 11th district? <|assistant|> SELECT "successor" FROM "table1_2159537_3" WHERE "district"='New York 11th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159547_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: On what date was James P. Buchanan (d)'s successor seated? <|assistant|> SELECT "date_successor_seated" FROM "table1_2159547_3" WHERE "vacator"='James P. Buchanan (D)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159547_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: How many people vacated to successor Dave E. Satterfield, Jr. (d)? <|assistant|> SELECT COUNT("vacator") FROM "table1_2159547_3" WHERE "successor"='Dave E. Satterfield, Jr. (D)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2159547_3" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: Why did Robert L. Bacon (r) vacate? <|assistant|> SELECT "reason_for_change" FROM "table1_2159547_3" WHERE "vacator"='Robert L. Bacon (R)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_cast" ( "character" text, "original_japanese" text, "english_streamline" text, "english_manga_uk" text, "english_pioneer_geneon" text ); Question: Makio Inoue dubbed on which character? <|assistant|> SELECT "character" FROM "full_cast" WHERE "original_japanese"='Makio Inoue';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_cast" ( "character" text, "original_japanese" text, "english_streamline" text, "english_manga_uk" text, "english_pioneer_geneon" text ); Question: Who was the cast on the English (Manga UK) version if Kō Nishimura acted on the original Japanese? <|assistant|> SELECT "english_manga_uk" FROM "full_cast" WHERE "original_japanese"='Kō Nishimura';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "full_cast" ( "character" text, "original_japanese" text, "english_streamline" text, "english_manga_uk" text, "english_pioneer_geneon" text ); Question: Who was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version? <|assistant|> SELECT "original_japanese" FROM "full_cast" WHERE "english_manga_uk"='Sean Barrett';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2160008_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: Name the district for reason for change being died july 4, 1939 <|assistant|> SELECT "district" FROM "table1_2160008_4" WHERE "reason_for_change"='Died July 4, 1939';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2160008_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: Name the number of reason for change on may 11, 1939 <|assistant|> SELECT COUNT("reason_for_change") FROM "table1_2160008_4" WHERE "date_successor_seated"='May 11, 1939';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "practice_times_leaderboard_superbike_sen" ( "rank" real, "rider" text, "mon_1_june" text, "tue_2_june" text, "wed_3_june" text, "thurs_4_june" text, "fri_5_june" text ); Question: What were the time and speed for the rider ranked in 12 on Wed, June 3? <|assistant|> SELECT "wed_3_june" FROM "practice_times_leaderboard_superbike_sen" WHERE "rank"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2161859_1" ( "series_num" real, "title" text, "story_num" real, "artist" text, "strip_numbers" text, "number_of_strips" text, "dates_of_original_publication_of_strip" text ); Question: What is the series number for the Golden Frog? <|assistant|> SELECT "series_num" FROM "table1_2161859_1" WHERE "title"='The Golden Frog';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2161859_1" ( "series_num" real, "title" text, "story_num" real, "artist" text, "strip_numbers" text, "number_of_strips" text, "dates_of_original_publication_of_strip" text ); Question: Who is the artist for strip numbers 3932-4031a? <|assistant|> SELECT "artist" FROM "table1_2161859_1" WHERE "strip_numbers"='3932-4031A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_list" ( "regional" text, "champions" text, "runners_up" text, "third_place" text, "fourth_place" text ); Question: who got the first position when Ehime Shimanami got the third position? <|assistant|> SELECT "champions" FROM "champions_list" WHERE "third_place"='Ehime Shimanami';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_list" ( "regional" text, "champions" text, "runners_up" text, "third_place" text, "fourth_place" text ); Question: who got the third position when laranja kyoto got the second position? <|assistant|> SELECT "third_place" FROM "champions_list" WHERE "runners_up"='Laranja Kyoto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_list" ( "regional" text, "champions" text, "runners_up" text, "third_place" text, "fourth_place" text ); Question: how many persons got the third position whan sanyo electric tokushima got the fourth position? <|assistant|> SELECT COUNT("third_place") FROM "champions_list" WHERE "fourth_place"='Sanyo Electric Tokushima';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_list" ( "regional" text, "champions" text, "runners_up" text, "third_place" text, "fourth_place" text ); Question: how many persons got the fourth position when the regional was shikoku? <|assistant|> SELECT COUNT("fourth_place") FROM "champions_list" WHERE "regional"='Shikoku';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_list" ( "regional" text, "champions" text, "runners_up" text, "third_place" text, "fourth_place" text ); Question: who got the first place when the Japanese Regional Leagues was in hokushinetsu? <|assistant|> SELECT "champions" FROM "champions_list" WHERE "regional"='Hokushinetsu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_list" ( "regional" text, "champions" text, "runners_up" text, "third_place" text, "fourth_place" text ); Question: who got the first position when fujieda city government got the fourth position? <|assistant|> SELECT "champions" FROM "champions_list" WHERE "fourth_place"='Fujieda City Government';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21636599_2" ( "period" real, "civilians" text, "security_forces" text, "insurgents" text, "total_per_period" real ); Question: What are the civilian total when the security force total is 36? <|assistant|> SELECT "civilians" FROM "table1_21636599_2" WHERE "security_forces"='36';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21636599_2" ( "period" real, "civilians" text, "security_forces" text, "insurgents" text, "total_per_period" real ); Question: What are the security forces when the civilians are 202? <|assistant|> SELECT "security_forces" FROM "table1_21636599_2" WHERE "civilians"='202';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21636599_2" ( "period" real, "civilians" text, "security_forces" text, "insurgents" text, "total_per_period" real ); Question: How many figures are named for security forces in 1998? <|assistant|> SELECT COUNT("security_forces") FROM "table1_21636599_2" WHERE "period"=1998;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21636599_2" ( "period" real, "civilians" text, "security_forces" text, "insurgents" text, "total_per_period" real ); Question: How many insurgents are there when the total per period is 156? <|assistant|> SELECT "insurgents" FROM "table1_21636599_2" WHERE "total_per_period"=156;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21634403_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text ); Question: How many U.S. viewers watched the episode directed by Frank Waldeck? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_21634403_2" WHERE "directed_by"='Frank Waldeck';<|endoftext|>