output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("attendance") FROM "season_schedule" WHERE "opponent"='boston patriots' AND "week">14;
## Task Generate a SQL query to answer the following question: `What is the Attendance for Opponent Boston Patriots and Week is greater than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponen...
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "year"=1997;
## Task Generate a SQL query to answer the following question: `Which Nominated work has a Year of 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nominated_work" text...
SELECT "award" FROM "awards_and_nominations" WHERE "category"='music video acting award';
## Task Generate a SQL query to answer the following question: `Which Award has a Category of music video acting award?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomin...
SELECT "name" FROM "most_appearances" WHERE "concacaf_champions_league"='2 (0)' AND "canadian_championship"='8 (0)';
## Task Generate a SQL query to answer the following question: `What name has a CONCACAF Champions League of 2 (0) and also a Canadian Championship of 8 (0)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "total" t...
SELECT "canadian_championship" FROM "most_appearances" WHERE "league"='84 (4)';
## Task Generate a SQL query to answer the following question: `When the league is 84 (4) what is the Canadian Championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "total" text, "league" text, "canadian...
SELECT "canadian_championship" FROM "most_appearances" WHERE "league"='84 (4)';
## Task Generate a SQL query to answer the following question: `What Canadian Championship has 84 (4) as the league?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "total" text, "league" text, "canadian_champio...
SELECT "canadian_championship" FROM "most_appearances" WHERE "name"='ashtone morgan category:articles with hcards';
## Task Generate a SQL query to answer the following question: `What Canadian Championship has Ashtone Morgan Category:Articles with hcards as the name?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "total" text, ...
SELECT "total" FROM "most_appearances" WHERE "name"='carl robinson category:articles with hcards';
## Task Generate a SQL query to answer the following question: `What is the total when the name is Carl Robinson Category:Articles with hcards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "total" text, "league...
SELECT "concacaf_champions_league" FROM "most_appearances" WHERE "league"='57 (27)';
## Task Generate a SQL query to answer the following question: `What CONCACAF Champions League has 57 (27) as the league?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "total" text, "league" text, "canadian_ch...
SELECT "name" FROM "rebounds" WHERE "games"<38 AND "rank"<4 AND "points"=357;
## Task Generate a SQL query to answer the following question: `What is Name, when Games are less than 38, when Rank is less than 4, and when Points are 357?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "t...
SELECT "team" FROM "rebounds" WHERE "rank">2 AND "points">259;
## Task Generate a SQL query to answer the following question: `What is Team, when Rank is greater than 2, and when Points are greater than 259?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, ...
SELECT MAX("games") FROM "rebounds" WHERE "team"='ciudad de la laguna' AND "points">357;
## Task Generate a SQL query to answer the following question: `What are the Highest Games, when Team is Ciudad De La Laguna, and when Points are greater than 357?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text...
SELECT "points" FROM "rebounds" WHERE "name"='ondrej starosta';
## Task Generate a SQL query to answer the following question: `What is Points, when Name is Ondrej Starosta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "points" real ); ##...
SELECT MIN("points") FROM "rebounds" WHERE "games">34 AND "name"='andrew panko';
## Task Generate a SQL query to answer the following question: `What is the lowest value for Points, when Games is greater than 34, and when Name is Andrew Panko?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text,...
SELECT MAX("points") FROM "rebounds" WHERE "games"=21 AND "rank">2;
## Task Generate a SQL query to answer the following question: `What is the highest value for Points, when Games is 21, and when Rank is greater than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" ...
SELECT AVG("rank") FROM "men_s_best_throwers_of_all_time_current_" WHERE "date"='2007-06-21' AND "mark"<91.29;
## Task Generate a SQL query to answer the following question: `What is the average rank of the record on 2007-06-21 with a mark less than 91.29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_best_throwers_of_all_time_current_" ( "rank" real,...
SELECT MIN("mark") FROM "men_s_best_throwers_of_all_time_current_" WHERE "rank"=8;
## Task Generate a SQL query to answer the following question: `What is the lowest mark of the rank 8 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_best_throwers_of_all_time_current_" ( "rank" real, "mark" real, "athlete" text, ...
SELECT "place" FROM "men_s_best_throwers_of_all_time_current_" WHERE "mark">90.73 AND "date"='1996-05-25';
## Task Generate a SQL query to answer the following question: `What is the place of the record on 1996-05-25 with a mark greater than 90.73?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_best_throwers_of_all_time_current_" ( "rank" real, "...
SELECT "place" FROM "men_s_best_throwers_of_all_time_current_" WHERE "mark">91.29 AND "rank"=6;
## Task Generate a SQL query to answer the following question: `What is the place of the rank 6 record, which has a mark greater than 91.29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_best_throwers_of_all_time_current_" ( "rank" real, "m...
SELECT "competition" FROM "international_goals" WHERE "venue"='hampden park, glasgow';
## Task Generate a SQL query to answer the following question: `What competition has a venue in Hampden Park, Glasgow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text...
SELECT "score" FROM "international_goals" WHERE "venue"='hampden park, glasgow';
## Task Generate a SQL query to answer the following question: `What was the score in Hampden Park, Glasgow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "compe...
SELECT "venue" FROM "achievements" WHERE "notes"='2:28:31';
## Task Generate a SQL query to answer the following question: `Which Venue has a Notes of 2:28:31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, ...
SELECT "venue" FROM "achievements" WHERE "competition"='venice marathon';
## Task Generate a SQL query to answer the following question: `Which Venue has a Competition of venice marathon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, ...
SELECT MIN("year") FROM "achievements" WHERE "notes"='dnf';
## Task Generate a SQL query to answer the following question: `Which Year that has Notes of dnf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text, ...
SELECT "competition" FROM "achievements" WHERE "year">2000;
## Task Generate a SQL query to answer the following question: `Which Competition has a Year larger than 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "ev...
SELECT "date" FROM "results_pool_f" WHERE "set_4"='25-19';
## Task Generate a SQL query to answer the following question: `What date has a set 4 of 25-19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4" t...
SELECT "total" FROM "results_pool_f" WHERE "set_2"='25-18';
## Task Generate a SQL query to answer the following question: `What is the total for the set 2 of 25-18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, ...
SELECT "total" FROM "results_pool_f" WHERE "set_2"='25-19';
## Task Generate a SQL query to answer the following question: `What is the total for set 2 of 25-19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "se...
SELECT "set_3" FROM "results_pool_f" WHERE "set_5"='na' AND "set_1"='21-25' AND "set_2"='25-16';
## Task Generate a SQL query to answer the following question: `What is set 3 when set 5 is na, set 1 is 21-25, and set 2 is 25-16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_...
SELECT "set_1" FROM "results_pool_f" WHERE "date"='jun 26' AND "set_2"='25-16';
## Task Generate a SQL query to answer the following question: `What is the set 1 for the date jun 26, and a set 2 of 25-16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text...
SELECT "total" FROM "results_pool_f" WHERE "set_2"='17-25';
## Task Generate a SQL query to answer the following question: `What is the total for set 2 17-25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_f" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set_4...
SELECT "opponent" FROM "singles_finals_18_11_7" WHERE "score"='1-6, 3-6';
## Task Generate a SQL query to answer the following question: `What Opponent has a Score that is 1-6, 3-6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_18_11_7" ( "outcome" text, "date" text, "tournament" text, "surface" text...
SELECT "writer" FROM "2000s" WHERE "artist"='mort drucker' AND "issue">470 AND "actual_title"='law & order: svu';
## Task Generate a SQL query to answer the following question: `What writer has mort drucker as the artist, an issue greater than 470, and law & order: svu as an actual title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "actual_title" te...
SELECT "date" FROM "2000s" WHERE "actual_title"='ed';
## Task Generate a SQL query to answer the following question: `What date has ed as an actual title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "actual_title" text, "writer" text, "artist" text, "issue" real, "date" text ); ### ...
SELECT "issue" FROM "2000s" WHERE "actual_title"='7th heaven';
## Task Generate a SQL query to answer the following question: `What isssue has 7th heaven as an actual title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "actual_title" text, "writer" text, "artist" text, "issue" real, "date" te...
SELECT "issue" FROM "2000s" WHERE "artist"='mort drucker' AND "date"='february 2001';
## Task Generate a SQL query to answer the following question: `What issue has mort drucker as the artist and february 2001 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "actual_title" text, "writer" text, "artist" text, ...
SELECT COUNT("week") FROM "schedule" WHERE "attendance"<'39,434';
## Task Generate a SQL query to answer the following question: `In what Week was the Attendance 39,434?` ### 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, "attendance" real );...
SELECT MIN("week") FROM "schedule" WHERE "attendance">'58,615' AND "opponent"='cincinnati bengals';
## Task Generate a SQL query to answer the following question: `What is the first Week against Cincinnati Bengals with an Attendance greater than 58,615?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "oppon...
SELECT "year" FROM "singles_12_3_titles_9_runners_up" WHERE "outcome"='runner-up' AND "opponent"='lleyton hewitt';
## Task Generate a SQL query to answer the following question: `What year was the match were xavier malisse was the runner-up against lleyton hewitt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_12_3_titles_9_runners_up" ( "outcome" text, ...
SELECT "year" FROM "singles_12_3_titles_9_runners_up" WHERE "outcome"='runner-up' AND "opponent"='filippo volandri';
## Task Generate a SQL query to answer the following question: `What year was the match against filippo volandri where xavier malisse was runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_12_3_titles_9_runners_up" ( "outcome" text, ...
SELECT SUM("against") FROM "laf_s_campeonato_paulista" WHERE "difference"='6' AND "played">19;
## Task Generate a SQL query to answer the following question: `How many against have a difference of 6, with a played greater than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "po...
SELECT MIN("drawn") FROM "laf_s_campeonato_paulista" WHERE "played">19 AND "position"<2;
## Task Generate a SQL query to answer the following question: `What is the lowest drawn that has a played greater than 19, with a position less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "...
SELECT AVG("against") FROM "laf_s_campeonato_paulista" WHERE "drawn"<7 AND "points">22 AND "played"=19;
## Task Generate a SQL query to answer the following question: `What is the average against that has a drawn less than 7, points greater than 22, and 19 for the played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laf_s_campeonato_paulista" ( "pos...
SELECT "date" FROM "schedule" WHERE "tv_time"='fox 12:00 pm cdt';
## Task Generate a SQL query to answer the following question: `When has a TV Time of fox 12:00 pm cdt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "tv_time" text, "opponent" text, "result" text ); ##...
SELECT "date" FROM "schedule" WHERE "week"=8;
## Task Generate a SQL query to answer the following question: `When has a Week of 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "tv_time" text, "opponent" text, "result" text ); ### SQL Given the da...
SELECT AVG("week") FROM "schedule" WHERE "result"='l 13-16' AND "opponent"='at buffalo bills';
## Task Generate a SQL query to answer the following question: `Which Week has a Result of l 13-16 and an Opponent of at buffalo bills?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "tv_time" text, "oppon...
SELECT "tv_time" FROM "schedule" WHERE "result"='w 24–10';
## Task Generate a SQL query to answer the following question: `What kind of TV Time that has a Result of w 24–10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "tv_time" text, "opponent" text, "result"...
SELECT "8_00" FROM "thursday" WHERE "9_00"='grey''s anatomy' AND "8_30"='ugly betty';
## Task Generate a SQL query to answer the following question: `What played at 8:00 when Grey's Anatomy played at 9:00 and Ugly Betty played at 8:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" tex...
SELECT "8_00" FROM "thursday" WHERE "10_00"='local programming' AND "9_00"='supernatural';
## Task Generate a SQL query to answer the following question: `What played at 8:00 when there was local programming at 10:00 and Supernatural played at 9:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "...
SELECT "8_00" FROM "thursday" WHERE "8_30"='ugly betty';
## Task Generate a SQL query to answer the following question: `What show played at 8:00 when Ugly Betty played at 8:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" t...
SELECT "9_00" FROM "thursday" WHERE "9_30"='grey''s anatomy';
## Task Generate a SQL query to answer the following question: `When Grey's Anatomy aired at 9:30 what aired at 9:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text...
SELECT "9_30" FROM "thursday" WHERE "8_00"='my name is earl';
## Task Generate a SQL query to answer the following question: `When My Name is Earl played at 8:00 what aired at 9:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "thursday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" te...
SELECT "div" FROM "seasons" WHERE "div_finish"='2nd' AND "head_coach"='jim o''brien';
## Task Generate a SQL query to answer the following question: `What was the division when Jim O'Brien was the head coach and the team finished 2nd in the division?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "conf" te...
SELECT "conf" FROM "seasons" WHERE "head_coach"='k. c. jones';
## Task Generate a SQL query to answer the following question: `What is the name of the conference that K. C. Jones was a head coach in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "conf" text, "conf_finish" text, ...
SELECT "high_assists" FROM "game_log" WHERE "date"='march 5';
## Task Generate a SQL query to answer the following question: `Who had the highest assists of the game on March 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points"...
SELECT MIN("appearances") FROM "players" WHERE "goals"=4 AND "nationality"='new zealand';
## Task Generate a SQL query to answer the following question: `What is the least amount of appearances by new zealand when they scored 4 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players" ( "name" text, "nationality" text, "position...
SELECT COUNT("appearances") FROM "players" WHERE "name"='batram suri category:articles with hcards' AND "goals"<2;
## Task Generate a SQL query to answer the following question: `how many appearances did batram suri category:articles with hcards have scoring less than 2 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players" ( "name" text, "nationality"...
SELECT "region" FROM "list_of_provinces" WHERE "2002_population">'132,798' AND "area">'5,528.3' AND "province"='cachapoal';
## Task Generate a SQL query to answer the following question: `What region has a 2002 population greater than 132,798, an area larger than 5,528.3, and the cachapoal province?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_provinces" ( "reg...
SELECT COUNT("2002_population") FROM "list_of_provinces" WHERE "no_of_communes"<3 AND "area">'11,919.5' AND "capital"='putre';
## Task Generate a SQL query to answer the following question: `What is the total 2002 population of the province with putre as the capital, less than 3 communes, and an area larger than 11,919.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of...
SELECT "province" FROM "list_of_provinces" WHERE "region"='v valparaíso' AND "area"=927.2;
## Task Generate a SQL query to answer the following question: `What province has a v valparaíso region and an area of 927.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_provinces" ( "region" text, "province" text, "capital" text, "...
SELECT AVG("area") FROM "list_of_provinces" WHERE "capital"='valparaíso';
## Task Generate a SQL query to answer the following question: `What is the average area with valparaíso as the capital?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_provinces" ( "region" text, "province" text, "capital" text, "no_of...
SELECT "white" FROM "controversy" WHERE "amerindian"='4,87%';
## Task Generate a SQL query to answer the following question: `WHich Category in White has a Amerindian of 4,87%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "controversy" ( "category" text, "frequency" text, "white" text, "brown" text, "...
SELECT "white" FROM "controversy" WHERE "black"='38,05%';
## Task Generate a SQL query to answer the following question: `WHich Category in White has a Black of 38,05%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "controversy" ( "category" text, "frequency" text, "white" text, "brown" text, "blac...
SELECT "brown" FROM "controversy" WHERE "frequency"='0.08%';
## Task Generate a SQL query to answer the following question: `Which Category in Brown has a Frequency of 0.08%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "controversy" ( "category" text, "frequency" text, "white" text, "brown" text, "b...
SELECT "black" FROM "controversy" WHERE "brown"='6,54%';
## Task Generate a SQL query to answer the following question: `Which Category in Black has a Brown of 6,54%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "controversy" ( "category" text, "frequency" text, "white" text, "brown" text, "black...
SELECT "capacity_in_use" FROM "brazil_s_15_busiest_airports_by_passenge" WHERE "annual_change"='21.8%';
## Task Generate a SQL query to answer the following question: `What is the Capacity in use with an Annual change that is 21.8%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "brazil_s_15_busiest_airports_by_passenge" ( "rank" real, "location" tex...
SELECT COUNT("tries_for") FROM "pool_2" WHERE "points_for"<137 AND "tries_against">12;
## Task Generate a SQL query to answer the following question: `How many Tries has Points for smaller than 137, and Tries against larger than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_2" ( "team" text, "tries_for" real, "tries_agai...
SELECT "team" FROM "pool_2" WHERE "points_against"=43;
## Task Generate a SQL query to answer the following question: `WHich Team that has Points against of 43?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_2" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" text, "points_...
SELECT MIN("tries_for") FROM "pool_2" WHERE "team"='pau' AND "points_against">103;
## Task Generate a SQL query to answer the following question: `WHich Tries has a Team of pau and Points against larger than 103?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_2" ( "team" text, "tries_for" real, "tries_against" real, "tr...
SELECT AVG("points_against") FROM "pool_2" WHERE "tries_for"<14 AND "team"='llanelli';
## Task Generate a SQL query to answer the following question: `How many Points against has Tries for smaller than 14, and a Team of llanelli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_2" ( "team" text, "tries_for" real, "tries_against...
SELECT COUNT("tries_against") FROM "pool_2" WHERE "try_diff"='–17' AND "points_for"<80;
## Task Generate a SQL query to answer the following question: `How many Tries against has a Try diff of –17 and Points for smaller than 80?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_2" ( "team" text, "tries_for" real, "tries_against" ...
SELECT "player" FROM "p" WHERE "position"='forward';
## Task Generate a SQL query to answer the following question: `Which player was the forward?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team"...
SELECT "years_in_orlando" FROM "p" WHERE "position"='center';
## Task Generate a SQL query to answer the following question: `Which years in Orlando are featured with the center position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_in_orl...
SELECT "position" FROM "p" WHERE "years_in_orlando"='2000';
## Task Generate a SQL query to answer the following question: `Which position was in Orlando in 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_in_orlando" text, "school_c...
SELECT "women_s_doubles" FROM "past_winners" WHERE "year">2009;
## Task Generate a SQL query to answer the following question: `Who were the winners of the Women's Doubles in the years after 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singl...
SELECT "men_s_doubles" FROM "past_winners" WHERE "women_s_singles"='kristína ludíková' AND "year">2008;
## Task Generate a SQL query to answer the following question: `Who were the Men's doubles of the years that had Kristína Ludíková as Women's singles after the year 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_winners" ( "year" real, ...
SELECT "name" FROM "list_of_top_association_football_goal_sc" WHERE "goals"=135;
## Task Generate a SQL query to answer the following question: `What is the Name with Goals that are 135?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_top_association_football_goal_sc" ( "rank" real, "name" text, "years" text, "match...
SELECT "american_labor_ticket" FROM "1938_state_election_results" WHERE "democratic_ticket"='robert f. wagner';
## Task Generate a SQL query to answer the following question: `Which American Labor candidate ran against Democratic candidate Robert F. Wagner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_state_election_results" ( "office" text, "democra...
SELECT "socialist_ticket" FROM "1938_state_election_results" WHERE "american_labor_ticket"='caroline o''day';
## Task Generate a SQL query to answer the following question: `Which Socialist candidate ran against American Labor candidate Caroline O'Day?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_state_election_results" ( "office" text, "democratic...
SELECT "democratic_ticket" FROM "1938_state_election_results" WHERE "socialist_ticket"='edna mitchell blue';
## Task Generate a SQL query to answer the following question: `Which Democrtic candidate ran against the Socialist candidate Edna Mitchell Blue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_state_election_results" ( "office" text, "democra...
SELECT "american_labor_ticket" FROM "1938_state_election_results" WHERE "socialist_ticket"='herman j. hahn';
## Task Generate a SQL query to answer the following question: `Which American Labor candidate is running against the Socialist candidate Herman J. Hahn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_state_election_results" ( "office" text, ...
SELECT "republican_ticket" FROM "1938_state_election_results" WHERE "american_labor_ticket"='matthew j. merritt';
## Task Generate a SQL query to answer the following question: `Which Republican ran against the American Labor candidate Matthew J. Merritt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_state_election_results" ( "office" text, "democratic_...
SELECT "american_labor_ticket" FROM "1938_state_election_results" WHERE "republican_ticket"='thomas e. dewey';
## Task Generate a SQL query to answer the following question: `Which American Labor candidate ran against Republican Thomas E. Dewey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_state_election_results" ( "office" text, "democratic_ticket"...
SELECT "opponent_in_the_final" FROM "singles_titles_2" WHERE "outcome"='runner-up' AND "date">1983;
## Task Generate a SQL query to answer the following question: `Who is the Opponent in the final after 1983 with an Outcome of runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_2" ( "outcome" text, "date" real, "championsh...
SELECT "opponent_in_the_final" FROM "singles_titles_2" WHERE "score_in_the_final"='7–5, 6–2';
## Task Generate a SQL query to answer the following question: `What Opponent in the final had a match with a Score in the final of 7–5, 6–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_2" ( "outcome" text, "date" real, "champi...
SELECT "championship" FROM "singles_titles_2" WHERE "surface"='clay' AND "opponent_in_the_final"='vitas gerulaitis';
## Task Generate a SQL query to answer the following question: `What is the Championship with Vitas Gerulaitis as Opponent in the final in a match on Clay Surface?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_titles_2" ( "outcome" text, ...
SELECT SUM("percentage_of_marine_area_for_eez") FROM "marine_ecozones" WHERE "area_km_territorial_waters"='72,144' AND "area_km_exclusive_economic_zone"<'996,439';
## Task Generate a SQL query to answer the following question: `What is the sum of percentage of marine area with an area of territorial waters of 72,144 and exclusive economic zone area less than 996,439?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE...
SELECT MIN("percentage_of_marine_area_for_eez") FROM "marine_ecozones" WHERE "ecozone"='pacific marine' AND "percentage_of_total_area_for_eez">3.1;
## Task Generate a SQL query to answer the following question: `What is the smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marine_ecozones" ( ...
SELECT COUNT("percentage_of_marine_area_for_eez") FROM "marine_ecozones" WHERE "ecozone"='atlantic marine' AND "area_km_exclusive_economic_zone"<'996,439';
## Task Generate a SQL query to answer the following question: `How many values for percentage of marine area are for the Atlantic marine ecozone with an exclusive economic zone area less than 996,439?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ma...
SELECT AVG("percentage_of_total_area_for_eez") FROM "marine_ecozones" WHERE "percentage_of_marine_area_for_eez">39.3 AND "area_km_territorial_waters"<'2,788,349';
## Task Generate a SQL query to answer the following question: `What is the average percentage of total area when the percentage of marine area is more than 39.3 and territorial waters area is less than 2,788,349?` ### Database Schema This query will run on a database whose schema is represented in this string: CREA...
SELECT MIN("area_km_territorial_waters") FROM "marine_ecozones" WHERE "area_km_exclusive_economic_zone">'704,849' AND "percentage_of_total_area_for_eez">6.8;
## Task Generate a SQL query to answer the following question: `What is the smallest area of territorial waters with an exclusive economic zone area more than 704,849 and a percentage of total area greater than 6.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CR...
SELECT "team" FROM "game_log" WHERE "high_assists"='alvin williams (6)';
## Task Generate a SQL query to answer the following question: `What is the team when alvin williams (6) has the high assists?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "h...
SELECT "record" FROM "game_log" WHERE "game"<3 AND "score"='l 91–96 (ot)';
## Task Generate a SQL query to answer the following question: `What is the Record for a game less than 3 and the score was l 91–96 (ot)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score"...
SELECT "date" FROM "game_log" WHERE "high_points"='dell curry (17)';
## Task Generate a SQL query to answer the following question: `What is the Date when the high points went to Dell Curry (17)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "h...
SELECT "team" FROM "game_log" WHERE "high_rebounds"='antonio davis (8)';
## Task Generate a SQL query to answer the following question: `What is the Team when antonio davis (8) had the high rebounds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "h...
SELECT "tournament" FROM "pga_tour_wins_11" WHERE "date"='apr 16, 1967';
## Task Generate a SQL query to answer the following question: `What is the Tournament with a Date that is apr 16, 1967?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_11" ( "date" text, "tournament" text, "winning_score" text, "...
SELECT "date" FROM "pga_tour_wins_11" WHERE "runner_s_up"='jerry steelsmith';
## Task Generate a SQL query to answer the following question: `What is the Date with a Runner(s)-up that is jerry steelsmith?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_11" ( "date" text, "tournament" text, "winning_score" tex...
SELECT "obama" FROM "polling" WHERE "source"='rasmussen reports';
## Task Generate a SQL query to answer the following question: `What kind of Obama that has a Source of rasmussen reports?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polling" ( "source" text, "date" text, "clinton" text, "obama" text, "u...
SELECT "source" FROM "polling" WHERE "undecided"='2%';
## Task Generate a SQL query to answer the following question: `Which Source has a Undecided of 2%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polling" ( "source" text, "date" text, "clinton" text, "obama" text, "undecided" text ); ### S...
SELECT "obama" FROM "polling" WHERE "undecided"='1%';
## Task Generate a SQL query to answer the following question: `What kind of Obama has a Undecided of 1%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polling" ( "source" text, "date" text, "clinton" text, "obama" text, "undecided" text );...