answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT COUNT(*) FROM game WHERE season > 2007 | How many games are held after season 2007? | CREATE TABLE game (season INTEGER) |
SELECT score FROM table_name_80 WHERE date = "november 18" | WHAT IS THE SCORE WITH A DATE OF NOVEMBER 18? | CREATE TABLE table_name_80 (score VARCHAR, date VARCHAR) |
SELECT class_1 - 200 FROM table_1936678_1 WHERE best_uk_team = "University of Hertfordshire" AND class_1a = "University of Warwick" | Name the class 1-200 for university of hertfordshire for university of warwick | CREATE TABLE table_1936678_1 (class_1 VARCHAR, best_uk_team VARCHAR, class_1a VARCHAR) |
SELECT title FROM table_20704243_6 WHERE original_air_date = "August19,2012" | Which episode aired on august19,2012? | CREATE TABLE table_20704243_6 (title VARCHAR, original_air_date VARCHAR) |
SELECT date FROM table_name_71 WHERE runner_s__up = "oliver wilson" | What is Date, when Runner(s)-Up is Oliver Wilson? | CREATE TABLE table_name_71 (date VARCHAR, runner_s__up VARCHAR) |
SELECT departure FROM table_18365784_3 WHERE going_to = "Boston" | What was the departure time of the train going to Boston? | CREATE TABLE table_18365784_3 (departure VARCHAR, going_to VARCHAR) |
SELECT away_team FROM table_name_69 WHERE crowd > 41 OFFSET 451 | Who was the away team when the crowd was larger than 41,451? | CREATE TABLE table_name_69 (away_team VARCHAR, crowd INTEGER) |
SELECT left_office FROM table_26362472_1 WHERE province = "Seville" | What are the dates of leaving office for politician from the province of Seville? | CREATE TABLE table_26362472_1 (left_office VARCHAR, province VARCHAR) |
SELECT graduation_rate__2011_12_ FROM table_21514460_1 WHERE headquarters = "Sydney" | What is the graduation rate for the school district with headquarters located in Sydney? | CREATE TABLE table_21514460_1 (graduation_rate__2011_12_ VARCHAR, headquarters VARCHAR) |
SELECT MAX(capacity), average FROM stadium | What is the maximum capacity and the average of all stadiums ? | CREATE TABLE stadium (average VARCHAR, capacity INTEGER) |
SELECT T2.Store_Name FROM Addresses AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Address_ID = T2.Address_ID WHERE T1.City_Town = "Feliciaberg" | What are the names of the drama workshop groups with address in Feliciaberg city? | CREATE TABLE Addresses (Address_ID VARCHAR, City_Town VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Address_ID VARCHAR) |
SELECT COUNT(region) FROM table_2588674_1 WHERE village = "Asan-Maina" | How many places named asan-maina? | CREATE TABLE table_2588674_1 (region VARCHAR, village VARCHAR) |
SELECT MIN(podiums) FROM table_25548630_1 | What is the least amount of podiums? | CREATE TABLE table_25548630_1 (podiums INTEGER) |
SELECT runner_up FROM table_11214772_2 WHERE semi_finalist__number1 = "Embry-Riddle" | When Embry-Riddle made it to the first semi finalist slot, list all the runners up. | CREATE TABLE table_11214772_2 (runner_up VARCHAR, semi_finalist__number1 VARCHAR) |
SELECT SUM(rank) FROM table_name_9 WHERE player = "henry shefflin" AND matches > 4 | what is the rank when the player is henry shefflin and the matches is higher than 4? | CREATE TABLE table_name_9 (rank INTEGER, player VARCHAR, matches VARCHAR) |
SELECT name FROM table_name_93 WHERE statistic = "most assists" | Who had the statistic of most assists? | CREATE TABLE table_name_93 (name VARCHAR, statistic VARCHAR) |
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo | Show student ids who don't have any sports. | CREATE TABLE Sportsinfo (StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR) |
SELECT tyre FROM table_name_58 WHERE fastest_lap = "bruce mclaren" | What is the tyre on the race where Bruce Mclaren had the fastest lap? | CREATE TABLE table_name_58 (tyre VARCHAR, fastest_lap VARCHAR) |
SELECT high_assists FROM table_name_8 WHERE location_attendance = "american airlines center 20,223" | Who had the high assists when the game was at American Airlines Center 20,223? | CREATE TABLE table_name_8 (high_assists VARCHAR, location_attendance VARCHAR) |
SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0 | what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0? | CREATE TABLE table_name_21 (tackles VARCHAR, yards VARCHAR, fumr VARCHAR, totaltk VARCHAR) |
SELECT episode AS Summary FROM table_2140071_12 WHERE coach = "Travis Brown" | Name the episode summary for travis brown | CREATE TABLE table_2140071_12 (episode VARCHAR, coach VARCHAR) |
SELECT MAX(laps) FROM table_name_34 WHERE driver = "graham hill" AND grid > 18 | what's the highest lap that contains the driver of graham hill and a grid that is larger than 18? | CREATE TABLE table_name_34 (laps INTEGER, driver VARCHAR, grid VARCHAR) |
SELECT school FROM table_24935743_2 WHERE nickname = "Panthers" | What school is nicknamed the panthers? | CREATE TABLE table_24935743_2 (school VARCHAR, nickname VARCHAR) |
SELECT event FROM table_name_25 WHERE pursuit = "18th" AND sprint = "20th" | Name the event with pursuit of 18th and sprint of 20th | CREATE TABLE table_name_25 (event VARCHAR, pursuit VARCHAR, sprint VARCHAR) |
SELECT class FROM table_name_84 WHERE city_of_license = "lake oconee, ga" | What is the Class where City of license is lake oconee, ga? | CREATE TABLE table_name_84 (class VARCHAR, city_of_license VARCHAR) |
SELECT cerclis_id FROM table_name_98 WHERE listed = "09/08/1983" AND name = "marshall landfill" | What is the ID of marshall landfill on 09/08/1983? | CREATE TABLE table_name_98 (cerclis_id VARCHAR, listed VARCHAR, name VARCHAR) |
SELECT MAX(wins) FROM table_name_59 WHERE draws > 1 AND byes > 0 | What is the highest number of wins when draws are larger than 1, and byes are larger than 0? | CREATE TABLE table_name_59 (wins INTEGER, draws VARCHAR, byes VARCHAR) |
SELECT MIN(year_left) FROM table_name_73 WHERE location = "fowler" | When was the first year when Fowler joined? | CREATE TABLE table_name_73 (year_left INTEGER, location VARCHAR) |
SELECT score FROM table_name_16 WHERE record = "6–1" | Record of 6–1 had what score? | CREATE TABLE table_name_16 (score VARCHAR, record VARCHAR) |
SELECT romani FROM table_name_56 WHERE persian = "dah" | What Romani word has the same meaning as the Persian word dah? | CREATE TABLE table_name_56 (romani VARCHAR, persian VARCHAR) |
SELECT Enrollment FROM school WHERE Denomination <> "Catholic" | What are the enrollments of schools whose denomination is not "Catholic"? | CREATE TABLE school (Enrollment VARCHAR, Denomination VARCHAR) |
SELECT country FROM table_name_98 WHERE place = "t8" AND score = 70 - 67 = 137 | What is Country, when Place is "T8", and when Score is "70-67=137"? | CREATE TABLE table_name_98 (country VARCHAR, place VARCHAR, score VARCHAR) |
SELECT COUNT(year) FROM table_name_52 WHERE chassis = "talbot-lago t26c" AND points < 3 | Name the total number of years for talbot-lago t26c and points less than 3 | CREATE TABLE table_name_52 (year VARCHAR, chassis VARCHAR, points VARCHAR) |
SELECT 2005 FROM table_name_31 WHERE ship_size = "all product carriers" | What was the cargo value in 2005 with a ship size of all product carriers? | CREATE TABLE table_name_31 (ship_size VARCHAR) |
SELECT build_date FROM table_1057316_1 WHERE serial_number = "2053" | When was the train 2053 built? | CREATE TABLE table_1057316_1 (build_date VARCHAR, serial_number VARCHAR) |
SELECT defending_forces FROM table_name_77 WHERE name = "danna" | Which defending forces have the name Danna? | CREATE TABLE table_name_77 (defending_forces VARCHAR, name VARCHAR) |
SELECT SUM(state_champions) FROM table_name_72 WHERE mrc_championships > 9 AND records = "192-189-3" AND co_champions > 4 | What is the sum of state champions with more tan 9 MRC Championships, more than 4 co-champions, and a record of 192-189-3? | CREATE TABLE table_name_72 (state_champions INTEGER, co_champions VARCHAR, mrc_championships VARCHAR, records VARCHAR) |
SELECT MIN(wins) FROM table_name_40 WHERE top_10 > 9 | What is the lowest Wins with a Top-10 that is larger than 9? | CREATE TABLE table_name_40 (wins INTEGER, top_10 INTEGER) |
SELECT scheduled FROM table_name_96 WHERE turbines = 17 | When is the scheduled date for the farm having 17 turbines? | CREATE TABLE table_name_96 (scheduled VARCHAR, turbines VARCHAR) |
SELECT season FROM table_name_43 WHERE last_air_date = "march 11, 2001" | Which season had its last episode air on March 11, 2001? | CREATE TABLE table_name_43 (season VARCHAR, last_air_date VARCHAR) |
SELECT MAX(grid) FROM table_name_89 WHERE laps = 27 | What is the high grid with 27 laps? | CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR) |
SELECT venue FROM table_name_38 WHERE date = "2001-05-05" | What is the Venue of the Competition on 2001-05-05? | CREATE TABLE table_name_38 (venue VARCHAR, date VARCHAR) |
SELECT entrant FROM table_name_65 WHERE rounds = "all" AND chassis = "jh24 jh25" AND driver = "gabriele tarquini" | Who was the entrant for Gabriele Tarquini with all rounds and a JH24 JH25 Chassis? | CREATE TABLE table_name_65 (entrant VARCHAR, driver VARCHAR, rounds VARCHAR, chassis VARCHAR) |
SELECT position FROM table_16575609_1 WHERE cfl_team = "Winnipeg Blue Bombers" | What position did the winnipeg blue bombers draft? | CREATE TABLE table_16575609_1 (position VARCHAR, cfl_team VARCHAR) |
SELECT COUNT(opponent) FROM table_27501030_8 WHERE game = 69 | How many games were numbered 69? | CREATE TABLE table_27501030_8 (opponent VARCHAR, game VARCHAR) |
SELECT competition FROM table_name_36 WHERE venue = "seoul" AND result = "4-1" | Which Competition has a Venue of Seoul, and Result of 4-1? | CREATE TABLE table_name_36 (competition VARCHAR, venue VARCHAR, result VARCHAR) |
SELECT MAX(rank) FROM table_name_60 WHERE player = "jim colbert" | What's jim colbert's highest rank? | CREATE TABLE table_name_60 (rank INTEGER, player VARCHAR) |
SELECT december FROM table_name_27 WHERE score = "8 - 1" | Score of 8 - 1 happened on what day in December? | CREATE TABLE table_name_27 (december VARCHAR, score VARCHAR) |
SELECT MAX(joined) FROM table_name_84 WHERE conference_championships = 5 AND institution = "university of north carolina" | What is the latest year joined with a Conference championships of 5, and an Institution of university of north carolina? | CREATE TABLE table_name_84 (joined INTEGER, conference_championships VARCHAR, institution VARCHAR) |
SELECT runner_s__up FROM table_name_39 WHERE date = "feb 18, 1996" | Who was the runner(s)-up for the Feb 18, 1996 tournament? | CREATE TABLE table_name_39 (runner_s__up VARCHAR, date VARCHAR) |
SELECT perth FROM table_name_56 WHERE gold_coast = "yes" AND sydney = "yes" AND melbourne = "yes" AND adelaide = "yes" | Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes? | CREATE TABLE table_name_56 (perth VARCHAR, adelaide VARCHAR, melbourne VARCHAR, gold_coast VARCHAR, sydney VARCHAR) |
SELECT competition FROM table_name_19 WHERE result = "4-1" AND score = "4-1" | Which competition had a 4-1 result, and a score of 4-1? | CREATE TABLE table_name_19 (competition VARCHAR, result VARCHAR, score VARCHAR) |
SELECT league FROM table_name_70 WHERE sport = "arena football" AND club = "laredo lobos" | Which league has arena football in the club Laredo Lobos? | CREATE TABLE table_name_70 (league VARCHAR, sport VARCHAR, club VARCHAR) |
SELECT MAX(first_elected) FROM table_name_99 WHERE district = "06.0 6" AND committee = "economic matters" | What is the Highest first elected year that has a district of 06.0 6, and a committee of economic matters? | CREATE TABLE table_name_99 (first_elected INTEGER, district VARCHAR, committee VARCHAR) |
SELECT years_in_senate FROM table_name_23 WHERE years_in_assembly = "2010–present" AND name = "toni atkins" | Which Years in Senate has a Years in Assembly of 2010–present, and toni atkins? | CREATE TABLE table_name_23 (years_in_senate VARCHAR, years_in_assembly VARCHAR, name VARCHAR) |
SELECT long_scale FROM table_name_7 WHERE power_notation = "10 12" | For a power notation of 10 12, what is the long scale? | CREATE TABLE table_name_7 (long_scale VARCHAR, power_notation VARCHAR) |
SELECT year FROM table_name_86 WHERE result = "4–3" AND champions = "daegu tongyang orions" | What is the Year of the game with Result of 4–3 and Champions of Daegu Tongyang Orions? | CREATE TABLE table_name_86 (year VARCHAR, result VARCHAR, champions VARCHAR) |
SELECT format FROM table_name_11 WHERE catalog < 61298 | Which Format has a Catalog smaller than 61298? | CREATE TABLE table_name_11 (format VARCHAR, catalog INTEGER) |
SELECT club FROM table_name_46 WHERE year = 2012 AND order = "15th" | What was the 15th club in 2012? | CREATE TABLE table_name_46 (club VARCHAR, year VARCHAR, order VARCHAR) |
SELECT investing_dragon_s_ FROM table_name_43 WHERE money_requested__£_ = "100,000" AND entrepreneur_s_ = "kay russell" | Which Investing Dragon has requested £100,000 and is supported by Entrepreneur Kay Russell? | CREATE TABLE table_name_43 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR) |
SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = "Campbell Money" | What is the date of appointment for outgoing manager Campbell Money | CREATE TABLE table_11206916_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) |
SELECT AVG(_percentage_2006) FROM table_name_70 WHERE seats_2001 > 15 AND _percentage_2001 > 100 | When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006? | CREATE TABLE table_name_70 (_percentage_2006 INTEGER, seats_2001 VARCHAR, _percentage_2001 VARCHAR) |
SELECT position FROM table_name_21 WHERE dob = "13 may 1987" | Which Position has a DOB of 13 may 1987? | CREATE TABLE table_name_21 (position VARCHAR, dob VARCHAR) |
SELECT format FROM table_name_23 WHERE label = "eagle records" AND catalogue_number_s_ = "edgcd391" | Which Format has a Label of eagle records, and a Catalogue number(s) of edgcd391? | CREATE TABLE table_name_23 (format VARCHAR, label VARCHAR, catalogue_number_s_ VARCHAR) |
SELECT team FROM table_name_55 WHERE sport = "tennis" AND nation_of_citizenship = "united states" | Which tennis team is from the United States? | CREATE TABLE table_name_55 (team VARCHAR, sport VARCHAR, nation_of_citizenship VARCHAR) |
SELECT MIN(rural), __percentage FROM table_16645_1 WHERE year__january_ = 1979 | What is the rural population percentage in 1979? | CREATE TABLE table_16645_1 (__percentage VARCHAR, rural INTEGER, year__january_ VARCHAR) |
SELECT MAX(series_no) FROM table_22580855_1 WHERE us_viewers__millions_ = "3.14" | which is the maximun serie episode number when the millions of North American spectators is 3.14? | CREATE TABLE table_22580855_1 (series_no INTEGER, us_viewers__millions_ VARCHAR) |
SELECT result FROM table_name_86 WHERE opponent = "carolina panthers" | What's the result when the Carolina Panthers were the opponent? | CREATE TABLE table_name_86 (result VARCHAR, opponent VARCHAR) |
SELECT COUNT(round) FROM table_name_75 WHERE player = "jason missiaen" | What is the total number of rounds that had Jason Missiaen? | CREATE TABLE table_name_75 (round VARCHAR, player VARCHAR) |
SELECT make FROM table_27940569_1 WHERE sponsor = "Aflac" | What car make was sponsored by Aflac? | CREATE TABLE table_27940569_1 (make VARCHAR, sponsor VARCHAR) |
SELECT away_team AS score FROM table_name_15 WHERE away_team = "essendon" | What was the score of essendon when they were the away team? | CREATE TABLE table_name_15 (away_team VARCHAR) |
SELECT official_itv1_rating__millions_ FROM table_27319183_5 WHERE episode = "Live final results" | What was the official ITV1 rating in millions of the Live Final Results episode? | CREATE TABLE table_27319183_5 (official_itv1_rating__millions_ VARCHAR, episode VARCHAR) |
SELECT AVG(lost) FROM table_name_32 WHERE played > 14 | what is the average lost when played is more than 14? | CREATE TABLE table_name_32 (lost INTEGER, played INTEGER) |
SELECT MAX(week) FROM table_name_63 WHERE venue = "league park" AND date = "november 25, 1920" | What is the largest week number for the venue of League Park for the date of November 25, 1920? | CREATE TABLE table_name_63 (week INTEGER, venue VARCHAR, date VARCHAR) |
SELECT COUNT(february) FROM table_name_48 WHERE opponent = "vancouver canucks" AND game > 55 | What is the February number of the game with the Vancouver Canucks as the opponent and a game number greater than 55? | CREATE TABLE table_name_48 (february VARCHAR, opponent VARCHAR, game VARCHAR) |
SELECT MAX(rank) FROM table_name_40 WHERE nation = "east germany" AND points = 128.98 AND places < 70 | what is the highest rank for east germany with points of 128.98 and places less than 70? | CREATE TABLE table_name_40 (rank INTEGER, places VARCHAR, nation VARCHAR, points VARCHAR) |
SELECT kk___5 FROM table_name_42 WHERE kk___1 = "1,067" | What is KK - 5 if KK - 1 is 1,067? | CREATE TABLE table_name_42 (kk___5 VARCHAR, kk___1 VARCHAR) |
SELECT COUNT(score) FROM table_name_2 WHERE place = "t5" | How many scores have a Place of t5? | CREATE TABLE table_name_2 (score VARCHAR, place VARCHAR) |
SELECT MAX(arrival) FROM table_142159_1 WHERE name = "Greenbat" | What is the arrival time of greenbat | CREATE TABLE table_142159_1 (arrival INTEGER, name VARCHAR) |
SELECT 2009 FROM table_name_45 WHERE 2011 = "39th" | What 2009 has 39th as the 2011? | CREATE TABLE table_name_45 (Id VARCHAR) |
SELECT surface FROM table_name_92 WHERE semifinalists = "wally masur malivai washington" | Which Surface has Semifinalists of wally masur malivai washington? | CREATE TABLE table_name_92 (surface VARCHAR, semifinalists VARCHAR) |
SELECT country FROM table_name_37 WHERE total = 293 | What country has a total of 293? | CREATE TABLE table_name_37 (country VARCHAR, total VARCHAR) |
SELECT venue FROM table_name_53 WHERE score = "4-0" AND competition = "friendly" | What is the venue for the friendly competition and score of 4-0? | CREATE TABLE table_name_53 (venue VARCHAR, score VARCHAR, competition VARCHAR) |
SELECT MAX(year) FROM table_name_17 WHERE result = "won" | What was the latest year that resulted in won? | CREATE TABLE table_name_17 (year INTEGER, result VARCHAR) |
SELECT location FROM table_262476_1 WHERE institution = "Bethany College" | Name where bethany college is | CREATE TABLE table_262476_1 (location VARCHAR, institution VARCHAR) |
SELECT COUNT(college) FROM table_14650162_1 WHERE pick__number = 269 | How many colleges did pick number 269 attend? | CREATE TABLE table_14650162_1 (college VARCHAR, pick__number VARCHAR) |
SELECT COUNT(duration) FROM table_17641206_6 WHERE viewership = "5.46 million" | Name the number of duration for viewership of 5.46 million | CREATE TABLE table_17641206_6 (duration VARCHAR, viewership VARCHAR) |
SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) DESC LIMIT 1 | Find the movies with the highest average rating. Return the movie titles and average rating. | CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) |
SELECT 1990 AS _1991_team FROM table_name_41 WHERE name = "joel otto" | What is the 1990–1991 Team that had Joel Otto? | CREATE TABLE table_name_41 (name VARCHAR) |
SELECT 2013 FROM table_name_16 WHERE 2012 = "2r" | What shows for 2013 when 2012 is 2r? | CREATE TABLE table_name_16 (Id VARCHAR) |
SELECT COUNT(valid_poll) FROM table_name_67 WHERE seats > 4 AND candidates > 9 | Name the total number of valid poll with seats more than 4 and candidates more than 9 | CREATE TABLE table_name_67 (valid_poll VARCHAR, seats VARCHAR, candidates VARCHAR) |
SELECT name FROM table_name_76 WHERE pick__number < 13 AND round = 15 | Which player was picked in round 15 with a pick smaller than 13? | CREATE TABLE table_name_76 (name VARCHAR, pick__number VARCHAR, round VARCHAR) |
SELECT record FROM table_name_40 WHERE opponent = "evangelista cyborg" | What is the Record when Evangelista Cyborg was the opponent? | CREATE TABLE table_name_40 (record VARCHAR, opponent VARCHAR) |
SELECT to_par FROM table_name_16 WHERE place = "t4" AND country = "south africa" | What was the to par when South Africa was in T4 place? | CREATE TABLE table_name_16 (to_par VARCHAR, place VARCHAR, country VARCHAR) |
SELECT executive_director FROM table_name_84 WHERE type = "extension" AND location = "lemery, batangas" | Who is the executive director of the Lemery, Batangas extension? | CREATE TABLE table_name_84 (executive_director VARCHAR, type VARCHAR, location VARCHAR) |
SELECT date FROM table_name_1 WHERE score = "97-38" | On what day was the game that ended in a score of 97-38? | CREATE TABLE table_name_1 (date VARCHAR, score VARCHAR) |
SELECT frequency FROM table_name_14 WHERE format = "soft adult contemporary" | What is the frequency of the soft adult contemporary stations? | CREATE TABLE table_name_14 (frequency VARCHAR, format VARCHAR) |
SELECT province, _community FROM table_18349697_1 WHERE age = 27 | What is the province where the age of the contestant is 27? | CREATE TABLE table_18349697_1 (province VARCHAR, _community VARCHAR, age VARCHAR) |
SELECT date FROM table_name_15 WHERE opponent = "bye" | Name the date when bye was opponent | CREATE TABLE table_name_15 (date VARCHAR, opponent VARCHAR) |
SELECT MIN(attendance) FROM table_name_52 WHERE record = "52-48" | What was the Blue Jays lowest attendance when their record was 52-48? | CREATE TABLE table_name_52 (attendance INTEGER, record VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.