output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT SUM("gold") FROM "medal_table" WHERE "nation"='total' AND "silver">19;
## Task Generate a SQL query to answer the following question: `What is the sum of the gold medals of the total nation, which has more than 19 silver medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text,...
SELECT AVG("silver") FROM "medal_table" WHERE "bronze"=3 AND "total">4;
## Task Generate a SQL query to answer the following question: `What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nati...
SELECT "label" FROM "grammy_awards" WHERE "year"='1990';
## Task Generate a SQL query to answer the following question: `Which label's year was 1990?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammy_awards" ( "year" text, "title" text, "genre" text, "label" text, "result" text ); ### SQL Give...
SELECT "result" FROM "grammy_awards" WHERE "genre"='jazz' AND "label"='columbia' AND "title"='requiem';
## Task Generate a SQL query to answer the following question: `Which result's genre was jazz when its label was columbia and its title was requiem?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammy_awards" ( "year" text, "title" text, "genr...
SELECT "year" FROM "grammy_awards" WHERE "label"='label';
## Task Generate a SQL query to answer the following question: `Which year's label was label?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammy_awards" ( "year" text, "title" text, "genre" text, "label" text, "result" text ); ### SQL Giv...
SELECT "title" FROM "grammy_awards" WHERE "genre"='jazz' AND "result"='nominated' AND "year"='1996';
## Task Generate a SQL query to answer the following question: `Which title's genre was jazz when it was nominated in 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammy_awards" ( "year" text, "title" text, "genre" text, "label" text, ...
SELECT "year" FROM "grammy_awards" WHERE "genre"='jazz' AND "label"='columbia' AND "result"='nominated' AND "title"='trio jeepy';
## Task Generate a SQL query to answer the following question: `Which year's genre was jazz under the columbia label when it was nominated for the title Trio jeepy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammy_awards" ( "year" text, "titl...
SELECT "label" FROM "grammy_awards" WHERE "year"='1993';
## Task Generate a SQL query to answer the following question: `Which label's year is 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammy_awards" ( "year" text, "title" text, "genre" text, "label" text, "result" text ); ### SQL Given...
SELECT "company" FROM "subsidiaries" WHERE "principal_activities"='engine overhaul';
## Task Generate a SQL query to answer the following question: `What company focuses on Engine Overhaul for their principal activity?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subsidiaries" ( "company" text, "type" text, "principal_activiti...
SELECT "group_s_equity_shareholding" FROM "subsidiaries" WHERE "company"='abacus distribution systems (malaysia) sdn bhd';
## Task Generate a SQL query to answer the following question: `What is the group equity shareholding for abacus distribution systems (malaysia) sdn bhd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subsidiaries" ( "company" text, "type" text, ...
SELECT "company" FROM "subsidiaries" WHERE "group_s_equity_shareholding"='60%';
## Task Generate a SQL query to answer the following question: `What company has a Group Equity Shareholding value of 60%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subsidiaries" ( "company" text, "type" text, "principal_activities" text, ...
SELECT "group_s_equity_shareholding" FROM "subsidiaries" WHERE "principal_activities"='catering' AND "type"='associate';
## Task Generate a SQL query to answer the following question: `What is the Group Equity shareholding of the company that has their principal activities as catering, and is of the Associate type?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subsidia...
SELECT MAX("yield_s_km") FROM "singapore_airlines_operating_highlights_" WHERE "ask_million">'88,252.7' AND "rpk_million"='74,183.2' AND "load_factor_pct"<74.5;
## Task Generate a SQL query to answer the following question: `What is the highest yield when the ASK is greater than 88,252.7, an RPK of 74,183.2, and a load factor less than 74.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singapore_airlines_op...
SELECT "date" FROM "playoffs" WHERE "game">4 AND "team"='san antonio' AND "record"='4-3';
## Task Generate a SQL query to answer the following question: `When Date has a Game larger than 4 and a Team of san antonio, and a Record of 4-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, ...
SELECT "team" FROM "playoffs" WHERE "score"='108-105 (ot)';
## Task Generate a SQL query to answer the following question: `Which Team has a Score of 108-105 (ot)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "location_attendance" tex...
SELECT "game" FROM "playoffs" WHERE "team"='at san antonio' AND "record"='3-3';
## Task Generate a SQL query to answer the following question: `Which Game has a Team of at san antonio, and a Record of 3-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "lo...
SELECT "record" FROM "playoffs" WHERE "score"='105-115';
## Task Generate a SQL query to answer the following question: `Which Record has a Score of 105-115?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "location_attendance" text, ...
SELECT AVG("ties") FROM "season_records" WHERE "wins"=6 AND "season">2004;
## Task Generate a SQL query to answer the following question: `What's the average amount of ties had when a team wins 6 and it's past the 2004 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_records" ( "season" real, "division" text...
SELECT "result" FROM "2008_09_season_as_a_four_year_old" WHERE "group"='g1' AND "venue"='moonee valley';
## Task Generate a SQL query to answer the following question: `What was the result of the race that had a group of G1 at Moonee Valley?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_09_season_as_a_four_year_old" ( "result" text, "date" text...
SELECT "result" FROM "2008_09_season_as_a_four_year_old" WHERE "distance"='2000m';
## Task Generate a SQL query to answer the following question: `What was the result of the race that was a 2000m distance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_09_season_as_a_four_year_old" ( "result" text, "date" text, "race" tex...
SELECT "opponent" FROM "schedule" WHERE "date"='november 21, 1999';
## Task Generate a SQL query to answer the following question: `Which Opponent has a Date of november 21, 1999?` ### 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"...
SELECT "attendance" FROM "schedule" WHERE "week"<8 AND "opponent"='philadelphia eagles';
## Task Generate a SQL query to answer the following question: `Which Attendance has a Week smaller than 8, and an Opponent of philadelphia eagles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" t...
SELECT "attendance" FROM "schedule" WHERE "result"='l 26–16';
## Task Generate a SQL query to answer the following question: `Which Attendance has a Result of l 26–16?` ### 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" text ...
SELECT MAX("attendance") FROM "schedule" WHERE "week"=13;
## Task Generate a SQL query to answer the following question: `What was the highest attendance on week 13?` ### 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" rea...
SELECT "result" FROM "professional_record" WHERE "round"='6';
## Task Generate a SQL query to answer the following question: `Which Result has a Round of 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_record" ( "result" text, "opponent" text, "type" text, "round" text, "date" text ); ##...
SELECT "date" FROM "professional_record" WHERE "type"='tko' AND "opponent"='jesse brinkley';
## Task Generate a SQL query to answer the following question: `When is a Type of tko, and an Opponent of jesse brinkley` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_record" ( "result" text, "opponent" text, "type" text, "round"...
SELECT "result" FROM "professional_record" WHERE "opponent"='steve walker';
## Task Generate a SQL query to answer the following question: `Which Result has an Opponent of steve walker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_record" ( "result" text, "opponent" text, "type" text, "round" text, "d...
SELECT "opponent" FROM "professional_record" WHERE "type"='ud' AND "round"='10' AND "date"='2008-06-11';
## Task Generate a SQL query to answer the following question: `Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_record" ( "result" text, "opponent" text, "type" text, ...
SELECT "opponent" FROM "professional_record" WHERE "type"='tko' AND "round"='2 (6)' AND "date"='2006-09-20';
## Task Generate a SQL query to answer the following question: `Which Opponent has a Type of tko, and a Round of 2 (6) on 2006-09-20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_record" ( "result" text, "opponent" text, "type" te...
SELECT "date" FROM "professional_record" WHERE "type"='tko' AND "round"='1 (6)';
## Task Generate a SQL query to answer the following question: `When has a Type of tko, and a Round of 1 (6)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "professional_record" ( "result" text, "opponent" text, "type" text, "round" text, "da...
SELECT COUNT("position") FROM "lpf_s_campeonato_paulista" WHERE "played">12;
## Task Generate a SQL query to answer the following question: `How many positions have a played greater than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played"...
SELECT MIN("played") FROM "lpf_s_campeonato_paulista" WHERE "points">11 AND "position"=1 AND "lost"<1;
## Task Generate a SQL query to answer the following question: `What is the lowest played that has points greater than 11, 1 as the position, and a loss less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpf_s_campeonato_paulista" ( "positi...
SELECT "date" FROM "singles_5_4_1" WHERE "outcome"='winner' AND "opponent_in_the_final"='çağla büyükakçay';
## Task Generate a SQL query to answer the following question: `What is the Date that has a Outcome of winner, and çağla büyükakçay was the opponent in the final?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_4_1" ( "outcome" text, "dat...
SELECT "outcome" FROM "singles_5_4_1" WHERE "opponent_in_the_final"='çağla büyükakçay';
## Task Generate a SQL query to answer the following question: `What is the Outcome when çağla büyükakçay was the opponent in the final?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "tournament" te...
SELECT "score" FROM "singles_5_4_1" WHERE "surface"='hard' AND "opponent_in_the_final"='alicia pillay';
## Task Generate a SQL query to answer the following question: `What is the Score when the opponent in the final is alicia pillay on a hard surface?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "to...
SELECT "opponent_in_the_final" FROM "singles_5_4_1" WHERE "outcome"='runner-up';
## Task Generate a SQL query to answer the following question: `What is the Opponent in the final when the outcome was runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "tournament" text, "...
SELECT "opponent_in_the_final" FROM "singles_5_4_1" WHERE "outcome"='winner' AND "date"='14-may-2007';
## Task Generate a SQL query to answer the following question: `What is the Opponent in the final with an outcome of winner on 14-may-2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "tournament"...
SELECT "score" FROM "singles_5_4_1" WHERE "date"='09-oct-2006';
## Task Generate a SQL query to answer the following question: `What is the Score for 09-oct-2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_4_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_t...
SELECT "10_00_pm" FROM "night" WHERE "11_00_pm"='to ma dauy kan (vj ja)';
## Task Generate a SQL query to answer the following question: `What shows for 10:00 PM when the 11:00 PM is to ma dauy kan (vj ja)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night" ( "time" text, "06_00_pm" text, "07_00_pm" text, "08_00_...
SELECT "08_00_pm" FROM "night" WHERE "07_00_pm"='i am siam (rerun)';
## Task Generate a SQL query to answer the following question: `What is the 08:00 PM when the 07:00 PM is I am siam (rerun)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night" ( "time" text, "06_00_pm" text, "07_00_pm" text, "08_00_pm" text...
SELECT "10_30_pm" FROM "night" WHERE "08_00_pm"='[v] play & learn' AND "time"='sunday';
## Task Generate a SQL query to answer the following question: `What is the 10:30 PM when the 08:00 PM is [v] play & learn, and a Time of Sunday?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night" ( "time" text, "06_00_pm" text, "07_00_pm" te...
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='dave menne';
## Task Generate a SQL query to answer the following question: `What was the time of the bout against Dave Menne?` ### 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" ...
SELECT "time" FROM "mixed_martial_arts_record" WHERE "method"='tko (strikes)';
## Task Generate a SQL query to answer the following question: `What was the time of the bout that ended in a TKO (strikes)?` ### 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, ...
SELECT MAX("matches") FROM "list_of_top_association_football_goal_sc" WHERE "rank"=8;
## Task Generate a SQL query to answer the following question: `What is the number of matches for the player in rank 8?` ### 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" ...
SELECT "set_3" FROM "results_pool_c" WHERE "set_1"='19-25' AND "set_2"='19-25';
## Task Generate a SQL query to answer the following question: `Which set 3 has a Set 1 of 19-25, and a Set 2 of 19-25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_c" ( "date" text, "score" text, "set_1" text, "set_2" text, "...
SELECT "set_5" FROM "results_pool_c" WHERE "date"='jun 7' AND "set_4"='21-25';
## Task Generate a SQL query to answer the following question: `What is the set 5 if the Date is jun 7, and a Set 4 is 21-25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_c" ( "date" text, "score" text, "set_1" text, "set_2" tex...
SELECT "set_5" FROM "results_pool_c" WHERE "set_2"='25-20';
## Task Generate a SQL query to answer the following question: `What is the Set 5 if Set 2 is 25-20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_pool_c" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "set...
SELECT "driver" FROM "race" WHERE "grid"=24;
## Task Generate a SQL query to answer the following question: `Which driver's grid was 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the...
SELECT AVG("laps") FROM "race" WHERE "grid"<19 AND "time_retired"='+21.3 secs';
## Task Generate a SQL query to answer the following question: `What is the mean number of laps when the grid is less than 19 and time/retired is +21.3 secs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "lap...
SELECT MIN("laps") FROM "race" WHERE "team"='team green' AND "grid"=1;
## Task Generate a SQL query to answer the following question: `What is the smallest number of laps for Team Green when the grid is 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retire...
SELECT COUNT("1876") FROM "population" WHERE "1872"<1921 AND "1891"<354;
## Task Generate a SQL query to answer the following question: `What is the total number of 1876(s), when 1872 is less than 1921, and when 1891 is less than 354?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "1861" real, "1866" real...
SELECT SUM("1886") FROM "population" WHERE "1866">1070 AND "1891"<1946;
## Task Generate a SQL query to answer the following question: `What is the sum of 1886(s), when 1886 is greater than 1070, and when 1891 is less than 1946?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "1861" real, "1866" real, "...
SELECT SUM("1891") FROM "population" WHERE "1872"<685 AND "1881"<348;
## Task Generate a SQL query to answer the following question: `What is the sum of 1891(s), when 1872 is less than 685, and when 1881 is less than 348?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "1861" real, "1866" real, "1872"...
SELECT SUM("1872") FROM "population" WHERE "1866">856 AND "1861">1906 AND "1876">1990;
## Task Generate a SQL query to answer the following question: `What is the sum of 1872(s), when 1866 is greater than 856, when 1861 is greater than 1906, and when 1876 is greater than 1990?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" (...
SELECT "record" FROM "game_log" WHERE "date"='december 20';
## Task Generate a SQL query to answer the following question: `What is the Record with a Date that is december 20?` ### 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("round") FROM "nfl_draft" WHERE "position"='outside linebacker';
## Task Generate a SQL query to answer the following question: `In what round was the first outside linebacker picked?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "sc...
SELECT "venue" FROM "england_in_australia_1901_2" WHERE "result"='aus by 229 runs';
## Task Generate a SQL query to answer the following question: `Which Venue resulted in AUS by 229 runs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "england_in_australia_1901_2" ( "date" text, "home_captain" text, "away_captain" text, "venu...
SELECT "away_captain" FROM "england_in_australia_1901_2" WHERE "venue"='melbourne cricket ground' AND "home_captain"='joe darling';
## Task Generate a SQL query to answer the following question: `Who was the Away Captain when the Home Captain was Joe Darling at Melbourne Cricket Ground?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "england_in_australia_1901_2" ( "date" text, ...
SELECT "home_captain" FROM "england_in_australia_1901_2" WHERE "result"='aus by 4 wkts';
## Task Generate a SQL query to answer the following question: `Who was the Home Captain and the Result for AUS by 4 wkts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "england_in_australia_1901_2" ( "date" text, "home_captain" text, "away_capt...
SELECT MAX("match") FROM "s_league" WHERE "opponent_team"='dalian shide siwu' AND "home_away"='away';
## Task Generate a SQL query to answer the following question: `What was the highest match when the away opponent was Dalian Shide Siwu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_league" ( "match" real, "date" text, "home_away" text, "o...
SELECT "home_away" FROM "s_league" WHERE "date"='april 27, 2008';
## Task Generate a SQL query to answer the following question: `Which Home/Away was on April 27, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_league" ( "match" real, "date" text, "home_away" text, "opponent_team" text, "score" text...
SELECT "score" FROM "s_league" WHERE "date"='march 3, 2008';
## Task Generate a SQL query to answer the following question: `What was the score on March 3, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_league" ( "match" real, "date" text, "home_away" text, "opponent_team" text, "score" text )...
SELECT "mc_cune_reischauer" FROM "list" WHERE "2000_n_south_korea_population">'6,796,227' AND "hangul"='송';
## Task Generate a SQL query to answer the following question: `What is the McCune-Reischauer when the 2000 n South Korea population * is more than 6,796,227 people, and a Hangul of 송?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "hangul" ...
SELECT "hanja" FROM "list" WHERE "mc_cune_reischauer"='chŏn';
## Task Generate a SQL query to answer the following question: `What is the Hanja for McCune-Reischauer of chŏn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "hangul" text, "hanja" text, "revised" text, "mc_cune_reischauer" text, "...
SELECT "hangul" FROM "list" WHERE "hanja"='西, 徐';
## Task Generate a SQL query to answer the following question: `What is the Hangul when the Hanja is 西, 徐?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "hangul" text, "hanja" text, "revised" text, "mc_cune_reischauer" text, "2000_n...
SELECT "venue" FROM "international_goals" WHERE "result"='win' AND "score"='5-0';
## Task Generate a SQL query to answer the following question: `What is the Venue with a Result that is win, and a Score that is 5-0?` ### 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, ...
SELECT "competition" FROM "international_goals" WHERE "result"='win' AND "score"='1-0';
## Task Generate a SQL query to answer the following question: `What is the Competition with a Result of win with a Score that is 1-0?` ### 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,...
SELECT SUM("gold") FROM "medal_table" WHERE "rank"='3';
## Task Generate a SQL query to answer the following question: `How many total Gold medals did the nation ranked #3 receive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, ...
SELECT "ship_size" FROM "recent_markets" WHERE "2006"='$46,000';
## Task Generate a SQL query to answer the following question: `What ship size had a cargo value of $46,000 in 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_markets" ( "ship_size" text, "cargo" text, "2004" text, "2005" text, "...
SELECT "ship_size" FROM "recent_markets" WHERE "2006"='$31,750';
## Task Generate a SQL query to answer the following question: `What ship size had a cargo value of $31,750 in 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_markets" ( "ship_size" text, "cargo" text, "2004" text, "2005" text, "...
SELECT "2005" FROM "recent_markets" WHERE "ship_size"='all product carriers';
## Task Generate a SQL query to answer the following question: `What was the cargo value in 2005 with a ship size of all product carriers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_markets" ( "ship_size" text, "cargo" text, "2004" te...
SELECT "2004" FROM "recent_markets" WHERE "ship_size"='ship size';
## Task Generate a SQL query to answer the following question: `What was the cargo value in 2004 for ship size?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_markets" ( "ship_size" text, "cargo" text, "2004" text, "2005" text, "2006"...
SELECT "cargo" FROM "recent_markets" WHERE "ship_size"='aframax';
## Task Generate a SQL query to answer the following question: `What cargo was contained in a ship size of aframax?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_markets" ( "ship_size" text, "cargo" text, "2004" text, "2005" text, "2...
SELECT "2005" FROM "recent_markets" WHERE "cargo"='all product carriers';
## Task Generate a SQL query to answer the following question: `What was the cargo value in 2005 for all product carriers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_markets" ( "ship_size" text, "cargo" text, "2004" text, "2005" tex...
SELECT AVG("crude_death_rate_per_1_000") FROM "vital_statistics" WHERE "migration_per_1_000">-5.06 AND "natural_change_per_1_000">7.06;
## Task Generate a SQL query to answer the following question: `How many Crude death rate (per 1,000) has a Migration (per 1,000) larger than -5.06, and a Natural change (per 1,000) larger than 7.06? Question 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE...
SELECT MIN("natural_change_per_1_000") FROM "vital_statistics" WHERE "deaths"='17 413' AND "migration_per_1_000">-7.35;
## Task Generate a SQL query to answer the following question: `Which Natural change (per 1,000) has Deaths of 17 413, and a Migration (per 1,000) larger than -7.35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vital_statistics" ( "average_populat...
SELECT SUM("migration_per_1_000") FROM "vital_statistics" WHERE "crude_birth_rate_per_1_000"=17.54 AND "natural_change_per_1_000">10.95;
## Task Generate a SQL query to answer the following question: `How many Migration (per 1,000) has a Crude birth rate (per 1,000) of 17.54 and a Natural change (per 1,000) larger than 10.95?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vital_statist...
SELECT "live_births" FROM "vital_statistics" WHERE "migration"='-14 873';
## Task Generate a SQL query to answer the following question: `What kind of Live births has a Migration of -14 873?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vital_statistics" ( "average_population_x_1_000" text, "live_births" text, "death...
SELECT AVG("goals_games") FROM "list_of_top_association_football_goal_sc" WHERE "name"='rummenigge, karl-heinz' AND "goals"<162;
## Task Generate a SQL query to answer the following question: `What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162?` ### 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" r...
SELECT SUM("games") FROM "list_of_top_association_football_goal_sc" WHERE "name"='allofs, klaus' AND "goals"<177;
## Task Generate a SQL query to answer the following question: `What is the sum of Games for Allofs, Klaus, with Goals less than 177?` ### 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" te...
SELECT MAX("rank") FROM "list_of_top_association_football_goal_sc" WHERE "goals">220 AND "years"='1965–1978-78';
## Task Generate a SQL query to answer the following question: `What is the highest Rank for more than 220 goals in 1965–1978-78?` ### 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, ...
SELECT "composer" FROM "track_listing" WHERE "title"='el hanone';
## Task Generate a SQL query to answer the following question: `Who is the composer of El Hanone?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "title" text, "length" text, "writer" text, "composer" text, "arranger" text );...
SELECT "arranger" FROM "track_listing" WHERE "composer"='imad shams eldeen' AND "length"='4:03';
## Task Generate a SQL query to answer the following question: `Which arranger worked with composer Imad Shams Eldeen at 4:03?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "title" text, "length" text, "writer" text, "compose...
SELECT "title" FROM "track_listing" WHERE "arranger"='tarek akef' AND "length"='3:50';
## Task Generate a SQL query to answer the following question: `What is the title track that is 3:50 and arranged by Tarek Akef?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "title" text, "length" text, "writer" text, "compo...
SELECT "arranger" FROM "track_listing" WHERE "title"='ana rouh';
## Task Generate a SQL query to answer the following question: `Who is the arranger for Ana Rouh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "title" text, "length" text, "writer" text, "composer" text, "arranger" text );...
SELECT "writer" FROM "track_listing" WHERE "arranger"='tarek akef' AND "length"='4:58';
## Task Generate a SQL query to answer the following question: `Who was the writer that worked with arranger Tarek Akef on a 4:58 song?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "title" text, "length" text, "writer" text, ...
SELECT "year_ceremony" FROM "submissions" WHERE "result"='not nominated' AND "original_title"='ničiji sin';
## Task Generate a SQL query to answer the following question: `What is the year of the ceremony with a not nominated result and ničiji sin as the original title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, ...
SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='ničiji sin';
## Task Generate a SQL query to answer the following question: `What is the year of the ceremony with the original title ničiji sin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination...
SELECT "result" FROM "submissions" WHERE "year_ceremony"='2006 (79th)';
## Task Generate a SQL query to answer the following question: `What is the result of the ceremony in 2006 (79th)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "origina...
SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "original_title"='sedamdeset i dva dana';
## Task Generate a SQL query to answer the following question: `What is the film title used for nomination with the original title sedamdeset i dva dana?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_tit...
SELECT "director_s" FROM "submissions" WHERE "film_title_used_in_nomination"='cannibal vegetarian';
## Task Generate a SQL query to answer the following question: `Who is the director of Cannibal vegetarian, which is the film title used in nomination?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title...
SELECT AVG("first_downs") FROM "schedule" WHERE "date"='december 4';
## Task Generate a SQL query to answer the following question: `What is the average First Downs for december 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "result" text, "record" text, "opponent" tex...
SELECT MIN("attendance") FROM "schedule" WHERE "opponent"='tampa bay buccaneers' AND "points_against"<7;
## Task Generate a SQL query to answer the following question: `What is the lowest Attendance against the tampa bay buccaneers, with Points Against of less than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text...
SELECT MAX("points_for") FROM "schedule" WHERE "record"='12–2' AND "points_against">6;
## Task Generate a SQL query to answer the following question: `What is the highest Points when the record was 12–2, and the Points Against are larger than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "...
SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='prolonged' AND "condition"='factor v deficiency';
## Task Generate a SQL query to answer the following question: `Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various...
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='prolonged' AND "platelet_count"='decreased' AND "prothrombin_time"='prolonged';
## Task Generate a SQL query to answer the following question: `Which Condition has a Bleeding time of prolonged, a Platelet count of decreased, and Prothrombin time of prolonged?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_v...
SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='prolonged or unaffected';
## Task Generate a SQL query to answer the following question: `Which Platelet count has a Partial thromboplastin time of prolonged or unaffected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition"...
SELECT "prothrombin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='unaffected' AND "condition"='thrombocytopenia';
## Task Generate a SQL query to answer the following question: `Which Prothrombin time that has a Partial thromboplastin time of unaffected, and a Condition of thrombocytopenia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_var...
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='unaffected' AND "prothrombin_time"='prolonged';
## Task Generate a SQL query to answer the following question: `Which Condition has a Bleeding time of unaffected and a Prothrombin time of prolonged?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condit...
SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='prolonged' AND "bleeding_time"='unaffected' AND "condition"='vitamin k deficiency or warfarin';
## Task Generate a SQL query to answer the following question: `Which Partial thromboplastin time has a Prothrombin time of prolonged, and a Bleeding time of unaffected, and a Condition of vitamin k deficiency or warfarin? Question 6` ### Database Schema This query will run on a database whose schema is represented i...