text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17802778_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); Question: What was the average speed (mph) for the racer who finished in 1:45:00? <|assistant|> SELECT "average_speed_mph" FROM "table1_17802778_1" WHERE "race_time"='1:45:00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17802778_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text ); Question: How many total miles recorded for the racer who finished in 1:05:33? <|assistant|> SELECT "miles_km" FROM "table1_17802778_1" WHERE "race_time"='1:05:33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17810099_3" ( "episode_num" text, "season_num" real, "title" text, "writer_s" text, "director" text, "originalairdate" text ); Question: what episode # was titled "SWAT Kats Unplugged"? <|assistant|> SELECT "episode_num" FROM "table1_17810099_3" WHERE "title"='\"SWAT Kats Unplugged\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17810099_3" ( "episode_num" text, "season_num" real, "title" text, "writer_s" text, "director" text, "originalairdate" text ); Question: what was the title of the episode 21a? <|assistant|> SELECT "title" FROM "table1_17810099_3" WHERE "episode_num"='21a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17810099_3" ( "episode_num" text, "season_num" real, "title" text, "writer_s" text, "director" text, "originalairdate" text ); Question: who wrote episode 14? <|assistant|> SELECT "writer_s" FROM "table1_17810099_3" WHERE "episode_num"='14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17810099_3" ( "episode_num" text, "season_num" real, "title" text, "writer_s" text, "director" text, "originalairdate" text ); Question: on what date did the episode titled "A Bright and Shiny Future" originally air? <|assistant|> SELECT "originalairdate" FROM "table1_17810099_3" WHERE "title"='\"A Bright and Shiny Future\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_house_district_11" ( "county" text, "precincts" text, "e_greenberg" text, "g_hager" text, "t_wyka" text ); Question: Who many votes did E. Greenberg receive in Morris County? <|assistant|> SELECT COUNT("e_greenberg") FROM "u_s_house_district_11" WHERE "county"='Morris';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_house_district_11" ( "county" text, "precincts" text, "e_greenberg" text, "g_hager" text, "t_wyka" text ); Question: How many precincts are in the county where G. Hager received 19 (20%) votes? <|assistant|> SELECT "precincts" FROM "u_s_house_district_11" WHERE "g_hager"='19 (20%)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "skilift_system" ( "name_or_route" text, "type" text, "elevation_groundstation" real, "elevation_mountainstation" real, "slope_length" real, "capacity_in_persons_hour" real, "construction_year_s" text ); Question: Name the slope length for 1966 groundstation <|assistant|> SELECT COUNT("slope_length") FROM "skilift_system" WHERE "elevation_groundstation"=1966;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "skilift_system" ( "name_or_route" text, "type" text, "elevation_groundstation" real, "elevation_mountainstation" real, "slope_length" real, "capacity_in_persons_hour" real, "construction_year_s" text ); Question: Name the name or route for slope length being 336 <|assistant|> SELECT "name_or_route" FROM "skilift_system" WHERE "slope_length"=336;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "skilift_system" ( "name_or_route" text, "type" text, "elevation_groundstation" real, "elevation_mountainstation" real, "slope_length" real, "capacity_in_persons_hour" real, "construction_year_s" text ); Question: Name the slope length for gondola <|assistant|> SELECT MIN("slope_length") FROM "skilift_system" WHERE "type"='gondola';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "skilift_system" ( "name_or_route" text, "type" text, "elevation_groundstation" real, "elevation_mountainstation" real, "slope_length" real, "capacity_in_persons_hour" real, "construction_year_s" text ); Question: Name the least capacity for persons hour for 1983 <|assistant|> SELECT MIN("capacity_in_persons_hour") FROM "skilift_system" WHERE "construction_year_s"='1983';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text, "player_of_the_round" text ); Question: Who is the player of the round with 80 fixtures? <|assistant|> SELECT "player_of_the_round" FROM "calendar" WHERE "number_of_fixtures"=80;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text, "player_of_the_round" text ); Question: How many categories of new entries this round are there for the fourth round proper? <|assistant|> SELECT COUNT("new_entries_this_round") FROM "calendar" WHERE "round"='Fourth Round Proper';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_178242_7" ( "season" text, "the_mole" text, "winner" text, "runner_up" text, "international_destination" text ); Question: How many runner-ups were there when the show went to Japan? <|assistant|> SELECT COUNT("runner_up") FROM "table1_178242_7" WHERE "international_destination"='Japan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_178242_7" ( "season" text, "the_mole" text, "winner" text, "runner_up" text, "international_destination" text ); Question: How many won the prize when Regina was the runner-up? <|assistant|> SELECT COUNT("winner") FROM "table1_178242_7" WHERE "runner_up"='Regina';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_178242_7" ( "season" text, "the_mole" text, "winner" text, "runner_up" text, "international_destination" text ); Question: Which season is it when Milouska was the show's mole ? <|assistant|> SELECT "season" FROM "table1_178242_7" WHERE "the_mole"='Milouska';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); Question: What were the requirements for the role played by Robert Austin in the original production? <|assistant|> SELECT "actor_required" FROM "characters" WHERE "actor_in_original_production"='Robert Austin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); Question: What actor played the "female, older" role in the original production? <|assistant|> SELECT "actor_in_original_production" FROM "characters" WHERE "actor_required"='Female, older';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); Question: What FlatSpin actor played the same role as Robert Austin? <|assistant|> SELECT "flat_spin" FROM "characters" WHERE "actor_in_original_production"='Robert Austin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); Question: How many RolePlay actors played the role requiring a "male, younger" actor? <|assistant|> SELECT COUNT("role_play") FROM "characters" WHERE "actor_required"='Male, younger';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); Question: How many RolePlay actors played the same role as FlatSpin's Tracy Taylor? <|assistant|> SELECT COUNT("role_play") FROM "characters" WHERE "flat_spin"='Tracy Taylor';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); Question: What RolePlay actor played the same role Alison Pargeter played in the original production? <|assistant|> SELECT "role_play" FROM "characters" WHERE "actor_in_original_production"='Alison Pargeter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); Question: What's the name of the church in Stavang? <|assistant|> SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='Stavang';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); Question: What's the name of the church in Stavang? <|assistant|> SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='Stavang';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); Question: What's the sub-parish (sokn) of Eikefjord? <|assistant|> SELECT "sub_parish_sokn" FROM "churches_in_flora" WHERE "location_of_the_church"='Eikefjord';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); Question: On how many locations is there a church named Askrova Bedehuskapell, built in 1957? <|assistant|> SELECT COUNT("location_of_the_church") FROM "churches_in_flora" WHERE "year_built"='1957' AND "church_name"='Askrova bedehuskapell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); Question: In what parish is the Askrova Bedehuskapell church? <|assistant|> SELECT "parish_prestegjeld" FROM "churches_in_flora" WHERE "church_name"='Askrova bedehuskapell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_178242_1" ( "country_region" text, "name" text, "host_s" text, "channel" text, "premiere_aired" text, "seasons" text ); Question: Which channel has the host Art Rooijakkers? <|assistant|> SELECT "channel" FROM "table1_178242_1" WHERE "host_s"='Art Rooijakkers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_178242_1" ( "country_region" text, "name" text, "host_s" text, "channel" text, "premiere_aired" text, "seasons" text ); Question: When did the program air on Vier? <|assistant|> SELECT "premiere_aired" FROM "table1_178242_1" WHERE "channel"='VIER';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_178242_1" ( "country_region" text, "name" text, "host_s" text, "channel" text, "premiere_aired" text, "seasons" text ); Question: What is the title that aired from 17 may 2008 – 21 june 2008 on Nederland 3? <|assistant|> SELECT "name" FROM "table1_178242_1" WHERE "channel"='Nederland 3' AND "premiere_aired"='17 May 2008 – 21 June 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_178242_1" ( "country_region" text, "name" text, "host_s" text, "channel" text, "premiere_aired" text, "seasons" text ); Question: How many seasons did the show run in Poland? <|assistant|> SELECT "seasons" FROM "table1_178242_1" WHERE "country_region"='Poland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17839_1" ( "name" text, "map_colour" text, "first_operated" real, "type" text, "length" text, "no_sta" real, "current_stock" text, "future_stock" text, "trips_per_annum_1000" real, "avg_trips_per_mile_1000" real ); Question: When 4744 is the avg. trips per mile (x1000) what is the current stock? <|assistant|> SELECT "current_stock" FROM "table1_17839_1" WHERE "avg_trips_per_mile_1000"=4744;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17839_1" ( "name" text, "map_colour" text, "first_operated" real, "type" text, "length" text, "no_sta" real, "current_stock" text, "future_stock" text, "trips_per_annum_1000" real, "avg_trips_per_mile_1000" real ); Question: When green is the map colour what is the future stock? <|assistant|> SELECT "future_stock" FROM "table1_17839_1" WHERE "map_colour"='Green';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17839_1" ( "name" text, "map_colour" text, "first_operated" real, "type" text, "length" text, "no_sta" real, "current_stock" text, "future_stock" text, "trips_per_annum_1000" real, "avg_trips_per_mile_1000" real ); Question: When turquoise is the map colour how many avg. trips per mile (×1000) are there? <|assistant|> SELECT COUNT("avg_trips_per_mile_1000") FROM "table1_17839_1" WHERE "map_colour"='Turquoise';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17839_1" ( "name" text, "map_colour" text, "first_operated" real, "type" text, "length" text, "no_sta" real, "current_stock" text, "future_stock" text, "trips_per_annum_1000" real, "avg_trips_per_mile_1000" real ); Question: When turquoise is the map colour what is the length? <|assistant|> SELECT "length" FROM "table1_17839_1" WHERE "map_colour"='Turquoise';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1784514_1" ( "voivodeship_after_1569" text, "capital" text, "year_established" real, "number_of_powiats" text, "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real ); Question: What is the latest year a division was established? <|assistant|> SELECT MAX("year_established") FROM "table1_1784514_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1784514_1" ( "voivodeship_after_1569" text, "capital" text, "year_established" real, "number_of_powiats" text, "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real ); Question: How many powiats have mstsislaw as a capital? <|assistant|> SELECT "number_of_powiats" FROM "table1_1784514_1" WHERE "capital"='Mstsislaw';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1784514_1" ( "voivodeship_after_1569" text, "capital" text, "year_established" real, "number_of_powiats" text, "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real ); Question: How many capitals had brest litovsk voivodeship as voivodeship after 1569? <|assistant|> SELECT COUNT("capital") FROM "table1_1784514_1" WHERE "voivodeship_after_1569"='Brest Litovsk Voivodeship';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1784514_1" ( "voivodeship_after_1569" text, "capital" text, "year_established" real, "number_of_powiats" text, "area_km_in_1590_lithuanian_category_articles_with_lithuanian_language_external_links" real ); Question: What is the latest year established that had 5 powiats? <|assistant|> SELECT MAX("year_established") FROM "table1_1784514_1" WHERE "number_of_powiats"='5 powiats';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "churches_in_luster" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); Question: In what parish is the sub-parish fortun? <|assistant|> SELECT "parish_prestegjeld" FROM "churches_in_luster" WHERE "sub_parish_sogn"='Fortun';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "churches_in_luster" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); Question: What is the sub-parish of the church located in Fortun? <|assistant|> SELECT "sub_parish_sogn" FROM "churches_in_luster" WHERE "location_of_the_church"='Fortun';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "churches_in_luster" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); Question: What is the year that the oldest church was built in Jostedal? <|assistant|> SELECT MIN("year_built") FROM "churches_in_luster" WHERE "location_of_the_church"='Jostedal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "churches_in_luster" ( "parish_prestegjeld" text, "sub_parish_sogn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); Question: What parishes are in Solvorn? <|assistant|> SELECT "parish_prestegjeld" FROM "churches_in_luster" WHERE "location_of_the_church"='Solvorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_178399_1" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); Question: Name the number of parish for vilnes kyrkje <|assistant|> SELECT COUNT("parish_prestegjeld") FROM "table1_178399_1" WHERE "church_name"='Vilnes kyrkje';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_178399_1" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); Question: Name the parish for 1908 <|assistant|> SELECT "parish_prestegjeld" FROM "table1_178399_1" WHERE "year_built"=1908;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_178399_1" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); Question: Name the maximum year built for holmedal kyrkje <|assistant|> SELECT MAX("year_built") FROM "table1_178399_1" WHERE "church_name"='Holmedal kyrkje';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: What is the week where the game site is Shea Stadium? <|assistant|> SELECT MIN("week") FROM "schedule" WHERE "game_site"='Shea Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: For week 6, what were the results? <|assistant|> SELECT "result" FROM "schedule" WHERE "week"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: In how many weeks was the game played on November 3 played? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "date"='November 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What is the broadcast date when 8.3 million viewers watched? <|assistant|> SELECT "broadcast_date" FROM "serial_details_by_episode" WHERE "viewers_in_millions"='8.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: What is the broadcast date of the episode with run time 25:12? <|assistant|> SELECT "broadcast_date" FROM "serial_details_by_episode" WHERE "run_time"='25:12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serial_details_by_episode" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); Question: How many million viewers watched the episode that runs 25:55 minutes? <|assistant|> SELECT "viewers_in_millions" FROM "serial_details_by_episode" WHERE "run_time"='25:55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: How many dances did Warren & Kym have? <|assistant|> SELECT "number_of_dances" FROM "average_score_chart" WHERE "couple"='Warren & Kym';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: What are the total points for the team that averages 17.8? <|assistant|> SELECT "total_points" FROM "average_score_chart" WHERE "average"='17.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text ); Question: What is average for Cody & Julianne? <|assistant|> SELECT "average" FROM "average_score_chart" WHERE "couple"='Cody & Julianne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text ); Question: what is the division southwest when division south was kožuf and division east was osogovo <|assistant|> SELECT "division_southwest" FROM "winners" WHERE "division_south"='Kožuf' AND "division_east"='Osogovo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text ); Question: what is the division north in 2007–08 <|assistant|> SELECT "division_north" FROM "winners" WHERE "season"='2007–08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text ); Question: what is the division north when division south was kožuf and division southwest was ilinden velmej <|assistant|> SELECT "division_north" FROM "winners" WHERE "division_south"='Kožuf' AND "division_southwest"='Ilinden Velmej';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text ); Question: how many division southwest was there when division east was babi <|assistant|> SELECT COUNT("division_southwest") FROM "winners" WHERE "division_east"='Babi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "season" text, "division_north" text, "division_south" text, "division_east" text, "division_west" text, "division_southwest" text ); Question: what is the division east when division north was milano <|assistant|> SELECT "division_east" FROM "winners" WHERE "division_north"='Milano';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17901155_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" text, "viewers_millions" text ); Question: who co-wrote Season 2, Episode 3? <|assistant|> SELECT "written_by" FROM "table1_17901155_3" WHERE "no_in_season"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17901155_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" text, "viewers_millions" text ); Question: what is the series # for the episode directed by Kelly Sandefur? <|assistant|> SELECT MAX("no_in_series") FROM "table1_17901155_3" WHERE "directed_by"='Kelly Sandefur';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_17901155_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" text, "viewers_millions" text ); Question: how many production codes were there for the episode that was 32 in the series? <|assistant|> SELECT COUNT("prod_code") FROM "table1_17901155_3" WHERE "no_in_series"=32;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: What year was the film Milagros submitted? <|assistant|> SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='Milagros';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: How many years was the film The Blossoming of Maximo Oliveros entered? <|assistant|> SELECT COUNT("year_ceremony") FROM "submissions" WHERE "film_title_used_in_nomination"='The Blossoming of Maximo Oliveros';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); Question: How many directors were there for the film with the original title of The Moises Padilla Story? <|assistant|> SELECT COUNT("director") FROM "submissions" WHERE "original_title"='The Moises Padilla Story';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text ); Question: What spacecraft was launched from the LC34 launch complex? <|assistant|> SELECT "spacecraft" FROM "spaceports_with_achieved_vertical_launch" WHERE "launch_complex"='LC34';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text ); Question: What spacecrafts had 22 orbital flights? <|assistant|> SELECT "spacecraft" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='22 Orbital';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text ); Question: What launcher had spacecrafts that did 37 orbital flights? <|assistant|> SELECT "launcher" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='37 Orbital';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text ); Question: What launcher had spacecrafts that did 37 orbital flights? <|assistant|> SELECT "launcher" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='37 Orbital';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "spaceports_with_achieved_vertical_launch" ( "spaceport" text, "launch_complex" text, "launcher" text, "spacecraft" text, "flights" text, "years" text ); Question: What years had 134 orbital flights? <|assistant|> SELECT "years" FROM "spaceports_with_achieved_vertical_launch" WHERE "flights"='134 Orbital';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1792122_11" ( "no_in_series" real, "no_in_season" real, "title" text, "country" text, "project" text, "status_at_production" text, "original_air_date" text ); Question: In what country did the "amsterdam's futuristic floating city" project take place? <|assistant|> SELECT "country" FROM "table1_1792122_11" WHERE "title"='\"Amsterdam''s Futuristic Floating City\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1792122_11" ( "no_in_series" real, "no_in_season" real, "title" text, "country" text, "project" text, "status_at_production" text, "original_air_date" text ); Question: What is the status of the London Aquatics Centre project at the time of production? <|assistant|> SELECT "status_at_production" FROM "table1_1792122_11" WHERE "project"='London Aquatics Centre';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1792122_11" ( "no_in_series" real, "no_in_season" real, "title" text, "country" text, "project" text, "status_at_production" text, "original_air_date" text ); Question: What was the original are date of series number 71? <|assistant|> SELECT "original_air_date" FROM "table1_1792122_11" WHERE "no_in_series"=71;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1792122_11" ( "no_in_series" real, "no_in_season" real, "title" text, "country" text, "project" text, "status_at_production" text, "original_air_date" text ); Question: What series number was the "rebuilding new york city's subway" project? <|assistant|> SELECT MIN("no_in_series") FROM "table1_1792122_11" WHERE "title"='\"Rebuilding New York City''s Subway\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1792122_11" ( "no_in_series" real, "no_in_season" real, "title" text, "country" text, "project" text, "status_at_production" text, "original_air_date" text ); Question: What is the status of the "azerbaijan's amazing transformation" project at the time of production? <|assistant|> SELECT "status_at_production" FROM "table1_1792122_11" WHERE "title"='\"Azerbaijan''s Amazing Transformation\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "onshore_pipelines" ( "name_year_commissioned" text, "owner_operator" text, "length" text, "maximum_diameter" text, "from_to" text, "licence_number" text ); Question: What is the length for a diameter totaling 450 mm? <|assistant|> SELECT "length" FROM "onshore_pipelines" WHERE "maximum_diameter"='450 mm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "onshore_pipelines" ( "name_year_commissioned" text, "owner_operator" text, "length" text, "maximum_diameter" text, "from_to" text, "licence_number" text ); Question: What is Esperance pipeline co total diameter? <|assistant|> SELECT "maximum_diameter" FROM "onshore_pipelines" WHERE "owner_operator"='Esperance Pipeline Co';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: Name the opponent for december 8 <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='December 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: Name the number of weeks for october 26 <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "date"='October 26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real, "record" text ); Question: What is the attendance record for week 6? <|assistant|> SELECT COUNT("attendance") FROM "schedule" WHERE "week"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real, "record" text ); Question: For game site Schaefer Stadium, what were the results? <|assistant|> SELECT "result" FROM "schedule" WHERE "game_site"='Schaefer Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); Question: Who was the outgoing manager when the incoming manager was joão pereira? <|assistant|> SELECT "outgoing_manage" FROM "managerial_changes" WHERE "incoming_manager"='João Pereira';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); Question: What team(s) had an outgoing manager of joão alves? <|assistant|> SELECT "team" FROM "managerial_changes" WHERE "outgoing_manage"='João Alves';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); Question: What day did the job open up when bogićević was outgoing? <|assistant|> SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manage"='Bogićević';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" text, "top_speed" text, "co_2" text, "years" text ); Question: Name the 0-100 km/hs for name of 2.0 8v <|assistant|> SELECT "0_100km_h_s" FROM "engines" WHERE "name"='2.0 8v';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" text, "top_speed" text, "co_2" text, "years" text ); Question: Name the top speed for 0-100 km/hs for 12.7 <|assistant|> SELECT "top_speed" FROM "engines" WHERE "0_100km_h_s"='12.7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" text, "top_speed" text, "co_2" text, "years" text ); Question: Name the total number for co 2 for atd/axr <|assistant|> SELECT COUNT("co_2") FROM "engines" WHERE "engine_id_code_s"='ATD/AXR';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" text, "top_speed" text, "co_2" text, "years" text ); Question: Name the volume for co 2 for 168 g/km <|assistant|> SELECT "volume" FROM "engines" WHERE "co_2"='168 g/km';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: When 60 is the tries against what is the tries for? <|assistant|> SELECT "tries_for" FROM "league_table" WHERE "tries_against"='60';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: When 22 is the tries for what is the lost? <|assistant|> SELECT "lost" FROM "league_table" WHERE "tries_for"='22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: When 98 is the points what is the club? <|assistant|> SELECT "club" FROM "league_table" WHERE "points"='98';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: When 80 is the tries for what is the try bonus? <|assistant|> SELECT "try_bonus" FROM "league_table" WHERE "tries_for"='80';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: When 55 is the tries for what is the lost? <|assistant|> SELECT "lost" FROM "league_table" WHERE "tries_for"='55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: When 17 is the tries for what is the points against? <|assistant|> SELECT "points_against" FROM "league_table" WHERE "tries_for"='17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many draws were there in played games? <|assistant|> SELECT "drawn" FROM "league_table" WHERE "played"='Played';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: Which club had 2 wins and 1 draw? <|assistant|> SELECT "club" FROM "league_table" WHERE "drawn"='1' AND "won"='2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many times were there plays with a try of 56? <|assistant|> SELECT "played" FROM "league_table" WHERE "tries_for"='56';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); Question: How many tries against were there with points of 150? <|assistant|> SELECT "tries_against" FROM "league_table" WHERE "points_for"='150';<|endoftext|>