output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "ch_1" FROM "main_transmitters" WHERE "region_served"='central tablelands';
## Task Generate a SQL query to answer the following question: `What is the Ch1 in the region served by Central Tablelands?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "ch_1" text, "on_air_date" text...
SELECT "transmitter_location" FROM "main_transmitters" WHERE "digital_power"='570kw';
## Task Generate a SQL query to answer the following question: `What transmitter location has digital power of 570kw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "ch_1" text, "on_air_date" text, "a...
SELECT COUNT("year") FROM "grand_prix_motorcycle_racing_results" WHERE "team"='yamaha' AND "wins"=0 AND "rank"='8th' AND "points">22;
## Task Generate a SQL query to answer the following question: `What year did team Yamaha have 0 wins, a rank of 8th, and more than 22 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "cla...
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='gina carano';
## Task Generate a SQL query to answer the following question: `Name the total number of rounds for gina carano` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" te...
SELECT "points_difference" FROM "first_round" WHERE "lost"=2 AND "points"<10;
## Task Generate a SQL query to answer the following question: `What is the difference related to 2 losses and fewer than 10 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "games" real, "drawn" real, "lost" real, "points...
SELECT "site" FROM "schedule" WHERE "opponent"='iowa';
## Task Generate a SQL query to answer the following question: `Where did the game(s) against Iowa take place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" ...
SELECT "outcome" FROM "doubles_5" WHERE "surface"='carpet';
## Task Generate a SQL query to answer the following question: `What is the Outcome of the Doubles played on Carpet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, ...
SELECT "surface" FROM "doubles_5" WHERE "partner"='debbie graham';
## Task Generate a SQL query to answer the following question: `What was the Surface during the match with Partner Debbie Graham?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5" ( "outcome" text, "date" text, "tournament" text, "surf...
SELECT "partner" FROM "doubles_5" WHERE "date"='february 23, 1997';
## Task Generate a SQL query to answer the following question: `What was the Partner on February 23, 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" ...
SELECT "tournament" FROM "doubles_5" WHERE "surface"='clay' AND "date"='may 24, 1992';
## Task Generate a SQL query to answer the following question: `What was the Tournament on May 24, 1992 played on a Clay Surface?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5" ( "outcome" text, "date" text, "tournament" text, "surf...
SELECT "surface" FROM "doubles_5" WHERE "score"='7–5, 6–7, 4–6';
## Task Generate a SQL query to answer the following question: `What was the Surface in the match with a Score of 7–5, 6–7, 4–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5" ( "outcome" text, "date" text, "tournament" text, "surfa...
SELECT "frequency_m_hz" FROM "translators" WHERE "erp_w">30 AND "city_of_license"='tremonton, utah';
## Task Generate a SQL query to answer the following question: `What is the frequency MHz in tremonton, utah with a ERP W larger than 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "cit...
SELECT MAX("erp_w") FROM "translators" WHERE "call_sign"='k275av';
## Task Generate a SQL query to answer the following question: `What is k275av call sign's highest erp w?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" re...
SELECT "year" FROM "year_by_year" WHERE "playoffs"='american conference semifinals';
## Task Generate a SQL query to answer the following question: `Name the year for american conference semifinals` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "record" text, "regular_season_finish" text, "playoffs...
SELECT COUNT("year") FROM "year_by_year" WHERE "playoffs"='quarterfinals';
## Task Generate a SQL query to answer the following question: `Name the total number of years for quarterfinals` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "record" text, "regular_season_finish" text, "playoffs...
SELECT MIN("3rd_runner_up") FROM "top_20_countries_by_tally" WHERE "4th_runner_up"<1 AND "5th_runner_up"=0 AND "miss_world"<2;
## Task Generate a SQL query to answer the following question: `4th Runner-up smaller than 1, and a 5th Runner-up of 0, and a Miss World smaller than 2 has which lowest 3rd Runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_20_countries_by_...
SELECT MIN("rank") FROM "top_20_countries_by_tally" WHERE "country_territory"='india' AND "4th_runner_up"<1;
## Task Generate a SQL query to answer the following question: `Country/Territory of india, and a 4th Runner-up smaller than 1 has which lowest rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_20_countries_by_tally" ( "rank" real, "country...
SELECT MIN("1st_runner_up") FROM "top_20_countries_by_tally" WHERE "rank">3 AND "6th_runner_up">0 AND "5th_runner_up"<1;
## Task Generate a SQL query to answer the following question: `Rank larger than 3, and a 6th Runner-up larger than 0, and a 5th Runner-up smaller than 1 has which lowest 1st Runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_20_countries_b...
SELECT MIN("semifinalists") FROM "top_20_countries_by_tally" WHERE "5th_runner_up"<0;
## Task Generate a SQL query to answer the following question: `5th Runner-up smaller than 0 has the lowest semifinalists?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_20_countries_by_tally" ( "rank" real, "country_territory" text, "miss_w...
SELECT SUM("4th_runner_up") FROM "top_20_countries_by_tally" WHERE "3rd_runner_up"=2 AND "country_territory"='venezuela';
## Task Generate a SQL query to answer the following question: `3rd Runner-up of 2, and a Country/Territory of venezuela has what sum of 4th runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_20_countries_by_tally" ( "rank" real, "count...
SELECT SUM("6th_runner_up") FROM "top_20_countries_by_tally" WHERE "2nd_runner_up">4 AND "country_territory"='israel' AND "4th_runner_up"<0;
## Task Generate a SQL query to answer the following question: `2nd Runner-up larger than 4, and a Country/Territory of israel, and a 4th Runner-up smaller than 0 has which sum of 6th Runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_20_co...
SELECT "runner_up" FROM "finals" WHERE "season"<2005;
## Task Generate a SQL query to answer the following question: `Who is the Runner-up that has a Season less than 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals" ( "season" real, "winner" text, "score" text, "runner_up" text, "ve...
SELECT MAX("season") FROM "finals" WHERE "score"='3 – 3 aet , 4–3 pen';
## Task Generate a SQL query to answer the following question: `Which Seasonhas a Score of 3 – 3 aet , 4–3 pen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals" ( "season" real, "winner" text, "score" text, "runner_up" text, "venue" te...
SELECT "season" FROM "finals" WHERE "score"='3 – 3 aet , 4–3 pen';
## Task Generate a SQL query to answer the following question: `Which Season has a Score of 3 – 3 aet , 4–3 pen` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals" ( "season" real, "winner" text, "score" text, "runner_up" text, "venue" te...
SELECT COUNT("round") FROM "atlanta_falcons_draft_history" WHERE "overall"=211;
## Task Generate a SQL query to answer the following question: `How many rounds had an overall of 211?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, ...
SELECT AVG("pick_num") FROM "atlanta_falcons_draft_history" WHERE "position"='cornerback' AND "overall"<134;
## Task Generate a SQL query to answer the following question: `What is the mean pick number for the cornerback position when the overall is less than 134?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real,...
SELECT SUM("1956") FROM "see_also" WHERE "county"='vâlcea' AND "2011"<371714;
## Task Generate a SQL query to answer the following question: `Which 1956 has a County of vâlcea, and a 2011 smaller than 371714?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "county" text, "1948" real, "1956" real, "1966" real,...
SELECT MIN("2011") FROM "see_also" WHERE "1948"<15872624 AND "1966"=263103 AND "1992">266308;
## Task Generate a SQL query to answer the following question: `Which 2011 is the lowest one that has a 1948 smaller than 15872624, and a 1966 of 263103, and a 1992 larger than 266308?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "coun...
SELECT MIN("1992") FROM "see_also" WHERE "1977"<385577 AND "2011">340310 AND "2002">300123 AND "1948">280524;
## Task Generate a SQL query to answer the following question: `Which 1992 is the lowest one that has a 1977 smaller than 385577, and a 2011 larger than 340310, and a 2002 larger than 300123, and a 1948 larger than 280524?` ### Database Schema This query will run on a database whose schema is represented in this stri...
SELECT MIN("1977") FROM "see_also" WHERE "county"='zzz bucharest' AND "2011"<1883425;
## Task Generate a SQL query to answer the following question: `Which 1977 is the lowest one that has a County of zzz bucharest, and a 2011 smaller than 1883425?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "county" text, "1948" real...
SELECT "game_site" FROM "schedule" WHERE "attendance"='54,040';
## Task Generate a SQL query to answer the following question: `What is the site of the game that had an attendance of 54,040?` ### 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 "attendance" FROM "schedule" WHERE "opponent"='houston oilers';
## Task Generate a SQL query to answer the following question: `What is the attendance of the game against the houston oilers?` ### 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 "date" FROM "schedule" WHERE "week"=7;
## Task Generate a SQL query to answer the following question: `What was the date of the game on week 7?` ### 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, "g...
SELECT "attendance" FROM "schedule" WHERE "game_site"='bye';
## Task Generate a SQL query to answer the following question: `How many fans attended the game at Bye?` ### 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 "winner" FROM "tournament_results" WHERE "location"='iowa';
## Task Generate a SQL query to answer the following question: `Which winner had a location of Iowa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score"...
SELECT "opponents_in_the_final" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "partner"='katarina srebotnik' AND "championship"='wimbledon (4)';
## Task Generate a SQL query to answer the following question: `Which opponent in the final had a partner of Katarina Srebotnik and a championship of wimbledon (4)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_10_finals_3_titles_7_ru...
SELECT "partner" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "surface"='hard' AND "championship"='us open';
## Task Generate a SQL query to answer the following question: `Who was the partner when the championship was us open on a hard surface?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" ( "outcome" text, "ye...
SELECT "surface" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "partner"='julie halard' AND "score_in_the_final"='6–3, 6–2';
## Task Generate a SQL query to answer the following question: `What was the surface for Julie Halard when the final score was 6–3, 6–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" ( "outcome" text, "ye...
SELECT "outcome" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "opponents_in_the_final"='serena williams venus williams' AND "surface"='hard';
## Task Generate a SQL query to answer the following question: `What was the outcome when the oppenent was serena williams venus williams and had a hard surface?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" ...
SELECT COUNT("played") FROM "torneio_rio_s_o_paulo" WHERE "drawn"=2 AND "position">3 AND "points"<10;
## Task Generate a SQL query to answer the following question: `How much Played has Drawn of 2, and a Position larger than 3, and Points smaller than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "tea...
SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='10' AND "lost"<2;
## Task Generate a SQL query to answer the following question: `Which average Against has a Difference of 10, and a Lost smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "point...
SELECT AVG("attendance") FROM "second_division" WHERE "result_f_a"='0 – 2' AND "date"='31 january 1903';
## Task Generate a SQL query to answer the following question: `How many Attendances have a Result F – A of 0 – 2, and a Date of 31 january 1903?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_division" ( "date" text, "opponents" text, "h...
SELECT "attendance" FROM "second_division" WHERE "date"='13 april 1903';
## Task Generate a SQL query to answer the following question: `How many Attendances on 13 april 1903?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_division" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendanc...
SELECT MIN("attendance") FROM "second_division" WHERE "h_a"='h' AND "date"='7 march 1903';
## Task Generate a SQL query to answer the following question: `How many Attendances have a H / A of h on 7 march 1903?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_division" ( "date" text, "opponents" text, "h_a" text, "result_f_a" t...
SELECT "opponents" FROM "second_division" WHERE "h_a"='a' AND "result_f_a"='2 – 0' AND "attendance">'30,000';
## Task Generate a SQL query to answer the following question: `Which Opponent has a H / A of a, and a Result F – A of 2 – 0, and a Attendance larger than 30,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_division" ( "date" text, "oppo...
SELECT "date" FROM "second_division" WHERE "opponents"='lincoln city' AND "h_a"='a';
## Task Generate a SQL query to answer the following question: `When is The Opponents of lincoln city and a H / A of a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_division" ( "date" text, "opponents" text, "h_a" text, "result_f_a" t...
SELECT "score" FROM "schedule_and_results" WHERE "december"=11;
## Task Generate a SQL query to answer the following question: `What is the score for the Dec 11 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "recor...
SELECT AVG("game") FROM "schedule_and_results" WHERE "opponent"='phoenix coyotes' AND "december"<9;
## Task Generate a SQL query to answer the following question: `Which game has an opponent of Phoenix Coyotes and was before Dec 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" t...
SELECT MAX("december") FROM "schedule_and_results" WHERE "record"='11-13-5';
## Task Generate a SQL query to answer the following question: `What is the December game that led to an 11-13-5 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "sco...
SELECT "record" FROM "schedule_and_results" WHERE "game"=41;
## Task Generate a SQL query to answer the following question: `What was the record after game 41?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" t...
SELECT SUM("overall") FROM "jacksonville_jaguars_draft_history" WHERE "college"='florida state' AND "round">2;
## Task Generate a SQL query to answer the following question: `Which Overall has a College of florida state, and a Round larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" ...
SELECT SUM("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "position"='kicker' AND "overall"<137;
## Task Generate a SQL query to answer the following question: `How many Picks have a Position of kicker, and an Overall smaller than 137?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num...
SELECT "position" FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"=18;
## Task Generate a SQL query to answer the following question: `Which Position has a Pick # of 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text,...
SELECT "college" FROM "jacksonville_jaguars_draft_history" WHERE "round"<7 AND "pick_num"<27 AND "name"='anthony maddox';
## Task Generate a SQL query to answer the following question: `Which College has a Round smaller than 7, and a Pick # smaller than 27, and a Name of anthony maddox?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( ...
SELECT COUNT("overall") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num">9 AND "round">5;
## Task Generate a SQL query to answer the following question: `How much Overall has a Pick # larger than 9, and a Round larger than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" r...
SELECT "score" FROM "february" WHERE "visitor"='spurs' AND "record"='35–16';
## Task Generate a SQL query to answer the following question: `Which score was for the Spurs as visitors with record of 35–16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, ...
SELECT "record" FROM "february" WHERE "home"='warriors';
## Task Generate a SQL query to answer the following question: `Which record was for Warriors at home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, ...
SELECT "original_title" FROM "2000_2009" WHERE "english_title"='malèna';
## Task Generate a SQL query to answer the following question: `English title of malèna had what original title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_2009" ( "year" real, "english_title" text, "original_title" text, "country" te...
SELECT "english_title" FROM "2000_2009" WHERE "original_title"='возвращение / vozvrashcheniye';
## Task Generate a SQL query to answer the following question: `Original title of возвращение / vozvrashcheniye had what English title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_2009" ( "year" real, "english_title" text, "original_titl...
SELECT MAX("year") FROM "2000_2009" WHERE "director"='christophe barratier';
## Task Generate a SQL query to answer the following question: `Director of christophe barratier had what highest year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_2009" ( "year" real, "english_title" text, "original_title" text, "coun...
SELECT "year" FROM "2000_2009" WHERE "english_title"='amélie';
## Task Generate a SQL query to answer the following question: `English title of amélie had what year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_2009" ( "year" real, "english_title" text, "original_title" text, "country" text, "dir...
SELECT "director" FROM "2000_2009" WHERE "original_title"='das leben der anderen';
## Task Generate a SQL query to answer the following question: `Original title of das leben der anderen had what director?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_2009" ( "year" real, "english_title" text, "original_title" text, "c...
SELECT "director" FROM "1931_1940" WHERE "role"='fred ayres';
## Task Generate a SQL query to answer the following question: `Who was the director where the role was Fred Ayres?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1931_1940" ( "date" text, "theatre_studio_or_network" text, "role" text, "dance_...
SELECT "theatre_studio_or_network" FROM "1931_1940" WHERE "role"='peter p. peters';
## Task Generate a SQL query to answer the following question: `What was the theatre where Peter P. Peters is the role?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1931_1940" ( "date" text, "theatre_studio_or_network" text, "role" text, "da...
SELECT "runner_s_up" FROM "wins_5" WHERE "margin"='1 stroke';
## Task Generate a SQL query to answer the following question: `Who are the Runner(s)-up with a Margin of 1 stroke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" tex...
SELECT "runner_s_up" FROM "wins_5" WHERE "margin"='3 strokes';
## Task Generate a SQL query to answer the following question: `Who are the Runner(s)-up with a Margin of 3 strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" te...
SELECT MAX("year") FROM "wins_5" WHERE "championship"='the open championship';
## Task Generate a SQL query to answer the following question: `What is the highest Year with of the open championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score"...
SELECT "winning_score" FROM "wins_5" WHERE "year"=1956;
## Task Generate a SQL query to answer the following question: `What is the Winning score in 1956?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" tex...
SELECT "winning_score" FROM "wins_5" WHERE "year"=1965;
## Task Generate a SQL query to answer the following question: `What is the Winning score in 1965?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "margin" tex...
SELECT "year" FROM "wins_5" WHERE "runner_s_up"='flory van donck';
## Task Generate a SQL query to answer the following question: `What Year had a Runner(s)-up of flory van donck?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, ...
SELECT "date" FROM "release_history" WHERE "region"='new zealand';
## Task Generate a SQL query to answer the following question: `What is the release Date for the Region in New Zealand ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text,...
SELECT "date" FROM "release_history" WHERE "region"='new zealand';
## Task Generate a SQL query to answer the following question: `What is the release Date for the New Zealand Region?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "...
SELECT "date" FROM "release_history" WHERE "catalogue"='602517739468';
## Task Generate a SQL query to answer the following question: `What is the Date of Catalogue number 602517739468?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "ca...
SELECT "region" FROM "release_history" WHERE "catalogue"='1785089';
## Task Generate a SQL query to answer the following question: `In what Region was the Catalogue number 1785089 released?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text...
SELECT "city_of_license" FROM "low_powered_translators" WHERE "frequency_m_hz"<100.1;
## Task Generate a SQL query to answer the following question: `Which city of license has a frequency less than 100.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "low_powered_translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_li...
SELECT "erp_w" FROM "low_powered_translators" WHERE "call_sign"='w261cq';
## Task Generate a SQL query to answer the following question: `What is the ERP W with a call sign at w261cq?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "low_powered_translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" te...
SELECT AVG("erp_w") FROM "low_powered_translators" WHERE "frequency_m_hz">100.1;
## Task Generate a SQL query to answer the following question: `What is the average value for ERP W when frequency is more than 100.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "low_powered_translators" ( "call_sign" text, "frequency_m_hz" rea...
SELECT "frequency_m_hz" FROM "low_powered_translators" WHERE "call_sign"='w228bg';
## Task Generate a SQL query to answer the following question: `What frequency has call sign w228bg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "low_powered_translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "er...
SELECT AVG("erp_w") FROM "low_powered_translators" WHERE "city_of_license"='beardstown, illinois' AND "frequency_m_hz">93.5;
## Task Generate a SQL query to answer the following question: `What is the average value of ERP W in Beardstown, Illinois for a frequency greater than 93.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "low_powered_translators" ( "call_sign" text,...
SELECT SUM("winner_s_share") FROM "winners" WHERE "champion"='brad bryant' AND "year"<2007;
## Task Generate a SQL query to answer the following question: `What was the sum of the winner's shares for US Senior Opens won by Brad Bryant before 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "champion" text, "...
SELECT "score" FROM "winners" WHERE "year"=2000;
## Task Generate a SQL query to answer the following question: `What was the winning score in 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "champion" text, "country" text, "venue" text, "location" text, "sco...
SELECT AVG("winner_s_share") FROM "winners" WHERE "champion"='billy casper';
## Task Generate a SQL query to answer the following question: `What is the average winner's share won by Billy Casper?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "champion" text, "country" text, "venue" text, "lo...
SELECT "weekly_rank" FROM "season_2_2008_2009" WHERE "airdate"='sunday, june 14, 2009';
## Task Generate a SQL query to answer the following question: `Name the weekly rank for sunday, june 14, 2009` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_2_2008_2009" ( "airdate" text, "celebrities" text, "rating" real, "share" real...
SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall"=184 AND "round">6;
## Task Generate a SQL query to answer the following question: `Which Pick # is the highest one that has an Overall of 184, and a Round larger than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real,...
SELECT COUNT("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall"=114;
## Task Generate a SQL query to answer the following question: `How many picks have an Overall of 114?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" t...
SELECT MAX("overall") FROM "jacksonville_jaguars_draft_history" WHERE "name"='daimon shelton' AND "round">6;
## Task Generate a SQL query to answer the following question: `Which Overall is the highest one that has a Name of daimon shelton, and a Round larger than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "roun...
SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall">21 AND "college"='north carolina' AND "round"<3;
## Task Generate a SQL query to answer the following question: `Which Pick # is the highest one that has an Overall larger than 21, and a College of north carolina, and a Round smaller than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonvill...
SELECT "position" FROM "jacksonville_jaguars_draft_history" WHERE "overall">147 AND "pick_num"=21;
## Task Generate a SQL query to answer the following question: `Which Position has an Overall larger than 147, and a Pick # of 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, ...
SELECT MIN("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "college"='cornell';
## Task Generate a SQL query to answer the following question: `What is cornell's lowest pick number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" te...
SELECT "eviction_result" FROM "s_e_voting_system_result" WHERE "net_vote"='31.86%';
## Task Generate a SQL query to answer the following question: `Which Eviction result has a Net vote of 31.86%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_e_voting_system_result" ( "eviction_no" real, "nominee" text, "vote_to_save" text, ...
SELECT "nominee" FROM "s_e_voting_system_result" WHERE "vote_to_save"='1.98%';
## Task Generate a SQL query to answer the following question: `Which Nominee has a Vote to Save of 1.98%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_e_voting_system_result" ( "eviction_no" real, "nominee" text, "vote_to_save" text, "vot...
SELECT "vote_to_evict" FROM "s_e_voting_system_result" WHERE "vote_to_save"='21.22%';
## Task Generate a SQL query to answer the following question: `Which Vote to Evict has a Vote to Save of 21.22%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_e_voting_system_result" ( "eviction_no" real, "nominee" text, "vote_to_save" text,...
SELECT "vote_to_save" FROM "s_e_voting_system_result" WHERE "eviction_no"<14 AND "vote_to_evict"='5.42%';
## Task Generate a SQL query to answer the following question: `Which Vote to Save has an Eviction # smaller than 14, and a Vote to Evict of 5.42%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_e_voting_system_result" ( "eviction_no" real, "nom...
SELECT AVG("rank") FROM "top_10_international_visitors_in_vietnam" WHERE "2012"='219,721';
## Task Generate a SQL query to answer the following question: `What is the average rank of a nation that had 219,721 in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_10_international_visitors_in_vietnam" ( "rank" real, "country" text, ...
SELECT SUM("round") FROM "draft_picks" WHERE "pick"=138;
## Task Generate a SQL query to answer the following question: `In what Round was Pick 138?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text ); ### SQL...
SELECT "nationality" FROM "draft_picks" WHERE "player"='john crawford';
## Task Generate a SQL query to answer the following question: `What is John Crawford's Nationality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text )...
SELECT "erp_w" FROM "kansas" WHERE "call_sign"='k236am';
## Task Generate a SQL query to answer the following question: `What is the ERP W for K236AM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kansas" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" tex...
SELECT AVG("frequency_m_hz") FROM "kansas" WHERE "erp_w"=170;
## Task Generate a SQL query to answer the following question: `What is the average frequency in MHz for stations with an ERP W of 170?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kansas" ( "call_sign" text, "frequency_m_hz" real, "city_of_li...
SELECT MIN("frequency_m_hz") FROM "kansas" WHERE "call_sign"='k236am';
## Task Generate a SQL query to answer the following question: `What is K236AM's lowest frequency in MHz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kansas" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, ...
SELECT "class" FROM "kansas" WHERE "frequency_m_hz"<90.5;
## Task Generate a SQL query to answer the following question: `What class is assigned to frequencies lower than 90.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kansas" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "e...