question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Name the lowest Rank of carmelita jeter with a Time smaller than 11.08? | CREATE TABLE "heat_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
); | SELECT MIN("rank") FROM "heat_2" WHERE "name"='carmelita jeter' AND "time"<11.08; | 2-18912925-16 |
When the points are 98 what is the draw? | CREATE TABLE "results" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"place" real,
"points" real
); | SELECT COUNT("draw") FROM "results" WHERE "points"=98; | 2-184814-1 |
What is the TOTAL Time in Office with a rank smaller than 18, and premier is Joh Bjelke-Petersen? | CREATE TABLE "rank_by_time_in_office" (
"rank" real,
"premier" text,
"assumed_office" text,
"left_office" text,
"total_time_in_office" text
); | SELECT "total_time_in_office" FROM "rank_by_time_in_office" WHERE "rank"<18 AND "premier"='joh bjelke-petersen'; | 2-18728076-1 |
What is the assumed Office date when the TOTAL Time in Office is 5years, 316days? | CREATE TABLE "rank_by_time_in_office" (
"rank" real,
"premier" text,
"assumed_office" text,
"left_office" text,
"total_time_in_office" text
); | SELECT "assumed_office" FROM "rank_by_time_in_office" WHERE "total_time_in_office"='5years, 316days'; | 2-18728076-1 |
What Akakios Kakiasvilis (GRE) is 187kg the 188kg? | CREATE TABLE "records" (
"world_record" text,
"snatch" text,
"akakios_kakiasvilis_gre" text,
"188kg" text,
"athens_greece" text
); | SELECT "akakios_kakiasvilis_gre" FROM "records" WHERE "188kg"='187kg'; | 2-18532707-2 |
What world record has the 188kg as 187kg? | CREATE TABLE "records" (
"world_record" text,
"snatch" text,
"akakios_kakiasvilis_gre" text,
"188kg" text,
"athens_greece" text
); | SELECT "world_record" FROM "records" WHERE "188kg"='187kg'; | 2-18532707-2 |
For what 188kg is the world record clean & jerk? | CREATE TABLE "records" (
"world_record" text,
"snatch" text,
"akakios_kakiasvilis_gre" text,
"188kg" text,
"athens_greece" text
); | SELECT "188kg" FROM "records" WHERE "world_record"='clean & jerk'; | 2-18532707-2 |
What year had a score of 6–7(5), 2–6 and opponent of Brenda Schultz-Mccarthy? | CREATE TABLE "singles_16_4_titles_12_runner_ups" (
"outcome" text,
"year" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "year" FROM "singles_16_4_titles_12_runner_ups" WHERE "opponent_in_the_final"='brenda schultz-mccarthy' AND "score"='6–7(5), 2–6'; | 2-1849753-3 |
What year had a score of 4–6, 7–6, 7–5? | CREATE TABLE "singles_16_4_titles_12_runner_ups" (
"outcome" text,
"year" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "year" FROM "singles_16_4_titles_12_runner_ups" WHERE "score"='4–6, 7–6, 7–5'; | 2-1849753-3 |
Who was the away team for the match with a home team of Citizen Team A? | CREATE TABLE "a_b_second_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
); | SELECT "away_team" FROM "a_b_second_round" WHERE "home_team"='citizen team a'; | 2-18880018-15 |
What was the score for the match with a home team of Citizen Team A? | CREATE TABLE "a_b_second_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
); | SELECT "score" FROM "a_b_second_round" WHERE "home_team"='citizen team a'; | 2-18880018-15 |
Who was the home team in the match that had an away team of Convoy Sun Hei Team B? | CREATE TABLE "a_b_second_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
); | SELECT "home_team" FROM "a_b_second_round" WHERE "away_team"='convoy sun hei team b'; | 2-18880018-15 |
What time did the match with an away team of Happy Valley Team B start? | CREATE TABLE "a_b_second_round" (
"time" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text
); | SELECT "time" FROM "a_b_second_round" WHERE "away_team"='happy valley team b'; | 2-18880018-15 |
What is the 2nd leg when second team is Sumykhimprom? | CREATE TABLE "first_qualifying_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "2nd_leg" FROM "first_qualifying_round" WHERE "team_num2"='sumykhimprom'; | 2-18842999-2 |
What is the agg when the seconf leg is 58-75? | CREATE TABLE "first_qualifying_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "agg" FROM "first_qualifying_round" WHERE "2nd_leg"='58-75'; | 2-18842999-2 |
What is the first team when the 2nd leg is 100-113? | CREATE TABLE "first_qualifying_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_num1" FROM "first_qualifying_round" WHERE "2nd_leg"='100-113'; | 2-18842999-2 |
What is team 1 when the 1st leg is 92-82? | CREATE TABLE "first_qualifying_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_num1" FROM "first_qualifying_round" WHERE "1st_leg"='92-82'; | 2-18842999-2 |
What is team number 1 when then 2nd leg is 64-97? | CREATE TABLE "first_qualifying_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_num1" FROM "first_qualifying_round" WHERE "2nd_leg"='64-97'; | 2-18842999-2 |
What is the 1st leg when team number 1 is CSU SIBIU? | CREATE TABLE "first_qualifying_round" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "1st_leg" FROM "first_qualifying_round" WHERE "team_num1"='csu sibiu'; | 2-18842999-2 |
What is the average duration in 2007/08 with more than 3.8 in 2002/03, more than 8.9 in 2003/04, and less than 34.4 in 2001/02? | CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" real,
"2001_02" real,
"2002_03" real,
"2003_04" real,
"2004_05" real,
"2005_06" real,
"2006_07" real,
"2007_08" real,
"2008_09" real
); | SELECT AVG("2007_08") FROM "duration" WHERE "2002_03">3.8 AND "2003_04">8.9 AND "2001_02"<34.4; | 2-1863144-2 |
What is the total duration in 2006/07 with 191,321 in 2003/04 and less than 160,920 in 2001/02? | CREATE TABLE "duration" (
"term_abroad" text,
"2000_01" real,
"2001_02" real,
"2002_03" real,
"2003_04" real,
"2004_05" real,
"2005_06" real,
"2006_07" real,
"2007_08" real,
"2008_09" real
); | SELECT COUNT("2006_07") FROM "duration" WHERE "2003_04"='191,321' AND "2001_02"<'160,920'; | 2-1863144-2 |
Which Time/Retired has Laps smaller than 100, and Points larger than 0? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
); | SELECT "time_retired" FROM "race" WHERE "laps"<100 AND "points">0; | 2-18899550-2 |
Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
); | SELECT AVG("laps") FROM "race" WHERE "time_retired"='+ 4 laps' AND "grid">18; | 2-18899550-2 |
Which Team has Laps of 100, and a Time/Retired of +8.6 secs? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
); | SELECT "team" FROM "race" WHERE "laps"=100 AND "time_retired"='+8.6 secs'; | 2-18899550-2 |
What runs has 11 matches, and 2 as the 100s? | CREATE TABLE "most_runs" (
"player" text,
"matches" text,
"runs" text,
"balls" text,
"strike_rate" text,
"average" text,
"100s" text
); | SELECT "runs" FROM "most_runs" WHERE "matches"='11' AND "100s"='2'; | 2-18574677-3 |
What matches is 2 the 100s? | CREATE TABLE "most_runs" (
"player" text,
"matches" text,
"runs" text,
"balls" text,
"strike_rate" text,
"average" text,
"100s" text
); | SELECT "matches" FROM "most_runs" WHERE "100s"='2'; | 2-18574677-3 |
What strike rate is 9 the matches? | CREATE TABLE "most_runs" (
"player" text,
"matches" text,
"runs" text,
"balls" text,
"strike_rate" text,
"average" text,
"100s" text
); | SELECT "strike_rate" FROM "most_runs" WHERE "matches"='9'; | 2-18574677-3 |
Which player has 79.62 as the strike rate? | CREATE TABLE "most_runs" (
"player" text,
"matches" text,
"runs" text,
"balls" text,
"strike_rate" text,
"average" text,
"100s" text
); | SELECT "player" FROM "most_runs" WHERE "strike_rate"='79.62'; | 2-18574677-3 |
With 10 as matches, and 469 runs, what is the strike rate? | CREATE TABLE "most_runs" (
"player" text,
"matches" text,
"runs" text,
"balls" text,
"strike_rate" text,
"average" text,
"100s" text
); | SELECT "strike_rate" FROM "most_runs" WHERE "matches"='10' AND "runs"='469'; | 2-18574677-3 |
When the strike rate is 70.10, what is the balls? | CREATE TABLE "most_runs" (
"player" text,
"matches" text,
"runs" text,
"balls" text,
"strike_rate" text,
"average" text,
"100s" text
); | SELECT "balls" FROM "most_runs" WHERE "strike_rate"='70.10'; | 2-18574677-3 |
What nation has a time of 51.35 in the final heat? | CREATE TABLE "records" (
"date" text,
"event" text,
"heat_semifinal_final" text,
"nation" text,
"time" text
); | SELECT "nation" FROM "records" WHERE "time"='51.35' AND "heat_semifinal_final"='final'; | 2-18565896-4 |
Which heat, semifinal or final has a time of 48.97? | CREATE TABLE "records" (
"date" text,
"event" text,
"heat_semifinal_final" text,
"nation" text,
"time" text
); | SELECT "heat_semifinal_final" FROM "records" WHERE "time"='48.97'; | 2-18565896-4 |
What heat, semifinal or final has a time of 25.00? | CREATE TABLE "records" (
"date" text,
"event" text,
"heat_semifinal_final" text,
"nation" text,
"time" text
); | SELECT "heat_semifinal_final" FROM "records" WHERE "time"='25.00'; | 2-18565896-4 |
What date was the men's 100m breaststroke in heat 6? | CREATE TABLE "records" (
"date" text,
"event" text,
"heat_semifinal_final" text,
"nation" text,
"time" text
); | SELECT "date" FROM "records" WHERE "event"='men''s 100m breaststroke' AND "heat_semifinal_final"='heat 6'; | 2-18565896-4 |
Marion Buisson with a 4.00 of o had what result? | CREATE TABLE "qualifying_round" (
"group" text,
"name" text,
"nationality" text,
"4_00" text,
"result" text
); | SELECT "result" FROM "qualifying_round" WHERE "4_00"='o' AND "name"='marion buisson'; | 2-18569185-3 |
Anastasija Reiberger from Germany had what 4.00? | CREATE TABLE "qualifying_round" (
"group" text,
"name" text,
"nationality" text,
"4_00" text,
"result" text
); | SELECT "4_00" FROM "qualifying_round" WHERE "nationality"='germany' AND "name"='anastasija reiberger'; | 2-18569185-3 |
Alana Boyd of group B with a 4.30 result has what nationality? | CREATE TABLE "qualifying_round" (
"group" text,
"name" text,
"nationality" text,
"4_00" text,
"result" text
); | SELECT "nationality" FROM "qualifying_round" WHERE "group"='b' AND "result"='4.30' AND "name"='alana boyd'; | 2-18569185-3 |
Roslinda Samsu has what nationality? | CREATE TABLE "qualifying_round" (
"group" text,
"name" text,
"nationality" text,
"4_00" text,
"result" text
); | SELECT "nationality" FROM "qualifying_round" WHERE "name"='roslinda samsu'; | 2-18569185-3 |
What nation is Marion Buisson playing for? | CREATE TABLE "qualifying_round" (
"group" text,
"name" text,
"nationality" text,
"4_00" text,
"result" text
); | SELECT "nationality" FROM "qualifying_round" WHERE "name"='marion buisson'; | 2-18569185-3 |
Who is the rower from Canada? | CREATE TABLE "heat_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
); | SELECT "rowers" FROM "heat_1" WHERE "country"='canada'; | 2-18662697-3 |
What is the sum of the rank of the rower with an r note from Australia? | CREATE TABLE "heat_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
); | SELECT SUM("rank") FROM "heat_1" WHERE "notes"='r' AND "country"='australia'; | 2-18662697-3 |
What is the country with a rank less than 2? | CREATE TABLE "heat_1" (
"rank" real,
"rowers" text,
"country" text,
"time" text,
"notes" text
); | SELECT "country" FROM "heat_1" WHERE "rank"<2; | 2-18662697-3 |
What notes did Gabriella Bascelli receive? | CREATE TABLE "quarterfinal_1" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT "notes" FROM "quarterfinal_1" WHERE "athlete"='gabriella bascelli'; | 2-18662695-8 |
What rank did the time of 7:31.90 receive? | CREATE TABLE "quarterfinal_1" (
"rank" real,
"athlete" text,
"country" text,
"time" text,
"notes" text
); | SELECT COUNT("rank") FROM "quarterfinal_1" WHERE "time"='7:31.90'; | 2-18662695-8 |
Which Romaji Title has a Japanese Title of 女王の教室? | CREATE TABLE "2005_summer_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
); | SELECT "romaji_title" FROM "2005_summer_season" WHERE "japanese_title"='女王の教室'; | 2-18540104-2 |
How many Episodes have a Romaji Title of slow dance? | CREATE TABLE "2005_summer_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
); | SELECT SUM("episodes") FROM "2005_summer_season" WHERE "romaji_title"='slow dance'; | 2-18540104-2 |
How many Episodes have a Romaji Title of dragon zakura? | CREATE TABLE "2005_summer_season" (
"japanese_title" text,
"romaji_title" text,
"tv_station" text,
"episodes" real,
"average_ratings" text
); | SELECT COUNT("episodes") FROM "2005_summer_season" WHERE "romaji_title"='dragon zakura'; | 2-18540104-2 |
Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of october 24, 2008? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" real
); | SELECT "format" FROM "release_history" WHERE "label"='columbia' AND "catalog"<88697411432 AND "date"='october 24, 2008'; | 2-18969843-5 |
Which Catalog has a Date of july 15, 2011? | CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" real
); | SELECT AVG("catalog") FROM "release_history" WHERE "date"='july 15, 2011'; | 2-18969843-5 |
Which opponent was on July 21, 2008? | CREATE TABLE "singles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "opponent" FROM "singles_5" WHERE "date"='july 21, 2008'; | 2-18504248-6 |
What was the date of the tournament with a clay surface and an opponent of Irina Falconi? | CREATE TABLE "singles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "date" FROM "singles_5" WHERE "surface"='clay' AND "opponent"='irina falconi'; | 2-18504248-6 |
Who was the opponent on May 10, 2009? | CREATE TABLE "singles_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "opponent" FROM "singles_5" WHERE "date"='may 10, 2009'; | 2-18504248-6 |
What is the score of the home team, bath 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 "home_team"='bath city'; | 2-18675114-1 |
What was the score for the away team southport? | 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 "away_team"='southport'; | 2-18675114-1 |
What is the home team that had an away team of lincoln city? | 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 "away_team"='lincoln city'; | 2-18675114-1 |
What date had a game with wycombe wanderers as the away team? | 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 "away_team"='wycombe wanderers'; | 2-18675114-1 |
How many places have an Artist of augustė, and a Draw smaller than 6? | CREATE TABLE "quarter_final_1_10_january_2009" (
"draw" real,
"artist" text,
"song" text,
"points" real,
"place" real
); | SELECT COUNT("place") FROM "quarter_final_1_10_january_2009" WHERE "artist"='augustė' AND "draw"<6; | 2-18932779-1 |
What is the latest year the world championships were held in Thun? | CREATE TABLE "world_championships_men" (
"year" real,
"place" text,
"gold" text,
"silver" text,
"bronze" text
); | SELECT MAX("year") FROM "world_championships_men" WHERE "place"='thun'; | 2-18656178-1 |
Who won gold when the world championships were held in Phoenix? | CREATE TABLE "world_championships_men" (
"year" real,
"place" text,
"gold" text,
"silver" text,
"bronze" text
); | SELECT "gold" FROM "world_championships_men" WHERE "place"='phoenix'; | 2-18656178-1 |
What is the smallest ANSI code for adler township when Longitude is more than -101.333926, GEO ID is less than 3806700900, and Land ( sqmi ) is more than 35.84? | CREATE TABLE "a" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
); | SELECT MIN("ansi_code") FROM "a" WHERE "longitude">-101.333926 AND "geo_id"<3806700900 AND "township"='adler' AND "land_sqmi">35.84; | 2-18600760-1 |
Cass county has 0.008 Water (sqmi), less than 35.874 Land (sqmi), more than 35 Pop. (2010), and what average latitude? | CREATE TABLE "a" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
); | SELECT AVG("latitude") FROM "a" WHERE "land_sqmi"<35.874 AND "pop_2010">35 AND "county"='cass' AND "water_sqmi"=0.008; | 2-18600760-1 |
In what county is the latitude less than 46.935364 and GEO ID is 3801700500? | CREATE TABLE "a" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
); | SELECT "county" FROM "a" WHERE "latitude"<46.935364 AND "geo_id"=3801700500; | 2-18600760-1 |
Who was the opponent at the game with a score of 35-14? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text
); | SELECT "opponent" FROM "schedule" WHERE "score"='35-14'; | 2-18587562-1 |
What was the result of the game when the record was 5-1? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text
); | SELECT "result" FROM "schedule" WHERE "record"='5-1'; | 2-18587562-1 |
What was the result of the game against the Los Angeles Dons? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text
); | SELECT "result" FROM "schedule" WHERE "opponent"='los angeles dons'; | 2-18587562-1 |
Which Year has a Venue of bydgoszcz, poland, and an Event of junior team? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT AVG("year") FROM "achievements" WHERE "venue"='bydgoszcz, poland' AND "event"='junior team'; | 2-18428075-1 |
Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of world youth championships? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT "venue" FROM "achievements" WHERE "year"<2009 AND "event"='3000 m' AND "competition"='world youth championships'; | 2-18428075-1 |
Which Year has a Competition of commonwealth youth games? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT AVG("year") FROM "achievements" WHERE "competition"='commonwealth youth games'; | 2-18428075-1 |
What is the total for 1986? | CREATE TABLE "references" (
"rank" real,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real
); | SELECT COUNT("rank") FROM "references" WHERE "year"=1986; | 2-18435715-1 |
What is the name before 1954 with more than 15 floors? | CREATE TABLE "references" (
"rank" real,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real
); | SELECT "name" FROM "references" WHERE "year"<1954 AND "floors">15; | 2-18435715-1 |
What is the lowest rank for El Paso Natural Gas Company Building? | CREATE TABLE "references" (
"rank" real,
"name" text,
"height_ft_m" text,
"floors" real,
"year" real
); | SELECT MIN("rank") FROM "references" WHERE "name"='el paso natural gas company building'; | 2-18435715-1 |
What is the lowest 2013 population estimate of south africa, which has a percentage greater than 19.8 and a 2011 population greater than 51,770,561? | CREATE TABLE "historical_data" (
"rank" text,
"province" text,
"population_2011" real,
"percentage" real,
"population_estimate_2013" real
); | SELECT MIN("population_estimate_2013") FROM "historical_data" WHERE "percentage">19.8 AND "province"='south africa' AND "population_2011">'51,770,561'; | 2-1860337-1 |
What is the rank of the gauteng province? | CREATE TABLE "historical_data" (
"rank" text,
"province" text,
"population_2011" real,
"percentage" real,
"population_estimate_2013" real
); | SELECT "rank" FROM "historical_data" WHERE "province"='gauteng'; | 2-1860337-1 |
What is the lowest 2013 population estimate of the province with a 23.7 percentage? | CREATE TABLE "historical_data" (
"rank" text,
"province" text,
"population_2011" real,
"percentage" real,
"population_estimate_2013" real
); | SELECT MIN("population_estimate_2013") FROM "historical_data" WHERE "percentage"=23.7; | 2-1860337-1 |
What year(s) was Duisburg runner-up? | CREATE TABLE "by_teams" (
"team" text,
"winners" real,
"runners_up" real,
"years_won" text,
"years_runner_up" text
); | SELECT "years_runner_up" FROM "by_teams" WHERE "team"='duisburg'; | 2-18982992-3 |
What was the earliest year with a note of 18.04 m wl? | CREATE TABLE "major_competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT MIN("year") FROM "major_competition_record" WHERE "notes"='18.04 m wl'; | 2-18421845-2 |
What venue had a competition of World Junior Championships before 2011? | CREATE TABLE "major_competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "venue" FROM "major_competition_record" WHERE "year"<2011 AND "competition"='world junior championships'; | 2-18421845-2 |
Who was the developer of Call of Duty: Black Ops? | CREATE TABLE "readers_choice" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "developer_s" FROM "readers_choice" WHERE "game"='call of duty: black ops'; | 2-1851722-15 |
What is the platform for the game of the third-person shooter genre? | CREATE TABLE "readers_choice" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "platform_s" FROM "readers_choice" WHERE "genre"='third-person shooter'; | 2-1851722-15 |
What is the platform of the game from 2007? | CREATE TABLE "readers_choice" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "platform_s" FROM "readers_choice" WHERE "year"=2007; | 2-1851722-15 |
Who was the developer of Resident Evil 4? | CREATE TABLE "readers_choice" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "developer_s" FROM "readers_choice" WHERE "game"='resident evil 4'; | 2-1851722-15 |
What was the rank of flori lang when his time was less than 22.27 | CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
); | SELECT SUM("rank") FROM "heats" WHERE "name"='flori lang' AND "time"<22.27; | 2-18579618-3 |
What lane had a heat after 12, a rank of 38 and a time larger than 22.67? | CREATE TABLE "heats" (
"rank" real,
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
); | SELECT AVG("lane") FROM "heats" WHERE "heat">12 AND "rank"=38 AND "time">22.67; | 2-18579618-3 |
What game has 27-12 record? | CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT "game" FROM "game_log" WHERE "record"='27-12'; | 2-18493040-6 |
What date was the record 21-11? | CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "record"='21-11'; | 2-18493040-6 |
What is the location/attendance for the w 95-93 score? | CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT "location_attendance" FROM "game_log" WHERE "score"='w 95-93'; | 2-18493040-6 |
What is the location/attendance with a 26-11 record? | CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT "location_attendance" FROM "game_log" WHERE "record"='26-11'; | 2-18493040-6 |
Which opponent has a 26-12 record? | CREATE TABLE "game_log" (
"game" text,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "record"='26-12'; | 2-18493040-6 |
What is Lee Ka Man's Time? | CREATE TABLE "heat_2" (
"rank" real,
"rower" text,
"country" text,
"time" text,
"notes" text
); | SELECT "time" FROM "heat_2" WHERE "rower"='lee ka man'; | 2-18662695-3 |
What is the Rank of the rower with a Time of 8:23.02? | CREATE TABLE "heat_2" (
"rank" real,
"rower" text,
"country" text,
"time" text,
"notes" text
); | SELECT COUNT("rank") FROM "heat_2" WHERE "time"='8:23.02'; | 2-18662695-3 |
What is the most gold when the rank is 7 and bronze is less than 0? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("gold") FROM "medal_table" WHERE "rank"='7' AND "bronze"<0; | 2-18403457-1 |
what is the most gold when the total is 7? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("gold") FROM "medal_table" WHERE "total"=7; | 2-18403457-1 |
what is the least gold when the rank is 10 and silver is less than 0? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("gold") FROM "medal_table" WHERE "rank"='10' AND "silver"<0; | 2-18403457-1 |
what is the lowest total when the nation is sweden (swe) and silver is less than 0? | 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 (swe)' AND "silver"<0; | 2-18403457-1 |
what is the average total when silver is more than 2, bronze is 12 and gold is less than 12? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "silver">2 AND "bronze"=12 AND "gold"<12; | 2-18403457-1 |
What is the longitude with a latitude of 48.930222 with a Geo ID smaller than 3806755660? | CREATE TABLE "n" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
); | SELECT COUNT("longitude") FROM "n" WHERE "latitude"=48.930222 AND "geo_id"<3806755660; | 2-18600760-14 |
What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995? | CREATE TABLE "n" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
); | SELECT "latitude" FROM "n" WHERE "land_sqmi"<34.401 AND "geo_id"<3807157722 AND "longitude"=-98.475995; | 2-18600760-14 |
What is the total longitude of Nogosek and a GEO ID larger than 3809357060? | CREATE TABLE "n" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" real,
"water_sqmi" real,
"latitude" real,
"longitude" real,
"geo_id" real,
"ansi_code" real
); | SELECT COUNT("longitude") FROM "n" WHERE "township"='nogosek' AND "geo_id">3809357060; | 2-18600760-14 |
What Band number has a Power (W) of 400 or less? | CREATE TABLE "400_w_sub_bands" (
"band" real,
"frequency_m_hz" text,
"wavelength" text,
"type" text,
"power_w" real
); | SELECT SUM("band") FROM "400_w_sub_bands" WHERE "power_w"<400; | 2-18529884-7 |
What Band's Power (W) is 400 or less? | CREATE TABLE "400_w_sub_bands" (
"band" real,
"frequency_m_hz" text,
"wavelength" text,
"type" text,
"power_w" real
); | SELECT MAX("band") FROM "400_w_sub_bands" WHERE "power_w">400; | 2-18529884-7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.