question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
WHAT IS THE AVERAGE OVERALL, FOR MARK FISCHER? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "name"='mark fischer'; | 2-17100961-69 |
WHAT IS THE SUM OF PICK FOR DAVID TERRELL, WITH A ROUND SMALLER THAN 7? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='david terrell' AND "round"<7; | 2-17100961-69 |
WHAT IS THE POSITION WITH A ROUND LARGER THAN 6, AND OVERALL OF 191? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "position" FROM "washington_redskins_draft_history" WHERE "round">6 AND "overall"=191; | 2-17100961-69 |
Who is the player with a score of 68-71=139? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "player" FROM "second_round" WHERE "score"='68-71=139'; | 2-17231331-5 |
What is the to par of player jerry pate, who has a 70-69=139 score? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "to_par" FROM "second_round" WHERE "score"='70-69=139' AND "player"='jerry pate'; | 2-17231331-5 |
What is the to par of the player with a t9 place and a score of 72-67=139? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "to_par" FROM "second_round" WHERE "place"='t9' AND "score"='72-67=139'; | 2-17231331-5 |
What is the place of the player witha 69-69=138 score? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "place" FROM "second_round" WHERE "score"='69-69=138'; | 2-17231331-5 |
What team played the Jazz at game 68? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "team" FROM "game_log" WHERE "game"=68; | 2-17355716-9 |
What date did mehmet okur (24) have the most points? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "high_points"='mehmet okur (24)'; | 2-17355716-9 |
What week had attendance of 64,146? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT MIN("week") FROM "schedule" WHERE "attendance"='64,146'; | 2-16642790-1 |
What is the attendance of week 12? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT MIN("attendance") FROM "schedule" WHERE "week"=12; | 2-16642790-1 |
What is the attendance from November 3, 1974? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "attendance" FROM "schedule" WHERE "date"='november 3, 1974'; | 2-16642790-1 |
What is the attendance of week 8? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT COUNT("attendance") FROM "schedule" WHERE "week"=8; | 2-16642790-1 |
What is the date of the game on week 9 with attendance greater than 41,863? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "date" FROM "schedule" WHERE "attendance">'41,863' AND "week"=9; | 2-16642790-1 |
Who was the loser against the New York Giants in 2001? | CREATE TABLE "2000s_eagles_13_10" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT "loser" FROM "2000s_eagles_13_10" WHERE "year"=2001 AND "winner"='new york giants'; | 2-16900662-9 |
What was the location with the 24-21 result? | CREATE TABLE "2000s_eagles_13_10" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT "location" FROM "2000s_eagles_13_10" WHERE "result"='24-21'; | 2-16900662-9 |
Who was the winner with the 24-21 result? | CREATE TABLE "2000s_eagles_13_10" (
"year" real,
"date" text,
"winner" text,
"result" text,
"loser" text,
"location" text
); | SELECT "winner" FROM "2000s_eagles_13_10" WHERE "result"='24-21'; | 2-16900662-9 |
What is the average To Par, when Place is "T3", and when Player is "Ben Hogan"? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real
); | SELECT AVG("to_par") FROM "second_round" WHERE "place"='t3' AND "player"='ben hogan'; | 2-17290150-5 |
What is the average To Par, when Player is "Julius Boros"? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real
); | SELECT AVG("to_par") FROM "second_round" WHERE "player"='julius boros'; | 2-17290150-5 |
What is the highest To Par, when Score is "72-73=145"? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real
); | SELECT MAX("to_par") FROM "second_round" WHERE "score"='72-73=145'; | 2-17290150-5 |
What is Score, when Place is "T1"? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real
); | SELECT "score" FROM "second_round" WHERE "place"='t1'; | 2-17290150-5 |
What is Place, when To Par is "5", and when Score is "72-73=145"? | CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" real
); | SELECT "place" FROM "second_round" WHERE "to_par"=5 AND "score"='72-73=145'; | 2-17290150-5 |
What is the highest pick # after round 11? | CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
); | SELECT MAX("pick_num") FROM "nfl_draft" WHERE "round">11; | 2-17386087-1 |
Which college has a pick # 84 in round 3? | CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
); | SELECT "college" FROM "nfl_draft" WHERE "round"=3 AND "pick_num"=84; | 2-17386087-1 |
What was the pick # for round 11? | CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
); | SELECT "pick_num" FROM "nfl_draft" WHERE "round"=11; | 2-17386087-1 |
Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "round">8 AND "name"='kenny fells' AND "overall">297; | 2-17100961-57 |
Which Position has a Round larger than 7, and a Name of wayne asberry? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "position" FROM "washington_redskins_draft_history" WHERE "round">7 AND "name"='wayne asberry'; | 2-17100961-57 |
Which Overall has a Name of markus koch? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "name"='markus koch'; | 2-17100961-57 |
Which Position has a Round smaller than 8, a Pick of 20, and an Overall smaller than 186? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "position" FROM "washington_redskins_draft_history" WHERE "round"<8 AND "pick"=20 AND "overall"<186; | 2-17100961-57 |
What is the score when Fulham is the away team? | CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "third_round_proper" WHERE "away_team"='fulham'; | 2-17438349-3 |
Which away team has a tie number of 14? | CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "away_team" FROM "third_round_proper" WHERE "tie_no"='14'; | 2-17438349-3 |
What is the tie number in the game on 5 January 1986 where Exeter City is the away team? | CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "tie_no" FROM "third_round_proper" WHERE "date"='5 january 1986' AND "away_team"='exeter city'; | 2-17438349-3 |
What is the total average for McCain% of 55.0% and Obama# higher than 3,487? | CREATE TABLE "by_county" (
"county" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real,
"total" real
); | SELECT AVG("total") FROM "by_county" WHERE "mc_cainpct"='55.0%' AND "obamanum">'3,487'; | 2-16223328-2 |
what is 2010 when 2009 is w and 2007 is qf? | CREATE TABLE "grand_slam_tournament_performance_timeli" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2010" FROM "grand_slam_tournament_performance_timeli" WHERE "2009"='w' AND "2007"='qf'; | 2-164910-1 |
what is 2000 when 2012 is 4r? | CREATE TABLE "grand_slam_tournament_performance_timeli" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2000" FROM "grand_slam_tournament_performance_timeli" WHERE "2012"='4r'; | 2-164910-1 |
what is 2000 when 2012 is w and 2011 is 4r? | CREATE TABLE "grand_slam_tournament_performance_timeli" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2000" FROM "grand_slam_tournament_performance_timeli" WHERE "2012"='w' AND "2011"='4r'; | 2-164910-1 |
what is 2010 when 2006 is 3r? | CREATE TABLE "grand_slam_tournament_performance_timeli" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2010" FROM "grand_slam_tournament_performance_timeli" WHERE "2006"='3r'; | 2-164910-1 |
what is 2013 when 2001 is qf and 2011 is 4r? | CREATE TABLE "grand_slam_tournament_performance_timeli" (
"tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2013" FROM "grand_slam_tournament_performance_timeli" WHERE "2001"='qf' AND "2011"='4r'; | 2-164910-1 |
What is the average round for the record of 1-1? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text
); | SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "record"='1-1'; | 2-17445922-2 |
What method had a record 12-2-3? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='12-2-3'; | 2-17445922-2 |
What Hanyu Pinyin is in the Jinning Township? | CREATE TABLE "townships" (
"name" text,
"chinese" text,
"hanyu_pinyin" text,
"wade_giles" text,
"hokkien_pe_h_e_j" text,
"english_meaning" text
); | SELECT "hanyu_pinyin" FROM "townships" WHERE "name"='jinning township'; | 2-164266-1 |
How many times did Sham Kwok Fai score in the game that was played on 22 February 2006? | CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"scored" real,
"competition" text
); | SELECT SUM("scored") FROM "international_career" WHERE "date"='22 february 2006'; | 2-16775101-1 |
The home team york city has what score? | CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "fifth_round_proper" WHERE "home_team"='york city'; | 2-17438349-5 |
What is the total number of Week(s), when Attendance is 61,603? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT COUNT("week") FROM "schedule" WHERE "attendance"='61,603'; | 2-16778155-2 |
What is Opponent, when Attendance is 62,170? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "opponent" FROM "schedule" WHERE "attendance"='62,170'; | 2-16778155-2 |
HOW MANY POINTS DOES ALEX SPERAFICO HAVE WITH A GRID LARGER THAN 17? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
); | SELECT MIN("points") FROM "race" WHERE "driver"='alex sperafico' AND "grid">17; | 2-16759619-2 |
WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" real
); | SELECT MIN("laps") FROM "race" WHERE "points">5 AND "team"='forsythe racing' AND "grid"=5; | 2-16759619-2 |
WHAT IS THE SCORE WHEN THE COMPETITION WAS 1978 world cup qualification? | CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "competition"='1978 world cup qualification'; | 2-1699550-1 |
What is the average pick number for jerry hackenbruck who was overall pick less than 282? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "name"='jerry hackenbruck' AND "overall"<282; | 2-17100961-45 |
What is the lowest draft pick number for mark doak who had an overall pick smaller than 147? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT MIN("pick") FROM "washington_redskins_draft_history" WHERE "name"='mark doak' AND "overall"<147; | 2-17100961-45 |
What position did the player have who was from the college of california? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "position" FROM "washington_redskins_draft_history" WHERE "college"='california'; | 2-17100961-45 |
What college did jerry hackenbruck come from who had an overall pick less than 344? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall"<344 AND "name"='jerry hackenbruck'; | 2-17100961-45 |
What team was the opponent on 03/18/08? | CREATE TABLE "21st_century_comeback" (
"date" text,
"time" text,
"opponent" text,
"site" text,
"city" text
); | SELECT "opponent" FROM "21st_century_comeback" WHERE "date"='03/18/08'; | 2-16311967-1 |
What is the site where the game was held in the city of Delaware? | CREATE TABLE "21st_century_comeback" (
"date" text,
"time" text,
"opponent" text,
"site" text,
"city" text
); | SELECT "site" FROM "21st_century_comeback" WHERE "city"='delaware'; | 2-16311967-1 |
What city was the game held in when the opponent was Towson? | CREATE TABLE "21st_century_comeback" (
"date" text,
"time" text,
"opponent" text,
"site" text,
"city" text
); | SELECT "city" FROM "21st_century_comeback" WHERE "opponent"='towson'; | 2-16311967-1 |
What team was opponen in baltimore, at 2:00pm, on 4/06/08? | CREATE TABLE "21st_century_comeback" (
"date" text,
"time" text,
"opponent" text,
"site" text,
"city" text
); | SELECT "opponent" FROM "21st_century_comeback" WHERE "city"='baltimore' AND "time"='2:00pm' AND "date"='4/06/08'; | 2-16311967-1 |
What date was the game held at UMBC Field? | CREATE TABLE "21st_century_comeback" (
"date" text,
"time" text,
"opponent" text,
"site" text,
"city" text
); | SELECT "date" FROM "21st_century_comeback" WHERE "site"='umbc field'; | 2-16311967-1 |
What date was the game held in Towson? | CREATE TABLE "21st_century_comeback" (
"date" text,
"time" text,
"opponent" text,
"site" text,
"city" text
); | SELECT "date" FROM "21st_century_comeback" WHERE "city"='towson'; | 2-16311967-1 |
Which season premiered on 29 October 1990 and had more than 6 episodes? | CREATE TABLE "series_1_5" (
"series" real,
"premiere" text,
"finale" text,
"episodes" real,
"specials" real
); | SELECT MAX("series") FROM "series_1_5" WHERE "premiere"='29 october 1990' AND "episodes">6; | 2-173861-1 |
WHAT DATE HAD A SCORE OF 71-64? | CREATE TABLE "playoffs" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
); | SELECT "date" FROM "playoffs" WHERE "score"='71-64'; | 2-17104991-6 |
WHAT SCORE WAS ON SEPTEMBER 21? | CREATE TABLE "playoffs" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
); | SELECT "score" FROM "playoffs" WHERE "date"='september 21'; | 2-17104991-6 |
WHAT SCORE HAD A RECORD OF 1-1? | CREATE TABLE "playoffs" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
); | SELECT "score" FROM "playoffs" WHERE "record"='1-1'; | 2-17104991-6 |
WHAT OPPONENT HAD A DATE OF SEPTEMBER 28? | CREATE TABLE "playoffs" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
); | SELECT "opponent" FROM "playoffs" WHERE "date"='september 28'; | 2-17104991-6 |
WHAT SCORE HAD A LOSS AND RECORD OF 1-1? | CREATE TABLE "playoffs" (
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
); | SELECT "score" FROM "playoffs" WHERE "result"='loss' AND "record"='1-1'; | 2-17104991-6 |
Who is the alternate for Andy Brown, and Nick Grady? | CREATE TABLE "on_ice_officials" (
"season" text,
"coach" text,
"captain" text,
"alternate_1" text,
"alternate_2" text
); | SELECT "alternate_2" FROM "on_ice_officials" WHERE "coach"='andy brown' AND "captain"='nick grady'; | 2-16446652-2 |
Which captain has Gintare Karpaviciute as an alternate? | CREATE TABLE "on_ice_officials" (
"season" text,
"coach" text,
"captain" text,
"alternate_1" text,
"alternate_2" text
); | SELECT "captain" FROM "on_ice_officials" WHERE "alternate_1"='gintare karpaviciute'; | 2-16446652-2 |
Which coach works with Robert Harvey? | CREATE TABLE "on_ice_officials" (
"season" text,
"coach" text,
"captain" text,
"alternate_1" text,
"alternate_2" text
); | SELECT "coach" FROM "on_ice_officials" WHERE "captain"='robert harvey'; | 2-16446652-2 |
Which Nickname has Founded of 1954? | CREATE TABLE "2013_2014_teams" (
"school" text,
"location" text,
"founded" real,
"affiliation" text,
"nickname" text
); | SELECT "nickname" FROM "2013_2014_teams" WHERE "founded"=1954; | 2-16404837-5 |
Which team played in the Boston Garden when the final score was L 118-130? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT "team" FROM "playoffs" WHERE "location_attendance"='boston garden' AND "score"='l 118-130'; | 2-17344582-10 |
What team played at the Boston Garden when the series was 1-0? | CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
); | SELECT "team" FROM "playoffs" WHERE "location_attendance"='boston garden' AND "series"='1-0'; | 2-17344582-10 |
Which driver had a grid of 2? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" text
); | SELECT "driver" FROM "race" WHERE "grid"=2; | 2-16955294-2 |
What is the smallest grid value that had 16 points and a team of Mi-Jack Conquest Racing? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" text
); | SELECT MIN("grid") FROM "race" WHERE "team"='mi-jack conquest racing' AND "points"='16'; | 2-16955294-2 |
What is the number of points associated with 165 laps? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" text
); | SELECT "points" FROM "race" WHERE "laps"=165; | 2-16955294-2 |
What is the total number of laps associated with 8 points and a grid under 8? | CREATE TABLE "race" (
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"points" text
); | SELECT COUNT("laps") FROM "race" WHERE "points"='8' AND "grid"<8; | 2-16955294-2 |
What is the highest amount of employees with 110,520.2 in revenue, and a more than 2,237.7 profit? | CREATE TABLE "list" (
"rank" real,
"rank_fortune_500" real,
"name" text,
"headquarters" text,
"revenue_millions" real,
"profit_millions" real,
"employees" real,
"industry" text
); | SELECT MAX("employees") FROM "list" WHERE "revenue_millions"<'110,520.2' AND "profit_millions">'2,237.7'; | 2-16256777-1 |
What is the % for Munger when McCrory has 40% and the lead margin is greater than 3? | CREATE TABLE "opinion_polling_for_the_united_states_gu" (
"poll_source" text,
"dates_administered" text,
"democrat_beverly_perdue" text,
"republican_pat_mc_crory" text,
"libertarian_michael_munger" text,
"lead_margin" real
); | SELECT "libertarian_michael_munger" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_pat_mc_crory"='40%' AND "lead_margin">3; | 2-17538810-5 |
What is the percentage of Perdue when McCrory has 37% and Munger has 6%? | CREATE TABLE "opinion_polling_for_the_united_states_gu" (
"poll_source" text,
"dates_administered" text,
"democrat_beverly_perdue" text,
"republican_pat_mc_crory" text,
"libertarian_michael_munger" text,
"lead_margin" real
); | SELECT "democrat_beverly_perdue" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_pat_mc_crory"='37%' AND "libertarian_michael_munger"='6%'; | 2-17538810-5 |
What is the lead margin for McCrory when he has 49%? | CREATE TABLE "opinion_polling_for_the_united_states_gu" (
"poll_source" text,
"dates_administered" text,
"democrat_beverly_perdue" text,
"republican_pat_mc_crory" text,
"libertarian_michael_munger" text,
"lead_margin" real
); | SELECT "lead_margin" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_pat_mc_crory"='49%'; | 2-17538810-5 |
What is the lowest height in feet for the building located in platz der einheit 1, gallus, that was built after 1961 with a height less than 130 meters? | CREATE TABLE "tallest_completed_buildings" (
"name" text,
"height_m" real,
"height_ft" real,
"location" text,
"year_built" real
); | SELECT MIN("height_ft") FROM "tallest_completed_buildings" WHERE "year_built">1961 AND "location"='platz der einheit 1, gallus' AND "height_m"<130; | 2-17481093-1 |
What is the sum of the heights in meters for the commerzbank tower built after 1984? | CREATE TABLE "tallest_completed_buildings" (
"name" text,
"height_m" real,
"height_ft" real,
"location" text,
"year_built" real
); | SELECT SUM("height_m") FROM "tallest_completed_buildings" WHERE "year_built">1984 AND "name"='commerzbank tower'; | 2-17481093-1 |
What is the earliest year that the building in sonnemannstraße/rückertstraße, ostend was built with a height larger than 185 meters? | CREATE TABLE "tallest_completed_buildings" (
"name" text,
"height_m" real,
"height_ft" real,
"location" text,
"year_built" real
); | SELECT MIN("year_built") FROM "tallest_completed_buildings" WHERE "location"='sonnemannstraße/rückertstraße, ostend' AND "height_m">185; | 2-17481093-1 |
What is the lowest height in meters for the building located in mailänder straße 1, sachsenhausen-süd, with a height shorter than 328.1 ft? | CREATE TABLE "tallest_completed_buildings" (
"name" text,
"height_m" real,
"height_ft" real,
"location" text,
"year_built" real
); | SELECT MIN("height_m") FROM "tallest_completed_buildings" WHERE "location"='mailänder straße 1, sachsenhausen-süd' AND "height_ft"<328.1; | 2-17481093-1 |
What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersville? | CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"census_ranking" text
); | SELECT AVG("population") FROM "communities" WHERE "area_km_2"<26.69 AND "official_name"='rogersville'; | 2-171354-1 |
What's the name of the album from 2012 with a Hammer Music / Nail Records label? | CREATE TABLE "discography" (
"year" real,
"album" text,
"release_type" text,
"label" text,
"hungarian_top_40_album_charts" text
); | SELECT "album" FROM "discography" WHERE "label"='hammer music / nail records' AND "year"=2012; | 2-17303372-1 |
What year had the Hungarian top 40 album charts of 3? | CREATE TABLE "discography" (
"year" real,
"album" text,
"release_type" text,
"label" text,
"hungarian_top_40_album_charts" text
); | SELECT "year" FROM "discography" WHERE "hungarian_top_40_album_charts"='3'; | 2-17303372-1 |
What type of release was Napisten Hava? | CREATE TABLE "discography" (
"year" real,
"album" text,
"release_type" text,
"label" text,
"hungarian_top_40_album_charts" text
); | SELECT "release_type" FROM "discography" WHERE "album"='napisten hava'; | 2-17303372-1 |
What was the name of the album that was a demo release? | CREATE TABLE "discography" (
"year" real,
"album" text,
"release_type" text,
"label" text,
"hungarian_top_40_album_charts" text
); | SELECT "album" FROM "discography" WHERE "release_type"='demo'; | 2-17303372-1 |
What is the serials issued in 1982 with a format of ABC-123? | CREATE TABLE "1973_to_1983" (
"issued" text,
"type" text,
"design" text,
"serial_format" text,
"serials_issued" text
); | SELECT "serials_issued" FROM "1973_to_1983" WHERE "serial_format"='abc-123' AND "issued"='1982'; | 2-16799086-8 |
Which design has a serial format of AB-12-34? | CREATE TABLE "1973_to_1983" (
"issued" text,
"type" text,
"design" text,
"serial_format" text,
"serials_issued" text
); | SELECT "design" FROM "1973_to_1983" WHERE "serial_format"='ab-12-34'; | 2-16799086-8 |
Which serials were issued with a design of black on yellow? | CREATE TABLE "1973_to_1983" (
"issued" text,
"type" text,
"design" text,
"serial_format" text,
"serials_issued" text
); | SELECT "serials_issued" FROM "1973_to_1983" WHERE "design"='black on yellow'; | 2-16799086-8 |
WHo was the outgoing manager for the team of fc carl zeiss jena? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
); | SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='fc carl zeiss jena'; | 2-17593350-2 |
What team did the manager come from who departed due to an end of tenure as caretaker? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
); | SELECT "team" FROM "managerial_changes" WHERE "manner_of_departure"='end of tenure as caretaker'; | 2-17593350-2 |
What was the date of appointment for the replaced manager, reiner geyer? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
); | SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='reiner geyer'; | 2-17593350-2 |
What was the date of vacancy after the outgoing manager, ralf santelli departed? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
); | SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='ralf santelli'; | 2-17593350-2 |
Who was the outgoing manager who departed due to fc energie cottbus purchased rights? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
); | SELECT "outgoing_manager" FROM "managerial_changes" WHERE "manner_of_departure"='fc energie cottbus purchased rights'; | 2-17593350-2 |
How many times is the position lb and the overall is less than 46? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT COUNT("pick") FROM "washington_redskins_draft_history" WHERE "position"='lb' AND "overall"<46; | 2-17100961-61 |
what is the college when the overall is more than 76 for brian mitchell? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall">76 AND "name"='brian mitchell'; | 2-17100961-61 |
what is the pick when the overall is less than 297 and the college is alabama? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "pick" FROM "washington_redskins_draft_history" WHERE "overall"<297 AND "college"='alabama'; | 2-17100961-61 |
what is the highest round when the college is penn state? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "college"='penn state'; | 2-17100961-61 |
What is the 1989 number when the 200 number is less than 52.8 in Arizona, New Mexico, and Utah | CREATE TABLE "changes_in_poverty_rates_on_largest_rese" (
"reservation" text,
"location" text,
"1969" real,
"1979" real,
"1989" real,
"2000" real
); | SELECT SUM("1989") FROM "changes_in_poverty_rates_on_largest_rese" WHERE "2000"<52.8 AND "location"='arizona, new mexico, and utah'; | 2-17334094-3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.