output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("episode_number") FROM "series_7" WHERE "guest_host"='Pamela Anderson';
## Task Generate a SQL query to answer the following question: `What episode did Pamela Anderson guest host.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7" ( "episode_number" real, "air_date" text, "guest_host" text, "musical_guest_s...
SELECT "musical_guest_song_performed" FROM "series_7" WHERE "guest_host"='Barbara Windsor';
## Task Generate a SQL query to answer the following question: `What song was performed when Barbara Windsor was the guest host?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7" ( "episode_number" real, "air_date" text, "guest_host" text...
SELECT "coat_of_cash_wearing_celebrity" FROM "series_7" WHERE "who_knows_the_most_about_the_guest_host_panelists"='Scott Mills and Sally Lindsay';
## Task Generate a SQL query to answer the following question: `Who was the coat of cash celeb when Scott Mills and Sally Lindsay appeared?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7" ( "episode_number" real, "air_date" text, "guest...
SELECT "who_knows_the_most_about_the_guest_host_panelists" FROM "series_7" WHERE "air_date"='8 June 2008';
## Task Generate a SQL query to answer the following question: `Who was on the Who knows about the host panel on 8 June 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_7" ( "episode_number" real, "air_date" text, "guest_host" text, ...
SELECT "musical_guest_song_performed" FROM "series_4" WHERE "who_knows_the_most_about_the_guest_host_panelists"='Jermaine Jackson and Nora Sands';
## Task Generate a SQL query to answer the following question: `Name the musical guest for panelists jermaine jackson and nora sands` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_4" ( "episode_number" real, "air_date" text, "guest_host" ...
SELECT COUNT("who_knows_the_most_about_the_guest_host_panelists") FROM "series_4" WHERE "air_date"='19 January 2007';
## Task Generate a SQL query to answer the following question: `Name the total number of panelists for 19 january 2007` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_4" ( "episode_number" real, "air_date" text, "guest_host" text, "music...
SELECT "who_knows_the_most_about_the_guest_host_panelists" FROM "series_4" WHERE "guest_host"='David Tennant';
## Task Generate a SQL query to answer the following question: `Name the panelists for david tennant` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_4" ( "episode_number" real, "air_date" text, "guest_host" text, "musical_guest_song_perf...
SELECT "weight_kg" FROM "2007_08_season_as_a_three_year_old" WHERE "jockey"='D. Nikolic';
## Task Generate a SQL query to answer the following question: `What is the entry for weight in kilograms of jockey D. Nikolic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_08_season_as_a_three_year_old" ( "result" text, "date" text, "rac...
SELECT "group" FROM "2007_08_season_as_a_three_year_old" WHERE "time"='1:11.65';
## Task Generate a SQL query to answer the following question: `Which group had the time 1:11.65?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_08_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "gr...
SELECT "winner_2nd" FROM "2007_08_season_as_a_three_year_old" WHERE "time"='1:35.98';
## Task Generate a SQL query to answer the following question: `Which horse won with a time of 1:35.98 and what was their position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_08_season_as_a_three_year_old" ( "result" text, "date" text, ...
SELECT "engine_type" FROM "specific_fuel_consumption_sfc_specific_i" WHERE "scenario"='Space shuttle vacuum';
## Task Generate a SQL query to answer the following question: `What engine type is used in a Space Shuttle Vacuum scenario?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specific_fuel_consumption_sfc_specific_i" ( "engine_type" text, "scenario" ...
SELECT COUNT("effective_exhaust_velocity_m_s") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "scenario"='Space shuttle vacuum';
## Task Generate a SQL query to answer the following question: `What is the effective exhaust velocity in a Space Shuttle Vacuum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specific_fuel_consumption_sfc_specific_i" ( "engine_type" text, "scena...
SELECT MAX("specific_impulse_s") FROM "specific_fuel_consumption_sfc_specific_i" WHERE "effective_exhaust_velocity_m_s"=4423;
## Task Generate a SQL query to answer the following question: `What is the maximum specific impulse with a 4423 m/s effective exhaust velocity?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specific_fuel_consumption_sfc_specific_i" ( "engine_type"...
SELECT "sfc_in_g_k_n_s" FROM "specific_fuel_consumption_sfc_specific_i" WHERE "specific_impulse_s"=453;
## Task Generate a SQL query to answer the following question: `What is the SFC when the specific impulse is 453?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specific_fuel_consumption_sfc_specific_i" ( "engine_type" text, "scenario" text, "sf...
SELECT "start_date_1st_night" FROM "table1_159359_2" WHERE "season"='1966';
## Task Generate a SQL query to answer the following question: `When are start dates (1st night) for the season of 1966?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_159359_2" ( "no" text, "season" text, "start_date_1st_night" text, "...
SELECT "end_date_last_night" FROM "table1_159359_2" WHERE "season"='1918';
## Task Generate a SQL query to answer the following question: `When are end dates (last night) for the season of 1918?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_159359_2" ( "no" text, "season" text, "start_date_1st_night" text, "e...
SELECT "harris" FROM "opinion_poll_summary" WHERE "party"='Labour';
## Task Generate a SQL query to answer the following question: `What is the percentage of the Labour Party on the Harris Poll` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_poll_summary" ( "party" text, "marplan" text, "gallup" text, "...
SELECT "opinion_research_centre_opc" FROM "opinion_poll_summary" WHERE "national_opinion_polls_nop"='1.3%';
## Task Generate a SQL query to answer the following question: `On all other parties the National option polls are at 1.3% where as the opinion research pole is at what percentage? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_poll_summary" ...
SELECT "del_pueblo" FROM "middle_schools_in_kyrene_sd" WHERE "centennial"='1988';
## Task Generate a SQL query to answer the following question: `Name the del pueblo for centennial 1988` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "middle_schools_in_kyrene_sd" ( "information" text, "akimel_a_al_the_name_is_tohono_oodham_for_ch...
SELECT "centennial" FROM "middle_schools_in_kyrene_sd" WHERE "akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river"='1992';
## Task Generate a SQL query to answer the following question: `Name the centennial for 1992 akimel` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "middle_schools_in_kyrene_sd" ( "information" text, "akimel_a_al_the_name_is_tohono_oodham_for_childr...
SELECT "del_pueblo" FROM "middle_schools_in_kyrene_sd" WHERE "centennial"='Red/black';
## Task Generate a SQL query to answer the following question: `Name the del pueblo for red/black` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "middle_schools_in_kyrene_sd" ( "information" text, "akimel_a_al_the_name_is_tohono_oodham_for_children...
SELECT "centennial" FROM "middle_schools_in_kyrene_sd" WHERE "information"='Location';
## Task Generate a SQL query to answer the following question: `Name the centennial for location` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "middle_schools_in_kyrene_sd" ( "information" text, "akimel_a_al_the_name_is_tohono_oodham_for_children_...
SELECT "host" FROM "table1_1597866_3" WHERE "first_premiere"='August 3, 2007';
## Task Generate a SQL query to answer the following question: `Name the host when first premiere is august 3, 2007` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1597866_3" ( "country" text, "name" text, "host" text, "channel" text, ...
SELECT "regular_judge" FROM "table1_1597866_3" WHERE "host"='Anja Rubik';
## Task Generate a SQL query to answer the following question: `Name the regular judge when host is anja rubik` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1597866_3" ( "country" text, "name" text, "host" text, "channel" text, "firs...
SELECT COUNT("regular_judge") FROM "table1_1597866_3" WHERE "host"='Bernie Chan';
## Task Generate a SQL query to answer the following question: `Name the number of regular judge when host is bernie chan` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1597866_3" ( "country" text, "name" text, "host" text, "channel" te...
SELECT MAX("s_no") FROM "one_day_international" WHERE "margin"='74 runs';
## Task Generate a SQL query to answer the following question: `Name the most number for 74 runs margins` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_international" ( "s_no" real, "team_a" text, "team_b" text, "winner" text, "margi...
SELECT COUNT("team_b") FROM "one_day_international" WHERE "margin"='35 runs' AND "winner"='India';
## Task Generate a SQL query to answer the following question: `Name the number of team for 35 runs margin and india winner` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_international" ( "s_no" real, "team_a" text, "team_b" text, "win...
SELECT "team_a" FROM "one_day_international" WHERE "match_date"='Feb 27, 1996';
## Task Generate a SQL query to answer the following question: `Namethe team for feb 27, 1996` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_international" ( "s_no" real, "team_a" text, "team_b" text, "winner" text, "margin" text, ...
SELECT "s_no" FROM "one_day_international" WHERE "match_date"='Feb 27, 1996';
## Task Generate a SQL query to answer the following question: `Name the numbers for date of feb 27, 1996` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_international" ( "s_no" real, "team_a" text, "team_b" text, "winner" text, "marg...
SELECT "team_b" FROM "one_day_international" WHERE "match_date"='Oct 30, 1989';
## Task Generate a SQL query to answer the following question: `Name the team for oct 30, 1989` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_international" ( "s_no" real, "team_a" text, "team_b" text, "winner" text, "margin" text, ...
SELECT "winner" FROM "one_day_international" WHERE "match_date"='Nov 5, 1987';
## Task Generate a SQL query to answer the following question: `Name the winner for date of nov 5, 1987` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_international" ( "s_no" real, "team_a" text, "team_b" text, "winner" text, "margin...
SELECT COUNT("oilers_first_downs") FROM "schedule" WHERE "date"='Sept. 17';
## Task Generate a SQL query to answer the following question: `On Sept. 17, how many first downs did the oilers have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "oile...
SELECT MIN("game") FROM "schedule" WHERE "opponent"='Los Angeles Rams';
## Task Generate a SQL query to answer the following question: `How many games were against the los angeles rams?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "oilers_po...
SELECT "annual_change_pct_of_gdp_2012" FROM "economic_growth" WHERE "gdp_pct_of_eu_2012"='20.5%';
## Task Generate a SQL query to answer the following question: `What is the annual change of GDP with a 20.5% GDP of EU in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economic_growth" ( "member_state_sorted_by_gdp" text, "gdp_in_s_billion...
SELECT "public_debt_pct_of_gdp_2013_q1" FROM "economic_growth" WHERE "gdp_pct_of_eu_2012"='4.7%';
## Task Generate a SQL query to answer the following question: `What is the public debt % of GDP in 2013 Q1 with a 4.7% GDP of EU in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economic_growth" ( "member_state_sorted_by_gdp" text, "gdp_in...
SELECT "inflation_pct_annual_2012" FROM "economic_growth" WHERE "gdp_per_capita_in_ppp_us_2012"=24505;
## Task Generate a SQL query to answer the following question: `What is the annual inflation % when GDP per capita in ppp US$ is 24505 in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economic_growth" ( "member_state_sorted_by_gdp" text, "g...
SELECT "place" FROM "average_scores_of_all_couples" WHERE "perfect_40s"=0 AND "average"='27.25';
## Task Generate a SQL query to answer the following question: `What are all the places where the number of perfect 40s is 0 and the average is 27.25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_scores_of_all_couples" ( "rank_by_average" ...
SELECT MAX("total") FROM "average_scores_of_all_couples" WHERE "average"='28.5';
## Task Generate a SQL query to answer the following question: `What is the maximum total in which the average is 28.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_scores_of_all_couples" ( "rank_by_average" real, "place" text, "couple...
SELECT MIN("perfect_40s") FROM "average_scores_of_all_couples";
## Task Generate a SQL query to answer the following question: `What is the minimum number of perfect 40s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_scores_of_all_couples" ( "rank_by_average" real, "place" text, "couple" text, "pe...
SELECT "muzzle_velocity" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "cartridge"='.375 Remington Ultra Magnum';
## Task Generate a SQL query to answer the following question: `When using a .375 Remington Ultra Magnum, what is the muzzle velocity?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" ( "cartridge" text, "bu...
SELECT "cartridge" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "source"='Weatherby';
## Task Generate a SQL query to answer the following question: `What type of cartridge is used by a Weatherby?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" ( "cartridge" text, "bullet_weight" text, "mu...
SELECT "cartridge" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "source"='Winchester';
## Task Generate a SQL query to answer the following question: `What type of cartridge is used by a Winchester?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" ( "cartridge" text, "bullet_weight" text, "m...
SELECT "bullet_weight" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "source"='Weatherby';
## Task Generate a SQL query to answer the following question: `What is the weight of the bullet used in a Weatherby?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" ( "cartridge" text, "bullet_weight" text...
SELECT "bullet_weight" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "source"='Remington';
## Task Generate a SQL query to answer the following question: `What is the weight of the bullet used in a Remington?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" ( "cartridge" text, "bullet_weight" text...
SELECT "muzzle_energy" FROM "375_dakota_vs_other_375_caliber_9_5_mm_c" WHERE "cartridge"='.375 Winchester';
## Task Generate a SQL query to answer the following question: `When using a .375 Winchester, what is the muzzle energy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "375_dakota_vs_other_375_caliber_9_5_mm_c" ( "cartridge" text, "bullet_weight" t...
SELECT "headphone_model" FROM "current_line_of_headphones" WHERE "us_msrp"='$150';
## Task Generate a SQL query to answer the following question: `Which headphone models correspond to the US MSRP of $150?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "headphone_class" text, ...
SELECT "termination" FROM "current_line_of_headphones" WHERE "us_msrp"='$49';
## Task Generate a SQL query to answer the following question: `Which terminations correspond to a US MSRP of $49?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "headphone_class" text, "driv...
SELECT COUNT("headphone_class") FROM "current_line_of_headphones" WHERE "us_msrp"='$150';
## Task Generate a SQL query to answer the following question: `How many headphone classes have a US MSRP of $150?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "headphone_class" text, "driv...
SELECT COUNT("earpads") FROM "current_line_of_headphones" WHERE "headphone_class"='Prestige' AND "us_msrp"='$79';
## Task Generate a SQL query to answer the following question: `How many values for earpads correspond to the headphone class Prestige and a US MSRP of $79?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_line_of_headphones" ( "headphone_mode...
SELECT "headphone_model" FROM "current_line_of_headphones" WHERE "driver_matched_d_b"='0.1' AND "us_msrp"='$49';
## Task Generate a SQL query to answer the following question: `Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $49?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "head...
SELECT "termination" FROM "current_line_of_headphones" WHERE "headphone_model"='SR80i';
## Task Generate a SQL query to answer the following question: `Which terminations correspond with headphone model SR80I?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_line_of_headphones" ( "headphone_model" text, "headphone_class" text, ...
SELECT "type" FROM "table1_1602620_1" WHERE "office"='State Assemblyman';
## Task Generate a SQL query to answer the following question: `What type are State Assemblyman` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1602620_1" ( "office" text, "type" text, "location" text, "elected" real, "term_began" text...
SELECT "type" FROM "table1_1602620_1" WHERE "term_began"='December 8, 1980';
## Task Generate a SQL query to answer the following question: `What type had a beginning term of December 8, 1980` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1602620_1" ( "office" text, "type" text, "location" text, "elected" real, ...
SELECT "type" FROM "table1_1602620_1" WHERE "elected"=1980;
## Task Generate a SQL query to answer the following question: `What type had an election day in 1980` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1602620_1" ( "office" text, "type" text, "location" text, "elected" real, "term_began...
SELECT "term_ended" FROM "table1_1602620_1" WHERE "elected"=1990;
## Task Generate a SQL query to answer the following question: `What year did the term end for those elected in 1990` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1602620_1" ( "office" text, "type" text, "location" text, "elected" real...
SELECT "location" FROM "table1_1602620_1" WHERE "term_ended"='December 2, 1976';
## Task Generate a SQL query to answer the following question: `What is the location for the office whose term ended December 2, 1976` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1602620_1" ( "office" text, "type" text, "location" text,...
SELECT "term_ended" FROM "table1_1602620_1" WHERE "elected"=1984;
## Task Generate a SQL query to answer the following question: `What year did the term end for the office elected in 1984` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1602620_1" ( "office" text, "type" text, "location" text, "elected"...
SELECT "record" FROM "schedule" WHERE "date"='October 8, 1989';
## Task Generate a SQL query to answer the following question: `What was the record on October 8, 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "ga...
SELECT "game_site" FROM "schedule" WHERE "date"='October 29, 1989';
## Task Generate a SQL query to answer the following question: `Where was the game site on October 29, 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, ...
SELECT MIN("attendance") FROM "schedule" WHERE "opponent"='New Orleans Saints';
## Task Generate a SQL query to answer the following question: `What was the minimum attendance against the New Orleans Saints?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text...
SELECT "result" FROM "schedule" WHERE "week"=2;
## Task Generate a SQL query to answer the following question: `What was the result of week 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" ...
SELECT "date" FROM "schedule" WHERE "opponent"='New York Jets';
## Task Generate a SQL query to answer the following question: `What date did the team play the New York Jets?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text...
SELECT MIN("attendance") FROM "game_log" WHERE "date"='January 24, 1987';
## Task Generate a SQL query to answer the following question: `What was the minimum crowd on January 24, 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "num" real, "date" text, "at_vs" text, "opponent" text, "score" text, ...
SELECT "viewers_in_millions" FROM "table1_1601935_1" WHERE "run_time"='18:00';
## Task Generate a SQL query to answer the following question: `How many millions of viewers were there for the episode with a run time of 18:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1601935_1" ( "episode" text, "broadcast_date" t...
SELECT "archive" FROM "table1_1601935_1" WHERE "viewers_in_millions"='6.6';
## Task Generate a SQL query to answer the following question: `What was the archive for episode with 6.6 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1601935_1" ( "episode" text, "broadcast_date" text, "run_time" text,...
SELECT MIN("game") FROM "schedule" WHERE "bills_first_downs"=21;
## Task Generate a SQL query to answer the following question: `When is the latest game the bills had 21 first downs` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "bills_...
SELECT MIN("bills_first_downs") FROM "schedule" WHERE "opponents"=6;
## Task Generate a SQL query to answer the following question: `How many first downs did the bills have when their opponent had 6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" te...
SELECT "bills_points" FROM "schedule" WHERE "opponents"=14;
## Task Generate a SQL query to answer the following question: `How many points did the bills score when their opponent had 14` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text,...
SELECT MIN("opponents") FROM "schedule" WHERE "opponent"='Baltimore Colts';
## Task Generate a SQL query to answer the following question: `What is the minimum number of points given up to the Baltimore Colts` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result"...
SELECT "runner_s_up" FROM "pga_tour_wins_8" WHERE "tournament"='Memorial Tournament';
## Task Generate a SQL query to answer the following question: `Who was the runner-up in the Memorial Tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_8" ( "no" real, "date" text, "tournament" text, "winning_score" text...
SELECT "winning_score" FROM "pga_tour_wins_8" WHERE "runner_s_up"='Rory Sabbatini';
## Task Generate a SQL query to answer the following question: `What was the winning score for the tournament with runner-up Rory Sabbatini?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_8" ( "no" real, "date" text, "tournament" t...
SELECT "margin_of_victory" FROM "pga_tour_wins_8" WHERE "winning_score"='63-68-68-68=267';
## Task Generate a SQL query to answer the following question: `What was the margin of victory with the winning score "63-68-68-68=267"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_8" ( "no" real, "date" text, "tournament" text,...
SELECT MIN("position") FROM "2_lyga_zone_north";
## Task Generate a SQL query to answer the following question: `Name the least position` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2_lyga_zone_north" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "lose...
SELECT MAX("goals_scored") FROM "2_lyga_zone_north" WHERE "position"=4;
## Task Generate a SQL query to answer the following question: `Name the most goals scored for position 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2_lyga_zone_north" ( "position" real, "club" text, "games_played" real, "wins" real, "dr...
SELECT "bowl_game" FROM "bowl_games" WHERE "city"='Tempe, Arizona';
## Task Generate a SQL query to answer the following question: `What is the name of the bowl game that was played in Tempe, Arizona?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "c...
SELECT "city" FROM "bowl_games" WHERE "stadium"='Citrus Bowl' AND "television"='ABC';
## Task Generate a SQL query to answer the following question: `What city in the Citrus Bowl aired on ABC?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" ...
SELECT "conference_matchups" FROM "bowl_games" WHERE "date"='January 1, 2009' AND "bowl_game"='Capital One';
## Task Generate a SQL query to answer the following question: `What teams played in the Capital One bowl game on January 1, 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "cit...
SELECT "stadium" FROM "bowl_games" WHERE "payout_us"='$3 Million';
## Task Generate a SQL query to answer the following question: `Which stadium has a payout of $3 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" t...
SELECT MAX("number_of_people") FROM "table1_16048129_5" WHERE "average_family_size"='2.8';
## Task Generate a SQL query to answer the following question: `What is the largest population in regions where the average family size is 2.8 people?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16048129_5" ( "region_of_ussr" text, "numb...
SELECT COUNT("pct_of_total_deportees") FROM "table1_16048129_5" WHERE "average_family_size"='2.8';
## Task Generate a SQL query to answer the following question: `What is the total number of regions where the average family size is 2.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16048129_5" ( "region_of_ussr" text, "number_of_familie...
SELECT "region_of_ussr" FROM "table1_16048129_5" WHERE "pct_of_total_deportees"='10.6';
## Task Generate a SQL query to answer the following question: `What regions of the USSR have a percentage of deportees of 10.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16048129_5" ( "region_of_ussr" text, "number_of_families" real, ...
SELECT MAX("number_of_families") FROM "table1_16048129_5" WHERE "average_family_size"='2.7';
## Task Generate a SQL query to answer the following question: `What is the most number of families in regions where average family size is 2.7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16048129_5" ( "region_of_ussr" text, "number_of_...
SELECT COUNT("number_of_families") FROM "table1_16048129_5" WHERE "pct_of_total_deportees"='5.8';
## Task Generate a SQL query to answer the following question: `How many total families are there in regions with 5.8 percent of the population being made up of deportees?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16048129_5" ( "region_o...
SELECT MAX("number_of_families") FROM "table1_16048129_5" WHERE "pct_of_total_deportees"='5.8';
## Task Generate a SQL query to answer the following question: `What is the most number of families among regions where the population is made up of 5.8% deportees?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16048129_5" ( "region_of_ussr"...
SELECT "operator" FROM "table1_1603807_2" WHERE "line"='Mamariga Shuttle';
## Task Generate a SQL query to answer the following question: `Which operator runs the Mamariga shuttle line?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1603807_2" ( "line" text, "terminals" text, "status" text, "length" text, "t...
SELECT COUNT("length") FROM "table1_1603807_2" WHERE "line"='Line 3';
## Task Generate a SQL query to answer the following question: `How many lengths of line 3 are given?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1603807_2" ( "line" text, "terminals" text, "status" text, "length" text, "total_numb...
SELECT "terminals" FROM "table1_1603807_2" WHERE "line"='Line 2';
## Task Generate a SQL query to answer the following question: `What are the terminals for line 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1603807_2" ( "line" text, "terminals" text, "status" text, "length" text, "total_number_...
SELECT "status" FROM "table1_1603807_2" WHERE "line"='Airport Line';
## Task Generate a SQL query to answer the following question: `What is the status of the airport line?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1603807_2" ( "line" text, "terminals" text, "status" text, "length" text, "total_nu...
SELECT COUNT("hangul_chosongul") FROM "provinces_since_the_division_of_korea" WHERE "area"='8,352';
## Task Generate a SQL query to answer the following question: `Name the total number of hangul chosongul for 8,352` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_since_the_division_of_korea" ( "rr_romaja" text, "m_r_romaja" text, "han...
SELECT "iso" FROM "provinces_since_the_division_of_korea" WHERE "rr_romaja"='Chungcheongnam';
## Task Generate a SQL query to answer the following question: `Name the iso for chungcheongnam` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_since_the_division_of_korea" ( "rr_romaja" text, "m_r_romaja" text, "hangul_chosongul" text,...
SELECT "country" FROM "provinces_since_the_division_of_korea" WHERE "area"='11,891';
## Task Generate a SQL query to answer the following question: `Name the country for 11,891 area` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_since_the_division_of_korea" ( "rr_romaja" text, "m_r_romaja" text, "hangul_chosongul" text...
SELECT COUNT("region") FROM "provinces_since_the_division_of_korea" WHERE "hangul_chosongul"='경상남도';
## Task Generate a SQL query to answer the following question: `Name the number of region for 경상남도` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_since_the_division_of_korea" ( "rr_romaja" text, "m_r_romaja" text, "hangul_chosongul" t...
SELECT "m_r_romaja" FROM "provinces_since_the_division_of_korea" WHERE "region"='Kwanbuk';
## Task Generate a SQL query to answer the following question: `Name the m r romaja for kwanbuk` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_since_the_division_of_korea" ( "rr_romaja" text, "m_r_romaja" text, "hangul_chosongul" text,...
SELECT "pop_density_people_km_2" FROM "area_and_population" WHERE "population_pct_of_eu"='1.1%' AND "member_state"='Slovakia';
## Task Generate a SQL query to answer the following question: `Name the population density where population % is 1.1% for slovakia` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "area_and_population" ( "member_state" text, "population_in_millions"...
SELECT COUNT("pop_density_people_km_2") FROM "area_and_population" WHERE "population_pct_of_eu"='1.7%';
## Task Generate a SQL query to answer the following question: `Name the population density people where population % eu for 1.7%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "area_and_population" ( "member_state" text, "population_in_millions" t...
SELECT COUNT("area_km_2") FROM "area_and_population" WHERE "pop_density_people_km_2"='87';
## Task Generate a SQL query to answer the following question: `Name the number of area km 2 for population density is 87` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "area_and_population" ( "member_state" text, "population_in_millions" text, "...
SELECT "population_pct_of_eu" FROM "area_and_population" WHERE "member_state"='Greece';
## Task Generate a SQL query to answer the following question: `Name the population % of eu for greece` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "area_and_population" ( "member_state" text, "population_in_millions" text, "population_pct_of_e...
SELECT COUNT("network") FROM "table1_160728_4" WHERE "channel"=7;
## Task Generate a SQL query to answer the following question: `How many networks are there that have a channel number 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_160728_4" ( "channel" real, "band" text, "video_frequency" text, "a...
SELECT "network" FROM "table1_160728_4" WHERE "station"='TV3';
## Task Generate a SQL query to answer the following question: `What station on the network is tv3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_160728_4" ( "channel" real, "band" text, "video_frequency" text, "audio_frequency" text, ...
SELECT MAX("founded") FROM "division_ii" WHERE "team_nickname"='Raiders';
## Task Generate a SQL query to answer the following question: `What year was the team named the Raiders established?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "institution" text, "location" text, "founded" real, "affiliati...