question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which circuit had a round larger than 5? | CREATE TABLE "calendar" (
"round" real,
"race_name" text,
"circuit" text,
"city_state" text,
"date" text,
"winner_s" text,
"team" text
); | SELECT "circuit" FROM "calendar" WHERE "round">5; | 2-15637024-1 |
What is the title of the story published on October 19, 2011? | CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,
"color" text
); | SELECT "story" FROM "conan_dark_horse_comics" WHERE "date"='october 19, 2011'; | 2-15338781-3 |
What Issue number was released on August 17, 2011? | CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,
"color" text
); | SELECT "issue" FROM "conan_dark_horse_comics" WHERE "date"='august 17, 2011'; | 2-15338781-3 |
What story title was included in Issue #8? | CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"story" text,
"color" text
); | SELECT "story" FROM "conan_dark_horse_comics" WHERE "issue"='#8'; | 2-15338781-3 |
Which young classification has general classification of Christian Vande Velde for Team Columbia and Mark Cavendish? | CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"young_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"team_classification" text
); | SELECT "young_classification" FROM "jersey_progress" WHERE "general_classification"='christian vande velde' AND "team_classification"='team columbia' AND "sprint_classification"='mark cavendish'; | 2-15502952-15 |
What mountains classification corresponds to Mark Cavendish and the Garmin-Chipotle-H30? | CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"young_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"team_classification" text
); | SELECT "mountains_classification" FROM "jersey_progress" WHERE "general_classification"='mark cavendish' AND "team_classification"='garmin-chipotle-h30'; | 2-15502952-15 |
Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team? | CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"young_classification" text,
"mountains_classification" text,
"sprint_classification" text,
"team_classification" text
); | SELECT "stage_winner" FROM "jersey_progress" WHERE "sprint_classification"='mark cavendish' AND "team_classification"='garmin-chipotle-h30' AND "young_classification"='mark cavendish'; | 2-15502952-15 |
What is the lowest population (2010 Census) that has a rank smaller than 45, municipality of gimpo, and populaion (2000 Census) larger than 117,594? | CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
); | SELECT MIN("population_2010_census") FROM "list_of_cities" WHERE "population_2000_census">'117,594' AND "municipality"='gimpo' AND "rank"<45; | 2-15410247-1 |
What is the lowest population (2000 Census) that has a population (2010 Census) larger than 1,071,913 and municipality of Suwon? | CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
); | SELECT MIN("population_2000_census") FROM "list_of_cities" WHERE "municipality"='suwon' AND "population_2010_census">'1,071,913'; | 2-15410247-1 |
What is the highest population (2000 Census) that has a rank of 43, population (2010 Census) larger than 231,271, and population (2005 Census) larger than 157,632? | CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
); | SELECT MAX("population_2000_census") FROM "list_of_cities" WHERE "population_2005_census">'157,632' AND "rank"=43 AND "population_2010_census">'231,271'; | 2-15410247-1 |
What is the total number of rank that has population (2005 Census) smaller than 193,398 and population (2000 Census) of 167,231? | CREATE TABLE "list_of_cities" (
"rank" real,
"municipality" text,
"population_2010_census" real,
"population_2005_census" real,
"population_2000_census" real
); | SELECT COUNT("rank") FROM "list_of_cities" WHERE "population_2000_census"='167,231' AND "population_2005_census"<'193,398'; | 2-15410247-1 |
Who had the lowest rank for a capacity of 197,13% and a capacity larger than 1,010,000? | CREATE TABLE "brazil_s_40_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity" real,
"capacity_in_use" text
); | SELECT MIN("rank") FROM "brazil_s_40_busiest_airports_by_passenge" WHERE "capacity_in_use"='197,13%' AND "capacity">'1,010,000'; | 2-15494883-1 |
What is the average capacity for less than 8,261,355 passengers, and 126,06% in use? | CREATE TABLE "brazil_s_40_busiest_airports_by_passenge" (
"rank" real,
"location" text,
"total_passengers" real,
"annual_change" text,
"capacity" real,
"capacity_in_use" text
); | SELECT AVG("capacity") FROM "brazil_s_40_busiest_airports_by_passenge" WHERE "total_passengers"<'8,261,355' AND "capacity_in_use"='126,06%'; | 2-15494883-1 |
Which outcome has a partner named Mark Dickson, with the opponents of Hans Gildemeister Belus Prajoux? | CREATE TABLE "doubles_10" (
"outcome" text,
"date" text,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "outcome" FROM "doubles_10" WHERE "partner"='mark dickson' AND "opponents_in_the_final"='hans gildemeister belus prajoux'; | 2-15419691-4 |
What is the Format with a Catalog that is vcrd 103? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "format" FROM "release_history" WHERE "catalog"='vcrd 103'; | 2-15322947-2 |
What is the Region with a Catalog that is vlmx 1087-3? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "region" FROM "release_history" WHERE "catalog"='vlmx 1087-3'; | 2-15322947-2 |
What is the Format with a Label of electropolis and a Date that is 2002? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
); | SELECT "format" FROM "release_history" WHERE "label"='electropolis' AND "date"='2002'; | 2-15322947-2 |
Which result's attendance was more than 60,705 when the week number is less than 13? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "schedule" WHERE "attendance">'60,705' AND "week"<13; | 2-15985936-2 |
How many in the cultural and educational panel have a university of Dublin of 3 & A labor panel larger than 11? | CREATE TABLE "composition_of_the_9th_seanad" (
"administrative_panel" real,
"agricultural_panel" real,
"cultural_and_educational_panel" real,
"industrial_and_commercial_panel" real,
"labour_panel" real,
"national_university_of_ireland" real,
"university_of_dublin" real,
"nominated_by_the_taoiseach" real,
"total" real
); | SELECT COUNT("cultural_and_educational_panel") FROM "composition_of_the_9th_seanad" WHERE "university_of_dublin"=3 AND "labour_panel">11; | 2-15547445-1 |
What is Margin, when Match Date is Oct 17, 2007? | CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
); | SELECT "margin" FROM "one_day_international" WHERE "match_date"='oct 17, 2007'; | 2-1594772-2 |
What is Team (B), when S No is greater than 17? | CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
); | SELECT "team_b" FROM "one_day_international" WHERE "s_no">17; | 2-1594772-2 |
What is the total number of S No(s), when the Margin is 16 runs? | CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
); | SELECT COUNT("s_no") FROM "one_day_international" WHERE "margin"='16 runs'; | 2-1594772-2 |
What is the highest S No, when the Match Date is Nov 1, 2003? | CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
); | SELECT MAX("s_no") FROM "one_day_international" WHERE "match_date"='nov 1, 2003'; | 2-1594772-2 |
What is Team (B), when S No is less than 18, when Margin is 8 Wickets, and when Match Date is Oct 30, 1989? | CREATE TABLE "one_day_international" (
"s_no" real,
"team_a" text,
"team_b" text,
"winner" text,
"margin" text,
"match_date" text
); | SELECT "team_b" FROM "one_day_international" WHERE "s_no"<18 AND "margin"='8 wickets' AND "match_date"='oct 30, 1989'; | 2-1594772-2 |
When was the last time, since December 14, 1986, that the attendance was lower than 47,096? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT MAX("week") FROM "schedule" WHERE "date"='december 14, 1986' AND "attendance"<'47,096'; | 2-15378632-1 |
What is the Surface of indoor/carpet Outcome on 13 October 1996 | CREATE TABLE "doubles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "outcome" FROM "doubles_finals" WHERE "surface"='indoor/carpet' AND "date"='13 october 1996'; | 2-15355277-2 |
What the Outcome for the Tournament of Johannesburg, South Africa | CREATE TABLE "doubles_finals" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "outcome" FROM "doubles_finals" WHERE "tournament"='johannesburg, south africa'; | 2-15355277-2 |
What is the launch site of the delta iv rocket? | CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
); | SELECT "launch_site" FROM "block_iif" WHERE "rocket"='delta iv'; | 2-16103661-5 |
What is the type of the gps iif-10 satellite with an unknown date? | CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
); | SELECT "type" FROM "block_iif" WHERE "date"='unknown' AND "satellite"='gps iif-10'; | 2-16103661-5 |
What is the type of the gps iif-10 satellite? | CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
); | SELECT "type" FROM "block_iif" WHERE "satellite"='gps iif-10'; | 2-16103661-5 |
What is the launch site of the delta iv rocket with an unknown date and a gps iif-10 satellite? | CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
); | SELECT "launch_site" FROM "block_iif" WHERE "date"='unknown' AND "rocket"='delta iv' AND "satellite"='gps iif-10'; | 2-16103661-5 |
What is the date of the gps iif-7 satellite? | CREATE TABLE "block_iif" (
"date" text,
"rocket" text,
"type" text,
"launch_site" text,
"satellite" text
); | SELECT "date" FROM "block_iif" WHERE "satellite"='gps iif-7'; | 2-16103661-5 |
What was the finish for 1992? | CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
); | SELECT "finish" FROM "indy_500_results" WHERE "year"=1992; | 2-1617211-2 |
What was Andretti's finish for the year he had a Buick engine and started 16th? | CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
); | SELECT "finish" FROM "indy_500_results" WHERE "engine"='buick' AND "start"='16th'; | 2-1617211-2 |
What was Andretti's finish the year he started 16th with a Buick engine? | CREATE TABLE "indy_500_results" (
"year" real,
"chassis" text,
"engine" text,
"start" text,
"finish" text
); | SELECT "finish" FROM "indy_500_results" WHERE "engine"='buick' AND "start"='16th'; | 2-1617211-2 |
How many years were there a men's double of györgy vörös gábor petrovits and a men's single of györgy vörös? | CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT SUM("year") FROM "past_winners" WHERE "men_s_doubles"='györgy vörös gábor petrovits' AND "men_s_singles"='györgy vörös'; | 2-15741590-1 |
Which Drawn has a Points of 6, and a Against larger than 16? | CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT SUM("drawn") FROM "campeonato_paulista" WHERE "points"=6 AND "against">16; | 2-15420458-1 |
Which Points has a Difference of 3, and a Played smaller than 10? | CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT AVG("points") FROM "campeonato_paulista" WHERE "difference"='3' AND "played"<10; | 2-15420458-1 |
Which Points has a Team of são paulo athletic, and a Position larger than 5? | CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT SUM("points") FROM "campeonato_paulista" WHERE "team"='são paulo athletic' AND "position">5; | 2-15420458-1 |
Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0? | CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT MIN("position") FROM "campeonato_paulista" WHERE "played">9 AND "points"<11 AND "drawn"<0; | 2-15420458-1 |
What track has a catalogue of 47-9465? | CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
); | SELECT SUM("track") FROM "1997_reissue_bonus_tracks" WHERE "catalogue"='47-9465'; | 2-15582798-4 |
What track has a time of 2:30? | CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
); | SELECT "track" FROM "1997_reissue_bonus_tracks" WHERE "time"='2:30'; | 2-15582798-4 |
What catalogue was recorded on 9/10/67 and a release date of 1/9/68? | CREATE TABLE "1997_reissue_bonus_tracks" (
"track" real,
"recorded" text,
"catalogue" text,
"release_date" text,
"song_title" text,
"time" text
); | SELECT "catalogue" FROM "1997_reissue_bonus_tracks" WHERE "recorded"='9/10/67' AND "release_date"='1/9/68'; | 2-15582798-4 |
Where does Norway rank in total medals among countries with fewer than 7 bronzes? | CREATE TABLE "all_time_medal_tables" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "rank" FROM "all_time_medal_tables" WHERE "bronze"<7 AND "nation"='norway'; | 2-1603424-1 |
What is the Inns of 435 Runs? | CREATE TABLE "best_batting_strike_rate" (
"player" text,
"team" text,
"inns" real,
"runs" real,
"balls" real
); | SELECT "inns" FROM "best_batting_strike_rate" WHERE "runs"=435; | 2-15734036-10 |
What is the average 1st place with a Rank that is larger than 10? | CREATE TABLE "total_team_ranking_open_section" (
"rank" real,
"country" text,
"1st_place" real,
"2nd_place" real,
"3rd_place" real,
"total" real
); | SELECT AVG("1st_place") FROM "total_team_ranking_open_section" WHERE "rank">10; | 2-15669776-3 |
What week was the Runner-up Lori McNeil? | CREATE TABLE "november" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
"semi_finalists" text
); | SELECT "week_of" FROM "november" WHERE "runner_up"='lori mcneil'; | 2-15866312-11 |
When the runner-up was Jing-qian Yi, who was the winner? | CREATE TABLE "november" (
"week_of" text,
"tier" text,
"winner" text,
"runner_up" text,
"semi_finalists" text
); | SELECT "winner" FROM "november" WHERE "runner_up"='jing-qian yi'; | 2-15866312-11 |
Who was the musical guest when the panelists were Nancy Sorrell and Samia Smith? | CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
); | SELECT "musical_guest_song_performed" FROM "series_2" WHERE "who_knows_the_most_about_the_guest_host_panelists"='nancy sorrell and samia smith'; | 2-1590967-2 |
Who was the guest host for episode numbers under 6 and panelists of Jade Goody and Kenzie? | CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
); | SELECT "guest_host" FROM "series_2" WHERE "episode_number"<6 AND "who_knows_the_most_about_the_guest_host_panelists"='jade goody and kenzie'; | 2-1590967-2 |
Who were the panelists on episode number 4? | CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
); | SELECT "who_knows_the_most_about_the_guest_host_panelists" FROM "series_2" WHERE "episode_number"=4; | 2-1590967-2 |
What is the highest episode number in which Jamie Oliver guest-hosted? | CREATE TABLE "series_2" (
"episode_number" real,
"air_date" text,
"guest_host" text,
"musical_guest_song_performed" text,
"who_knows_the_most_about_the_guest_host_panelists" text
); | SELECT MAX("episode_number") FROM "series_2" WHERE "guest_host"='jamie oliver'; | 2-1590967-2 |
What is the score of the home game for the Cavaliers where Lebron James (46) was the lead scorer? | CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "score" FROM "march" WHERE "home"='cavaliers' AND "leading_scorer"='lebron james (46)'; | 2-15932367-10 |
Who was the leading scorer against the visiting team Bulls? | CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "leading_scorer" FROM "march" WHERE "visitor"='bulls'; | 2-15932367-10 |
What date was the game played against the home team Rockets? | CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "date" FROM "march" WHERE "home"='rockets'; | 2-15932367-10 |
What was the Date of the Cimmeria Issue for which the Penciller was Tomás Giorello? | CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"penciller" text,
"color" text
); | SELECT "date" FROM "conan_dark_horse_comics" WHERE "penciller"='tomás giorello' AND "title"='cimmeria'; | 2-15338781-2 |
When did the Issue with the Title Homecoming come out? | CREATE TABLE "conan_dark_horse_comics" (
"issue" text,
"date" text,
"title" text,
"penciller" text,
"color" text
); | SELECT "date" FROM "conan_dark_horse_comics" WHERE "title"='homecoming'; | 2-15338781-2 |
Which average match has a lost greater than 0, points greater than 6, legia warszawa as the team, and a draw less than 0? | CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
); | SELECT AVG("match") FROM "first_league" WHERE "lost">0 AND "points">6 AND "team"='legia warszawa' AND "draw"<0; | 2-15434792-1 |
What draw has a lost less than 6 with 28 as the points? | CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
); | SELECT "draw" FROM "first_league" WHERE "lost"<6 AND "points"=28; | 2-15434792-1 |
Which average lost that has a match less than 14? | CREATE TABLE "first_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
); | SELECT AVG("lost") FROM "first_league" WHERE "match"<14; | 2-15434792-1 |
What is the Match for skra warszawa? | CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
); | SELECT "match" FROM "second_league" WHERE "team"='skra warszawa'; | 2-15447701-3 |
What is the Draw for skra warszawa? | CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
); | SELECT "draw" FROM "second_league" WHERE "team"='skra warszawa'; | 2-15447701-3 |
What is the Lost when the points were dissolved? | CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
); | SELECT "lost" FROM "second_league" WHERE "points"='dissolved'; | 2-15447701-3 |
What is the Draw for match 10, and the team was skra warszawa? | CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
); | SELECT "draw" FROM "second_league" WHERE "match"='10' AND "team"='skra warszawa'; | 2-15447701-3 |
What is the Draw for the team of tramwajarz łódź? | CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
); | SELECT "draw" FROM "second_league" WHERE "team"='tramwajarz łódź'; | 2-15447701-3 |
What is the Draw for the team tramwajarz łódź? | CREATE TABLE "second_league" (
"team" text,
"match" text,
"points" text,
"draw" text,
"lost" text
); | SELECT "draw" FROM "second_league" WHERE "team"='tramwajarz łódź'; | 2-15447701-3 |
What is the Location when the novelty is gen? | CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
); | SELECT "location" FROM "newly_named_dinosaurs" WHERE "novelty"='gen'; | 2-15689683-1 |
What shows for Unit with a status of nomen oblitum? | CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
); | SELECT "unit" FROM "newly_named_dinosaurs" WHERE "status"='nomen oblitum'; | 2-15689683-1 |
What is the Location when the name is telmatosaurus? | CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
); | SELECT "location" FROM "newly_named_dinosaurs" WHERE "name"='telmatosaurus'; | 2-15689683-1 |
What is the Status with a novelty of gen et sp, and the name is haplocanthosaurus? | CREATE TABLE "newly_named_dinosaurs" (
"name" text,
"novelty" text,
"status" text,
"authors" text,
"unit" text,
"location" text
); | SELECT "status" FROM "newly_named_dinosaurs" WHERE "novelty"='gen et sp' AND "name"='haplocanthosaurus'; | 2-15689683-1 |
How many League cups had a total less than 25 and a league larger than 19? | CREATE TABLE "top_scorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
); | SELECT COUNT("league_cup") FROM "top_scorers_in_order_of_league_goals" WHERE "total"<25 AND "league">19; | 2-15569452-4 |
How many FA trophies did Ceri Williams get with a smaller total than 19? | CREATE TABLE "top_scorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
); | SELECT COUNT("fa_trophy") FROM "top_scorers_in_order_of_league_goals" WHERE "player"='ceri williams' AND "total"<19; | 2-15569452-4 |
Which City has an Average of 6.85? | CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedish" text,
"comprehension_of_norwegian" text,
"average" real
); | SELECT "city" FROM "mutual_intelligibility" WHERE "average"=6.85; | 2-153465-2 |
What is the Average of bergen, norway? | CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedish" text,
"comprehension_of_norwegian" text,
"average" real
); | SELECT MIN("average") FROM "mutual_intelligibility" WHERE "city"='bergen, norway'; | 2-153465-2 |
Which Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13? | CREATE TABLE "mutual_intelligibility" (
"city" text,
"comprehension_of_danish" text,
"comprehension_of_swedish" text,
"comprehension_of_norwegian" text,
"average" real
); | SELECT "comprehension_of_danish" FROM "mutual_intelligibility" WHERE "average"<6.85 AND "comprehension_of_norwegian"='4.13'; | 2-153465-2 |
What are the Attendance numbers for november 18, 1990? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "date"='november 18, 1990'; | 2-15352703-2 |
What is the Date for a week higher than 7 with a record of 9–1? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "week">7 AND "record"='9–1'; | 2-15352703-2 |
What was the result of the game with an attendance over 53,731 after week 5? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "schedule" WHERE "attendance">'53,731' AND "week"=5; | 2-15916193-2 |
What is the average week of a game on November 12, 1989? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT AVG("week") FROM "schedule" WHERE "date"='november 12, 1989'; | 2-15916193-2 |
What is the Set 5 with a Set 3 that is 25-23 and a Set 4 that is 23-25? | CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"result_sets" text,
"result_pts" text
); | SELECT "set_5" FROM "pool_b" WHERE "set_3"='25-23' AND "set_4"='23-25'; | 2-15924121-5 |
What is the sum of the Game with a Set 4 of 25-21 and a Set 3 of 25-23? | CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"result_sets" text,
"result_pts" text
); | SELECT SUM("game") FROM "pool_b" WHERE "set_4"='25-21' AND "set_3"='25-23'; | 2-15924121-5 |
What is the Set 5 with a Game that is 59? | CREATE TABLE "pool_b" (
"game" real,
"date" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"result_sets" text,
"result_pts" text
); | SELECT "set_5" FROM "pool_b" WHERE "game"=59; | 2-15924121-5 |
What shows for nation when the Competition is preseason, Year less than 2011, and a Club of chivas de guadalajara? | CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
); | SELECT "nation" FROM "international_results" WHERE "competition"='preseason' AND "year"<2011 AND "club"='chivas de guadalajara'; | 2-15952424-5 |
What was the Result for the club universidad de guadalajara? | CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
); | SELECT "result" FROM "international_results" WHERE "club"='club universidad de guadalajara'; | 2-15952424-5 |
What is the Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3? | CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
); | SELECT "nation" FROM "international_results" WHERE "year"=2012 AND "competition"='preseason' AND "result"='w 0–3'; | 2-15952424-5 |
What is the average Year when the Competition was friendly, and a Club of everton? | CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
); | SELECT AVG("year") FROM "international_results" WHERE "competition"='friendly' AND "club"='everton'; | 2-15952424-5 |
What is the Competition when the Club was costa rica u-20? | CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
); | SELECT "competition" FROM "international_results" WHERE "club"='costa rica u-20'; | 2-15952424-5 |
What is the Club of mexico, Year of 2010, and a Competition of preseason, and a Result of w 0–1? | CREATE TABLE "international_results" (
"year" real,
"competition" text,
"club" text,
"nation" text,
"result" text
); | SELECT "club" FROM "international_results" WHERE "nation"='mexico' AND "year"=2010 AND "competition"='preseason' AND "result"='w 0–1'; | 2-15952424-5 |
What is the lowest total when the nation is Sweden? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "nation"='sweden'; | 2-15772437-1 |
What is the average Total when silver is less than 1, and the rank is 15? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "silver"<1 AND "rank"='15'; | 2-15772437-1 |
What is the total number of Bronze when rank is 11, and the total is less than 1? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("bronze") FROM "medal_table" WHERE "rank"='11' AND "total"<1; | 2-15772437-1 |
Which name's 2012 club was deportivo nacional? | CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_club" text
); | SELECT "name" FROM "olympic_roster" WHERE "2012_club"='deportivo nacional'; | 2-15568305-1 |
Which name's 2012 club was deportivo nacional? | CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_club" text
); | SELECT "name" FROM "olympic_roster" WHERE "2012_club"='deportivo nacional'; | 2-15568305-1 |
Which weight was attached to the 2012 club San Pedro? | CREATE TABLE "olympic_roster" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2012_club" text
); | SELECT "weight" FROM "olympic_roster" WHERE "2012_club"='san pedro'; | 2-15568305-1 |
What year is the latest year that has no under director? | CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"writer" text
); | SELECT MAX("year") FROM "filmography" WHERE "director"='no'; | 2-15429690-1 |
With yes under writer and in 2014, what is the director? | CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"writer" text
); | SELECT "director" FROM "filmography" WHERE "year"=2014 AND "writer"='yes'; | 2-15429690-1 |
Who is the writer of the film Run? | CREATE TABLE "filmography" (
"year" real,
"film" text,
"director" text,
"producer" text,
"writer" text
); | SELECT "writer" FROM "filmography" WHERE "film"='run'; | 2-15429690-1 |
What is the most goals made for a person with less than 208 matches and ranked lower than 12? | CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
); | SELECT MAX("goals") FROM "list_of_top_association_football_goal_sc" WHERE "matches"<208 AND "rank">12; | 2-1590321-60 |
In what years was there a rank lower than 9, under 84 goals, and more than 158 matches? | CREATE TABLE "list_of_top_association_football_goal_sc" (
"rank" real,
"name" text,
"years" text,
"matches" real,
"goals" real
); | SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "matches">158 AND "rank">9 AND "goals"<84; | 2-1590321-60 |
What is the HDTV status of the r-light television service? | CREATE TABLE "conto_tv_teleitalia" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
); | SELECT "hdtv" FROM "conto_tv_teleitalia" WHERE "television_service"='r-light'; | 2-15887683-19 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.