question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
What county is Whiteland Community School in?
|
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
|
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "school"='whiteland community';
|
2-18942405-6
|
What county has a football team in IHSAA class AAAAA and a school macot of the Grizzly Cubs?
|
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
|
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_football_class"='aaaaa' AND "mascot"='grizzly cubs';
|
2-18942405-6
|
What county has a school mascot of the Pioneers?
|
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
|
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='pioneers';
|
2-18942405-6
|
What are the IHSAA classes of the Indianapolis schools?
|
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
|
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "location"='indianapolis';
|
2-18942405-6
|
Which Song has Points smaller than 53, and a Place larger than 8, and a Draw larger than 1?
|
CREATE TABLE "semi_final_2_7_february_2009" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
);
|
SELECT "song" FROM "semi_final_2_7_february_2009" WHERE "points"<53 AND "place">8 AND "draw">1;
|
2-18932779-5
|
What is the result for the Green-Communist party when the Left Bloc has 3.6%?
|
CREATE TABLE "116_seats_needed_for_a_majority" (
"date_released" text,
"polling_institute" text,
"social_democratic" text,
"socialist" text,
"green_communist" text,
"people_s_party" text,
"left_bloc" text,
"lead" text
);
|
SELECT "green_communist" FROM "116_seats_needed_for_a_majority" WHERE "left_bloc"='3.6%';
|
2-1881642-1
|
What is the result for the Green-Communist party when the Left Bloc has 3.0%?
|
CREATE TABLE "116_seats_needed_for_a_majority" (
"date_released" text,
"polling_institute" text,
"social_democratic" text,
"socialist" text,
"green_communist" text,
"people_s_party" text,
"left_bloc" text,
"lead" text
);
|
SELECT "green_communist" FROM "116_seats_needed_for_a_majority" WHERE "left_bloc"='3.0%';
|
2-1881642-1
|
What is the result for the Socialist party when the People's Party has 6.8%?
|
CREATE TABLE "116_seats_needed_for_a_majority" (
"date_released" text,
"polling_institute" text,
"social_democratic" text,
"socialist" text,
"green_communist" text,
"people_s_party" text,
"left_bloc" text,
"lead" text
);
|
SELECT "socialist" FROM "116_seats_needed_for_a_majority" WHERE "people_s_party"='6.8%';
|
2-1881642-1
|
What is the date released when the Left Bloc had 3.2%?
|
CREATE TABLE "116_seats_needed_for_a_majority" (
"date_released" text,
"polling_institute" text,
"social_democratic" text,
"socialist" text,
"green_communist" text,
"people_s_party" text,
"left_bloc" text,
"lead" text
);
|
SELECT "date_released" FROM "116_seats_needed_for_a_majority" WHERE "left_bloc"='3.2%';
|
2-1881642-1
|
What is the cardinalatial order of the elector elevated circa 1116?
|
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"cardinalatial_order_and_title" text,
"elevated" text,
"elevator" text
);
|
SELECT "cardinalatial_order_and_title" FROM "cardinal_electors" WHERE "elevated"='circa 1116';
|
2-18884668-1
|
When was the elector from pisa elevated?
|
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"cardinalatial_order_and_title" text,
"elevated" text,
"elevator" text
);
|
SELECT "elevated" FROM "cardinal_electors" WHERE "nationality"='pisa';
|
2-18884668-1
|
What is the cardinalatial order and title of bosone?
|
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"cardinalatial_order_and_title" text,
"elevated" text,
"elevator" text
);
|
SELECT "cardinalatial_order_and_title" FROM "cardinal_electors" WHERE "elector"='bosone';
|
2-18884668-1
|
Who is the elevator from crema?
|
CREATE TABLE "cardinal_electors" (
"elector" text,
"nationality" text,
"cardinalatial_order_and_title" text,
"elevated" text,
"elevator" text
);
|
SELECT "elevator" FROM "cardinal_electors" WHERE "nationality"='crema';
|
2-18884668-1
|
What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "name" FROM "heats" WHERE "heat">4 AND "lane"=4 AND "nationality"='australia';
|
2-18625509-3
|
What is the lowest heat number for a swimmer with a time of 2:34.94?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT MIN("heat") FROM "heats" WHERE "time"='2:34.94';
|
2-18625509-3
|
What is the rank of the player from Ukraine with react less than 0.26?
|
CREATE TABLE "heat_7" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"react" real
);
|
SELECT COUNT("rank") FROM "heat_7" WHERE "nationality"='ukraine' AND "react"<0.26;
|
2-18569105-8
|
What was the highest week with a w 21-17 result, and more than 45,254 in attendance?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT MAX("week") FROM "schedule" WHERE "result"='w 21-17' AND "attendance">'45,254';
|
2-18680817-1
|
What's the Proto-Germanic when the Old English is /d/?
|
CREATE TABLE "germanic_origins" (
"proto_germanic" text,
"west_germanic" text,
"old_english" text,
"german" text,
"dutch" text
);
|
SELECT "proto_germanic" FROM "germanic_origins" WHERE "old_english"='/d/';
|
2-1872124-1
|
What's the Proto Germanic when then German is /s/ or /ts/?
|
CREATE TABLE "germanic_origins" (
"proto_germanic" text,
"west_germanic" text,
"old_english" text,
"german" text,
"dutch" text
);
|
SELECT "proto_germanic" FROM "germanic_origins" WHERE "german"='/s/ or /ts/';
|
2-1872124-1
|
What's the Dutch when then Old English is /d/?
|
CREATE TABLE "germanic_origins" (
"proto_germanic" text,
"west_germanic" text,
"old_english" text,
"german" text,
"dutch" text
);
|
SELECT "dutch" FROM "germanic_origins" WHERE "old_english"='/d/';
|
2-1872124-1
|
What's the West Germanic when the German is /s/ or /ts/?
|
CREATE TABLE "germanic_origins" (
"proto_germanic" text,
"west_germanic" text,
"old_english" text,
"german" text,
"dutch" text
);
|
SELECT "west_germanic" FROM "germanic_origins" WHERE "german"='/s/ or /ts/';
|
2-1872124-1
|
What's the Proto-Germanic when the German is /t/?
|
CREATE TABLE "germanic_origins" (
"proto_germanic" text,
"west_germanic" text,
"old_english" text,
"german" text,
"dutch" text
);
|
SELECT "proto_germanic" FROM "germanic_origins" WHERE "german"='/t/';
|
2-1872124-1
|
What is the to par for japan
|
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
|
SELECT "to_par" FROM "final_round" WHERE "country"='japan';
|
2-18812411-8
|
what player has $187,500 and score 66-75-71-69=281
|
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
|
SELECT "player" FROM "final_round" WHERE "money"='187,500' AND "score"='66-75-71-69=281';
|
2-18812411-8
|
what place has score 66-74-68-73=281
|
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
|
SELECT "place" FROM "final_round" WHERE "score"='66-74-68-73=281';
|
2-18812411-8
|
what player has place t10
|
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
|
SELECT "player" FROM "final_round" WHERE "place"='t10';
|
2-18812411-8
|
what is the to par for $242,813 with score 68-72-74-66=280
|
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" text
);
|
SELECT "to_par" FROM "final_round" WHERE "money"='242,813' AND "score"='68-72-74-66=280';
|
2-18812411-8
|
Which School has a Size larger than 408, and a Mascot of pacers?
|
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text
);
|
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "size">408 AND "mascot"='pacers';
|
2-18974097-1
|
Which Size has an IHSAA Class of aa, and a Location of milan?
|
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text
);
|
SELECT SUM("size") FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aa' AND "location"='milan';
|
2-18974097-1
|
Which County has a Mascot of pacers?
|
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text
);
|
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='pacers';
|
2-18974097-1
|
Which Mascot has a County of 69 ripley, and an IHSAA Class of aa, and a School of south ripley?
|
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"size" real,
"ihsaa_class" text,
"county" text
);
|
SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "county"='69 ripley' AND "ihsaa_class"='aa' AND "school"='south ripley';
|
2-18974097-1
|
Who was in Lane 5 and had a heat of 7?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "name" FROM "heats" WHERE "heat"=7 AND "lane"=5;
|
2-18624643-3
|
What lane number was Hungary and had a heat of 4?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT COUNT("lane") FROM "heats" WHERE "heat"=4 AND "nationality"='hungary';
|
2-18624643-3
|
What's the date when the score was 690.3?
|
CREATE TABLE "world_record_progression" (
"score" text,
"shooter" text,
"date" text,
"comp" text,
"place" text
);
|
SELECT "date" FROM "world_record_progression" WHERE "score"='690.3';
|
2-18986934-4
|
What's the place of 1989 with a comp of ECH?
|
CREATE TABLE "world_record_progression" (
"score" text,
"shooter" text,
"date" text,
"comp" text,
"place" text
);
|
SELECT "place" FROM "world_record_progression" WHERE "comp"='ech' AND "date"='1989';
|
2-18986934-4
|
Who was the shooter with a score of 686.4?
|
CREATE TABLE "world_record_progression" (
"score" text,
"shooter" text,
"date" text,
"comp" text,
"place" text
);
|
SELECT "shooter" FROM "world_record_progression" WHERE "score"='686.4';
|
2-18986934-4
|
what is the year for borderlands 2?
|
CREATE TABLE "games_tm" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
|
SELECT "year" FROM "games_tm" WHERE "game"='borderlands 2';
|
2-1851722-10
|
what is the year for the game dead space 2?
|
CREATE TABLE "games_tm" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
|
SELECT "year" FROM "games_tm" WHERE "game"='dead space 2';
|
2-1851722-10
|
who is the developers for demon's souls?
|
CREATE TABLE "games_tm" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
);
|
SELECT "developer_s" FROM "games_tm" WHERE "game"='demon''s souls';
|
2-1851722-10
|
In what year is Zaxxon the Standalone?
|
CREATE TABLE "arcade_awards_electronic_gaming_awards" (
"year" text,
"arcade" text,
"standalone" text,
"console" text,
"computer" text
);
|
SELECT "year" FROM "arcade_awards_electronic_gaming_awards" WHERE "standalone"='zaxxon';
|
2-1851722-48
|
What is the Standalone in the year when Space Invaders is the Console?
|
CREATE TABLE "arcade_awards_electronic_gaming_awards" (
"year" text,
"arcade" text,
"standalone" text,
"console" text,
"computer" text
);
|
SELECT "standalone" FROM "arcade_awards_electronic_gaming_awards" WHERE "console"='space invaders';
|
2-1851722-48
|
What is the Standalone when Tron is the Arcade?
|
CREATE TABLE "arcade_awards_electronic_gaming_awards" (
"year" text,
"arcade" text,
"standalone" text,
"console" text,
"computer" text
);
|
SELECT "standalone" FROM "arcade_awards_electronic_gaming_awards" WHERE "arcade"='tron';
|
2-1851722-48
|
What is the Console when Space Invaders is the Arcade?
|
CREATE TABLE "arcade_awards_electronic_gaming_awards" (
"year" text,
"arcade" text,
"standalone" text,
"console" text,
"computer" text
);
|
SELECT "console" FROM "arcade_awards_electronic_gaming_awards" WHERE "arcade"='space invaders';
|
2-1851722-48
|
What position does the player from the Arizona Diamondbacks play?
|
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
|
SELECT "position" FROM "supplemental_first_round_selections" WHERE "team"='arizona diamondbacks';
|
2-18455690-2
|
What school did P Jay Gehrke of the Kansas City Royals attend?
|
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
|
SELECT "school" FROM "supplemental_first_round_selections" WHERE "position"='p' AND "team"='kansas city royals' AND "player"='jay gehrke';
|
2-18455690-2
|
What country does Adam van Koeverden play for?
|
CREATE TABLE "heat_1" (
"rank" real,
"athletes" text,
"country" text,
"time" text,
"notes" text
);
|
SELECT "country" FROM "heat_1" WHERE "athletes"='adam van koeverden';
|
2-18646681-3
|
what is the pick when the school is jasper hs (jasper, texas)?
|
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
|
SELECT "pick" FROM "first_round_selections" WHERE "school"='jasper hs (jasper, texas)';
|
2-18455690-1
|
who is the player when the position is p and the team is oakland athletics?
|
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
|
SELECT "player" FROM "first_round_selections" WHERE "position"='p' AND "team"='oakland athletics';
|
2-18455690-1
|
what is the school when the team is new york yankees?
|
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
|
SELECT "school" FROM "first_round_selections" WHERE "team"='new york yankees';
|
2-18455690-1
|
who is the player when the school is spring hs (spring, texas)?
|
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
|
SELECT "player" FROM "first_round_selections" WHERE "school"='spring hs (spring, texas)';
|
2-18455690-1
|
What's the melamine content of 英雄牌嬰幼兒配方乳粉 having more than 1 samples failed?
|
CREATE TABLE "tests_conducted_by_aqsiq" (
"producer" text,
"product" text,
"samples_taken" real,
"samples_failed" real,
"melamine_content_mg_kg" real
);
|
SELECT "melamine_content_mg_kg" FROM "tests_conducted_by_aqsiq" WHERE "samples_failed">1 AND "product"='英雄牌嬰幼兒配方乳粉';
|
2-18943444-1
|
What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?
|
CREATE TABLE "tests_conducted_by_aqsiq" (
"producer" text,
"product" text,
"samples_taken" real,
"samples_failed" real,
"melamine_content_mg_kg" real
);
|
SELECT MAX("melamine_content_mg_kg") FROM "tests_conducted_by_aqsiq" WHERE "producer"='guangzhou jinding dairy products factory' AND "samples_failed">1;
|
2-18943444-1
|
What's the product that has less than 98.6 melamine content, more than 1 sample failed and took less than 3 samples?
|
CREATE TABLE "tests_conducted_by_aqsiq" (
"producer" text,
"product" text,
"samples_taken" real,
"samples_failed" real,
"melamine_content_mg_kg" real
);
|
SELECT "product" FROM "tests_conducted_by_aqsiq" WHERE "melamine_content_mg_kg"<98.6 AND "samples_failed">1 AND "samples_taken"<3;
|
2-18943444-1
|
What the most samples failed for 可淇牌嬰幼兒配方乳粉 and had less than 1 samples taken?
|
CREATE TABLE "tests_conducted_by_aqsiq" (
"producer" text,
"product" text,
"samples_taken" real,
"samples_failed" real,
"melamine_content_mg_kg" real
);
|
SELECT MAX("samples_failed") FROM "tests_conducted_by_aqsiq" WHERE "product"='可淇牌嬰幼兒配方乳粉' AND "samples_taken"<1;
|
2-18943444-1
|
How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?
|
CREATE TABLE "tests_conducted_by_aqsiq" (
"producer" text,
"product" text,
"samples_taken" real,
"samples_failed" real,
"melamine_content_mg_kg" real
);
|
SELECT SUM("samples_taken") FROM "tests_conducted_by_aqsiq" WHERE "melamine_content_mg_kg"<53.4 AND "producer"='qingdao suncare nutritional technology';
|
2-18943444-1
|
What did the golfer from Australia score?
|
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
|
SELECT "score" FROM "third_round" WHERE "country"='australia';
|
2-18786347-5
|
Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%?
|
CREATE TABLE "europe_usage_share_data_from_at_internet" (
"date" text,
"internet_explorer" text,
"firefox" text,
"opera" text,
"safari" text,
"source" text
);
|
SELECT "date" FROM "europe_usage_share_data_from_at_internet" WHERE "opera"='5.1%' AND "internet_explorer"='59.5%';
|
2-1876262-12
|
Which source has a date of June 2008?
|
CREATE TABLE "europe_usage_share_data_from_at_internet" (
"date" text,
"internet_explorer" text,
"firefox" text,
"opera" text,
"safari" text,
"source" text
);
|
SELECT "source" FROM "europe_usage_share_data_from_at_internet" WHERE "date"='june 2008';
|
2-1876262-12
|
Which source date has an Internet Explorer usage of 60.2%?
|
CREATE TABLE "europe_usage_share_data_from_at_internet" (
"date" text,
"internet_explorer" text,
"firefox" text,
"opera" text,
"safari" text,
"source" text
);
|
SELECT "source" FROM "europe_usage_share_data_from_at_internet" WHERE "internet_explorer"='60.2%';
|
2-1876262-12
|
What city has the home team of the brisbane broncos?
|
CREATE TABLE "former_or_demolished_stadiums" (
"stadium" text,
"capacity" real,
"city" text,
"country" text,
"home_team_s" text,
"closed_as_a_rl_stadium" real
);
|
SELECT "city" FROM "former_or_demolished_stadiums" WHERE "home_team_s"='brisbane broncos';
|
2-18735456-2
|
What is the earliest closed year in the country of france?
|
CREATE TABLE "former_or_demolished_stadiums" (
"stadium" text,
"capacity" real,
"city" text,
"country" text,
"home_team_s" text,
"closed_as_a_rl_stadium" real
);
|
SELECT MIN("closed_as_a_rl_stadium") FROM "former_or_demolished_stadiums" WHERE "country"='france';
|
2-18735456-2
|
What is the result for the event that lasted 2:20?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
|
SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='2:20';
|
2-18727616-3
|
Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "event"='gladiator challenge 87: collision course';
|
2-18727616-3
|
For the Cage Combat Fighting Championships: Mayhem, what was the record?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='cage combat fighting championships: mayhem';
|
2-18727616-3
|
What is the Name of the Gabeca Montichiari Club?
|
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
|
SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='gabeca montichiari';
|
2-18499677-12
|
What is the Height of the Player from the 2008 Club of RPA Perugia?
|
CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
|
SELECT "height" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='rpa perugia';
|
2-18499677-12
|
Who was the designer for The Grapefruit Moon?
|
CREATE TABLE "season_1" (
"restaurant_name" text,
"original_name" text,
"location" text,
"chef" text,
"designer" text,
"still_open" text
);
|
SELECT "designer" FROM "season_1" WHERE "restaurant_name"='the grapefruit moon';
|
2-1874292-1
|
Who is the chef at Lakes Bar and Grill?
|
CREATE TABLE "season_1" (
"restaurant_name" text,
"original_name" text,
"location" text,
"chef" text,
"designer" text,
"still_open" text
);
|
SELECT "chef" FROM "season_1" WHERE "restaurant_name"='lakes bar and grill';
|
2-1874292-1
|
What is the name of the Cobourg, ON restaurant that had Robin de Groot as designer?
|
CREATE TABLE "season_1" (
"restaurant_name" text,
"original_name" text,
"location" text,
"chef" text,
"designer" text,
"still_open" text
);
|
SELECT "restaurant_name" FROM "season_1" WHERE "designer"='robin de groot' AND "location"='cobourg, on';
|
2-1874292-1
|
What European competitions have a tier of 2 and a position of 3?
|
CREATE TABLE "season_by_season" (
"season" text,
"tier" real,
"league" text,
"pos" real,
"turkish_cup" text,
"european_competitions" text
);
|
SELECT "european_competitions" FROM "season_by_season" WHERE "tier"=2 AND "pos"=3;
|
2-18480042-1
|
Which Nation won 5 Silver, and more than 4 Gold?
|
CREATE TABLE "all_time_medal_table_women_s_1984_2012" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT "nation" FROM "all_time_medal_table_women_s_1984_2012" WHERE "silver"=5 AND "gold">4;
|
2-1853244-13
|
What is the sum of heat for christophe lebon when lane is less than 4?
|
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT COUNT("heat") FROM "heats" WHERE "lane"<4 AND "name"='christophe lebon';
|
2-18624865-3
|
Who is from the united states, has a rank less than 9, and heat more than 5?
|
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "name" FROM "heats" WHERE "rank"<9 AND "heat">5 AND "nationality"='united states';
|
2-18624865-3
|
Serbia has a heat less than 2 and what sum of rank?
|
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT COUNT("rank") FROM "heats" WHERE "nationality"='serbia' AND "heat"<2;
|
2-18624865-3
|
When rank is 33, what is the smallest lane?
|
CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT MIN("lane") FROM "heats" WHERE "rank"=33;
|
2-18624865-3
|
Which Model has a Number of CPUs of 1–10, and a Performance (MIPS) of 49–447?
|
CREATE TABLE "s_390_computers" (
"model" text,
"year_introduced" real,
"number_of_cp_us" text,
"performance_mips" text,
"memory_gb" text
);
|
SELECT "model" FROM "s_390_computers" WHERE "number_of_cp_us"='1–10' AND "performance_mips"='49–447';
|
2-1856266-2
|
Which Year Introduced has a Memory (GB) of 0.125–2?
|
CREATE TABLE "s_390_computers" (
"model" text,
"year_introduced" real,
"number_of_cp_us" text,
"performance_mips" text,
"memory_gb" text
);
|
SELECT MAX("year_introduced") FROM "s_390_computers" WHERE "memory_gb"='0.125–2';
|
2-1856266-2
|
Which Number of CPUs has a Memory (GB) of 0.5–16?
|
CREATE TABLE "s_390_computers" (
"model" text,
"year_introduced" real,
"number_of_cp_us" text,
"performance_mips" text,
"memory_gb" text
);
|
SELECT "number_of_cp_us" FROM "s_390_computers" WHERE "memory_gb"='0.5–16';
|
2-1856266-2
|
Which Memory (GB) has a Number of CPUs of 1–6?
|
CREATE TABLE "s_390_computers" (
"model" text,
"year_introduced" real,
"number_of_cp_us" text,
"performance_mips" text,
"memory_gb" text
);
|
SELECT "memory_gb" FROM "s_390_computers" WHERE "number_of_cp_us"='1–6';
|
2-1856266-2
|
Which Fuel Type that has a mpg-US Extra-Urban larger than 53.5, and a mpg-US Combined larger than 50 from renault?
|
CREATE TABLE "see_also" (
"manufacturer" text,
"model" text,
"transmission" text,
"engine_capacity" text,
"fuel_type" text,
"l_100km_urban_cold" real,
"l_100km_extra_urban" real,
"l_100km_combined" real,
"mpg_uk_urban_cold" real,
"mpg_uk_extra_urban" real,
"mpg_uk_combined" real,
"mpg_us_urban" real,
"mpg_us_extra_urban" real,
"mpg_us_combined" real,
"co_2_g_km" real,
"green_rating" text
);
|
SELECT "fuel_type" FROM "see_also" WHERE "mpg_us_extra_urban">53.5 AND "mpg_us_combined">50 AND "manufacturer"='renault';
|
2-18869583-1
|
What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56?
|
CREATE TABLE "semifinal_a_b_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
|
SELECT "country" FROM "semifinal_a_b_1" WHERE "rank">4 AND "time"='5:59.56';
|
2-18662679-7
|
What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?
|
CREATE TABLE "semifinal_a_b_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
|
SELECT "time" FROM "semifinal_a_b_1" WHERE "rank">2 AND "notes"='fb' AND "country"='belarus';
|
2-18662679-7
|
What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?
|
CREATE TABLE "semifinal_a_b_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
|
SELECT "time" FROM "semifinal_a_b_1" WHERE "notes"='fa' AND "rank"<2;
|
2-18662679-7
|
Who are the Rowers from Poland?
|
CREATE TABLE "semifinal_a_b_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
|
SELECT "rowers" FROM "semifinal_a_b_1" WHERE "country"='poland';
|
2-18662679-7
|
Who are the Rowers with a Time of 5:56.38?
|
CREATE TABLE "semifinal_a_b_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
);
|
SELECT "rowers" FROM "semifinal_a_b_1" WHERE "time"='5:56.38';
|
2-18662679-7
|
What's the release date for Claws For Alarm who has a director of Charles M. Jones, no reissue, and a production number less than 1323?
|
CREATE TABLE "1954" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text,
"reissue" text
);
|
SELECT "release_date" FROM "1954" WHERE "production_number"<1323 AND "reissue"='no' AND "director"='charles m. jones' AND "title"='claws for alarm';
|
2-18792948-5
|
What's the title of the film with the release date of 1954-12-18?
|
CREATE TABLE "1954" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text,
"reissue" text
);
|
SELECT "title" FROM "1954" WHERE "release_date"='1954-12-18';
|
2-18792948-5
|
Was there a reissue with a release date of 1954-09-04 having a production number more than 1289 and a director of Robert McKimson?
|
CREATE TABLE "1954" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text,
"reissue" text
);
|
SELECT "reissue" FROM "1954" WHERE "director"='robert mckimson' AND "production_number">1289 AND "release_date"='1954-09-04';
|
2-18792948-5
|
What is the production number for Bell Hoppy in the MM Series?
|
CREATE TABLE "1954" (
"title" text,
"series" text,
"director" text,
"production_number" real,
"release_date" text,
"reissue" text
);
|
SELECT COUNT("production_number") FROM "1954" WHERE "series"='mm' AND "title"='bell hoppy';
|
2-18792948-5
|
How much Scored has Losses smaller than 0?
|
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT SUM("scored") FROM "torneo_clausura" WHERE "losses"<0;
|
2-18594107-2
|
Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?
|
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT MIN("wins") FROM "torneo_clausura" WHERE "losses"<6 AND "position"=4 AND "played">9;
|
2-18594107-2
|
How much Conceded has Wins smaller than 3, and Points larger than 11?
|
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT COUNT("conceded") FROM "torneo_clausura" WHERE "wins"<3 AND "points">11;
|
2-18594107-2
|
Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1?
|
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT MIN("draws") FROM "torneo_clausura" WHERE "points"<15 AND "conceded">10 AND "position">8 AND "wins"=1;
|
2-18594107-2
|
How many losses have 11 points?
|
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
|
SELECT COUNT("losses") FROM "torneo_clausura" WHERE "points"=11;
|
2-18594107-2
|
What is the song title sung by Sonu Nigam with lyricists of Dev Kohli/Biddu, and number over 8?
|
CREATE TABLE "song_list" (
"number" real,
"song_title" text,
"lyricist" text,
"singer_s" text,
"length" text
);
|
SELECT "song_title" FROM "song_list" WHERE "singer_s"='sonu nigam' AND "lyricist"='dev kohli/biddu' AND "number">8;
|
2-18704586-1
|
Who was the singer for the song numbered 3, with lyricist Dev Kohli?
|
CREATE TABLE "song_list" (
"number" real,
"song_title" text,
"lyricist" text,
"singer_s" text,
"length" text
);
|
SELECT "singer_s" FROM "song_list" WHERE "lyricist"='dev kohli' AND "number"=3;
|
2-18704586-1
|
What is the average number for the song "O Sudha"?
|
CREATE TABLE "song_list" (
"number" real,
"song_title" text,
"lyricist" text,
"singer_s" text,
"length" text
);
|
SELECT AVG("number") FROM "song_list" WHERE "song_title"='o sudha';
|
2-18704586-1
|
What is the average length for the song "Ma Ke Jaisi"?
|
CREATE TABLE "song_list" (
"number" real,
"song_title" text,
"lyricist" text,
"singer_s" text,
"length" text
);
|
SELECT "length" FROM "song_list" WHERE "song_title"='ma ke jaisi';
|
2-18704586-1
|
Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?
|
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 "name" FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "league_cup_goals"<2 AND "total_goals"=2;
|
2-18700010-1
|
what is the fa cup goals when total apps is 10 (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 SUM("fa_cup_goals") FROM "appearances_and_goals" WHERE "total_apps"='10 (4)';
|
2-18700010-1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.