question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
What's the value of 1 USD in Paraguay?
|
CREATE TABLE "currency" (
"country" text,
"currency" text,
"1_euro" text,
"1_usd" text,
"central_bank" text
);
|
SELECT "1_usd" FROM "currency" WHERE "country"='Paraguay';
|
1-1222653-10
|
What's the value of 1 Euro in the country where the value of 1 USD is 483.050 of the local currency?
|
CREATE TABLE "currency" (
"country" text,
"currency" text,
"1_euro" text,
"1_usd" text,
"central_bank" text
);
|
SELECT "1_euro" FROM "currency" WHERE "1_usd"='483.050';
|
1-1222653-10
|
What's the name of the central bank in the country where Colombian Peso (cop) is the local currency?
|
CREATE TABLE "currency" (
"country" text,
"currency" text,
"1_euro" text,
"1_usd" text,
"central_bank" text
);
|
SELECT "central_bank" FROM "currency" WHERE "currency"='Colombian peso (COP)';
|
1-1222653-10
|
What's the name of the country where 1 USD equals 1.71577 of the local currency.
|
CREATE TABLE "currency" (
"country" text,
"currency" text,
"1_euro" text,
"1_usd" text,
"central_bank" text
);
|
SELECT "country" FROM "currency" WHERE "1_usd"='1.71577';
|
1-1222653-10
|
what's the minimum production code written by jay sommers & dick chevillat and al schwartz
|
CREATE TABLE "table1_12226390_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT MIN("production_code") FROM "table1_12226390_3" WHERE "written_by"='Jay Sommers & Dick Chevillat and Al Schwartz';
|
1-12226390-3
|
what's the total number of title for production code 39
|
CREATE TABLE "table1_12226390_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT COUNT("title") FROM "table1_12226390_3" WHERE "production_code"=39;
|
1-12226390-3
|
Who wrote the episode 14 in series?
|
CREATE TABLE "table1_12226390_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT "written_by" FROM "table1_12226390_2" WHERE "no_in_series"=14;
|
1-12226390-2
|
Who directed the episode with production code 28?
|
CREATE TABLE "table1_12226390_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT "directed_by" FROM "table1_12226390_2" WHERE "production_code"=28;
|
1-12226390-2
|
What is the original air date for the episode "a pig in a poke"?
|
CREATE TABLE "table1_12226390_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT "original_air_date" FROM "table1_12226390_2" WHERE "title"='\"A Pig in a Poke\"';
|
1-12226390-2
|
How many episodes were titled "a pig in a poke"?
|
CREATE TABLE "table1_12226390_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT COUNT("written_by") FROM "table1_12226390_2" WHERE "title"='\"A Pig in a Poke\"';
|
1-12226390-2
|
Who wrote the episode titled "the wedding anniversary"?
|
CREATE TABLE "table1_12226390_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT "written_by" FROM "table1_12226390_2" WHERE "title"='\"The Wedding Anniversary\"';
|
1-12226390-2
|
What's the title of the episode with a season number 25?
|
CREATE TABLE "table1_12226390_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT "title" FROM "table1_12226390_6" WHERE "no_in_season"=25;
|
1-12226390-6
|
What's the title of the episode with a production code 136?
|
CREATE TABLE "table1_12226390_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT "title" FROM "table1_12226390_6" WHERE "production_code"=136;
|
1-12226390-6
|
What is the original air date for "Oliver's Jaded Past"?
|
CREATE TABLE "table1_12226390_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT "original_air_date" FROM "table1_12226390_4" WHERE "title"='\"Oliver''s Jaded Past\"';
|
1-12226390-4
|
What episode was written by Bobby Bell and Bill Lee?
|
CREATE TABLE "table1_12226390_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
|
SELECT MAX("no_in_season") FROM "table1_12226390_4" WHERE "written_by"='Bobby Bell and Bill Lee';
|
1-12226390-4
|
How many women doubles teams competed in the same year as when Jamie van Hooijdonk competed in men singles?
|
CREATE TABLE "21st_century" (
"season" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT COUNT("womens_doubles") FROM "21st_century" WHERE "mens_singles"='Jamie van Hooijdonk';
|
1-12232843-1
|
what is the maximum number of hull numbers?
|
CREATE TABLE "table1_12232526_2" (
"class" text,
"ship_name" text,
"origin" text,
"hull_numbers" real,
"service_years" text,
"previously" text,
"note" text
);
|
SELECT MAX("hull_numbers") FROM "table1_12232526_2";
|
1-12232526-2
|
who is the class where note is reportedly still active as of 2012?
|
CREATE TABLE "table1_12232526_2" (
"class" text,
"ship_name" text,
"origin" text,
"hull_numbers" real,
"service_years" text,
"previously" text,
"note" text
);
|
SELECT "class" FROM "table1_12232526_2" WHERE "note"='Reportedly still active as of 2012';
|
1-12232526-2
|
what is the maximum number of hull nunbers where ship name is kri yos sudarso?
|
CREATE TABLE "table1_12232526_2" (
"class" text,
"ship_name" text,
"origin" text,
"hull_numbers" real,
"service_years" text,
"previously" text,
"note" text
);
|
SELECT MAX("hull_numbers") FROM "table1_12232526_2" WHERE "ship_name"='KRI Yos Sudarso';
|
1-12232526-2
|
What titles were fought for on 1997-04-12?
|
CREATE TABLE "list_of_boxing_quintuple_or_five_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
|
SELECT "titles" FROM "list_of_boxing_quintuple_or_five_divisio" WHERE "date"='1997-04-12';
|
1-12262182-2
|
What is the date of the match for the lineal super lightweight (140)?
|
CREATE TABLE "list_of_boxing_quintuple_or_five_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
|
SELECT "date" FROM "list_of_boxing_quintuple_or_five_divisio" WHERE "titles"='Lineal Super lightweight (140)';
|
1-12262182-2
|
What is the date of the match for the wbc flyweight (112) title?
|
CREATE TABLE "list_of_boxing_quintuple_or_five_divisio" (
"number" real,
"name" text,
"titles" text,
"date" text,
"opponent" text,
"result" text,
"defenses" real
);
|
SELECT "date" FROM "list_of_boxing_quintuple_or_five_divisio" WHERE "titles"='WBC Flyweight (112)';
|
1-12262182-2
|
Who's the leader in the young rider classification in stage 12?
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
|
SELECT "young_rider_classification" FROM "classification_leadership_by_stage" WHERE "stage"='12';
|
1-12261714-2
|
Who's leading in the general classification in stage 1a?
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
|
SELECT "general_classification" FROM "classification_leadership_by_stage" WHERE "stage"='1a';
|
1-12261714-2
|
How many leaders are there in the intergiro classification in stage 20?
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
|
SELECT COUNT("intergiro_classification") FROM "classification_leadership_by_stage" WHERE "stage"='20';
|
1-12261714-2
|
What's the leader team in the Trofeo Fast Team in stage 20?
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
|
SELECT "trofeo_fast_team" FROM "classification_leadership_by_stage" WHERE "stage"='20';
|
1-12261714-2
|
Who's the winner in stage 1a, where the leader in the young rider classification is Francesco Casagrande?
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
|
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='Francesco Casagrande' AND "stage"='1a';
|
1-12261714-2
|
Who's the leader in the general classification in stage 1a?
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
|
SELECT "general_classification" FROM "classification_leadership_by_stage" WHERE "stage"='1a';
|
1-12261714-2
|
Name the general classification of stage 15
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"trofeo_fast_team" text
);
|
SELECT COUNT("general_classification") FROM "classification_leadership_by_stage" WHERE "stage"='15';
|
1-12261806-2
|
Name the trofeo fast team of stage 2
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"trofeo_fast_team" text
);
|
SELECT "trofeo_fast_team" FROM "classification_leadership_by_stage" WHERE "stage"='2';
|
1-12261806-2
|
Name the young rider classification with laudelino cubino
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"trofeo_fast_team" text
);
|
SELECT "young_rider_classification" FROM "classification_leadership_by_stage" WHERE "winner"='Laudelino Cubino';
|
1-12261806-2
|
Name the total number of trofeo fast team of stage 16
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"trofeo_fast_team" text
);
|
SELECT COUNT("trofeo_fast_team") FROM "classification_leadership_by_stage" WHERE "stage"='16';
|
1-12261806-2
|
What kind of bleeding does aspirin cause?
|
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
|
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Aspirin';
|
1-1226250-1
|
How in prothrombin affected by glanzmann's thrombasthenia.
|
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 "condition"='Glanzmann''s thrombasthenia';
|
1-1226250-1
|
How long does thromboplastin last when prothrombin is unaffected?
|
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 "bleeding_time"='Unaffected' AND "prothrombin_time"='Unaffected';
|
1-1226250-1
|
Is uremia affect prothrombin?
|
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 "condition"='Uremia';
|
1-1226250-1
|
Is prothrombin time long when thromboplastin is prolonged?
|
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 "bleeding_time"='Prolonged' AND "partial_thromboplastin_time"='Prolonged';
|
1-1226250-1
|
How many live births were there in 2006 in South Yorkshire (met county)?
|
CREATE TABLE "references" (
"county" text,
"live_births_2006" real,
"gfr_2006" text,
"tfr_2006" text,
"whites_as_pct_of_pop" text
);
|
SELECT "live_births_2006" FROM "references" WHERE "county"='South Yorkshire (Met County)';
|
1-12251936-1
|
How many TFR were there in 2006 when the GFR was 53.8?
|
CREATE TABLE "references" (
"county" text,
"live_births_2006" real,
"gfr_2006" text,
"tfr_2006" text,
"whites_as_pct_of_pop" text
);
|
SELECT "tfr_2006" FROM "references" WHERE "gfr_2006"='53.8';
|
1-12251936-1
|
How many times was the GFR 2006 equal to 53.2?
|
CREATE TABLE "references" (
"county" text,
"live_births_2006" real,
"gfr_2006" text,
"tfr_2006" text,
"whites_as_pct_of_pop" text
);
|
SELECT COUNT("whites_as_pct_of_pop") FROM "references" WHERE "gfr_2006"='53.2';
|
1-12251936-1
|
How many mens doubles took place in 1970/1971?
|
CREATE TABLE "table1_12266757_1" (
"season" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT COUNT("mens_doubles") FROM "table1_12266757_1" WHERE "season"='1970/1971';
|
1-12266757-1
|
Where were the Womens Doubles in the 1951/1952 season and who won?
|
CREATE TABLE "table1_12266757_1" (
"season" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT "womens_doubles" FROM "table1_12266757_1" WHERE "season"='1951/1952';
|
1-12266757-1
|
Who was the womens singles winnerwhen the mens doubles were stefan karlsson claes nordin , bk aura gbk?
|
CREATE TABLE "table1_12266757_1" (
"season" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT "womens_singles" FROM "table1_12266757_1" WHERE "mens_doubles"='Stefan Karlsson Claes Nordin , BK Aura GBK';
|
1-12266757-1
|
Who were the winners of mens doubles in the 1986/1987 season held?
|
CREATE TABLE "table1_12266757_1" (
"season" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT "mens_doubles" FROM "table1_12266757_1" WHERE "season"='1986/1987';
|
1-12266757-1
|
Who won the Mens Singles when the Mixed doubles went to Stellan Mohlin Kerstin Ståhl , Aik?
|
CREATE TABLE "table1_12266757_1" (
"season" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT "mens_singles" FROM "table1_12266757_1" WHERE "mixed_doubles"='Stellan Mohlin Kerstin Ståhl , AIK';
|
1-12266757-1
|
Who won the womens singles in the 1958/1959 season?
|
CREATE TABLE "table1_12266757_1" (
"season" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT "womens_singles" FROM "table1_12266757_1" WHERE "season"='1958/1959';
|
1-12266757-1
|
What county is in isolation of 29?
|
CREATE TABLE "see_also" (
"rank" real,
"peak" text,
"elevation_m" real,
"prominence_m" real,
"isolation_km" real,
"municipality" text,
"county" text
);
|
SELECT "county" FROM "see_also" WHERE "isolation_km"=29;
|
1-12280396-1
|
What is the county with an elevation of 1262?
|
CREATE TABLE "see_also" (
"rank" real,
"peak" text,
"elevation_m" real,
"prominence_m" real,
"isolation_km" real,
"municipality" text,
"county" text
);
|
SELECT "county" FROM "see_also" WHERE "elevation_m"=1262;
|
1-12280396-1
|
Name the rank where the municipality is sunndal?
|
CREATE TABLE "see_also" (
"rank" real,
"peak" text,
"elevation_m" real,
"prominence_m" real,
"isolation_km" real,
"municipality" text,
"county" text
);
|
SELECT "rank" FROM "see_also" WHERE "municipality"='Sunndal';
|
1-12280396-1
|
Name the county with the peak being indre russetind?
|
CREATE TABLE "see_also" (
"rank" real,
"peak" text,
"elevation_m" real,
"prominence_m" real,
"isolation_km" real,
"municipality" text,
"county" text
);
|
SELECT "county" FROM "see_also" WHERE "peak"='Indre Russetind';
|
1-12280396-1
|
What is the number of rank of peak fresvikbreen?
|
CREATE TABLE "see_also" (
"rank" real,
"peak" text,
"elevation_m" real,
"prominence_m" real,
"isolation_km" real,
"municipality" text,
"county" text
);
|
SELECT COUNT("rank") FROM "see_also" WHERE "peak"='Fresvikbreen';
|
1-12280396-1
|
Who won the mens singles when sayaka sato won the womens singles?
|
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT "mens_singles" FROM "previous_winners" WHERE "womens_singles"='Sayaka Sato';
|
1-12275551-1
|
When did Chetan Anand win his first men's single?
|
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT MIN("year") FROM "previous_winners" WHERE "mens_singles"='Chetan Anand';
|
1-12275654-1
|
How many times did Niels Christian Kaldau win the men's single and Pi Hongyan win the women's single in the same year?
|
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT COUNT("year") FROM "previous_winners" WHERE "mens_singles"='Niels Christian Kaldau' AND "womens_singles"='Pi Hongyan';
|
1-12275654-1
|
Who won the men's double when Chou Tien-Chen won the men's single?
|
CREATE TABLE "previous_winners" (
"year" real,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
|
SELECT "mens_doubles" FROM "previous_winners" WHERE "mens_singles"='Chou Tien-chen';
|
1-12275654-1
|
What team was promoted in the Serbian League East in the same season when Kolubara was promoted in the Serbian League Belgrade?
|
CREATE TABLE "table1_12283621_6" (
"season" text,
"serbian_league_belgrade" text,
"serbian_league_east" text,
"serbian_league_vojvodina" text,
"serbian_league_west" text
);
|
SELECT "serbian_league_east" FROM "table1_12283621_6" WHERE "serbian_league_belgrade"='Kolubara';
|
1-12283621-6
|
what's the series with reverse being swimming
|
CREATE TABLE "1_yuan" (
"year" real,
"denomination" text,
"alloy" text,
"reverse" text,
"diameter" text,
"weight" text,
"obverse" text,
"mintage" real,
"series" text
);
|
SELECT "series" FROM "1_yuan" WHERE "reverse"='Swimming';
|
1-12284476-8
|
what's the alloy with series being ii series
|
CREATE TABLE "1_yuan" (
"year" real,
"denomination" text,
"alloy" text,
"reverse" text,
"diameter" text,
"weight" text,
"obverse" text,
"mintage" real,
"series" text
);
|
SELECT "alloy" FROM "1_yuan" WHERE "series"='II series';
|
1-12284476-8
|
what's the denomination with year being 2008 and reverse being football
|
CREATE TABLE "1_yuan" (
"year" real,
"denomination" text,
"alloy" text,
"reverse" text,
"diameter" text,
"weight" text,
"obverse" text,
"mintage" real,
"series" text
);
|
SELECT "denomination" FROM "1_yuan" WHERE "year"=2008 AND "reverse"='Football';
|
1-12284476-8
|
how many reverse with series being iii series
|
CREATE TABLE "1_yuan" (
"year" real,
"denomination" text,
"alloy" text,
"reverse" text,
"diameter" text,
"weight" text,
"obverse" text,
"mintage" real,
"series" text
);
|
SELECT COUNT("reverse") FROM "1_yuan" WHERE "series"='III series';
|
1-12284476-8
|
How many times did kingfisher east bengal fc win?
|
CREATE TABLE "performances_by_clubs" (
"num" real,
"nation" text,
"winners" real,
"runners_up" real,
"3rd_place" real,
"4th_place" real
);
|
SELECT MIN("winners") FROM "performances_by_clubs" WHERE "nation"='Kingfisher East Bengal FC';
|
1-12303563-1
|
How many times did bec tero sasana win?
|
CREATE TABLE "performances_by_clubs" (
"num" real,
"nation" text,
"winners" real,
"runners_up" real,
"3rd_place" real,
"4th_place" real
);
|
SELECT MAX("winners") FROM "performances_by_clubs" WHERE "nation"='BEC Tero Sasana';
|
1-12303563-1
|
Nigeria competed on July2, 1999.
|
CREATE TABLE "junior_under_20_women" (
"rank" real,
"fastest_time_s" text,
"wind_m_s" text,
"athlete" text,
"nation" text,
"date" text,
"location" text
);
|
SELECT "date" FROM "junior_under_20_women" WHERE "nation"='Nigeria';
|
1-1231316-5
|
Nigeria had the fastest time once.
|
CREATE TABLE "junior_under_20_women" (
"rank" real,
"fastest_time_s" text,
"wind_m_s" text,
"athlete" text,
"nation" text,
"date" text,
"location" text
);
|
SELECT COUNT("fastest_time_s") FROM "junior_under_20_women" WHERE "nation"='Nigeria';
|
1-1231316-5
|
how many runners-up with nation being india
|
CREATE TABLE "performances_by_nations" (
"num" real,
"nation" text,
"winners" real,
"runners_up" real,
"3rd_place" real,
"4th_place" real
);
|
SELECT COUNT("runners_up") FROM "performances_by_nations" WHERE "nation"='India';
|
1-12303563-2
|
what's the runners-up with nation being malaysia
|
CREATE TABLE "performances_by_nations" (
"num" real,
"nation" text,
"winners" real,
"runners_up" real,
"3rd_place" real,
"4th_place" real
);
|
SELECT "runners_up" FROM "performances_by_nations" WHERE "nation"='Malaysia';
|
1-12303563-2
|
how many winners with # being 4
|
CREATE TABLE "performances_by_nations" (
"num" real,
"nation" text,
"winners" real,
"runners_up" real,
"3rd_place" real,
"4th_place" real
);
|
SELECT COUNT("winners") FROM "performances_by_nations" WHERE "num"=4;
|
1-12303563-2
|
how many maximum winners
|
CREATE TABLE "performances_by_nations" (
"num" real,
"nation" text,
"winners" real,
"runners_up" real,
"3rd_place" real,
"4th_place" real
);
|
SELECT MAX("winners") FROM "performances_by_nations";
|
1-12303563-2
|
how many winners from vietnam
|
CREATE TABLE "performances_by_nations" (
"num" real,
"nation" text,
"winners" real,
"runners_up" real,
"3rd_place" real,
"4th_place" real
);
|
SELECT "winners" FROM "performances_by_nations" WHERE "nation"='Vietnam';
|
1-12303563-2
|
What was the total of arlenes vote when craig voted for brian and karen?
|
CREATE TABLE "dance_offs" (
"week" real,
"craigs_vote" text,
"arlenes_vote" text,
"brunos_vote" text,
"lens_vote" text,
"safe" text,
"eliminated" text
);
|
SELECT COUNT("arlenes_vote") FROM "dance_offs" WHERE "craigs_vote"='Brian and Karen';
|
1-12305325-4
|
What is the max week where kate and anton are eliminated?
|
CREATE TABLE "dance_offs" (
"week" real,
"craigs_vote" text,
"arlenes_vote" text,
"brunos_vote" text,
"lens_vote" text,
"safe" text,
"eliminated" text
);
|
SELECT MAX("week") FROM "dance_offs" WHERE "eliminated"='Kate and Anton';
|
1-12305325-4
|
What is the number eliminated when kelly and brendan are safe?
|
CREATE TABLE "dance_offs" (
"week" real,
"craigs_vote" text,
"arlenes_vote" text,
"brunos_vote" text,
"lens_vote" text,
"safe" text,
"eliminated" text
);
|
SELECT COUNT("eliminated") FROM "dance_offs" WHERE "safe"='Kelly and Brendan';
|
1-12305325-4
|
Who is safe if John and Nicole are eliminated?
|
CREATE TABLE "dance_offs" (
"week" real,
"craigs_vote" text,
"arlenes_vote" text,
"brunos_vote" text,
"lens_vote" text,
"safe" text,
"eliminated" text
);
|
SELECT "safe" FROM "dance_offs" WHERE "eliminated"='John and Nicole';
|
1-12305325-4
|
What is the total number of brunos vote when willie and erin are eliminated?
|
CREATE TABLE "dance_offs" (
"week" real,
"craigs_vote" text,
"arlenes_vote" text,
"brunos_vote" text,
"lens_vote" text,
"safe" text,
"eliminated" text
);
|
SELECT COUNT("brunos_vote") FROM "dance_offs" WHERE "eliminated"='Willie and Erin';
|
1-12305325-4
|
How many goals were scored by the player who played 17 matches?
|
CREATE TABLE "foreign_players" (
"country" text,
"player_name" text,
"period" text,
"position" text,
"matches" text,
"goals" text
);
|
SELECT "goals" FROM "foreign_players" WHERE "matches"='17';
|
1-12321870-32
|
What is the name of the player who played in 2009 only?
|
CREATE TABLE "foreign_players" (
"country" text,
"player_name" text,
"period" text,
"position" text,
"matches" text,
"goals" text
);
|
SELECT "player_name" FROM "foreign_players" WHERE "period"='2009';
|
1-12321870-32
|
How many goals have been scored by Tiago Gomes?
|
CREATE TABLE "foreign_players" (
"country" text,
"player_name" text,
"period" text,
"position" text,
"matches" text,
"goals" text
);
|
SELECT "goals" FROM "foreign_players" WHERE "player_name"='Tiago Gomes';
|
1-12321870-32
|
Which athlete is from Mexico City?
|
CREATE TABLE "youth_under_18_girls" (
"rank" real,
"fastest_time_s" text,
"wind_m_s" text,
"athlete" text,
"nation" text,
"date" text,
"location" text
);
|
SELECT "athlete" FROM "youth_under_18_girls" WHERE "location"='Mexico City';
|
1-1231316-7
|
What is the athlete from Edwardsville?
|
CREATE TABLE "youth_under_18_girls" (
"rank" real,
"fastest_time_s" text,
"wind_m_s" text,
"athlete" text,
"nation" text,
"date" text,
"location" text
);
|
SELECT "athlete" FROM "youth_under_18_girls" WHERE "location"='Edwardsville';
|
1-1231316-7
|
What was the wind on 21 june 1976?
|
CREATE TABLE "youth_under_18_girls" (
"rank" real,
"fastest_time_s" text,
"wind_m_s" text,
"athlete" text,
"nation" text,
"date" text,
"location" text
);
|
SELECT "wind_m_s" FROM "youth_under_18_girls" WHERE "date"='21 June 1976';
|
1-1231316-7
|
What is the number of locations with the fastest times of 11.13?
|
CREATE TABLE "youth_under_18_girls" (
"rank" real,
"fastest_time_s" text,
"wind_m_s" text,
"athlete" text,
"nation" text,
"date" text,
"location" text
);
|
SELECT COUNT("location") FROM "youth_under_18_girls" WHERE "fastest_time_s"='11.13';
|
1-1231316-7
|
What's the title of the episode with a broadcast order s04 e01?
|
CREATE TABLE "table1_1231892_4" (
"number_in_series" real,
"broadcast_order" text,
"title" text,
"villain_s" text,
"u_s_air_date" text,
"production_code" text
);
|
SELECT "title" FROM "table1_1231892_4" WHERE "broadcast_order"='S04 E01';
|
1-1231892-4
|
What's the number of episodes with a broadcast order s04 e07?
|
CREATE TABLE "table1_1231892_4" (
"number_in_series" real,
"broadcast_order" text,
"title" text,
"villain_s" text,
"u_s_air_date" text,
"production_code" text
);
|
SELECT COUNT("number_in_series") FROM "table1_1231892_4" WHERE "broadcast_order"='S04 E07';
|
1-1231892-4
|
what's the total number of episodes with a US air date of january 15, 2005?
|
CREATE TABLE "table1_1231892_4" (
"number_in_series" real,
"broadcast_order" text,
"title" text,
"villain_s" text,
"u_s_air_date" text,
"production_code" text
);
|
SELECT COUNT("production_code") FROM "table1_1231892_4" WHERE "u_s_air_date"='January 15, 2005';
|
1-1231892-4
|
What's the series number of the episode titled "The Quest"?
|
CREATE TABLE "table1_1231892_4" (
"number_in_series" real,
"broadcast_order" text,
"title" text,
"villain_s" text,
"u_s_air_date" text,
"production_code" text
);
|
SELECT MAX("number_in_series") FROM "table1_1231892_4" WHERE "title"='\"The Quest\"';
|
1-1231892-4
|
What's the original air date of the episode with a broadcast order s04 e01?
|
CREATE TABLE "table1_1231892_4" (
"number_in_series" real,
"broadcast_order" text,
"title" text,
"villain_s" text,
"u_s_air_date" text,
"production_code" text
);
|
SELECT "u_s_air_date" FROM "table1_1231892_4" WHERE "broadcast_order"='S04 E01';
|
1-1231892-4
|
What's the series number of the episode with a broadcast order s04 e07?
|
CREATE TABLE "table1_1231892_4" (
"number_in_series" real,
"broadcast_order" text,
"title" text,
"villain_s" text,
"u_s_air_date" text,
"production_code" text
);
|
SELECT MAX("number_in_series") FROM "table1_1231892_4" WHERE "broadcast_order"='S04 E07';
|
1-1231892-4
|
Which police force serves a population of 17000?
|
CREATE TABLE "municipal_detachments" (
"municipality" text,
"population" real,
"police_officers" real,
"residents_per_officer" real,
"total_costs_2005" text,
"cost_per_capita" text,
"case_burden" real,
"crime_rate_per_1_000_people" real,
"police_force" text
);
|
SELECT "police_force" FROM "municipal_detachments" WHERE "population"=17000;
|
1-12340907-1
|
When total costs (2005) are $700,116, what is the cost per capita?
|
CREATE TABLE "municipal_detachments" (
"municipality" text,
"population" real,
"police_officers" real,
"residents_per_officer" real,
"total_costs_2005" text,
"cost_per_capita" text,
"case_burden" real,
"crime_rate_per_1_000_people" real,
"police_force" text
);
|
SELECT "cost_per_capita" FROM "municipal_detachments" WHERE "total_costs_2005"='$700,116';
|
1-12340907-1
|
What is the cost per capita in the Courtenay municipality?
|
CREATE TABLE "municipal_detachments" (
"municipality" text,
"population" real,
"police_officers" real,
"residents_per_officer" real,
"total_costs_2005" text,
"cost_per_capita" text,
"case_burden" real,
"crime_rate_per_1_000_people" real,
"police_force" text
);
|
SELECT "cost_per_capita" FROM "municipal_detachments" WHERE "municipality"='Courtenay';
|
1-12340907-1
|
Which crime rate per 1,000 people is associated with a cost per capita of $152?
|
CREATE TABLE "municipal_detachments" (
"municipality" text,
"population" real,
"police_officers" real,
"residents_per_officer" real,
"total_costs_2005" text,
"cost_per_capita" text,
"case_burden" real,
"crime_rate_per_1_000_people" real,
"police_force" text
);
|
SELECT MAX("crime_rate_per_1_000_people") FROM "municipal_detachments" WHERE "cost_per_capita"='$152';
|
1-12340907-1
|
If the number of police officers is 94, what is the lowest population number?
|
CREATE TABLE "municipal_detachments" (
"municipality" text,
"population" real,
"police_officers" real,
"residents_per_officer" real,
"total_costs_2005" text,
"cost_per_capita" text,
"case_burden" real,
"crime_rate_per_1_000_people" real,
"police_force" text
);
|
SELECT MIN("population") FROM "municipal_detachments" WHERE "police_officers"=94;
|
1-12340907-1
|
What is the value of total costs (2005) in the Coldstream municipality?
|
CREATE TABLE "municipal_detachments" (
"municipality" text,
"population" real,
"police_officers" real,
"residents_per_officer" real,
"total_costs_2005" text,
"cost_per_capita" text,
"case_burden" real,
"crime_rate_per_1_000_people" real,
"police_force" text
);
|
SELECT "total_costs_2005" FROM "municipal_detachments" WHERE "municipality"='Coldstream';
|
1-12340907-1
|
What is the interview score for the state of Virginia?
|
CREATE TABLE "final_competition_scores" (
"state" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
|
SELECT "interview" FROM "final_competition_scores" WHERE "state"='Virginia';
|
1-12338595-1
|
How much is the average score for New York state?
|
CREATE TABLE "final_competition_scores" (
"state" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
|
SELECT "average" FROM "final_competition_scores" WHERE "state"='New York';
|
1-12338595-1
|
Which interview score corresponds with the evening gown score of 8.977?
|
CREATE TABLE "final_competition_scores" (
"state" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
|
SELECT "interview" FROM "final_competition_scores" WHERE "evening_gown"='8.977';
|
1-12338595-1
|
What is the preliminary score associated with the interview score of 8.488?
|
CREATE TABLE "final_competition_scores" (
"state" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
|
SELECT COUNT("preliminaries") FROM "final_competition_scores" WHERE "interview"='8.488';
|
1-12338595-1
|
What swimsuit score did the state of Virginia contestant achieve?
|
CREATE TABLE "final_competition_scores" (
"state" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
|
SELECT COUNT("swimsuit") FROM "final_competition_scores" WHERE "state"='Virginia';
|
1-12338595-1
|
Which interview score belongs to the state of Nevada contestant?
|
CREATE TABLE "final_competition_scores" (
"state" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
|
SELECT "interview" FROM "final_competition_scores" WHERE "state"='Nevada';
|
1-12338595-1
|
For the competition Mithras Cup 2nd Rd (2nd Leg), what is the date and time?
|
CREATE TABLE "scores" (
"record" text,
"date_and_time" text,
"competition" text,
"home_or_away" text,
"opponent" text,
"score" text
);
|
SELECT "date_and_time" FROM "scores" WHERE "competition"='Mithras Cup 2nd Rd (2nd Leg)';
|
1-1233808-2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.