question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which NBA draft has a School of st. mary's high school? | CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "nba_draft" FROM "2007_boys_team" WHERE "school"='st. mary''s high school'; | 2-11677760-18 |
Which school has a Player of donte greene? | CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "school" FROM "2007_boys_team" WHERE "player"='donte greene'; | 2-11677760-18 |
For R. Magjistari scores over 12, what is the highest number of points? | CREATE TABLE "final_16_december_2007" (
"draw" real,
"artist" text,
"song" text,
"rank" real,
"points" real,
"a_krajka" real,
"gj_leka" real,
"b_haxhia" real,
"d_tukiqi" real,
"r_magjistari" real,
"gj_xhuvani" real,
"a_sk_nderaj" real
); | SELECT MAX("points") FROM "final_16_december_2007" WHERE "r_magjistari">12; | 2-11513819-1 |
For R. Magjistari scores under 6, D. Tukiqi scores of 6, and ranks under 5, what is the average A. Krajka score? | CREATE TABLE "final_16_december_2007" (
"draw" real,
"artist" text,
"song" text,
"rank" real,
"points" real,
"a_krajka" real,
"gj_leka" real,
"b_haxhia" real,
"d_tukiqi" real,
"r_magjistari" real,
"gj_xhuvani" real,
"a_sk_nderaj" real
); | SELECT AVG("a_krajka") FROM "final_16_december_2007" WHERE "r_magjistari"<6 AND "d_tukiqi"=6 AND "rank"<5; | 2-11513819-1 |
Where did the Vitória de Setúbal club place in the 2006-2007 season? | CREATE TABLE "club_information" (
"club" text,
"head_coach" text,
"city" text,
"stadium" text,
"2006_2007_season" text
); | SELECT "2006_2007_season" FROM "club_information" WHERE "club"='vitória de setúbal'; | 2-12041078-1 |
Name the total number of TD's for long more than 6 and cars less than 4 | CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
); | SELECT COUNT("td_s") FROM "running_backs" WHERE "long">6 AND "car"<4; | 2-11783640-4 |
Name the sum of Long for yards less than 197 and players of matt nagy | CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
); | SELECT SUM("long") FROM "running_backs" WHERE "yards"<197 AND "player"='matt nagy'; | 2-11783640-4 |
Who was the visitor team in tampa bay? | CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "visitor" FROM "march" WHERE "home"='tampa bay'; | 2-11772462-8 |
Who had a 32-29-8 record at home? | CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "home" FROM "march" WHERE "record"='32-29-8'; | 2-11772462-8 |
Who had a 33-30-8 record at home? | CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "home" FROM "march" WHERE "record"='33-30-8'; | 2-11772462-8 |
What was the home teams score when North Melbourne played as the away team? | CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_2" WHERE "away_team"='north melbourne'; | 2-10806194-2 |
Who was the away team at Windy Hill? | CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_2" WHERE "venue"='windy hill'; | 2-10806194-2 |
Where did Fitzroy play as the home team? | CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_2" WHERE "home_team"='fitzroy'; | 2-10806194-2 |
Who was away team at the home game of south melbourne? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_10" WHERE "home_team"='south melbourne'; | 2-10790397-10 |
What did the away team score when they visited south melbourne? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_10" WHERE "home_team"='south melbourne'; | 2-10790397-10 |
How many people were in the crowd when the away team scored 15.18 (108)? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "crowd" FROM "round_10" WHERE "away_team_score"='15.18 (108)'; | 2-10790397-10 |
Who was the away team when they scored 12.9 (81) at the game? | CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_10" WHERE "away_team_score"='12.9 (81)'; | 2-10790397-10 |
What is the highest crowd with north melbourne as away team? | CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MAX("crowd") FROM "round_2" WHERE "away_team"='north melbourne'; | 2-10806852-2 |
Which away team has a Home team score of 17.13 (115)? | CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_2" WHERE "home_team_score"='17.13 (115)'; | 2-10806852-2 |
Which venue has a Home team of south melbourne? | CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_2" WHERE "home_team"='south melbourne'; | 2-10806852-2 |
What home score has an Away team of fitzroy? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "home_team_score" FROM "round_9" WHERE "away_team"='fitzroy'; | 2-1204658-9 |
Which home team has a Venue of corio oval? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "home_team" FROM "round_9" WHERE "venue"='corio oval'; | 2-1204658-9 |
Which home team an Away team score of 7.9 (51)? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "home_team" FROM "round_9" WHERE "away_team_score"='7.9 (51)'; | 2-1204658-9 |
Which away team has a Home team score of 4.4 (28)? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "away_team" FROM "round_9" WHERE "home_team_score"='4.4 (28)'; | 2-1204658-9 |
Which team has an Away team of carlton? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "home_team" FROM "round_9" WHERE "away_team"='carlton'; | 2-1204658-9 |
Which date has an Away team of richmond? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "date" FROM "round_9" WHERE "away_team"='richmond'; | 2-1204658-9 |
How many regions have a capital of matanzas and a 2005 population under 670427? | CREATE TABLE "summary" (
"province" text,
"capital" text,
"population_2005" real,
"population_pct" real,
"area_km" real,
"area_pct" real,
"density" real
); | SELECT COUNT("area_km") FROM "summary" WHERE "capital"='matanzas' AND "population_2005"<670427; | 2-1154469-1 |
What is the average area that has a Capital of camagüey, with a Population (%) larger than 7.02? | CREATE TABLE "summary" (
"province" text,
"capital" text,
"population_2005" real,
"population_pct" real,
"area_km" real,
"area_pct" real,
"density" real
); | SELECT AVG("area_km") FROM "summary" WHERE "capital"='camagüey' AND "population_pct">7.02; | 2-1154469-1 |
What was the score of the Kings game attended by more than 18,630 people? | CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "october" WHERE "attendance">'18,630'; | 2-11821711-4 |
What was the average attendance for a Kings game when they had a record of 1–5–0? | CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT AVG("attendance") FROM "october" WHERE "record"='1–5–0'; | 2-11821711-4 |
What team has over 1 tournament title, 0 in the regular season, and 2 total? | CREATE TABLE "wrestling_titles_by_team" (
"team" text,
"seasons" text,
"regular_season" text,
"tournament" real,
"total" real
); | SELECT "team" FROM "wrestling_titles_by_team" WHERE "tournament">1 AND "regular_season"='0' AND "total"=2; | 2-11789730-40 |
What is the total on average for teams with 3 tournaments? | CREATE TABLE "wrestling_titles_by_team" (
"team" text,
"seasons" text,
"regular_season" text,
"tournament" real,
"total" real
); | SELECT AVG("total") FROM "wrestling_titles_by_team" WHERE "tournament"=3; | 2-11789730-40 |
what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MIN("grid") FROM "race" WHERE "laps">7 AND "driver"='rubens barrichello'; | 2-1123372-2 |
what is the grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "grid" FROM "race" WHERE "laps">0 AND "time_retired"='engine' AND "driver"='pedro de la rosa'; | 2-1123372-2 |
who is the driver with the grid of 13? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "grid"=13; | 2-1123372-2 |
How many championships did the team or teams established in 1976 win? | CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"established" real,
"championships" real
); | SELECT SUM("championships") FROM "professional_sports" WHERE "established"=1976; | 2-11388236-2 |
Which WNBA team that won at least 2 championships was established most recently? | CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"established" real,
"championships" real
); | SELECT MAX("established") FROM "professional_sports" WHERE "league"='wnba' AND "championships">2; | 2-11388236-2 |
What are the venues that host WNBA games? | CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"league" text,
"venue" text,
"established" real,
"championships" real
); | SELECT "venue" FROM "professional_sports" WHERE "league"='wnba'; | 2-11388236-2 |
Name the bowling style of the player born 16 march 1974 | CREATE TABLE "zimbabwe" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
); | SELECT "bowling_style" FROM "zimbabwe" WHERE "date_of_birth"='16 march 1974'; | 2-11950720-9 |
Name the batting style for heath streak | CREATE TABLE "zimbabwe" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
); | SELECT "batting_style" FROM "zimbabwe" WHERE "player"='heath streak'; | 2-11950720-9 |
What is the name of a building that has 52 floors? | CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
); | SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "floors"=52; | 2-1115824-6 |
How many floors does the Custom House Tower have? | CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
); | SELECT COUNT("floors") FROM "timeline_of_tallest_buildings" WHERE "name"='custom house tower'; | 2-1115824-6 |
How many floors does the building on 800 Boylston Street have? | CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
); | SELECT MAX("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='800 boylston street'; | 2-1115824-6 |
What is the street address for the Prudential Tower building? | CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
); | SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='prudential tower'; | 2-1115824-6 |
There is a building at 800 Boylston Street, how many floors does it have? | CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
); | SELECT SUM("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='800 boylston street'; | 2-1115824-6 |
What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8? | CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
"rank_wjc" real,
"rank_arda" real,
"metro_area" text,
"number_of_jews_wjc" real,
"number_of_jews_asarb" real
); | SELECT MAX("number_of_jews_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_wjc"=6 AND "rank_arda">8; | 2-1131183-2 |
What was the WJC rank in San Francisco metro area with the ASARB Jews less than 261,100 and WJC Jews of more than 210,000? | CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
"rank_wjc" real,
"rank_arda" real,
"metro_area" text,
"number_of_jews_wjc" real,
"number_of_jews_asarb" real
); | SELECT AVG("rank_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "number_of_jews_asarb"<'261,100' AND "metro_area"='san francisco' AND "number_of_jews_wjc">'210,000'; | 2-1131183-2 |
What was the number of WJC Jews with a WJC rank of 6? | CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
"rank_wjc" real,
"rank_arda" real,
"metro_area" text,
"number_of_jews_wjc" real,
"number_of_jews_asarb" real
); | SELECT "number_of_jews_wjc" FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_wjc"=6; | 2-1131183-2 |
What was the total number of WJC rank when the ARDA rank was less than 2 and ASARB Jews less than 2,028,200? | CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
"rank_wjc" real,
"rank_arda" real,
"metro_area" text,
"number_of_jews_wjc" real,
"number_of_jews_asarb" real
); | SELECT COUNT("rank_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_arda"<2 AND "number_of_jews_asarb"<'2,028,200'; | 2-1131183-2 |
How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2? | CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
"rank_wjc" real,
"rank_arda" real,
"metro_area" text,
"number_of_jews_wjc" real,
"number_of_jews_asarb" real
); | SELECT SUM("number_of_jews_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "metro_area"='los angeles' AND "rank_arda">2; | 2-1131183-2 |
Who drove during the race with less than 19 laps and a time listed as ignition? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "classification" WHERE "laps"<19 AND "time_retired"='ignition'; | 2-1122178-1 |
What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "record" FROM "mixed_martial_arts_record" WHERE "round">2 AND "event"='raging wolf 6: mayhem in the mist'; | 2-11034773-2 |
Where was the game played when the home team scored 16.19 (115)? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_17" WHERE "home_team_score"='16.19 (115)'; | 2-10883333-17 |
What is the highest number of people that attended a game at Moorabbin Oval? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MAX("crowd") FROM "round_17" WHERE "venue"='moorabbin oval'; | 2-10883333-17 |
What did the home team Hawthorn score in the game attended by more than 14,922 people? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_17" WHERE "crowd">'14,922' AND "home_team"='hawthorn'; | 2-10883333-17 |
What is the least amount of people that attended a game when Essendon was the away team? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MIN("crowd") FROM "round_17" WHERE "away_team"='essendon'; | 2-10883333-17 |
Which date did South Melbourne play as the away team? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_17" WHERE "away_team"='south melbourne'; | 2-10883333-17 |
What is the constructor for Jackie Stewart's car? | CREATE TABLE "list_of_winners_by_year" (
"year" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
); | SELECT "constructor" FROM "list_of_winners_by_year" WHERE "driver"='jackie stewart'; | 2-1149916-3 |
What is the location where Denny Hulme was the driver? | CREATE TABLE "list_of_winners_by_year" (
"year" text,
"driver" text,
"constructor" text,
"location" text,
"report" text
); | SELECT "location" FROM "list_of_winners_by_year" WHERE "driver"='denny hulme'; | 2-1149916-3 |
What is number of the train that originated in Secunderabad Junction? | CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency" text
); | SELECT "train_no" FROM "train_services" WHERE "origin"='secunderabad junction'; | 2-12095519-1 |
From where did the train that arrived in the Anand Vihar Terminal originate? | CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency" text
); | SELECT "origin" FROM "train_services" WHERE "destination"='anand vihar terminal'; | 2-12095519-1 |
From where did Train No. 15929/30 originate? | CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency" text
); | SELECT "origin" FROM "train_services" WHERE "train_no"='15929/30'; | 2-12095519-1 |
What is the frequency of the train to Bangalore? | CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency" text
); | SELECT "frequency" FROM "train_services" WHERE "destination"='bangalore'; | 2-12095519-1 |
What is the frequency of the Chennai Egmore Dibrugarh Express to Dibrugarh? | CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequency" text
); | SELECT "frequency" FROM "train_services" WHERE "destination"='dibrugarh' AND "train_name"='chennai egmore dibrugarh express'; | 2-12095519-1 |
How many Norwegian Americans have Norwegian Americans (2000) of 109,744? | CREATE TABLE "norwegian_americans_by_state" (
"state" text,
"norwegian_americans_2000" real,
"percent_2000" text,
"norwegian_americans_2009" real,
"percent_2009" text
); | SELECT COUNT("norwegian_americans_2009") FROM "norwegian_americans_by_state" WHERE "norwegian_americans_2000"='109,744'; | 2-1182314-5 |
Which state has a Percent (2009) of 6.2%? | CREATE TABLE "norwegian_americans_by_state" (
"state" text,
"norwegian_americans_2000" real,
"percent_2000" text,
"norwegian_americans_2009" real,
"percent_2009" text
); | SELECT "state" FROM "norwegian_americans_by_state" WHERE "percent_2009"='6.2%'; | 2-1182314-5 |
What is the holding of the customers? | CREATE TABLE "origins_in_corporate_strategy" (
"component" text,
"integrated" text,
"allied_related" text,
"allied_unrelated" text,
"holding" text
); | SELECT "holding" FROM "origins_in_corporate_strategy" WHERE "component"='customers'; | 2-11944282-1 |
What Allied-Unrelated is labeled as "common"? | CREATE TABLE "origins_in_corporate_strategy" (
"component" text,
"integrated" text,
"allied_related" text,
"allied_unrelated" text,
"holding" text
); | SELECT "allied_unrelated" FROM "origins_in_corporate_strategy" WHERE "allied_related"='common'; | 2-11944282-1 |
Which integrated has an allied-related of some shared? | CREATE TABLE "origins_in_corporate_strategy" (
"component" text,
"integrated" text,
"allied_related" text,
"allied_unrelated" text,
"holding" text
); | SELECT "integrated" FROM "origins_in_corporate_strategy" WHERE "allied_related"='some shared'; | 2-11944282-1 |
What integrated has an allied-related of centralized? | CREATE TABLE "origins_in_corporate_strategy" (
"component" text,
"integrated" text,
"allied_related" text,
"allied_unrelated" text,
"holding" text
); | SELECT "integrated" FROM "origins_in_corporate_strategy" WHERE "allied_related"='centralized'; | 2-11944282-1 |
What component has an integrated of one? | CREATE TABLE "origins_in_corporate_strategy" (
"component" text,
"integrated" text,
"allied_related" text,
"allied_unrelated" text,
"holding" text
); | SELECT "component" FROM "origins_in_corporate_strategy" WHERE "integrated"='one'; | 2-11944282-1 |
How many candidates had 0 percent of the vote in 1999? | CREATE TABLE "electoral_results_1990_2008" (
"election" real,
"candidates" real,
"seats_won" real,
"votes" real,
"pct_of_vote" real
); | SELECT COUNT("candidates") FROM "electoral_results_1990_2008" WHERE "pct_of_vote"=0 AND "election"=1999 AND "seats_won">0; | 2-1110530-1 |
What is the score of the game with Manu ginóbili (44) as the leading scorer? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "february" WHERE "leading_scorer"='manu ginóbili (44)'; | 2-11963601-7 |
What is the record of the game on February 21, 2008? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "february" WHERE "date"='february 21, 2008'; | 2-11963601-7 |
Who was the home team of the game with manu ginóbili (34) as the leading scorer? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "home" FROM "february" WHERE "leading_scorer"='manu ginóbili (34)'; | 2-11963601-7 |
What is the record of the game on February 25, 2008? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "february" WHERE "date"='february 25, 2008'; | 2-11963601-7 |
What type is shown with a moving to of valenciennes? | CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "type" FROM "out" WHERE "moving_to"='valenciennes'; | 2-11221038-3 |
What is the transfer window with n/a as the Transfer fee, free agent for the Moving to, and Joe Sagar as the name? | CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "transfer_window" FROM "out" WHERE "transfer_fee"='n/a' AND "moving_to"='free agent' AND "name"='joe sagar'; | 2-11221038-3 |
What is the name of the person with a type of end of contract, nat of sco, and the Moving to is cardiff city? | CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "name" FROM "out" WHERE "type"='end of contract' AND "nat"='sco' AND "moving_to"='cardiff city'; | 2-11221038-3 |
What Transfer window that has a Transfer fee of free, with a Moving to of derby county? | CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "transfer_window" FROM "out" WHERE "transfer_fee"='free' AND "moving_to"='derby county'; | 2-11221038-3 |
What is the first game number that had attendance of 56,505? | CREATE TABLE "nl_los_angeles_dodgers_4_vs_al_new_york_" (
"game" real,
"score" text,
"date" text,
"location" text,
"attendance" real,
"time_of_game" text
); | SELECT MIN("game") FROM "nl_los_angeles_dodgers_4_vs_al_new_york_" WHERE "attendance"='56,505'; | 2-11487949-8 |
What was the crowd size for the away team footscray? | CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "crowd" FROM "round_21" WHERE "away_team"='footscray'; | 2-10826072-21 |
On what date did the away team score 10.12 (72)? | CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_21" WHERE "away_team_score"='10.12 (72)'; | 2-10826072-21 |
Which Race Name has Goodwood in the Curcuit? | CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "race_name" FROM "non_championship_race_results" WHERE "circuit"='goodwood'; | 2-1140099-6 |
Which Constructor has the Winning Driver, Jim Clark and the Circuit, Syracuse? | CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "constructor" FROM "non_championship_race_results" WHERE "winning_driver"='jim clark' AND "circuit"='syracuse'; | 2-1140099-6 |
Which Constructor has the Winning Driver, Jo Siffert? | CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "constructor" FROM "non_championship_race_results" WHERE "winning_driver"='jo siffert'; | 2-1140099-6 |
Which Constructor has Pergusa in the Circuit? | CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
); | SELECT "constructor" FROM "non_championship_race_results" WHERE "circuit"='pergusa'; | 2-1140099-6 |
What is the smallest crowd that attended a game where the away team scored 14.19 (103)? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MIN("crowd") FROM "round_1" WHERE "away_team_score"='14.19 (103)'; | 2-10823719-1 |
On what date was a game played at MCG? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_1" WHERE "venue"='mcg'; | 2-10823719-1 |
What is the average total medals of the team with 2 gold and less than 1 silver? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "gold"=2 AND "silver"<1; | 2-11729736-4 |
What is the lowest amount of silver medals Iceland, who has less than 87 medals, has? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("silver") FROM "medal_table" WHERE "nation"='iceland' AND "total"<87; | 2-11729736-4 |
What is the least amount of bronze Andorra, who has more than 6 total medals, has? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='andorra' AND "total">6; | 2-11729736-4 |
What is the lowest amount of bronze Liechtenstein, who has more than 11 gold, has? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='liechtenstein' AND "gold">11; | 2-11729736-4 |
What is the average amount of silver medals Montenegro, who has less than 15 bronze and more than 11 total medals, has? | CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("silver") FROM "medal_table" WHERE "bronze"<15 AND "nation"='montenegro' AND "total">11; | 2-11729736-4 |
What is the lower turnout that has a byut of 50.7 and an ou psd smaller than 36.8? | CREATE TABLE "support_of_leading_parties_and_blocs_by_" (
"region" text,
"voter_registration" real,
"voter_turnout" real,
"b_yu_t" real,
"ou_psd" real
); | SELECT MIN("voter_turnout") FROM "support_of_leading_parties_and_blocs_by_" WHERE "b_yu_t"=50.7 AND "ou_psd"<36.8; | 2-11060668-2 |
What is the voter registration that has a BYut of 48.2? | CREATE TABLE "support_of_leading_parties_and_blocs_by_" (
"region" text,
"voter_registration" real,
"voter_turnout" real,
"b_yu_t" real,
"ou_psd" real
); | SELECT COUNT("voter_registration") FROM "support_of_leading_parties_and_blocs_by_" WHERE "b_yu_t"=48.2; | 2-11060668-2 |
Who was the home team at VFL Park? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_16" WHERE "venue"='vfl park'; | 2-10869646-16 |
Who was the home team at Kardinia Park? | CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_16" WHERE "venue"='kardinia park'; | 2-10869646-16 |
What type of paper is the 1 cent denominations made on? | CREATE TABLE "2007" (
"date_of_issue" text,
"denomination" text,
"design" text,
"paper_type" text,
"first_day_cover_cancellation" text
); | SELECT "paper_type" FROM "2007" WHERE "denomination"='1 cent'; | 2-11900773-5 |
What is the paper type that the one that was issued on 26 july 2007 done on? | CREATE TABLE "2007" (
"date_of_issue" text,
"denomination" text,
"design" text,
"paper_type" text,
"first_day_cover_cancellation" text
); | SELECT "paper_type" FROM "2007" WHERE "date_of_issue"='26 july 2007'; | 2-11900773-5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.