question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
Where was the opponent Germany?
|
CREATE TABLE "national_team_matches" (
"date" text,
"location" text,
"opponenent" text,
"result" text,
"match_type" text
);
|
SELECT "location" FROM "national_team_matches" WHERE "opponenent"='germany';
|
2-12234089-1
|
Who was the opponent when the result was 2-2 (draw)?
|
CREATE TABLE "national_team_matches" (
"date" text,
"location" text,
"opponenent" text,
"result" text,
"match_type" text
);
|
SELECT "opponenent" FROM "national_team_matches" WHERE "result"='2-2 (draw)';
|
2-12234089-1
|
What was the match type in Budapest where the opponent was Luxembourg?
|
CREATE TABLE "national_team_matches" (
"date" text,
"location" text,
"opponenent" text,
"result" text,
"match_type" text
);
|
SELECT "match_type" FROM "national_team_matches" WHERE "location"='budapest' AND "opponenent"='luxembourg';
|
2-12234089-1
|
Which player has the score 72-67-69=208?
|
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
|
SELECT "player" FROM "third_round" WHERE "score"='72-67-69=208';
|
2-12531523-5
|
Who has the par score of 70-76-68-214?
|
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
|
SELECT "to_par" FROM "third_round" WHERE "score"='70-76-68-214';
|
2-12531523-5
|
Which country has the score 70-76-68-214?
|
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
|
SELECT "country" FROM "third_round" WHERE "score"='70-76-68-214';
|
2-12531523-5
|
when was the first performance for the ballet with peter mazurowski in the final cast?
|
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
|
SELECT "first_performance" FROM "billy_elliot" WHERE "style"='ballet' AND "status"='final cast' AND "name"='peter mazurowski';
|
2-12586867-9
|
who had the first performance on 3 july 2011?
|
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
|
SELECT "name" FROM "billy_elliot" WHERE "first_performance"='3 july 2011';
|
2-12586867-9
|
who had a last performance of 3 july 2011?
|
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
|
SELECT "name" FROM "billy_elliot" WHERE "last_performance"='3 july 2011';
|
2-12586867-9
|
what's the status in the style of ballet/ gymnastics?
|
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
|
SELECT "status" FROM "billy_elliot" WHERE "style"='ballet/ gymnastics';
|
2-12586867-9
|
what's the name with final cast status and first performance on 12 november 2011?
|
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
|
SELECT "name" FROM "billy_elliot" WHERE "status"='final cast' AND "first_performance"='12 november 2011';
|
2-12586867-9
|
what last performance has past status, ballet as style and tommy batchelor?
|
CREATE TABLE "billy_elliot" (
"status" text,
"name" text,
"first_performance" text,
"last_performance" text,
"style" text
);
|
SELECT "last_performance" FROM "billy_elliot" WHERE "status"='past' AND "style"='ballet' AND "name"='tommy batchelor';
|
2-12586867-9
|
How many goals was by Rix from Eng who started before 2005 in the youth system?
|
CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" real,
"goals" real,
"ends" text,
"transfer_fee" text
);
|
SELECT COUNT("goals") FROM "squad_information" WHERE "nat"='eng' AND "transfer_fee"='youth system' AND "since"<2005 AND "name"='rix';
|
2-12964478-1
|
Where is Rix from?
|
CREATE TABLE "squad_information" (
"nat" text,
"name" text,
"since" real,
"goals" real,
"ends" text,
"transfer_fee" text
);
|
SELECT "nat" FROM "squad_information" WHERE "name"='rix';
|
2-12964478-1
|
What is the specification of the locomotives with a total produced more than 19 and a model of fb-1?
|
CREATE TABLE "cab_units_fa_fp_series" (
"model" text,
"specification" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"prime_mover" text,
"power_output" text
);
|
SELECT "specification" FROM "cab_units_fa_fp_series" WHERE "total_produced">19 AND "model"='fb-1';
|
2-1257252-2
|
What is the build date of the locomotives with a total produced less than 45 and a fb-2 model?
|
CREATE TABLE "cab_units_fa_fp_series" (
"model" text,
"specification" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"prime_mover" text,
"power_output" text
);
|
SELECT "build_date" FROM "cab_units_fa_fp_series" WHERE "total_produced"<45 AND "model"='fb-2';
|
2-1257252-2
|
What is the prime mover of the locomotive with a fa-2 model?
|
CREATE TABLE "cab_units_fa_fp_series" (
"model" text,
"specification" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"prime_mover" text,
"power_output" text
);
|
SELECT "prime_mover" FROM "cab_units_fa_fp_series" WHERE "model"='fa-2';
|
2-1257252-2
|
What is the build date of the locomotive with a fa-2 model?
|
CREATE TABLE "cab_units_fa_fp_series" (
"model" text,
"specification" text,
"build_date" text,
"total_produced" real,
"wheel_arrangement" text,
"prime_mover" text,
"power_output" text
);
|
SELECT "build_date" FROM "cab_units_fa_fp_series" WHERE "model"='fa-2';
|
2-1257252-2
|
What region has a transmitter located at Mount Sugarloaf?
|
CREATE TABLE "main_transmitters" (
"region_served" text,
"city" text,
"channels_analog_digital" text,
"first_air_date" text,
"erp_analog_digital" text,
"haat_analog_digital_1" text,
"transmitter_location" text
);
|
SELECT "region_served" FROM "main_transmitters" WHERE "transmitter_location"='mount sugarloaf';
|
2-1213811-1
|
Name the 3rd round for 1st eound of out of playoffs
|
CREATE TABLE "playoffs" (
"season" text,
"prelim" text,
"1st_round" text,
"2nd_round" text,
"3rd_round" text,
"finals" text
);
|
SELECT "3rd_round" FROM "playoffs" WHERE "1st_round"='out of playoffs';
|
2-1238539-2
|
Name the finals for prelim of out of playoffs
|
CREATE TABLE "playoffs" (
"season" text,
"prelim" text,
"1st_round" text,
"2nd_round" text,
"3rd_round" text,
"finals" text
);
|
SELECT "finals" FROM "playoffs" WHERE "prelim"='out of playoffs';
|
2-1238539-2
|
Name the 2nd round for 1st round of l, 1–3, sjnb
|
CREATE TABLE "playoffs" (
"season" text,
"prelim" text,
"1st_round" text,
"2nd_round" text,
"3rd_round" text,
"finals" text
);
|
SELECT "2nd_round" FROM "playoffs" WHERE "1st_round"='l, 1–3, sjnb';
|
2-1238539-2
|
Who is the musical director of the film Vettaiyaadu vilaiyaadu?
|
CREATE TABLE "notable_filmography" (
"year" real,
"song" text,
"film" text,
"language" text,
"music_director" text
);
|
SELECT "music_director" FROM "notable_filmography" WHERE "film"='vettaiyaadu vilaiyaadu';
|
2-12737214-2
|
What is the 2007 film in Hindi with a music director Shantanu moitra?
|
CREATE TABLE "notable_filmography" (
"year" real,
"song" text,
"film" text,
"language" text,
"music_director" text
);
|
SELECT "film" FROM "notable_filmography" WHERE "year"=2007 AND "language"='hindi' AND "music_director"='shantanu moitra';
|
2-12737214-2
|
What is the number of losses that coach John Kowalski has with a PTS smaller than 9?
|
CREATE TABLE "winningest_coaches_by_wins" (
"coach" text,
"team" text,
"wins" real,
"loss" real,
"pct" real,
"pts" real
);
|
SELECT COUNT("loss") FROM "winningest_coaches_by_wins" WHERE "coach"='john kowalski' AND "pts"<9;
|
2-1263399-7
|
What is the average PCT when it has a PTS smaller than 9 a wins larger than 1?
|
CREATE TABLE "winningest_coaches_by_wins" (
"coach" text,
"team" text,
"wins" real,
"loss" real,
"pct" real,
"pts" real
);
|
SELECT AVG("pct") FROM "winningest_coaches_by_wins" WHERE "pts"<9 AND "wins">1;
|
2-1263399-7
|
What is the sum of PTS when there is a PCT smaller than 0.1?
|
CREATE TABLE "winningest_coaches_by_wins" (
"coach" text,
"team" text,
"wins" real,
"loss" real,
"pct" real,
"pts" real
);
|
SELECT SUM("pts") FROM "winningest_coaches_by_wins" WHERE "pct"<0.1;
|
2-1263399-7
|
What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19?
|
CREATE TABLE "winningest_coaches_by_wins" (
"coach" text,
"team" text,
"wins" real,
"loss" real,
"pct" real,
"pts" real
);
|
SELECT "coach" FROM "winningest_coaches_by_wins" WHERE "pct">0.1 AND "pts">9 AND "loss"=19;
|
2-1263399-7
|
What's the name of spain rank greater than 2?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "name" FROM "semifinal_2" WHERE "rank">2 AND "nationality"='spain';
|
2-12427181-5
|
Spain had what time with lanes smaller than 4?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "time" FROM "semifinal_2" WHERE "lane"<4 AND "nationality"='spain';
|
2-12427181-5
|
What's the smallest rank of noriko inada?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT MIN("rank") FROM "semifinal_2" WHERE "name"='noriko inada';
|
2-12427181-5
|
How many total losses have teams that played more than 30 games?
|
CREATE TABLE "ppl_2004_final_standings" (
"team" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
|
SELECT COUNT("lost") FROM "ppl_2004_final_standings" WHERE "played">30;
|
2-12750254-1
|
What is the number of the rank when the time is 2:15.98, in a lane larger than 7?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT COUNT("rank") FROM "semifinal_2" WHERE "time"='2:15.98' AND "lane">7;
|
2-12446647-5
|
What is the number of the rank for the name of Chen Yan in a lane less than 2?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT COUNT("rank") FROM "semifinal_2" WHERE "name"='chen yan' AND "lane"<2;
|
2-12446647-5
|
What is the smallest lane for rank 6?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT MIN("lane") FROM "semifinal_2" WHERE "rank"=6;
|
2-12446647-5
|
What's the total for a league cup less than 1?
|
CREATE TABLE "goals" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
|
SELECT COUNT("league_cup") FROM "goals" WHERE "total"<1;
|
2-12872606-3
|
What's the FA Cup that has a league less than 1?
|
CREATE TABLE "goals" (
"name" text,
"league" real,
"play_offs" real,
"fa_cup" real,
"league_cup" real,
"total" real
);
|
SELECT SUM("fa_cup") FROM "goals" WHERE "league"<1;
|
2-12872606-3
|
Which town has the most villages with the hanzi 南流乡 and a population larger than 24,802?
|
CREATE TABLE "administrative_divisions" (
"name" text,
"hanzi" text,
"area_km" real,
"population" real,
"villages" real
);
|
SELECT MAX("villages") FROM "administrative_divisions" WHERE "hanzi"='南流乡' AND "population">'24,802';
|
2-12425097-1
|
What position did lap 296 come in?
|
CREATE TABLE "complete_24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text
);
|
SELECT "pos" FROM "complete_24_hours_of_le_mans_results" WHERE "laps"=296;
|
2-1228225-3
|
How many games did the Club that has a try bonus of 4 and 391 points against play ?
|
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
|
SELECT "played" FROM "2008_2009_table" WHERE "try_bonus"='4' AND "points_against"='391';
|
2-12792876-4
|
How many points against did Carmarthen Athletic RFC have when they played 22 games ?
|
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
|
SELECT "points_against" FROM "2008_2009_table" WHERE "played"='22' AND "club"='carmarthen athletic rfc';
|
2-12792876-4
|
Which club lost 10 games ?
|
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
|
SELECT "club" FROM "2008_2009_table" WHERE "lost"='10';
|
2-12792876-4
|
How many points for did the club that had 77 tries for have ?
|
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
|
SELECT "points_for" FROM "2008_2009_table" WHERE "tries_for"='77';
|
2-12792876-4
|
Which club has a try bonus of 2 ?
|
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
);
|
SELECT "club" FROM "2008_2009_table" WHERE "try_bonus"='2';
|
2-12792876-4
|
Name the most attendance for october 11
|
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
|
SELECT MAX("attendance") FROM "regular_season" WHERE "date"='october 11';
|
2-13244501-2
|
Name the visitor for october 19
|
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
|
SELECT "visitor" FROM "regular_season" WHERE "date"='october 19';
|
2-13244501-2
|
The highest year for the series titled dragon laws ii: kidnapped is what?
|
CREATE TABLE "dragon_laws_television_films" (
"year" real,
"series_title" text,
"chinese_title" text,
"role" text,
"channel" text
);
|
SELECT MAX("year") FROM "dragon_laws_television_films" WHERE "series_title"='dragon laws ii: kidnapped';
|
2-12795474-2
|
The series titled dragon laws i: the undercover has what role?
|
CREATE TABLE "dragon_laws_television_films" (
"year" real,
"series_title" text,
"chinese_title" text,
"role" text,
"channel" text
);
|
SELECT "role" FROM "dragon_laws_television_films" WHERE "series_title"='dragon laws i: the undercover';
|
2-12795474-2
|
Which athlete has the fastest time of 15.82?
|
CREATE TABLE "paralympic_women" (
"classification" text,
"fastest_time_s" real,
"athlete" text,
"country" text,
"date" text,
"location" text
);
|
SELECT "athlete" FROM "paralympic_women" WHERE "fastest_time_s"=15.82;
|
2-1231316-9
|
What is the total number of years that an entrant had more than 0 points?
|
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT COUNT("year") FROM "complete_world_championship_formula_one_" WHERE "points">0;
|
2-1235134-1
|
Name the total number of years for brm straight-4
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='brm straight-4';
|
2-1233847-1
|
Name the total number of points for chassis of bmw t269 (f2)
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='bmw t269 (f2)';
|
2-1233847-1
|
Whats the highest Promotions that has a Team of Pallacanestro Messina, along with Relegations larger than 0?
|
CREATE TABLE "appearances_through_the_2011_12_season" (
"seasons" real,
"team" text,
"ch_wins" real,
"promotions" real,
"relegations" real
);
|
SELECT MAX("promotions") FROM "appearances_through_the_2011_12_season" WHERE "team"='pallacanestro messina' AND "relegations">0;
|
2-12870321-2
|
What are the lowest points with a Chassis of zakspeed 841, and a Year smaller than 1985?
|
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
|
SELECT MIN("points") FROM "complete_world_championship_formula_one_" WHERE "chassis"='zakspeed 841' AND "year"<1985;
|
2-1219581-1
|
What is the lowest year with tyres in g and less than 0 points?
|
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
|
SELECT MIN("year") FROM "complete_world_championship_formula_one_" WHERE "tyres"='g' AND "points"<0;
|
2-1219581-1
|
Which year has an Engine(s) of yamaha v8?
|
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
|
SELECT "year" FROM "complete_world_championship_formula_one_" WHERE "engine_s"='yamaha v8';
|
2-1219581-1
|
What are the average points with a Chassis of zakspeed 881?
|
CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"chassis" text,
"engine_s" text,
"tyres" text,
"points" real
);
|
SELECT AVG("points") FROM "complete_world_championship_formula_one_" WHERE "chassis"='zakspeed 881';
|
2-1219581-1
|
Which League has a Venue of martin luther king, jr. recreation center?
|
CREATE TABLE "minor_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
|
SELECT "league" FROM "minor_sports_teams" WHERE "venue"='martin luther king, jr. recreation center';
|
2-12414833-2
|
Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium?
|
CREATE TABLE "minor_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
|
SELECT "championships_years" FROM "minor_sports_teams" WHERE "league"='milb, florida state league' AND "venue"='ed smith stadium';
|
2-12414833-2
|
Which Sport has a League of continental basketball league, and a Venue of avalon middle school?
|
CREATE TABLE "minor_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
|
SELECT "sport" FROM "minor_sports_teams" WHERE "league"='continental basketball league' AND "venue"='avalon middle school';
|
2-12414833-2
|
Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb, florida state league, and a Club of jupiter hammerheads?
|
CREATE TABLE "minor_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
|
SELECT "venue" FROM "minor_sports_teams" WHERE "sport"='baseball' AND "championships_years"='0' AND "league"='milb, florida state league' AND "club"='jupiter hammerheads';
|
2-12414833-2
|
Which club has a League of american basketball association, and a Venue of tba?
|
CREATE TABLE "minor_sports_teams" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"championships_years" text
);
|
SELECT "club" FROM "minor_sports_teams" WHERE "league"='american basketball association' AND "venue"='tba';
|
2-12414833-2
|
Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school?
|
CREATE TABLE "hurunui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "area" FROM "hurunui_district" WHERE "years"='1–8' AND "decile"<7 AND "name"='waikari school';
|
2-12256602-2
|
What is the average decile with Years of 1–8, and an Area of waipara?
|
CREATE TABLE "hurunui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT AVG("decile") FROM "hurunui_district" WHERE "years"='1–8' AND "area"='waipara';
|
2-12256602-2
|
Which area has Years of 1–8, and a Name of broomfield school?
|
CREATE TABLE "hurunui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "area" FROM "hurunui_district" WHERE "years"='1–8' AND "name"='broomfield school';
|
2-12256602-2
|
What is the smallest roll with a Decile larger than 6, and a Name of broomfield school?
|
CREATE TABLE "hurunui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT MIN("roll") FROM "hurunui_district" WHERE "decile">6 AND "name"='broomfield school';
|
2-12256602-2
|
Which name has a Roll of 270?
|
CREATE TABLE "hurunui_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "name" FROM "hurunui_district" WHERE "roll"=270;
|
2-12256602-2
|
Who directed the episode written by Dan Serafin and aired on July 23, 2008?
|
CREATE TABLE "season_1_2007_2009" (
"prod_no" text,
"title" text,
"written_by" text,
"directed_by" text,
"original_airdate" text
);
|
SELECT "directed_by" FROM "season_1_2007_2009" WHERE "written_by"='dan serafin' AND "original_airdate"='july 23, 2008';
|
2-12386635-2
|
What is the title of the episode originally aired on February 2, 2008?
|
CREATE TABLE "season_1_2007_2009" (
"prod_no" text,
"title" text,
"written_by" text,
"directed_by" text,
"original_airdate" text
);
|
SELECT "title" FROM "season_1_2007_2009" WHERE "original_airdate"='february 2, 2008';
|
2-12386635-2
|
How much money did James Seddon request?
|
CREATE TABLE "series_3" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
|
SELECT "money_requested" FROM "series_3" WHERE "entrepreneur_s"='james seddon';
|
2-12617978-7
|
Which Entrepreneur(s) first aired on 24 August 2006?
|
CREATE TABLE "series_3" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
|
SELECT "entrepreneur_s" FROM "series_3" WHERE "first_aired"='24 august 2006';
|
2-12617978-7
|
Which Entrepreneur(s) have mixalbum?
|
CREATE TABLE "series_3" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
|
SELECT "entrepreneur_s" FROM "series_3" WHERE "company_or_product_name"='mixalbum';
|
2-12617978-7
|
How much money did Ian Chamings request?
|
CREATE TABLE "series_3" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
|
SELECT "money_requested" FROM "series_3" WHERE "entrepreneur_s"='ian chamings';
|
2-12617978-7
|
Which Investing Dragon(s) requested 100,000 in money and has autosafe?
|
CREATE TABLE "series_3" (
"episode" text,
"first_aired" text,
"entrepreneur_s" text,
"company_or_product_name" text,
"money_requested" text,
"investing_dragon_s" text
);
|
SELECT "investing_dragon_s" FROM "series_3" WHERE "money_requested"='100,000' AND "company_or_product_name"='autosafe';
|
2-12617978-7
|
How tall is the Anqing Bridge which opened prior to 2011?
|
CREATE TABLE "completed" (
"name" text,
"height_of_bridge_structure" text,
"longest_span" text,
"type" text,
"opened" real,
"location" text
);
|
SELECT "height_of_bridge_structure" FROM "completed" WHERE "opened"<2011 AND "name"='anqing bridge';
|
2-12756433-1
|
Where did the cable-stayed Badong Bridge open in 2005?
|
CREATE TABLE "completed" (
"name" text,
"height_of_bridge_structure" text,
"longest_span" text,
"type" text,
"opened" real,
"location" text
);
|
SELECT "location" FROM "completed" WHERE "type"='cable-stayed' AND "opened"=2005 AND "name"='badong bridge';
|
2-12756433-1
|
Name the average year for janaprakal chandruang
|
CREATE TABLE "list_of_silpathorn_award_winners" (
"year" real,
"literature" text,
"music" text,
"film" text,
"performing_arts" text
);
|
SELECT AVG("year") FROM "list_of_silpathorn_award_winners" WHERE "performing_arts"='janaprakal chandruang';
|
2-12896747-1
|
Name the literature for pradit prasarttong
|
CREATE TABLE "list_of_silpathorn_award_winners" (
"year" real,
"literature" text,
"music" text,
"film" text,
"performing_arts" text
);
|
SELECT "literature" FROM "list_of_silpathorn_award_winners" WHERE "performing_arts"='pradit prasarttong';
|
2-12896747-1
|
What was the first year Fabrice Soulier was a runner-up?
|
CREATE TABLE "main_event_winners" (
"year" real,
"winner" text,
"winning_hand" text,
"prize_money" text,
"entrants" real,
"runner_up" text,
"losing_hand" text
);
|
SELECT MIN("year") FROM "main_event_winners" WHERE "runner_up"='fabrice soulier';
|
2-12454156-1
|
How many entrants were there in 2011?
|
CREATE TABLE "main_event_winners" (
"year" real,
"winner" text,
"winning_hand" text,
"prize_money" text,
"entrants" real,
"runner_up" text,
"losing_hand" text
);
|
SELECT COUNT("entrants") FROM "main_event_winners" WHERE "year"=2011;
|
2-12454156-1
|
What was the rank of Bobby Grim when he finished 1059 laps?
|
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
|
SELECT "rank" FROM "indy_500_results" WHERE "laps"=1059;
|
2-1252052-1
|
What is the rd., time of the match with a win result, a tko type, and Carlos Molina as the opponent?
|
CREATE TABLE "professional_boxing_record" (
"res" text,
"record" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" text
);
|
SELECT "rd_time" FROM "professional_boxing_record" WHERE "res"='win' AND "type"='tko' AND "opponent"='carlos molina';
|
2-1290366-1
|
What is the record of the match on 2009-07-18?
|
CREATE TABLE "professional_boxing_record" (
"res" text,
"record" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" text
);
|
SELECT "record" FROM "professional_boxing_record" WHERE "date"='2009-07-18';
|
2-1290366-1
|
What is the type of the match with a win result and Michael Gomez as the opponent?
|
CREATE TABLE "professional_boxing_record" (
"res" text,
"record" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" text
);
|
SELECT "type" FROM "professional_boxing_record" WHERE "res"='win' AND "opponent"='michael gomez';
|
2-1290366-1
|
What were the goals when the caps were set at 48?
|
CREATE TABLE "internationally_capped_players" (
"player" text,
"country" text,
"caps" real,
"goals" text,
"years_active" text
);
|
SELECT "goals" FROM "internationally_capped_players" WHERE "caps"=48;
|
2-1257177-1
|
How many caps did the player Mile Sterjovski have?
|
CREATE TABLE "internationally_capped_players" (
"player" text,
"country" text,
"caps" real,
"goals" text,
"years_active" text
);
|
SELECT "caps" FROM "internationally_capped_players" WHERE "player"='mile sterjovski';
|
2-1257177-1
|
What are the goals of Mile Sterjovski as a player?
|
CREATE TABLE "internationally_capped_players" (
"player" text,
"country" text,
"caps" real,
"goals" text,
"years_active" text
);
|
SELECT "goals" FROM "internationally_capped_players" WHERE "player"='mile sterjovski';
|
2-1257177-1
|
How many caps did Mitchell Duke have overall?
|
CREATE TABLE "internationally_capped_players" (
"player" text,
"country" text,
"caps" real,
"goals" text,
"years_active" text
);
|
SELECT COUNT("caps") FROM "internationally_capped_players" WHERE "player"='mitchell duke';
|
2-1257177-1
|
Which opponent has a Date of 16 february 2003?
|
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
|
SELECT "opponent" FROM "fa_cup" WHERE "date"='16 february 2003';
|
2-12322518-3
|
Which date has an A venue with an Opponent of stoke city?
|
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
|
SELECT "date" FROM "fa_cup" WHERE "venue"='a' AND "opponent"='stoke city';
|
2-12322518-3
|
Which opponent has a Round of r5?
|
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
|
SELECT "opponent" FROM "fa_cup" WHERE "round"='r5';
|
2-12322518-3
|
Which Scorers have a Venue of A, and an Opponent of arsenal?
|
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
|
SELECT "scorers" FROM "fa_cup" WHERE "venue"='a' AND "opponent"='arsenal';
|
2-12322518-3
|
Which Opponent has a Round of qf replay?
|
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real,
"scorers" text
);
|
SELECT "opponent" FROM "fa_cup" WHERE "round"='qf replay';
|
2-12322518-3
|
Who took the loss on the April 6 game?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "loss" FROM "game_log" WHERE "date"='april 6';
|
2-13041602-2
|
What was the record after the April 15 game?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "date"='april 15';
|
2-13041602-2
|
Who was the opponent that led to a 10-13 record?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "opponent" FROM "game_log" WHERE "record"='10-13';
|
2-13041602-2
|
What is the record after the April 6 game?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "date"='april 6';
|
2-13041602-2
|
What was the score for the April 12 game?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "date"='april 12';
|
2-13041602-2
|
What team has the most wins with at least 18 goals and less than 5 losses?
|
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
|
SELECT MAX("wins") FROM "final_standing" WHERE "goals_for"=18 AND "losses"<5;
|
2-12317166-1
|
How many times has the Cornwall HC team, that has scored more than 18 goals, lost ?
|
CREATE TABLE "final_standing" (
"team" text,
"games_played" real,
"wins" real,
"losses" real,
"ties" real,
"goals_for" real,
"goals_against" real
);
|
SELECT COUNT("losses") FROM "final_standing" WHERE "team"='cornwall hc' AND "goals_for">18;
|
2-12317166-1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.