question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
When has a surface of road and an event of half marathon?
CREATE TABLE table_name_63 (date VARCHAR, surface VARCHAR, event VARCHAR)
SELECT date FROM table_name_63 WHERE surface = "road" AND event = "half marathon"
What school did the 7-4 player attend?
CREATE TABLE table_11734041_17 (school_club_team_country VARCHAR, height_in_ft VARCHAR)
SELECT school_club_team_country FROM table_11734041_17 WHERE height_in_ft = "7-4"
What was the first leg result in the round against Norchi Dinamoeli?
CREATE TABLE table_20086138_1 (first_leg VARCHAR, opposition VARCHAR)
SELECT first_leg FROM table_20086138_1 WHERE opposition = "Norchi Dinamoeli"
what is the highest pick number of the CFL team, the winnipeg blue bombers?
CREATE TABLE table_name_42 (pick__number INTEGER, cfl_team VARCHAR)
SELECT MAX(pick__number) FROM table_name_42 WHERE cfl_team = "winnipeg blue bombers"
What is the event with a 2:08 time?
CREATE TABLE table_name_1 (event VARCHAR, time VARCHAR)
SELECT event FROM table_name_1 WHERE time = "2:08"
What is the event when the method was tko (punches), and the record was 7-1?
CREATE TABLE table_name_60 (event VARCHAR, method VARCHAR, record VARCHAR)
SELECT event FROM table_name_60 WHERE method = "tko (punches)" AND record = "7-1"
What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2?
CREATE TABLE table_name_93 (university_of_dublin INTEGER, administrative_panel VARCHAR, cultural_and_educational_panel VARCHAR)
SELECT MIN(university_of_dublin) FROM table_name_93 WHERE administrative_panel = 3 AND cultural_and_educational_panel < 2
What was the attendance on March 17?
CREATE TABLE table_11961582_7 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_11961582_7 WHERE date = "March 17"
Which was the district that had first elected greater than 2006 and is democratic?
CREATE TABLE table_name_51 (district VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT district FROM table_name_51 WHERE party = "democratic" AND first_elected > 2006
What was the original air date for the episode with 3.90 u.s. viewers (millions)?
CREATE TABLE table_12722302_2 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT original_air_date FROM table_12722302_2 WHERE us_viewers__million_ = "3.90"
What bombing happened in Brighton, UK?
CREATE TABLE table_name_98 (event VARCHAR, location VARCHAR)
SELECT event FROM table_name_98 WHERE location = "brighton, uk"
what is the score on 14 december 1974 and the away team is crystal palace?
CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_69 WHERE date = "14 december 1974" AND away_team = "crystal palace"
How many rain figures are provided for sunlight hours in 1966?
CREATE TABLE table_12837_1 (rain VARCHAR, sunlight_hours VARCHAR)
SELECT COUNT(rain) FROM table_12837_1 WHERE sunlight_hours = 1966
Name the highest Labour with Lib Dem larger than 21?
CREATE TABLE table_name_86 (labour INTEGER, lib_dem INTEGER)
SELECT MAX(labour) FROM table_name_86 WHERE lib_dem > 21
What is the average base price of different bed type? List bed type and average base price.
CREATE TABLE Rooms (bedType VARCHAR, basePrice INTEGER)
SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType
What is the average silver with more than 0 gold, a Rank of 1, and a Total smaller than 30?
CREATE TABLE table_name_82 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT AVG(silver) FROM table_name_82 WHERE gold > 0 AND rank = "1" AND total < 30
Find the name and age of the person who is a friend of both Dan and Alice.
CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'
what is the year for the game dead space 2?
CREATE TABLE table_name_53 (year VARCHAR, game VARCHAR)
SELECT year FROM table_name_53 WHERE game = "dead space 2"
What did the home team score when South Melbourne was the away team?
CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_6 WHERE away_team = "south melbourne"
What is the venue of teh carfax 250 race?
CREATE TABLE table_name_62 (venue VARCHAR, race VARCHAR)
SELECT venue FROM table_name_62 WHERE race = "carfax 250"
What is the status of the building with more than 28 floor and a year of 2013?
CREATE TABLE table_name_57 (status VARCHAR, floors VARCHAR, year VARCHAR)
SELECT status FROM table_name_57 WHERE floors > 28 AND year = 2013
What kind of arch is the pont de montanges (pont-des-pierres)?
CREATE TABLE table_name_23 (arch_type VARCHAR, name VARCHAR)
SELECT arch_type FROM table_name_23 WHERE name = "pont de montanges (pont-des-pierres)"
What arena was season 6 played at?
CREATE TABLE table_14015965_1 (arena__capacity_ VARCHAR, previous_season VARCHAR)
SELECT arena__capacity_ FROM table_14015965_1 WHERE previous_season = "6"
Name the least series number with production code of 717 and season number less than 17
CREATE TABLE table_name_41 (series__number INTEGER, production_code VARCHAR, season__number VARCHAR)
SELECT MIN(series__number) FROM table_name_41 WHERE production_code = 717 AND season__number < 17
What was the score of the game that had a loss of Embree (1-2)?
CREATE TABLE table_name_98 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_98 WHERE loss = "embree (1-2)"
Name the home with record of 33-18-9
CREATE TABLE table_name_42 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_42 WHERE record = "33-18-9"
How many rebounds have a Player of andre gaddy, and a Rank smaller than 6?
CREATE TABLE table_name_5 (total_rebounds VARCHAR, player VARCHAR, rank VARCHAR)
SELECT COUNT(total_rebounds) FROM table_name_5 WHERE player = "andre gaddy" AND rank < 6
what album is 5:15 long
CREATE TABLE table_name_60 (version VARCHAR, length VARCHAR)
SELECT version FROM table_name_60 WHERE length = "5:15"
Which Loses has Points smaller than 6?
CREATE TABLE table_name_38 (loses INTEGER, points INTEGER)
SELECT AVG(loses) FROM table_name_38 WHERE points < 6
How many extra points did Paul Jones score?
CREATE TABLE table_14342367_11 (extra_points VARCHAR, player VARCHAR)
SELECT COUNT(extra_points) FROM table_14342367_11 WHERE player = "Paul Jones"
What is the lowest mintage in a year earlier than 2005?
CREATE TABLE table_name_49 (mintage INTEGER, year INTEGER)
SELECT MIN(mintage) FROM table_name_49 WHERE year < 2005
How many episodes in history have a running time of 24:06?
CREATE TABLE table_1498589_1 (archive VARCHAR, run_time VARCHAR)
SELECT COUNT(archive) FROM table_1498589_1 WHERE run_time = "24:06"
when did the club Citizen achieve its last top division title?
CREATE TABLE table_1908877_2 (last_top_division_title VARCHAR, club VARCHAR)
SELECT last_top_division_title FROM table_1908877_2 WHERE club = "Citizen"
Amritpur has what constituency number?
CREATE TABLE table_name_87 (constituency_number VARCHAR, name VARCHAR)
SELECT constituency_number FROM table_name_87 WHERE name = "amritpur"
What is the average number of bronze medals won by Poland?
CREATE TABLE table_name_67 (bronze INTEGER, nation VARCHAR)
SELECT AVG(bronze) FROM table_name_67 WHERE nation = "poland"
What is the name for the Monza circuit race were Bugatti was the winning constructor?
CREATE TABLE table_name_51 (name VARCHAR, winning_constructor VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_51 WHERE winning_constructor = "bugatti" AND circuit = "monza"
What is the result for world group, consolation round?
CREATE TABLE table_name_31 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_31 WHERE competition = "world group, consolation round"
Which party was joseph t. johnson in?
CREATE TABLE table_name_86 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_name_86 WHERE incumbent = "joseph t. johnson"
Find the name of the person who has friends with age above 40 but not under age 30?
CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)
On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals?
CREATE TABLE table_name_35 (first_match VARCHAR, final_position VARCHAR, final_round VARCHAR)
SELECT first_match FROM table_name_35 WHERE final_position = "winners" AND final_round = "finals"
What is the week 10 result for the tean when the week 15 result is Illinois (10-1)?
CREATE TABLE table_name_71 (week_10_nov_5 VARCHAR, week_15__final__dec_9 VARCHAR)
SELECT week_10_nov_5 FROM table_name_71 WHERE week_15__final__dec_9 = "illinois (10-1)"
What is the series number of the episode that aired March 25, 2010?
CREATE TABLE table_23483182_1 (no_in_series INTEGER, original_air_date VARCHAR)
SELECT MIN(no_in_series) FROM table_23483182_1 WHERE original_air_date = "March 25, 2010"
Name the constructor for b. bira
CREATE TABLE table_28190534_1 (constructor VARCHAR, driver VARCHAR)
SELECT constructor FROM table_28190534_1 WHERE driver = "B. Bira"
What is the density in Garran?
CREATE TABLE table_1174162_1 (density___km²_ INTEGER, suburb VARCHAR)
SELECT MIN(density___km²_) FROM table_1174162_1 WHERE suburb = "Garran"
What was the race of the jockey in na group in 4th place?
CREATE TABLE table_name_15 (race VARCHAR, group VARCHAR, result VARCHAR)
SELECT race FROM table_name_15 WHERE group = "na" AND result = "4th"
What number is in Bois de Warville with a time less than 810?
CREATE TABLE table_name_4 (number INTEGER, location VARCHAR, time VARCHAR)
SELECT SUM(number) FROM table_name_4 WHERE location = "bois de warville" AND time < 810
Which Date has a Week smaller than 8, and an Opponent of atlanta falcons?
CREATE TABLE table_name_31 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_31 WHERE week < 8 AND opponent = "atlanta falcons"
What is the earliest year built for the ship refurbished earlier than 2013?
CREATE TABLE table_name_47 (year_built INTEGER, last_refurbished INTEGER)
SELECT MIN(year_built) FROM table_name_47 WHERE last_refurbished < 2013
What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total?
CREATE TABLE table_name_76 (marcin_dołęga___pol__ VARCHAR, world_record VARCHAR, snatch VARCHAR)
SELECT marcin_dołęga___pol__ FROM table_name_76 WHERE world_record = "olympic record" AND snatch = "total"
Which university hosted in Long Beach?
CREATE TABLE table_name_12 (host VARCHAR, city VARCHAR)
SELECT host FROM table_name_12 WHERE city = "long beach"
What is the highest rank that has fao as a source and an out greater than 50, with dietary calorie intake as the name?
CREATE TABLE table_name_98 (rank INTEGER, name VARCHAR, source VARCHAR, out_of VARCHAR)
SELECT MAX(rank) FROM table_name_98 WHERE source = "fao" AND out_of > 50 AND name = "dietary calorie intake"
List the name of technicians whose team is not "NYY".
CREATE TABLE technician (Name VARCHAR, Team VARCHAR)
SELECT Name FROM technician WHERE Team <> "NYY"
Tell me the shigella for yersinia yopb
CREATE TABLE table_name_52 (shigella VARCHAR, yersinia VARCHAR)
SELECT shigella FROM table_name_52 WHERE yersinia = "yopb"
When the bleeding time is unaffected and prothrombin time is prolonged, what are the platelet counts?
CREATE TABLE table_238124_1 (platelet_count VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)
SELECT platelet_count FROM table_238124_1 WHERE bleeding_time = "Unaffected" AND prothrombin_time = "Prolonged"
Which martial arts style was shown in Rio de Janeiro?
CREATE TABLE table_14937957_1 (martial_art_style VARCHAR, city VARCHAR)
SELECT martial_art_style FROM table_14937957_1 WHERE city = "Rio de Janeiro"
What is the highest measure number?
CREATE TABLE table_256286_55 (meas_num INTEGER)
SELECT MAX(meas_num) FROM table_256286_55
Which bridge is located in Nectar, in Blount County?
CREATE TABLE table_name_17 (name VARCHAR, county VARCHAR, location VARCHAR)
SELECT name FROM table_name_17 WHERE county = "blount" AND location = "nectar"
Which Report is on the Circuit of reims?
CREATE TABLE table_name_32 (report VARCHAR, circuit VARCHAR)
SELECT report FROM table_name_32 WHERE circuit = "reims"
list the spokespersons where voting order is 9
CREATE TABLE table_184803_4 (spokespersons VARCHAR, voting_order VARCHAR)
SELECT spokespersons FROM table_184803_4 WHERE voting_order = 9
How many artists are from Bangladesh?
CREATE TABLE artist (country VARCHAR)
SELECT COUNT(*) FROM artist WHERE country = "Bangladesh"
Which players were selected after 2011?
CREATE TABLE table_name_53 (player_name VARCHAR, year_ VARCHAR, a_ VARCHAR)
SELECT player_name FROM table_name_53 WHERE year_[a_] > 2011
Who had the pole position in Detroit?
CREATE TABLE table_27913160_3 (pole_position VARCHAR, race VARCHAR)
SELECT pole_position FROM table_27913160_3 WHERE race = "Detroit"
What's the total number of Heat recorded for the british virgin islands?
CREATE TABLE table_name_5 (heat VARCHAR, country VARCHAR)
SELECT COUNT(heat) FROM table_name_5 WHERE country = "british virgin islands"
Who was the away team that had attendance under 2614 and a home team of Victoria?
CREATE TABLE table_name_69 (away VARCHAR, attendance VARCHAR, home VARCHAR)
SELECT away FROM table_name_69 WHERE attendance < 2614 AND home = "victoria"
What rank does the Singapore Cup of 0 (1) have?
CREATE TABLE table_name_87 (rank INTEGER, singapore_cup VARCHAR)
SELECT MAX(rank) FROM table_name_87 WHERE singapore_cup = "0 (1)"
When boston university is the team what is the record?
CREATE TABLE table_29846807_5 (record VARCHAR, team VARCHAR)
SELECT record FROM table_29846807_5 WHERE team = "Boston University"
What is the English version of Mariusz Szczygieł book?
CREATE TABLE table_14631909_1 (english_title VARCHAR, author VARCHAR)
SELECT english_title FROM table_14631909_1 WHERE author = "Mariusz Szczygieł"
When 98 is the points what is the club?
CREATE TABLE table_17941032_1 (club VARCHAR, points VARCHAR)
SELECT club FROM table_17941032_1 WHERE points = "98"
Which Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0?
CREATE TABLE table_name_75 (losses INTEGER, season VARCHAR, draws VARCHAR)
SELECT MIN(losses) FROM table_name_75 WHERE season < 1920 AND draws > 0
What was the speed with a time of 1:03.41.86 and a rank smaller than 3?
CREATE TABLE table_name_86 (speed VARCHAR, rank VARCHAR, time VARCHAR)
SELECT speed FROM table_name_86 WHERE rank < 3 AND time = "1:03.41.86"
What is the average net yds for the player who had a long of 68 and started after 1984?
CREATE TABLE table_name_59 (net_yds INTEGER, long VARCHAR, start VARCHAR)
SELECT AVG(net_yds) FROM table_name_59 WHERE long = 68 AND start > 1984
What was Jack McGrath's finish number in 1954?
CREATE TABLE table_name_95 (finish VARCHAR, year VARCHAR)
SELECT finish FROM table_name_95 WHERE year = "1954"
In what city is the plant hardiness zone 2B and January temp is −12/−23°c (10/-9°f)?
CREATE TABLE table_name_52 (city VARCHAR, plant_hardiness_zone VARCHAR, january VARCHAR)
SELECT city FROM table_name_52 WHERE plant_hardiness_zone = "2b" AND january = "−12/−23°c (10/-9°f)"
What argon has a neon of 10.5?
CREATE TABLE table_name_51 (argon VARCHAR, neon VARCHAR)
SELECT argon FROM table_name_51 WHERE neon = "10.5"
What is the autumn classic weight?
CREATE TABLE table_2985987_2 (weight__kg_ VARCHAR, race VARCHAR)
SELECT weight__kg_ FROM table_2985987_2 WHERE race = "Autumn Classic"
what is the total number of rank where viewers is 9.38?
CREATE TABLE table_15681686_4 (rank__timeslot_ VARCHAR, viewers__millions_ VARCHAR)
SELECT COUNT(rank__timeslot_) FROM table_15681686_4 WHERE viewers__millions_ = "9.38"
Tell me the tournament for kathy horvath opponent
CREATE TABLE table_name_95 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_95 WHERE opponent = "kathy horvath"
What was the score for Tie no. 6?
CREATE TABLE table_name_27 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_27 WHERE tie_no = "6"
What date was the xiv international gold cup?
CREATE TABLE table_name_80 (date VARCHAR, race_name VARCHAR)
SELECT date FROM table_name_80 WHERE race_name = "xiv international gold cup"
What is the country of the player with a t6 place?
CREATE TABLE table_name_33 (country VARCHAR, place VARCHAR)
SELECT country FROM table_name_33 WHERE place = "t6"
Which time has a Rank larger than 3, and a Name of andrey kapralov?
CREATE TABLE table_name_31 (time VARCHAR, rank VARCHAR, name VARCHAR)
SELECT time FROM table_name_31 WHERE rank > 3 AND name = "andrey kapralov"
What is the lowest Loss for the player named total that has a long greater than 55?
CREATE TABLE table_name_95 (loss INTEGER, name VARCHAR, long VARCHAR)
SELECT MIN(loss) FROM table_name_95 WHERE name = "total" AND long > 55
What is the record where the score is w 102–81 (ot)?
CREATE TABLE table_13812785_8 (record VARCHAR, score VARCHAR)
SELECT record FROM table_13812785_8 WHERE score = "W 102–81 (OT)"
What is the average for games Lost where the Points are 25 and games Played are more than 18?
CREATE TABLE table_name_28 (lost INTEGER, points VARCHAR, played VARCHAR)
SELECT AVG(lost) FROM table_name_28 WHERE points = 25 AND played > 18
Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13?
CREATE TABLE table_name_56 (effic INTEGER, avg_g VARCHAR, gp_gs VARCHAR)
SELECT MAX(effic) FROM table_name_56 WHERE avg_g < 305.6 AND gp_gs = "13-13"
What is Race 2, when Race 1 is "18"?
CREATE TABLE table_name_42 (race_2 VARCHAR, race_1 VARCHAR)
SELECT race_2 FROM table_name_42 WHERE race_1 = "18"
What is the average Isolation in the municipality of Sunndal at an elevation of more than 1850?
CREATE TABLE table_name_83 (isolation__km_ INTEGER, municipality VARCHAR, elevation__m_ VARCHAR)
SELECT AVG(isolation__km_) FROM table_name_83 WHERE municipality = "sunndal" AND elevation__m_ > 1850
University of Minnesota of ṭ had what Deloria & Boas?
CREATE TABLE table_name_66 (deloria_ VARCHAR, _boas VARCHAR, university_of_minnesota VARCHAR)
SELECT deloria_ & _boas FROM table_name_66 WHERE university_of_minnesota = "ṭ"
Which positions had players from Laval college
CREATE TABLE table_16441561_5 (position VARCHAR, college VARCHAR)
SELECT position FROM table_16441561_5 WHERE college = "Laval"
What is the Position of Pick #77?
CREATE TABLE table_name_25 (position VARCHAR, pick__number VARCHAR)
SELECT position FROM table_name_25 WHERE pick__number = 77
What is the fewest points for positions with under 12 losses, goals against under 50, goal difference over 11, and under 30 played?
CREATE TABLE table_name_22 (points INTEGER, played VARCHAR, goal_difference VARCHAR, losses VARCHAR, goals_against VARCHAR)
SELECT MIN(points) FROM table_name_22 WHERE losses < 12 AND goals_against < 50 AND goal_difference > 11 AND played < 30
How many laps are associated with a grid greater than 8, under 11 points, and will power?
CREATE TABLE table_name_29 (laps VARCHAR, driver VARCHAR, grid VARCHAR, points VARCHAR)
SELECT COUNT(laps) FROM table_name_29 WHERE grid > 8 AND points < 11 AND driver = "will power"
What is the sum for the match with a draw less than 0?
CREATE TABLE table_name_73 (match INTEGER, draw INTEGER)
SELECT SUM(match) FROM table_name_73 WHERE draw < 0
what is the year when the citation is honor and the author is kadir nelson?
CREATE TABLE table_name_37 (year INTEGER, citation VARCHAR, author VARCHAR)
SELECT SUM(year) FROM table_name_37 WHERE citation = "honor" AND author = "kadir nelson"
Which NHL team has player Mike Loach?
CREATE TABLE table_1013129_8 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_1013129_8 WHERE player = "Mike Loach"
Who is the third alternate for Germany?
CREATE TABLE table_name_56 (third VARCHAR, nation VARCHAR)
SELECT third FROM table_name_56 WHERE nation = "germany"
Name the position for 0 podiums and carlin team
CREATE TABLE table_24587026_1 (position VARCHAR, podiums VARCHAR, team VARCHAR)
SELECT position FROM table_24587026_1 WHERE podiums = 0 AND team = "Carlin"
Which country has a population density of 50.3?
CREATE TABLE table_name_46 (country VARCHAR, population_density__per_km²_ VARCHAR)
SELECT country FROM table_name_46 WHERE population_density__per_km²_ = "50.3"
What is the High assists for march 25?
CREATE TABLE table_name_69 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_69 WHERE date = "march 25"
What was the length of the game where the Baltimore Colts were at home?
CREATE TABLE table_name_95 (length_of_game VARCHAR, home_team VARCHAR)
SELECT length_of_game FROM table_name_95 WHERE home_team = "baltimore colts"