question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What is the sum of the gold medals of the total nation, which has more than 19 silver medals? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("gold") FROM "medal_table" WHERE "nation"='total' AND "silver">19; | 2-15972223-1 |
What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("silver") FROM "medal_table" WHERE "bronze"=3 AND "total">4; | 2-15972223-1 |
Which label's year was 1990? | CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
); | SELECT "label" FROM "grammy_awards" WHERE "year"='1990'; | 2-1549023-1 |
Which result's genre was jazz when its label was columbia and its title was requiem? | CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
); | SELECT "result" FROM "grammy_awards" WHERE "genre"='jazz' AND "label"='columbia' AND "title"='requiem'; | 2-1549023-1 |
Which year's label was label? | CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
); | SELECT "year" FROM "grammy_awards" WHERE "label"='label'; | 2-1549023-1 |
Which title's genre was jazz when it was nominated in 1996? | CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
); | SELECT "title" FROM "grammy_awards" WHERE "genre"='jazz' AND "result"='nominated' AND "year"='1996'; | 2-1549023-1 |
Which year's genre was jazz under the columbia label when it was nominated for the title Trio jeepy? | CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
); | SELECT "year" FROM "grammy_awards" WHERE "genre"='jazz' AND "label"='columbia' AND "result"='nominated' AND "title"='trio jeepy'; | 2-1549023-1 |
Which label's year is 1993? | CREATE TABLE "grammy_awards" (
"year" text,
"title" text,
"genre" text,
"label" text,
"result" text
); | SELECT "label" FROM "grammy_awards" WHERE "year"='1993'; | 2-1549023-1 |
What company focuses on Engine Overhaul for their principal activity? | CREATE TABLE "subsidiaries" (
"company" text,
"type" text,
"principal_activities" text,
"incorporated_in" text,
"group_s_equity_shareholding" text
); | SELECT "company" FROM "subsidiaries" WHERE "principal_activities"='engine overhaul'; | 2-153162-1 |
What is the group equity shareholding for abacus distribution systems (malaysia) sdn bhd? | CREATE TABLE "subsidiaries" (
"company" text,
"type" text,
"principal_activities" text,
"incorporated_in" text,
"group_s_equity_shareholding" text
); | SELECT "group_s_equity_shareholding" FROM "subsidiaries" WHERE "company"='abacus distribution systems (malaysia) sdn bhd'; | 2-153162-1 |
What company has a Group Equity Shareholding value of 60%? | CREATE TABLE "subsidiaries" (
"company" text,
"type" text,
"principal_activities" text,
"incorporated_in" text,
"group_s_equity_shareholding" text
); | SELECT "company" FROM "subsidiaries" WHERE "group_s_equity_shareholding"='60%'; | 2-153162-1 |
What is the Group Equity shareholding of the company that has their principal activities as catering, and is of the Associate type? | CREATE TABLE "subsidiaries" (
"company" text,
"type" text,
"principal_activities" text,
"incorporated_in" text,
"group_s_equity_shareholding" text
); | SELECT "group_s_equity_shareholding" FROM "subsidiaries" WHERE "principal_activities"='catering' AND "type"='associate'; | 2-153162-1 |
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? | CREATE TABLE "singapore_airlines_operating_highlights_" (
"year_ended" text,
"passengers_thousand" real,
"rpk_million" real,
"ask_million" real,
"load_factor_pct" real,
"yield_s_km" real
); | 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; | 2-161591-3 |
When Date has a Game larger than 4 and a Team of san antonio, and a Record of 4-3? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT "date" FROM "playoffs" WHERE "game">4 AND "team"='san antonio' AND "record"='4-3'; | 2-15636509-11 |
Which Team has a Score of 108-105 (ot)? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT "team" FROM "playoffs" WHERE "score"='108-105 (ot)'; | 2-15636509-11 |
Which Game has a Team of at san antonio, and a Record of 3-3? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT "game" FROM "playoffs" WHERE "team"='at san antonio' AND "record"='3-3'; | 2-15636509-11 |
Which Record has a Score of 105-115? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT "record" FROM "playoffs" WHERE "score"='105-115'; | 2-15636509-11 |
What's the average amount of ties had when a team wins 6 and it's past the 2004 season? | CREATE TABLE "season_records" (
"season" real,
"division" text,
"wins" real,
"losses" real,
"ties" real,
"final_position" text,
"notes" text
); | SELECT AVG("ties") FROM "season_records" WHERE "wins"=6 AND "season">2004; | 2-16002638-1 |
What was the result of the race that had a group of G1 at Moonee Valley? | CREATE TABLE "2008_09_season_as_a_four_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" text
); | SELECT "result" FROM "2008_09_season_as_a_four_year_old" WHERE "group"='g1' AND "venue"='moonee valley'; | 2-15926991-2 |
What was the result of the race that was a 2000m distance? | CREATE TABLE "2008_09_season_as_a_four_year_old" (
"result" text,
"date" text,
"race" text,
"venue" text,
"group" text,
"distance" text,
"weight_kg" real,
"time" text,
"jockey" text,
"winner_2nd" text
); | SELECT "result" FROM "2008_09_season_as_a_four_year_old" WHERE "distance"='2000m'; | 2-15926991-2 |
Which Opponent has a Date of november 21, 1999? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "opponent" FROM "schedule" WHERE "date"='november 21, 1999'; | 2-16025466-2 |
Which Attendance has a Week smaller than 8, and an Opponent of philadelphia eagles? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "week"<8 AND "opponent"='philadelphia eagles'; | 2-16025466-2 |
Which Attendance has a Result of l 26–16? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "result"='l 26–16'; | 2-16025466-2 |
What was the highest attendance on week 13? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT MAX("attendance") FROM "schedule" WHERE "week"=13; | 2-15378712-1 |
Which Result has a Round of 6? | CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
); | SELECT "result" FROM "professional_record" WHERE "round"='6'; | 2-15608666-1 |
When is a Type of tko, and an Opponent of jesse brinkley | 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'; | 2-15608666-1 |
Which Result has an Opponent of steve walker? | CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
); | SELECT "result" FROM "professional_record" WHERE "opponent"='steve walker'; | 2-15608666-1 |
Which Opponent has a Type of ud and a Round of 10 on 2008-06-11? | CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
); | SELECT "opponent" FROM "professional_record" WHERE "type"='ud' AND "round"='10' AND "date"='2008-06-11'; | 2-15608666-1 |
Which Opponent has a Type of tko, and a Round of 2 (6) on 2006-09-20? | CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
); | SELECT "opponent" FROM "professional_record" WHERE "type"='tko' AND "round"='2 (6)' AND "date"='2006-09-20'; | 2-15608666-1 |
When has a Type of tko, and a Round of 1 (6) | CREATE TABLE "professional_record" (
"result" text,
"opponent" text,
"type" text,
"round" text,
"date" text
); | SELECT "date" FROM "professional_record" WHERE "type"='tko' AND "round"='1 (6)'; | 2-15608666-1 |
How many positions have a played greater than 12? | CREATE TABLE "lpf_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT COUNT("position") FROM "lpf_s_campeonato_paulista" WHERE "played">12; | 2-15358573-2 |
What is the lowest played that has points greater than 11, 1 as the position, and a loss less than 1? | CREATE TABLE "lpf_s_campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT MIN("played") FROM "lpf_s_campeonato_paulista" WHERE "points">11 AND "position"=1 AND "lost"<1; | 2-15358573-2 |
What is the Date that has a Outcome of winner, and çağla büyükakçay was the opponent in the final? | CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "date" FROM "singles_5_4_1" WHERE "outcome"='winner' AND "opponent_in_the_final"='çağla büyükakçay'; | 2-15508602-2 |
What is the Outcome when çağla büyükakçay was the opponent in the final? | CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "outcome" FROM "singles_5_4_1" WHERE "opponent_in_the_final"='çağla büyükakçay'; | 2-15508602-2 |
What is the Score when the opponent in the final is alicia pillay on a hard surface? | CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "singles_5_4_1" WHERE "surface"='hard' AND "opponent_in_the_final"='alicia pillay'; | 2-15508602-2 |
What is the Opponent in the final when the outcome was runner-up? | CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "opponent_in_the_final" FROM "singles_5_4_1" WHERE "outcome"='runner-up'; | 2-15508602-2 |
What is the Opponent in the final with an outcome of winner on 14-may-2007? | CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "opponent_in_the_final" FROM "singles_5_4_1" WHERE "outcome"='winner' AND "date"='14-may-2007'; | 2-15508602-2 |
What is the Score for 09-oct-2006? | CREATE TABLE "singles_5_4_1" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "singles_5_4_1" WHERE "date"='09-oct-2006'; | 2-15508602-2 |
What shows for 10:00 PM when the 11:00 PM is to ma dauy kan (vj ja)? | CREATE TABLE "night" (
"time" text,
"06_00_pm" text,
"07_00_pm" text,
"08_00_pm" text,
"09_00_pm" text,
"10_00_pm" text,
"10_30_pm" text,
"11_00_pm" text
); | SELECT "10_00_pm" FROM "night" WHERE "11_00_pm"='to ma dauy kan (vj ja)'; | 2-15535243-4 |
What is the 08:00 PM when the 07:00 PM is I am siam (rerun)? | CREATE TABLE "night" (
"time" text,
"06_00_pm" text,
"07_00_pm" text,
"08_00_pm" text,
"09_00_pm" text,
"10_00_pm" text,
"10_30_pm" text,
"11_00_pm" text
); | SELECT "08_00_pm" FROM "night" WHERE "07_00_pm"='i am siam (rerun)'; | 2-15535243-4 |
What is the 10:30 PM when the 08:00 PM is [v] play & learn, and a Time of Sunday? | CREATE TABLE "night" (
"time" text,
"06_00_pm" text,
"07_00_pm" text,
"08_00_pm" text,
"09_00_pm" text,
"10_00_pm" text,
"10_30_pm" text,
"11_00_pm" text
); | SELECT "10_30_pm" FROM "night" WHERE "08_00_pm"='[v] play & learn' AND "time"='sunday'; | 2-15535243-4 |
What was the time of the bout against Dave Menne? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='dave menne'; | 2-16123539-2 |
What was the time of the bout that ended in a TKO (strikes)? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "time" FROM "mixed_martial_arts_record" WHERE "method"='tko (strikes)'; | 2-16123539-2 |
What is the number of matches for the player in rank 8? | CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
); | SELECT MAX("matches") FROM "list_of_top_association_football_goal_sc" WHERE "rank"=8; | 2-1590321-75 |
Which set 3 has a Set 1 of 19-25, and a Set 2 of 19-25? | CREATE TABLE "results_pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
); | SELECT "set_3" FROM "results_pool_c" WHERE "set_1"='19-25' AND "set_2"='19-25'; | 2-15925889-7 |
What is the set 5 if the Date is jun 7, and a Set 4 is 21-25? | CREATE TABLE "results_pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
); | SELECT "set_5" FROM "results_pool_c" WHERE "date"='jun 7' AND "set_4"='21-25'; | 2-15925889-7 |
What is the Set 5 if Set 2 is 25-20? | CREATE TABLE "results_pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
); | SELECT "set_5" FROM "results_pool_c" WHERE "set_2"='25-20'; | 2-15925889-7 |
Which driver's grid was 24? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "grid"=24; | 2-15894301-2 |
What is the mean number of laps when the grid is less than 19 and time/retired is +21.3 secs? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("laps") FROM "race" WHERE "grid"<19 AND "time_retired"='+21.3 secs'; | 2-15894301-2 |
What is the smallest number of laps for Team Green when the grid is 1? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("laps") FROM "race" WHERE "team"='team green' AND "grid"=1; | 2-15894301-2 |
What is the total number of 1876(s), when 1872 is less than 1921, and when 1891 is less than 354? | CREATE TABLE "population" (
"1861" real,
"1866" real,
"1872" real,
"1876" real,
"1881" real,
"1886" real,
"1891" real
); | SELECT COUNT("1876") FROM "population" WHERE "1872"<1921 AND "1891"<354; | 2-16039304-1 |
What is the sum of 1886(s), when 1886 is greater than 1070, and when 1891 is less than 1946? | CREATE TABLE "population" (
"1861" real,
"1866" real,
"1872" real,
"1876" real,
"1881" real,
"1886" real,
"1891" real
); | SELECT SUM("1886") FROM "population" WHERE "1866">1070 AND "1891"<1946; | 2-16039304-1 |
What is the sum of 1891(s), when 1872 is less than 685, and when 1881 is less than 348? | CREATE TABLE "population" (
"1861" real,
"1866" real,
"1872" real,
"1876" real,
"1881" real,
"1886" real,
"1891" real
); | SELECT SUM("1891") FROM "population" WHERE "1872"<685 AND "1881"<348; | 2-16039304-1 |
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? | CREATE TABLE "population" (
"1861" real,
"1866" real,
"1872" real,
"1876" real,
"1881" real,
"1886" real,
"1891" real
); | SELECT SUM("1872") FROM "population" WHERE "1866">856 AND "1861">1906 AND "1876">1990; | 2-16039304-1 |
What is the Record with a Date that is december 20? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"location_attendance" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='december 20'; | 2-15780718-5 |
In what round was the first outside linebacker picked? | CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
); | SELECT MIN("round") FROM "nfl_draft" WHERE "position"='outside linebacker'; | 2-16025466-1 |
Which Venue resulted in AUS by 229 runs? | CREATE TABLE "england_in_australia_1901_2" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
); | SELECT "venue" FROM "england_in_australia_1901_2" WHERE "result"='aus by 229 runs'; | 2-1598207-1 |
Who was the Away Captain when the Home Captain was Joe Darling at Melbourne Cricket Ground? | CREATE TABLE "england_in_australia_1901_2" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
); | SELECT "away_captain" FROM "england_in_australia_1901_2" WHERE "venue"='melbourne cricket ground' AND "home_captain"='joe darling'; | 2-1598207-1 |
Who was the Home Captain and the Result for AUS by 4 wkts? | CREATE TABLE "england_in_australia_1901_2" (
"date" text,
"home_captain" text,
"away_captain" text,
"venue" text,
"result" text
); | SELECT "home_captain" FROM "england_in_australia_1901_2" WHERE "result"='aus by 4 wkts'; | 2-1598207-1 |
What was the highest match when the away opponent was Dalian Shide Siwu? | CREATE TABLE "s_league" (
"match" real,
"date" text,
"home_away" text,
"opponent_team" text,
"score" text
); | SELECT MAX("match") FROM "s_league" WHERE "opponent_team"='dalian shide siwu' AND "home_away"='away'; | 2-15841571-3 |
Which Home/Away was on April 27, 2008? | CREATE TABLE "s_league" (
"match" real,
"date" text,
"home_away" text,
"opponent_team" text,
"score" text
); | SELECT "home_away" FROM "s_league" WHERE "date"='april 27, 2008'; | 2-15841571-3 |
What was the score on March 3, 2008? | 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'; | 2-15841571-3 |
What is the McCune-Reischauer when the 2000 n South Korea population * is more than 6,796,227 people, and a Hangul of 송? | CREATE TABLE "list" (
"hangul" text,
"hanja" text,
"revised" text,
"mc_cune_reischauer" text,
"2000_n_south_korea_population" real
); | SELECT "mc_cune_reischauer" FROM "list" WHERE "2000_n_south_korea_population">'6,796,227' AND "hangul"='송'; | 2-15838180-1 |
What is the Hanja for McCune-Reischauer of chŏn? | CREATE TABLE "list" (
"hangul" text,
"hanja" text,
"revised" text,
"mc_cune_reischauer" text,
"2000_n_south_korea_population" real
); | SELECT "hanja" FROM "list" WHERE "mc_cune_reischauer"='chŏn'; | 2-15838180-1 |
What is the Hangul when the Hanja is 西, 徐? | CREATE TABLE "list" (
"hangul" text,
"hanja" text,
"revised" text,
"mc_cune_reischauer" text,
"2000_n_south_korea_population" real
); | SELECT "hangul" FROM "list" WHERE "hanja"='西, 徐'; | 2-15838180-1 |
What is the Venue with a Result that is win, and a Score that is 5-0? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "venue" FROM "international_goals" WHERE "result"='win' AND "score"='5-0'; | 2-15630848-2 |
What is the Competition with a Result of win with a Score that is 1-0? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "result"='win' AND "score"='1-0'; | 2-15630848-2 |
How many total Gold medals did the nation ranked #3 receive? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("gold") FROM "medal_table" WHERE "rank"='3'; | 2-15981161-1 |
What ship size had a cargo value of $46,000 in 2006? | CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "ship_size" FROM "recent_markets" WHERE "2006"='$46,000'; | 2-15923603-2 |
What ship size had a cargo value of $31,750 in 2006? | CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "ship_size" FROM "recent_markets" WHERE "2006"='$31,750'; | 2-15923603-2 |
What was the cargo value in 2005 with a ship size of all product carriers? | CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "2005" FROM "recent_markets" WHERE "ship_size"='all product carriers'; | 2-15923603-2 |
What was the cargo value in 2004 for ship size? | CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "2004" FROM "recent_markets" WHERE "ship_size"='ship size'; | 2-15923603-2 |
What cargo was contained in a ship size of aframax? | CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "cargo" FROM "recent_markets" WHERE "ship_size"='aframax'; | 2-15923603-2 |
What was the cargo value in 2005 for all product carriers? | CREATE TABLE "recent_markets" (
"ship_size" text,
"cargo" text,
"2004" text,
"2005" text,
"2006" text
); | SELECT "2005" FROM "recent_markets" WHERE "cargo"='all product carriers'; | 2-15923603-2 |
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 | CREATE TABLE "vital_statistics" (
"average_population_x_1_000" text,
"live_births" text,
"deaths" text,
"natural_change" text,
"migration" text,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_000" real,
"natural_change_per_1_000" real,
"migration_per_1_000" real
); | 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; | 2-15663-1 |
Which Natural change (per 1,000) has Deaths of 17 413, and a Migration (per 1,000) larger than -7.35? | CREATE TABLE "vital_statistics" (
"average_population_x_1_000" text,
"live_births" text,
"deaths" text,
"natural_change" text,
"migration" text,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_000" real,
"natural_change_per_1_000" real,
"migration_per_1_000" real
); | SELECT MIN("natural_change_per_1_000") FROM "vital_statistics" WHERE "deaths"='17 413' AND "migration_per_1_000">-7.35; | 2-15663-1 |
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? | CREATE TABLE "vital_statistics" (
"average_population_x_1_000" text,
"live_births" text,
"deaths" text,
"natural_change" text,
"migration" text,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_000" real,
"natural_change_per_1_000" real,
"migration_per_1_000" real
); | 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; | 2-15663-1 |
What kind of Live births has a Migration of -14 873? | CREATE TABLE "vital_statistics" (
"average_population_x_1_000" text,
"live_births" text,
"deaths" text,
"natural_change" text,
"migration" text,
"crude_birth_rate_per_1_000" real,
"crude_death_rate_per_1_000" real,
"natural_change_per_1_000" real,
"migration_per_1_000" real
); | SELECT "live_births" FROM "vital_statistics" WHERE "migration"='-14 873'; | 2-15663-1 |
What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162? | CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"games" real,
"goals" real,
"goals_games" real
); | SELECT AVG("goals_games") FROM "list_of_top_association_football_goal_sc" WHERE "name"='rummenigge, karl-heinz' AND "goals"<162; | 2-1590321-29 |
What is the sum of Games for Allofs, Klaus, with Goals less than 177? | CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"games" real,
"goals" real,
"goals_games" real
); | SELECT SUM("games") FROM "list_of_top_association_football_goal_sc" WHERE "name"='allofs, klaus' AND "goals"<177; | 2-1590321-29 |
What is the highest Rank for more than 220 goals in 1965–1978-78? | CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"games" real,
"goals" real,
"goals_games" real
); | SELECT MAX("rank") FROM "list_of_top_association_football_goal_sc" WHERE "goals">220 AND "years"='1965–1978-78'; | 2-1590321-29 |
Who is the composer of El Hanone? | CREATE TABLE "track_listing" (
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text
); | SELECT "composer" FROM "track_listing" WHERE "title"='el hanone'; | 2-15321099-1 |
Which arranger worked with composer Imad Shams Eldeen at 4:03? | 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'; | 2-15321099-1 |
What is the title track that is 3:50 and arranged by Tarek Akef? | CREATE TABLE "track_listing" (
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text
); | SELECT "title" FROM "track_listing" WHERE "arranger"='tarek akef' AND "length"='3:50'; | 2-15321099-1 |
Who is the arranger for Ana Rouh? | CREATE TABLE "track_listing" (
"title" text,
"length" text,
"writer" text,
"composer" text,
"arranger" text
); | SELECT "arranger" FROM "track_listing" WHERE "title"='ana rouh'; | 2-15321099-1 |
Who was the writer that worked with arranger Tarek Akef on a 4:58 song? | 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'; | 2-15321099-1 |
What is the year of the ceremony with a not nominated result and ničiji sin as the original title? | CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director_s" text,
"result" text
); | SELECT "year_ceremony" FROM "submissions" WHERE "result"='not nominated' AND "original_title"='ničiji sin'; | 2-16073541-1 |
What is the year of the ceremony with the original title ničiji sin? | CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director_s" text,
"result" text
); | SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='ničiji sin'; | 2-16073541-1 |
What is the result of the ceremony in 2006 (79th)? | CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director_s" text,
"result" text
); | SELECT "result" FROM "submissions" WHERE "year_ceremony"='2006 (79th)'; | 2-16073541-1 |
What is the film title used for nomination with the original title sedamdeset i dva dana? | CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director_s" text,
"result" text
); | SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "original_title"='sedamdeset i dva dana'; | 2-16073541-1 |
Who is the director of Cannibal vegetarian, which is the film title used in nomination? | CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director_s" text,
"result" text
); | SELECT "director_s" FROM "submissions" WHERE "film_title_used_in_nomination"='cannibal vegetarian'; | 2-16073541-1 |
What is the average First Downs for december 4? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"result" text,
"record" text,
"opponent" text,
"points_for" real,
"points_against" real,
"first_downs" real,
"attendance" real
); | SELECT AVG("first_downs") FROM "schedule" WHERE "date"='december 4'; | 2-15847691-2 |
What is the lowest Attendance against the tampa bay buccaneers, with Points Against of less than 7? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"result" text,
"record" text,
"opponent" text,
"points_for" real,
"points_against" real,
"first_downs" real,
"attendance" real
); | SELECT MIN("attendance") FROM "schedule" WHERE "opponent"='tampa bay buccaneers' AND "points_against"<7; | 2-15847691-2 |
What is the highest Points when the record was 12–2, and the Points Against are larger than 6? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"result" text,
"record" text,
"opponent" text,
"points_for" real,
"points_against" real,
"first_downs" real,
"attendance" real
); | SELECT MAX("points_for") FROM "schedule" WHERE "record"='12–2' AND "points_against">6; | 2-15847691-2 |
Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency? | CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
); | SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='prolonged' AND "condition"='factor v deficiency'; | 2-1555308-1 |
Which Condition has a Bleeding time of prolonged, a Platelet count of decreased, and Prothrombin time of prolonged? | CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
); | SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='prolonged' AND "platelet_count"='decreased' AND "prothrombin_time"='prolonged'; | 2-1555308-1 |
Which Platelet count has a Partial thromboplastin time of prolonged or unaffected? | CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
); | SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='prolonged or unaffected'; | 2-1555308-1 |
Which Prothrombin time that has a Partial thromboplastin time of unaffected, and a Condition of thrombocytopenia? | CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
); | SELECT "prothrombin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='unaffected' AND "condition"='thrombocytopenia'; | 2-1555308-1 |
Which Condition has a Bleeding time of unaffected and a Prothrombin time of prolonged? | CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
); | SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='unaffected' AND "prothrombin_time"='prolonged'; | 2-1555308-1 |
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 | CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
); | 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'; | 2-1555308-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.