question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
how many times is the fa cup apps more than 0, the position mf and the league goals 4?
|
CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" real,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
);
|
SELECT COUNT("total_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps">0 AND "position"='mf' AND "league_goals"=4;
|
2-18700010-1
|
What is the district with more than 1,246,756 electorates and a constituency number of 191?
|
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
|
SELECT "district" FROM "assembly_segments" WHERE "number_of_electorates_2009">'1,246,756' AND "constituency_number"='191';
|
2-18518062-1
|
What is the total number of electorates in 2009 with a constituency of 193?
|
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
|
SELECT COUNT("number_of_electorates_2009") FROM "assembly_segments" WHERE "constituency_number"='193';
|
2-18518062-1
|
What is the reserved for the constituency of 192?
|
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
|
SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "constituency_number"='192';
|
2-18518062-1
|
Which Artist has a Percentage of 11.32%?
|
CREATE TABLE "results_of_heat_9" (
"draw" real,
"artist" text,
"song" text,
"percentage" text,
"place" real
);
|
SELECT "artist" FROM "results_of_heat_9" WHERE "percentage"='11.32%';
|
2-18593648-11
|
What is the week for November 28, 1982?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT MIN("week") FROM "schedule" WHERE "date"='november 28, 1982';
|
2-18681061-1
|
What is the attendance number when the result is l 41-37?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT "attendance" FROM "schedule" WHERE "result"='l 41-37';
|
2-18681061-1
|
What is the attendance in a week earlier than 4, and result is w 31-20?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT AVG("attendance") FROM "schedule" WHERE "week"<4 AND "result"='w 31-20';
|
2-18681061-1
|
What is the opponent in a week larger than 1, with a result of l 21-20?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT "opponent" FROM "schedule" WHERE "week">1 AND "result"='l 21-20';
|
2-18681061-1
|
What sport was played by the team founded in 2010?
|
CREATE TABLE "sports" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text
);
|
SELECT "sport" FROM "sports" WHERE "founded"=2010;
|
2-18522615-2
|
What club team was founded before 2011 and plays at the champion window field?
|
CREATE TABLE "sports" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text
);
|
SELECT "club" FROM "sports" WHERE "founded"<2011 AND "venue"='champion window field';
|
2-18522615-2
|
How many different dates are there for founded teams for the venue of champion window field?
|
CREATE TABLE "sports" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text
);
|
SELECT COUNT("founded") FROM "sports" WHERE "venue"='champion window field';
|
2-18522615-2
|
What club team plays at the champion window field?
|
CREATE TABLE "sports" (
"club" text,
"sport" text,
"founded" real,
"league" text,
"venue" text
);
|
SELECT "club" FROM "sports" WHERE "venue"='champion window field';
|
2-18522615-2
|
How much Gross Domestic Product has a US Dollar Exchange of 12.19 algerian dinars, and an Inflation Index (2000=100) larger than 22?
|
CREATE TABLE "historical_trend" (
"year" real,
"gross_domestic_product" real,
"us_dollar_exchange" text,
"inflation_index_2000_100" real,
"per_capita_income_as_pct_of_usa" real
);
|
SELECT SUM("gross_domestic_product") FROM "historical_trend" WHERE "us_dollar_exchange"='12.19 algerian dinars' AND "inflation_index_2000_100">22;
|
2-18949128-1
|
Which Gross Domestic Product has an Inflation Index (2000=100) smaller than 9.3?
|
CREATE TABLE "historical_trend" (
"year" real,
"gross_domestic_product" real,
"us_dollar_exchange" text,
"inflation_index_2000_100" real,
"per_capita_income_as_pct_of_usa" real
);
|
SELECT AVG("gross_domestic_product") FROM "historical_trend" WHERE "inflation_index_2000_100"<9.3;
|
2-18949128-1
|
Which Inflation Index (2000=100) has a Per Capita Income (as % of USA) of 10.65, and a Year smaller than 1990?
|
CREATE TABLE "historical_trend" (
"year" real,
"gross_domestic_product" real,
"us_dollar_exchange" text,
"inflation_index_2000_100" real,
"per_capita_income_as_pct_of_usa" real
);
|
SELECT MAX("inflation_index_2000_100") FROM "historical_trend" WHERE "per_capita_income_as_pct_of_usa"=10.65 AND "year"<1990;
|
2-18949128-1
|
What release date has 6998 as the production num.?
|
CREATE TABLE "1935" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
|
SELECT "release_date" FROM "1935" WHERE "production_num"='6998';
|
2-18792938-6
|
What director has lt as the series, with 6982 as the production num.?
|
CREATE TABLE "1935" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
|
SELECT "director" FROM "1935" WHERE "series"='lt' AND "production_num"='6982';
|
2-18792938-6
|
What series has 1935-07-13 as the release date?
|
CREATE TABLE "1935" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
|
SELECT "series" FROM "1935" WHERE "release_date"='1935-07-13';
|
2-18792938-6
|
What title has lt as the series, ben hardaway as the director, with 6612 as the production num.?
|
CREATE TABLE "1935" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
|
SELECT "title" FROM "1935" WHERE "series"='lt' AND "director"='ben hardaway' AND "production_num"='6612';
|
2-18792938-6
|
What is the song title from 1963 on the Pacific Jazz label, and a Label-Nr of st-81?
|
CREATE TABLE "albums_as" (
"year" real,
"title" text,
"type" text,
"label" text,
"label_nr" text
);
|
SELECT "title" FROM "albums_as" WHERE "label"='pacific jazz' AND "year"=1963 AND "label_nr"='st-81';
|
2-1892579-1
|
What is the earliest year with a label-Nr of st-43?
|
CREATE TABLE "albums_as" (
"year" real,
"title" text,
"type" text,
"label" text,
"label_nr" text
);
|
SELECT MIN("year") FROM "albums_as" WHERE "label_nr"='st-43';
|
2-1892579-1
|
What is the song title on the Pacific Jazz label, and a Label-Nr of st-20124?
|
CREATE TABLE "albums_as" (
"year" real,
"title" text,
"type" text,
"label" text,
"label_nr" text
);
|
SELECT "title" FROM "albums_as" WHERE "label"='pacific jazz' AND "label_nr"='st-20124';
|
2-1892579-1
|
What is the type earlier than 1968, and a Title of stretchin' out?
|
CREATE TABLE "albums_as" (
"year" real,
"title" text,
"type" text,
"label" text,
"label_nr" text
);
|
SELECT "type" FROM "albums_as" WHERE "year"<1968 AND "title"='stretchin'' out';
|
2-1892579-1
|
what is the team that is pick 31?
|
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
|
SELECT "team" FROM "supplemental_first_round_selections" WHERE "pick"=31;
|
2-18501840-2
|
what is the position when the pick is higher than 32 and the team is atlanta braves?
|
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
|
SELECT "position" FROM "supplemental_first_round_selections" WHERE "pick">32 AND "team"='atlanta braves';
|
2-18501840-2
|
what is the position when the pick is higher than 33 and the school is tottenville hs (staten island, ny)?
|
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
|
SELECT "position" FROM "supplemental_first_round_selections" WHERE "pick">33 AND "school"='tottenville hs (staten island, ny)';
|
2-18501840-2
|
What is the Attendance of the game in Week 12?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT MAX("attendance") FROM "schedule" WHERE "week"=12;
|
2-18842968-2
|
What is the Opponent on December 3, 1979?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT "opponent" FROM "schedule" WHERE "date"='december 3, 1979';
|
2-18842968-2
|
What is the Result of the game against Philadelphia Eagles?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT "result" FROM "schedule" WHERE "opponent"='philadelphia eagles';
|
2-18842968-2
|
What is the score March 27?
|
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
|
SELECT "score" FROM "playoffs" WHERE "date"='march 27';
|
2-18409087-9
|
What is the score for the game larger than 4 in series 3-2?
|
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
|
SELECT "score" FROM "playoffs" WHERE "game">4 AND "series"='3-2';
|
2-18409087-9
|
What is the game number for series 4-2?
|
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
|
SELECT COUNT("game") FROM "playoffs" WHERE "series"='4-2';
|
2-18409087-9
|
What date has a game smaller than 4, and a score of 116-114?
|
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
|
SELECT "date" FROM "playoffs" WHERE "game"<4 AND "score"='116-114';
|
2-18409087-9
|
What is the game number on April 7?
|
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"series" text
);
|
SELECT COUNT("game") FROM "playoffs" WHERE "date"='april 7';
|
2-18409087-9
|
Which Opposing Team has an Against smaller than 19, and a Date of 20/05/1979?
|
CREATE TABLE "matches" (
"opposing_team" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
|
SELECT "opposing_team" FROM "matches" WHERE "against"<19 AND "date"='20/05/1979';
|
2-18787978-1
|
What was the production number of the episode titel of pre-hysterical hare?
|
CREATE TABLE "1958" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
|
SELECT COUNT("production_number") FROM "1958" WHERE "title"='pre-hysterical hare';
|
2-18792948-9
|
What director had a production number of 1490?
|
CREATE TABLE "1958" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
|
SELECT "director" FROM "1958" WHERE "production_number"=1490;
|
2-18792948-9
|
Which title was directed by chuck jones and released on 1958-04-12?
|
CREATE TABLE "1958" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text
);
|
SELECT "title" FROM "1958" WHERE "director"='chuck jones' AND "release_date"='1958-04-12';
|
2-18792948-9
|
Which Name has a Time larger than 53.06, and a Lane smaller than 8, and a Rank larger than 2, and a Nationality of japan?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
|
SELECT "name" FROM "semifinal_1" WHERE "time">53.06 AND "lane"<8 AND "rank">2 AND "nationality"='japan';
|
2-18624696-4
|
How many lanes have a Time of 53.61, and a Rank larger than 3?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
|
SELECT SUM("lane") FROM "semifinal_1" WHERE "time"=53.61 AND "rank">3;
|
2-18624696-4
|
What is the 3rd day result when the 2nd day was rowed-over in 2010?
|
CREATE TABLE "may_bumps" (
"year" real,
"finish_position" text,
"1st_day" text,
"2nd_day" text,
"3rd_day" text,
"4th_day" text
);
|
SELECT "3rd_day" FROM "may_bumps" WHERE "2nd_day"='rowed-over' AND "year"=2010;
|
2-18880596-3
|
What is the 3rd day result when the 4th day was bumped Fitzwilliam?
|
CREATE TABLE "may_bumps" (
"year" real,
"finish_position" text,
"1st_day" text,
"2nd_day" text,
"3rd_day" text,
"4th_day" text
);
|
SELECT "3rd_day" FROM "may_bumps" WHERE "4th_day"='bumped fitzwilliam';
|
2-18880596-3
|
What is the finish position in the year prior to 2009?
|
CREATE TABLE "may_bumps" (
"year" real,
"finish_position" text,
"1st_day" text,
"2nd_day" text,
"3rd_day" text,
"4th_day" text
);
|
SELECT "finish_position" FROM "may_bumps" WHERE "year"<2009;
|
2-18880596-3
|
What is the result for the first day in a year prior to 2011 when the 4th day's result is bumped Girton?
|
CREATE TABLE "may_bumps" (
"year" real,
"finish_position" text,
"1st_day" text,
"2nd_day" text,
"3rd_day" text,
"4th_day" text
);
|
SELECT "1st_day" FROM "may_bumps" WHERE "year"<2011 AND "4th_day"='bumped girton';
|
2-18880596-3
|
Which #/ County has a Location of ossian?
|
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
|
SELECT "num_county" FROM "membership" WHERE "location"='ossian';
|
2-18936832-1
|
How much Enrollment has an IHSAA Class of aaaaa, and a Mascot of spartans?
|
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
|
SELECT COUNT("enrollment") FROM "membership" WHERE "ihsaa_class"='aaaaa' AND "mascot"='spartans';
|
2-18936832-1
|
How much Enrollment has a School of fort wayne homestead?
|
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
|
SELECT SUM("enrollment") FROM "membership" WHERE "school"='fort wayne homestead';
|
2-18936832-1
|
Which IHSAA Class has a Location of columbia city?
|
CREATE TABLE "membership" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"num_county" text
);
|
SELECT "ihsaa_class" FROM "membership" WHERE "location"='columbia city';
|
2-18936832-1
|
Who was the opponent at the game with a score of 111-106?
|
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
|
SELECT "opponent" FROM "game_log" WHERE "score"='111-106';
|
2-18409087-4
|
What was the location of the game with a score of 113-106?
|
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
|
SELECT "location_attendance" FROM "game_log" WHERE "score"='113-106';
|
2-18409087-4
|
What is the highest pick number for a pick drafted by the denver broncos?
|
CREATE TABLE "third_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
|
SELECT MAX("pick") FROM "third_round" WHERE "team"='denver broncos';
|
2-18652198-3
|
What opponent has l 27-7 as the result?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT "opponent" FROM "schedule" WHERE "result"='l 27-7';
|
2-18842963-2
|
How many weeks has 54,187 as the attendance?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='54,187';
|
2-18842963-2
|
How many weeks have an attendance greater than 55,121, and l 27-7 as the result?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT SUM("week") FROM "schedule" WHERE "attendance">'55,121' AND "result"='l 27-7';
|
2-18842963-2
|
What tournament had Alberta Brianti as an opponent with a score of 6-4 2-6 6-2?
|
CREATE TABLE "singles_15_10_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
|
SELECT "tournament" FROM "singles_15_10_5" WHERE "opponent"='alberta brianti' AND "score"='6-4 2-6 6-2';
|
2-18586543-4
|
When was the score 3-6 4-6?
|
CREATE TABLE "singles_15_10_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
|
SELECT "date" FROM "singles_15_10_5" WHERE "score"='3-6 4-6';
|
2-18586543-4
|
What is the Rank of the Swimmer with a Time of 2:25.65 in a Lane larger than 3?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT AVG("rank") FROM "semifinal_2" WHERE "time"='2:25.65' AND "lane">3;
|
2-18625509-5
|
What is the Rank of Qi Hui?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT COUNT("rank") FROM "semifinal_2" WHERE "name"='qi hui';
|
2-18625509-5
|
How many Forfeits have Wins smaller than 8, and Losses larger than 16?
|
CREATE TABLE "2012_ladder" (
"millewa" text,
"wins" real,
"forfeits" real,
"losses" real,
"draws" real,
"against" real
);
|
SELECT COUNT("forfeits") FROM "2012_ladder" WHERE "wins"<8 AND "losses">16;
|
2-18974130-4
|
How many Losses have a Millewa of nangiloc?
|
CREATE TABLE "2012_ladder" (
"millewa" text,
"wins" real,
"forfeits" real,
"losses" real,
"draws" real,
"against" real
);
|
SELECT COUNT("losses") FROM "2012_ladder" WHERE "millewa"='nangiloc';
|
2-18974130-4
|
How many Losses have Draws larger than 0?
|
CREATE TABLE "2012_ladder" (
"millewa" text,
"wins" real,
"forfeits" real,
"losses" real,
"draws" real,
"against" real
);
|
SELECT MAX("losses") FROM "2012_ladder" WHERE "draws">0;
|
2-18974130-4
|
What is the spike for the club of d.c. in 2008?
|
CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
|
SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='d.c.';
|
2-18719696-6
|
What is the average rank of Elise Matthysen in lanes under 8?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT AVG("rank") FROM "semifinal_1" WHERE "name"='elise matthysen' AND "lane"<8;
|
2-18625479-4
|
What is the time of Yuliya Yefimova?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "time" FROM "semifinal_1" WHERE "name"='yuliya yefimova';
|
2-18625479-4
|
Who was from Great Britain in lanes under number 3?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "name" FROM "semifinal_1" WHERE "lane"<3 AND "nationality"='great britain';
|
2-18625479-4
|
What wheel arrangement was made in 1910?
|
CREATE TABLE "4_6_2" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"serial_numbers" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text,
"year_s_retired" text
);
|
SELECT "wheel_arrangement" FROM "4_6_2" WHERE "year_made"='1910';
|
2-18620528-12
|
What year were the retired serial numbers 27317–27336?
|
CREATE TABLE "4_6_2" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufacturer" text,
"serial_numbers" text,
"year_made" text,
"quantity_made" text,
"quantity_preserved" text,
"year_s_retired" text
);
|
SELECT "year_s_retired" FROM "4_6_2" WHERE "serial_numbers"='27317–27336';
|
2-18620528-12
|
Which Surface has a score of 7-5, 5-7, 6-3?
|
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "surface" FROM "doubles_titles" WHERE "score"='7-5, 5-7, 6-3';
|
2-18524998-2
|
Which tournament has a Score of 6-4, 6-4?
|
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "tournament" FROM "doubles_titles" WHERE "score"='6-4, 6-4';
|
2-18524998-2
|
What was the Surface on during 10 November 2006?
|
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "surface" FROM "doubles_titles" WHERE "date"='10 november 2006';
|
2-18524998-2
|
What was the Score on 25 May 2007?
|
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "score" FROM "doubles_titles" WHERE "date"='25 may 2007';
|
2-18524998-2
|
What was the score on 10 November 2006?
|
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "score" FROM "doubles_titles" WHERE "date"='10 november 2006';
|
2-18524998-2
|
Which Partnering has a Score of 6-3, 4-6, 6-4?
|
CREATE TABLE "doubles_titles" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "partnering" FROM "doubles_titles" WHERE "score"='6-3, 4-6, 6-4';
|
2-18524998-2
|
What is the rank for the man from China with notes of QS?
|
CREATE TABLE "heat_2" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
|
SELECT MAX("rank") FROM "heat_2" WHERE "notes"='qs' AND "country"='china';
|
2-18646504-4
|
What is the rank for the competitor from Bulgaria?
|
CREATE TABLE "heat_2" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
|
SELECT MIN("rank") FROM "heat_2" WHERE "country"='bulgaria';
|
2-18646504-4
|
Which athlete is ranked below 5 and is from China?
|
CREATE TABLE "heat_2" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
|
SELECT "athletes" FROM "heat_2" WHERE "rank"<5 AND "country"='china';
|
2-18646504-4
|
Which game was a Platformer?
|
CREATE TABLE "kotaku" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
|
SELECT "game" FROM "kotaku" WHERE "genre"='platformer';
|
2-1851722-39
|
Who was the developer of XCom: Enemy Unknown?
|
CREATE TABLE "kotaku" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
|
SELECT "developer_s" FROM "kotaku" WHERE "game"='xcom: enemy unknown';
|
2-1851722-39
|
Which platform was Red Dead Redemption for?
|
CREATE TABLE "kotaku" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
|
SELECT "platform_s" FROM "kotaku" WHERE "game"='red dead redemption';
|
2-1851722-39
|
What is the highest total for players with under 2 Egyptian Premier League goals and 0 Egypt Cup goals?
|
CREATE TABLE "top_scorers" (
"name" text,
"egyptian_premier_league" real,
"egypt_cup" real,
"caf_champions_league" real,
"total" real
);
|
SELECT MAX("total") FROM "top_scorers" WHERE "egyptian_premier_league"<2 AND "egypt_cup"<0;
|
2-18553497-4
|
What is the aveage Egypt Cup value for players with 0 CAF Champions League goals, 6 Egyptian Premier League goals, and totals under 6?
|
CREATE TABLE "top_scorers" (
"name" text,
"egyptian_premier_league" real,
"egypt_cup" real,
"caf_champions_league" real,
"total" real
);
|
SELECT AVG("egypt_cup") FROM "top_scorers" WHERE "caf_champions_league"=0 AND "egyptian_premier_league"=6 AND "total"<6;
|
2-18553497-4
|
how many times is gold more than 0 and the rank less than 2?
|
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT COUNT("silver") FROM "medal_count_by_country" WHERE "gold">0 AND "rank"<2;
|
2-1866883-2
|
what is the highest total when the nation is france and silver is more than 1?
|
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT MAX("total") FROM "medal_count_by_country" WHERE "nation"='france' AND "silver">1;
|
2-1866883-2
|
what is the least silver for germany when gold is more than 4?
|
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT MIN("silver") FROM "medal_count_by_country" WHERE "nation"='germany' AND "gold">4;
|
2-1866883-2
|
How many times is the total less than 15, rank less than 5, bronze is 4 and gold smaller than 3?
|
CREATE TABLE "medal_count_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT COUNT("silver") FROM "medal_count_by_country" WHERE "total"<15 AND "rank"<5 AND "bronze"=4 AND "gold"<3;
|
2-1866883-2
|
What venue did the game on september 5, 1998 take place at?
|
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
|
SELECT "venue" FROM "international_goals" WHERE "date"='september 5, 1998';
|
2-18394858-1
|
What venue did the 2000 tiger cup take place at on November 10, 2000?
|
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
|
SELECT "venue" FROM "international_goals" WHERE "competition"='2000 tiger cup' AND "date"='november 10, 2000';
|
2-18394858-1
|
What date had a game with a score of 5-4?
|
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
|
SELECT "date" FROM "international_goals" WHERE "score"='5-4';
|
2-18394858-1
|
What is the total of Barangay with an area larger than 865.13?
|
CREATE TABLE "administrative_districts" (
"district" text,
"s_barangay" real,
"population_2010_census" real,
"area_has" real,
"pop_density_per_km2" real
);
|
SELECT SUM("s_barangay") FROM "administrative_districts" WHERE "area_has">865.13;
|
2-184334-2
|
What is the lowest population density for the district of Santa Cruz and a Barangay larger than 82?
|
CREATE TABLE "administrative_districts" (
"district" text,
"s_barangay" real,
"population_2010_census" real,
"area_has" real,
"pop_density_per_km2" real
);
|
SELECT MIN("pop_density_per_km2") FROM "administrative_districts" WHERE "district"='santa cruz' AND "s_barangay">82;
|
2-184334-2
|
What is the highest population density that is less than 115,942 and a Barangay less than 82?
|
CREATE TABLE "administrative_districts" (
"district" text,
"s_barangay" real,
"population_2010_census" real,
"area_has" real,
"pop_density_per_km2" real
);
|
SELECT MAX("pop_density_per_km2") FROM "administrative_districts" WHERE "population_2010_census"<'115,942' AND "s_barangay"<82;
|
2-184334-2
|
What is the total population with a population density less than 29,384.8 in San Nicolas?
|
CREATE TABLE "administrative_districts" (
"district" text,
"s_barangay" real,
"population_2010_census" real,
"area_has" real,
"pop_density_per_km2" real
);
|
SELECT SUM("population_2010_census") FROM "administrative_districts" WHERE "pop_density_per_km2"<'29,384.8' AND "district"='san nicolas';
|
2-184334-2
|
What is the average number of golds for teams in rank 17 with more than 4 silver?
|
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT AVG("gold") FROM "medal_table" WHERE "rank"='17' AND "silver">4;
|
2-18935397-2
|
What is the average total for teams with under 34 bronzes, 0 silver, and under 14 gold?
|
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT AVG("total") FROM "medal_table" WHERE "bronze"<34 AND "gold"<14 AND "silver"<0;
|
2-18935397-2
|
What is the fewest number of golds for teams with 0 silver?
|
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT MIN("gold") FROM "medal_table" WHERE "silver"<0;
|
2-18935397-2
|
What nations participated in 2007?
|
CREATE TABLE "world_championships_and_world_cups" (
"sport" text,
"body" text,
"year" text,
"event_type" text,
"location" text,
"nations" text
);
|
SELECT "nations" FROM "world_championships_and_world_cups" WHERE "year"='2007';
|
2-18395182-1
|
What event type had BODY CMAS in 1980 and underwater hockey?
|
CREATE TABLE "world_championships_and_world_cups" (
"sport" text,
"body" text,
"year" text,
"event_type" text,
"location" text,
"nations" text
);
|
SELECT "event_type" FROM "world_championships_and_world_cups" WHERE "body"='cmas' AND "year"='1980' AND "sport"='underwater hockey';
|
2-18395182-1
|
What body is at the World Championship for Underwater Target shooting?
|
CREATE TABLE "world_championships_and_world_cups" (
"sport" text,
"body" text,
"year" text,
"event_type" text,
"location" text,
"nations" text
);
|
SELECT "body" FROM "world_championships_and_world_cups" WHERE "event_type"='world championship' AND "sport"='underwater target shooting';
|
2-18395182-1
|
What body participated in 1973?
|
CREATE TABLE "world_championships_and_world_cups" (
"sport" text,
"body" text,
"year" text,
"event_type" text,
"location" text,
"nations" text
);
|
SELECT "body" FROM "world_championships_and_world_cups" WHERE "year"='1973';
|
2-18395182-1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.