question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What year at CU is the person in video services with an experience less than 1?
CREATE TABLE "coaches_staff" ( "position" text, "name" text, "year_at_cu" text, "experience" real, "alma_mater" text );
SELECT "year_at_cu" FROM "coaches_staff" WHERE "experience"<1 AND "position"='video services';
2-18527831-1
The graduate assistant who was in the 1st year at CU has what experience?
CREATE TABLE "coaches_staff" ( "position" text, "name" text, "year_at_cu" text, "experience" real, "alma_mater" text );
SELECT "experience" FROM "coaches_staff" WHERE "year_at_cu"='1st' AND "position"='graduate assistant';
2-18527831-1
What person has the alma mater of Eastern Nazarene ('74), and greater than 19 experience?
CREATE TABLE "coaches_staff" ( "position" text, "name" text, "year_at_cu" text, "experience" real, "alma_mater" text );
SELECT "name" FROM "coaches_staff" WHERE "experience">19 AND "alma_mater"='eastern nazarene (''74)';
2-18527831-1
What is the total engine capacity of the a4 transmission, which has an urban mpg-US greater than 19, an mpg-us extra-urban greater than 38.6, and an aveo model?
CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" real, "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 COUNT("engine_capacity") FROM "see_also" WHERE "transmission"='a4' AND "mpg_us_urban">19 AND "mpg_us_extra_urban">38.6 AND "model"='aveo';
2-18869395-1
What is the highest engine capacity with a bmw manufacturer, an mpg-UK extra-urban of 52.3, a 176 CO 2 g/km, and an mpg-us urban greater than 27.3?
CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" real, "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 MAX("engine_capacity") FROM "see_also" WHERE "manufacturer"='bmw' AND "mpg_uk_extra_urban"=52.3 AND "co_2_g_km"=176 AND "mpg_us_urban">27.3;
2-18869395-1
What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity less than 1560?
CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" real, "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 "mpg_uk_combined" FROM "see_also" WHERE "mpg_uk_urban_cold">26.6 AND "transmission"='m5' AND "fuel_type"='diesel' AND "engine_capacity"<1560;
2-18869395-1
What is the l/100km urban (cold) with a CO 2 g/km less than 222, an mpg-us urban greater than 17.8, an mpg-uk extra-urban of 55.4, and an engine capacity greater than 1560?
CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" real, "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 "l_100km_urban_cold" FROM "see_also" WHERE "co_2_g_km"<222 AND "mpg_us_urban">17.8 AND "mpg_uk_extra_urban"=55.4 AND "engine_capacity">1560;
2-18869395-1
What model has a g green rating, has chrysler jeep as a manufacturer, has an l/100km urban (cold) less than 18, and has an mpg-uk combined of 27.7?
CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" real, "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 "model" FROM "see_also" WHERE "green_rating"='g' AND "manufacturer"='chrysler jeep' AND "l_100km_urban_cold"<18 AND "mpg_uk_combined"=27.7;
2-18869395-1
what is the league cup apps when the total goals is less than 2 and the total apps is 12?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT "league_cup_apps" FROM "appearances_and_goals" WHERE "total_goals"<2 AND "total_apps"='12';
2-18423935-1
what is the average ga cup goals when the league cup apps is 2, the fa cup apps is 3 and the league goals is 3?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT AVG("fa_cup_goals") FROM "appearances_and_goals" WHERE "league_cup_apps"='2' AND "fa_cup_apps"='3' AND "league_goals"=3;
2-18423935-1
what is the highest fa cup goals when flt goals is more than 0?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT MAX("fa_cup_goals") FROM "appearances_and_goals" WHERE "flt_goals">0;
2-18423935-1
what is the total apps when the league apps is 4 (2)?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real );
SELECT "total_apps" FROM "appearances_and_goals" WHERE "league_apps"='4 (2)';
2-18423935-1
How much Silver has a Total larger than 9, and a Gold of 14?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("silver") FROM "medals_table" WHERE "total">9 AND "gold"=14;
2-18991964-3
Which Rank has a Total larger than 9, and a Gold larger than 6?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "rank" FROM "medals_table" WHERE "total">9 AND "gold">6;
2-18991964-3
How much Silver has a Rank of 4, and a Bronze smaller than 12?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("silver") FROM "medals_table" WHERE "rank"='4' AND "bronze"<12;
2-18991964-3
How many bronzes have a Total of 9?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("bronze") FROM "medals_table" WHERE "total"=9;
2-18991964-3
How much Gold has a Nation of mongolia, and a Total larger than 18?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "medals_table" WHERE "nation"='mongolia' AND "total">18;
2-18991964-3
What is the Lok Sabha for Dravida Munnetra Kazhagam, in 1999-04?
CREATE TABLE "members_of_the_parliament" ( "lok_sabha" text, "duration" text, "name_of_m_p" text, "party_affiliation" text, "election_year" real );
SELECT "lok_sabha" FROM "members_of_the_parliament" WHERE "party_affiliation"='dravida munnetra kazhagam' AND "duration"='1999-04';
2-18640543-1
What is the duration when Lok Sabha shows fifth?
CREATE TABLE "members_of_the_parliament" ( "lok_sabha" text, "duration" text, "name_of_m_p" text, "party_affiliation" text, "election_year" real );
SELECT "duration" FROM "members_of_the_parliament" WHERE "lok_sabha"='fifth';
2-18640543-1
What was the result for the game played on December 20, 1970?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "result" FROM "schedule" WHERE "date"='december 20, 1970';
2-18733362-2
What was the result for week 2?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "result" FROM "schedule" WHERE "week"=2;
2-18733362-2
What is the rank of the athletes that have Notes of fb, and a Time of 6:47.30?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );
SELECT SUM("rank") FROM "semifinal_a_b_2" WHERE "notes"='fb' AND "time"='6:47.30';
2-18662689-7
What is the least rank for athletes with a time of 6:36.65?
CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );
SELECT MIN("rank") FROM "semifinal_a_b_2" WHERE "time"='6:36.65';
2-18662689-7
What is the average react for a rank more than 8?
CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );
SELECT AVG("react") FROM "heat_1" WHERE "rank">8;
2-18569011-11
What is the highest rank for the react of 0.198, and the time more than 20.42?
CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );
SELECT MAX("rank") FROM "heat_1" WHERE "react"=0.198 AND "time">20.42;
2-18569011-11
What is the sum of time with a lane larger than 6, a nationality of canada, and the react smaller than 0.151?
CREATE TABLE "heat_1" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );
SELECT SUM("time") FROM "heat_1" WHERE "lane">6 AND "nationality"='canada' AND "react"<0.151;
2-18569011-11
What human gene has a yeast ortholog of RAD26?
CREATE TABLE "ner_associated_genes" ( "human_gene_protein" text, "mouse_ortholog" text, "yeast_ortholog" text, "subpathway" text, "gene_cards_entry" text );
SELECT "human_gene_protein" FROM "ner_associated_genes" WHERE "yeast_ortholog"='rad26';
2-1890884-1
What is the human gene that has a mouse ortholog of LIG1?
CREATE TABLE "ner_associated_genes" ( "human_gene_protein" text, "mouse_ortholog" text, "yeast_ortholog" text, "subpathway" text, "gene_cards_entry" text );
SELECT "human_gene_protein" FROM "ner_associated_genes" WHERE "mouse_ortholog"='lig1';
2-1890884-1
What is the yeast ortholog that has a subpathway of GGR and GeneCards entry CETN2?
CREATE TABLE "ner_associated_genes" ( "human_gene_protein" text, "mouse_ortholog" text, "yeast_ortholog" text, "subpathway" text, "gene_cards_entry" text );
SELECT "yeast_ortholog" FROM "ner_associated_genes" WHERE "subpathway"='ggr' AND "gene_cards_entry"='cetn2';
2-1890884-1
What is the yeast ortholog of mouse ortholog MMS19?
CREATE TABLE "ner_associated_genes" ( "human_gene_protein" text, "mouse_ortholog" text, "yeast_ortholog" text, "subpathway" text, "gene_cards_entry" text );
SELECT "yeast_ortholog" FROM "ner_associated_genes" WHERE "mouse_ortholog"='mms19';
2-1890884-1
What is the Tournament against Vladimir Zednik?
CREATE TABLE "singles_10_3_titles_7_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "tournament" FROM "singles_10_3_titles_7_runner_ups" WHERE "opponent"='vladimir zednik';
2-1870085-5
What Tournament had a Score of 4–6, 6–7, 3–6?
CREATE TABLE "singles_10_3_titles_7_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "tournament" FROM "singles_10_3_titles_7_runner_ups" WHERE "score"='4–6, 6–7, 3–6';
2-1870085-5
What is the Score of the of the Tournament against Tim Gullikson with Outcome of runner-up?
CREATE TABLE "singles_10_3_titles_7_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "singles_10_3_titles_7_runner_ups" WHERE "outcome"='runner-up' AND "opponent"='tim gullikson';
2-1870085-5
What is the Doha, Qatar when the snatch is total?
CREATE TABLE "records" ( "world_record" text, "snatch" text, "chen_yanqing_chn" text, "111kg" text, "doha_qatar" text );
SELECT "doha_qatar" FROM "records" WHERE "snatch"='total';
2-18547949-2
What shows for Chen Yanqing (CHN) when Doha, Qatar is —?
CREATE TABLE "records" ( "world_record" text, "snatch" text, "chen_yanqing_chn" text, "111kg" text, "doha_qatar" text );
SELECT "chen_yanqing_chn" FROM "records" WHERE "doha_qatar"='—';
2-18547949-2
What is the Doha, Qatar when the snatch is clean & jerk?
CREATE TABLE "records" ( "world_record" text, "snatch" text, "chen_yanqing_chn" text, "111kg" text, "doha_qatar" text );
SELECT "doha_qatar" FROM "records" WHERE "snatch"='clean & jerk';
2-18547949-2
Which Points have a Club of london wasps, and a Drop larger than 1?
CREATE TABLE "top_scorers" ( "points" real, "name" text, "club" text, "tries" real, "drop" real );
SELECT AVG("points") FROM "top_scorers" WHERE "club"='london wasps' AND "drop">1;
2-18796717-2
How many Points have a Name of stephen myler, and Tries smaller than 0?
CREATE TABLE "top_scorers" ( "points" real, "name" text, "club" text, "tries" real, "drop" real );
SELECT SUM("points") FROM "top_scorers" WHERE "name"='stephen myler' AND "tries"<0;
2-18796717-2
How many drops have Tries smaller than 5, and Points larger than 212?
CREATE TABLE "top_scorers" ( "points" real, "name" text, "club" text, "tries" real, "drop" real );
SELECT COUNT("drop") FROM "top_scorers" WHERE "tries"<5 AND "points">212;
2-18796717-2
What is the pick number for New Mexico?
CREATE TABLE "fourteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );
SELECT AVG("pick") FROM "fourteenth_round" WHERE "college"='new mexico';
2-18652198-14
What player is from the Denver Broncos?
CREATE TABLE "fourteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );
SELECT "player" FROM "fourteenth_round" WHERE "team"='denver broncos';
2-18652198-14
Which college has their team as the New York Jets?
CREATE TABLE "fourteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );
SELECT "college" FROM "fourteenth_round" WHERE "team"='new york jets';
2-18652198-14
What is the Constituency Number of Total:?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2003" real );
SELECT "constituency_number" FROM "assembly_segments" WHERE "name"='total:';
2-18496100-1
What is the Constituency Number when the Number of Electorates (2003) is more than 156,910, and Reserved for sc?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2003" real );
SELECT "constituency_number" FROM "assembly_segments" WHERE "number_of_electorates_2003">'156,910' AND "reserved_for_sc_st_none"='sc';
2-18496100-1
Which District is Constituency number 22?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2003" real );
SELECT "district" FROM "assembly_segments" WHERE "constituency_number"='22';
2-18496100-1
What is the lowest number of Electorates (2003) in District bhind, Reserved for none, and Constituency Number 11?
CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2003" real );
SELECT MIN("number_of_electorates_2003") FROM "assembly_segments" WHERE "district"='bhind' AND "reserved_for_sc_st_none"='none' AND "constituency_number"='11';
2-18496100-1
What school/club had pick 33?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );
SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"=33;
2-18722259-1
What attendance has October 16, 2005 as the date?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "date"='october 16, 2005';
2-18695319-2
What result has a week less than 16, and October 31, 2005 as the date?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "week"<16 AND "date"='october 31, 2005';
2-18695319-2
Which Year has a Manager of bobby dews, and Playoffs of lost in 1st round?
CREATE TABLE "year_by_year_record" ( "year" real, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT MIN("year") FROM "year_by_year_record" WHERE "manager"='bobby dews' AND "playoffs"='lost in 1st round';
2-18893381-2
How many years have a Record of 73-65?
CREATE TABLE "year_by_year_record" ( "year" real, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT COUNT("year") FROM "year_by_year_record" WHERE "record"='73-65';
2-18893381-2
Which Record has a Year larger than 1974, and a Finish of 3rd?
CREATE TABLE "year_by_year_record" ( "year" real, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT "record" FROM "year_by_year_record" WHERE "year">1974 AND "finish"='3rd';
2-18893381-2
Which Song of the Year was 42 on the UK charts prior to 1994?
CREATE TABLE "1961_1995" ( "year" real, "artist" text, "song" text, "uk_chart" text, "at_eurovision" text );
SELECT "song" FROM "1961_1995" WHERE "year"<1994 AND "uk_chart"='42';
2-1851063-3
Where did Scott Fitzgerald rank on the UK charts?
CREATE TABLE "1961_1995" ( "year" real, "artist" text, "song" text, "uk_chart" text, "at_eurovision" text );
SELECT "uk_chart" FROM "1961_1995" WHERE "artist"='scott fitzgerald';
2-1851063-3
Where did the song by Michael Ball, which placed 2nd in Eurovision prior to 1961, place on the UK charts?
CREATE TABLE "1961_1995" ( "year" real, "artist" text, "song" text, "uk_chart" text, "at_eurovision" text );
SELECT "uk_chart" FROM "1961_1995" WHERE "year">1961 AND "at_eurovision"='2nd' AND "artist"='michael ball';
2-1851063-3
What is the latest year that ended with a 3rd day of rowed-over?
CREATE TABLE "lent_bumps" ( "year" real, "finish_position" text, "1st_day" text, "2nd_day" text, "3rd_day" text, "4th_day" text );
SELECT MAX("year") FROM "lent_bumps" WHERE "3rd_day"='rowed-over';
2-18880596-2
What is the 3rd day result for years under 2012 and a finish position of 33rd?
CREATE TABLE "lent_bumps" ( "year" real, "finish_position" text, "1st_day" text, "2nd_day" text, "3rd_day" text, "4th_day" text );
SELECT "3rd_day" FROM "lent_bumps" WHERE "year"<2012 AND "finish_position"='33rd';
2-18880596-2
What was the 4th day result for the year in which the 3rd day result was bumped Darwin?
CREATE TABLE "lent_bumps" ( "year" real, "finish_position" text, "1st_day" text, "2nd_day" text, "3rd_day" text, "4th_day" text );
SELECT "4th_day" FROM "lent_bumps" WHERE "3rd_day"='bumped darwin';
2-18880596-2
What is the sum of the heights for the Cornell Big Red?
CREATE TABLE "luge" ( "position" text, "height_cm" real, "weight_kg" real, "birthplace" text, "2009_10_team" text );
SELECT SUM("height_cm") FROM "luge" WHERE "2009_10_team"='cornell big red';
2-18870718-18
For the vessel with a listed In service of 1, what is the origin given?
CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text );
SELECT "origin" FROM "equipment" WHERE "in_service"=1;
2-18965165-1
What is the lowest listed In service for a vessel of xavery czernicki class?
CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text );
SELECT MIN("in_service") FROM "equipment" WHERE "vessel"='xavery czernicki class';
2-18965165-1
Which vessel has a type of logistic support?
CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text );
SELECT "vessel" FROM "equipment" WHERE "type"='logistic support';
2-18965165-1
What is the type for a vessel of lublin class?
CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text );
SELECT "type" FROM "equipment" WHERE "vessel"='lublin class';
2-18965165-1
What is the highest In service for a vessel with a listed Unit of 12th minesweeper squadron?
CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text );
SELECT MAX("in_service") FROM "equipment" WHERE "unit"='12th minesweeper squadron';
2-18965165-1
What is the type for a vessel with a listed unit of naval base swinoujscie (auxiliary squadron)?
CREATE TABLE "equipment" ( "vessel" text, "origin" text, "type" text, "in_service" real, "unit" text );
SELECT "type" FROM "equipment" WHERE "unit"='naval base swinoujscie (auxiliary squadron)';
2-18965165-1
Which rider was on the 600cc Yamaha team?
CREATE TABLE "race_1_newcomers_race_a" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT "rider" FROM "race_1_newcomers_race_a" WHERE "team"='600cc yamaha';
2-18649514-2
What was John Hildreth's speed?
CREATE TABLE "race_1_newcomers_race_a" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT "speed" FROM "race_1_newcomers_race_a" WHERE "rider"='john hildreth';
2-18649514-2
What is the average draw number of an entrant with a time of 22:29?
CREATE TABLE "royal_rumble_entrances_and_eliminations" ( "draw" real, "entrant" text, "brand" text, "order" text, "eliminated_by" text, "time" text );
SELECT AVG("draw") FROM "royal_rumble_entrances_and_eliminations" WHERE "time"='22:29';
2-18438369-3
What is Mark Henry's brand?
CREATE TABLE "royal_rumble_entrances_and_eliminations" ( "draw" real, "entrant" text, "brand" text, "order" text, "eliminated_by" text, "time" text );
SELECT "brand" FROM "royal_rumble_entrances_and_eliminations" WHERE "entrant"='mark henry';
2-18438369-3
Who is the Author/Editor/Source for more than 100 countries sampled and has a 35 world ranking?
CREATE TABLE "see_also" ( "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_in_latin_america_2" real );
SELECT "author_editor_source" FROM "see_also" WHERE "world_ranking_1"='35' AND "countries_sampled">100;
2-18749714-1
How many countries sampled has a world ranking of 33 in 2010 and less than 3 ranking in Latin America?
CREATE TABLE "see_also" ( "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_in_latin_america_2" real );
SELECT SUM("countries_sampled") FROM "see_also" WHERE "year_of_publication"='2010' AND "world_ranking_1"='33' AND "ranking_in_latin_america_2"<3;
2-18749714-1
What's the world ranking in 2011 having more than 142 countries sampled, and more than a 3 for ranking in Latin America?
CREATE TABLE "see_also" ( "author_editor_source" text, "year_of_publication" text, "countries_sampled" real, "world_ranking_1" text, "ranking_in_latin_america_2" real );
SELECT "world_ranking_1" FROM "see_also" WHERE "year_of_publication"='2011' AND "ranking_in_latin_america_2">3 AND "countries_sampled">142;
2-18749714-1
What home team has a tie no of 20?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='20';
2-18657589-1
What date was the score 3–3, and away team was Barnet?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "first_round_proper" WHERE "score"='3–3' AND "away_team"='barnet';
2-18657589-1
What is the Tie no when Wimbledon is the home team?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "first_round_proper" WHERE "home_team"='wimbledon';
2-18657589-1
What is the score when the Tie no is replay, and the away team is York City?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "first_round_proper" WHERE "tie_no"='replay' AND "away_team"='york city';
2-18657589-1
What is the Tie no when Chester is the away team?
CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='chester';
2-18657589-1
What is the broadcast date of the episode with 9.65 million viewers?
CREATE TABLE "episode_information" ( "episode_number" text, "broadcast_date" text, "title" text, "written_by" text, "viewership_millions" real );
SELECT "broadcast_date" FROM "episode_information" WHERE "viewership_millions"=9.65;
2-18850130-1
What is the lowest viewership in millions of the episode broadcast on 7 September 2001?
CREATE TABLE "episode_information" ( "episode_number" text, "broadcast_date" text, "title" text, "written_by" text, "viewership_millions" real );
SELECT MIN("viewership_millions") FROM "episode_information" WHERE "broadcast_date"='7 september 2001';
2-18850130-1
What is the episode number of the episode broadcast on 21 September 2001?
CREATE TABLE "episode_information" ( "episode_number" text, "broadcast_date" text, "title" text, "written_by" text, "viewership_millions" real );
SELECT "episode_number" FROM "episode_information" WHERE "broadcast_date"='21 september 2001';
2-18850130-1
How many times is the points 8 and the place larger than 8?
CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "place" real, "points" real );
SELECT COUNT("draw") FROM "results" WHERE "points"=8 AND "place">8;
2-184806-1
what is the average draw when the place is 5 and points more than 15?
CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "place" real, "points" real );
SELECT AVG("draw") FROM "results" WHERE "place"=5 AND "points">15;
2-184806-1
what is the highest draw when points is less than 11 and language is norwegian?
CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "place" real, "points" real );
SELECT MAX("draw") FROM "results" WHERE "points"<11 AND "language"='norwegian';
2-184806-1
What is the total number of picks from the PBA team of purefoods tender juicy hotdogs?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT COUNT("pick") FROM "round_2" WHERE "pba_team"='purefoods tender juicy hotdogs';
2-18703231-2
What is the pba team for the player who went to santo tomas college?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "pba_team" FROM "round_2" WHERE "college"='santo tomas';
2-18703231-2
What is the PBA team for roberto jabar who was picked before number 11?
CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "pba_team" FROM "round_2" WHERE "pick"<11 AND "player"='roberto jabar';
2-18703231-2
What is the brand of the slr magic hyperprime cine 35mm t0.95, which has a focal length of 35mm?
CREATE TABLE "fixed_focal_length_lenses" ( "brand" text, "product_name" text, "focal_length" text, "35mm_efl_and_equivalent_aperture" text, "max_aperture" text );
SELECT "brand" FROM "fixed_focal_length_lenses" WHERE "focal_length"='35mm' AND "product_name"='slr magic hyperprime cine 35mm t0.95';
2-18729407-7
What is the Most Spoken language in the Place with Code 70403 with an Area (km 2) larger than 3.79 and a Population larger than 73,283?
CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text );
SELECT "most_spoken_language" FROM "main_places" WHERE "code">70403 AND "area_km_2">3.79 AND "population">'73,283';
2-18891012-1
What is the Population of the Place with an Area (km 2) larger than 498.77?
CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text );
SELECT COUNT("population") FROM "main_places" WHERE "area_km_2">498.77;
2-18891012-1
What is the Population of Tshepiso with a Code of 70409 or smaller and an Area (km 2) smaller than 5.97?
CREATE TABLE "main_places" ( "place" text, "code" real, "area_km_2" real, "population" real, "most_spoken_language" text );
SELECT MIN("population") FROM "main_places" WHERE "code"<70409 AND "area_km_2"<5.97 AND "place"='tshepiso';
2-18891012-1
What the time of Paul Hession with more than an 0.187 react?
CREATE TABLE "heat_4" ( "lane" real, "athlete" text, "nationality" text, "time" text, "react" real );
SELECT "time" FROM "heat_4" WHERE "react">0.187 AND "athlete"='paul hession';
2-18569011-14
What's the lane number when time was 20.45 and the react was less than 0.164?
CREATE TABLE "heat_4" ( "lane" real, "athlete" text, "nationality" text, "time" text, "react" real );
SELECT MAX("lane") FROM "heat_4" WHERE "react"<0.164 AND "time"='20.45';
2-18569011-14
what is 1958 when 1957 is 2 and 1956 is 3?
CREATE TABLE "grand_tour_results_timeline" ( "1953" text, "1954" text, "1955" text, "1956" text, "1957" text, "1958" text, "1959" text, "1960" text, "1961" text, "1962" text, "1963" text );
SELECT "1958" FROM "grand_tour_results_timeline" WHERE "1957"='2' AND "1956"='3';
2-1871428-1
what is 1955 when 1961 is n/a?
CREATE TABLE "grand_tour_results_timeline" ( "1953" text, "1954" text, "1955" text, "1956" text, "1957" text, "1958" text, "1959" text, "1960" text, "1961" text, "1962" text, "1963" text );
SELECT "1955" FROM "grand_tour_results_timeline" WHERE "1961"='n/a';
2-1871428-1
What date has 7 as the tie no.?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "fifth_round_proper" WHERE "tie_no"='7';
2-18657589-5
Which year was held in beijing?
CREATE TABLE "taekwondo_medals" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT "year" FROM "taekwondo_medals" WHERE "venue"='beijing';
2-18953878-1
How many years had a Venue of eindhoven?
CREATE TABLE "taekwondo_medals" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT COUNT("year") FROM "taekwondo_medals" WHERE "venue"='eindhoven';
2-18953878-1
Which Competition has a Venue of manchester in 2009?
CREATE TABLE "taekwondo_medals" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT "competition" FROM "taekwondo_medals" WHERE "venue"='manchester' AND "year"=2009;
2-18953878-1
Which Year has a Position of 2nd, and Notes of -63kg, and a Venue of manchester?
CREATE TABLE "taekwondo_medals" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text );
SELECT "year" FROM "taekwondo_medals" WHERE "position"='2nd' AND "notes"='-63kg' AND "venue"='manchester';
2-18953878-1
Name the the Best of rodolfo lavín
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "best" FROM "qualifying_results" WHERE "name"='rodolfo lavín';
2-18943126-1