answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(floors) FROM table_23759976_1 WHERE building_[a_] = "Chongqing Poly Tower"
How many different numbers of floors are there for the Chongqing Poly Tower?
CREATE TABLE table_23759976_1 (floors VARCHAR, building_ VARCHAR, a_ VARCHAR)
SELECT mlb_draft FROM table_11677100_16 WHERE position = "Pitcher/Infielder"
What MLB Drafts have the position pitcher/infielder?
CREATE TABLE table_11677100_16 (mlb_draft VARCHAR, position VARCHAR)
SELECT record FROM table_name_51 WHERE attendance = "26,827"
What was their record when the attendance was 26,827?
CREATE TABLE table_name_51 (record VARCHAR, attendance VARCHAR)
SELECT 1 AS st_leg FROM table_name_32 WHERE team_1 = "aalborg bk"
When Aalborg BK is Team 1, what is the 1st leg?
CREATE TABLE table_name_32 (team_1 VARCHAR)
SELECT memory FROM table_16729930_17 WHERE frequency = "1.6 GHz"
Name the memory for frequency of 1.6 ghz
CREATE TABLE table_16729930_17 (memory VARCHAR, frequency VARCHAR)
SELECT bronze FROM table_name_31 WHERE notes = "2.5km, 16controls"
Who won Bronze with Notes of 2.5km, 16controls?
CREATE TABLE table_name_31 (bronze VARCHAR, notes VARCHAR)
SELECT score FROM table_name_2 WHERE couple = "jason & edyta" AND style = "freestyle"
Which Score has a Couple comprised of jason & edyta, and a Style of freestyle?
CREATE TABLE table_name_2 (score VARCHAR, couple VARCHAR, style VARCHAR)
SELECT AVG(podiums) FROM table_name_64 WHERE position = "32nd" AND wins < 0
What is the average number of podiums in the 32nd position with less than 0 wins?
CREATE TABLE table_name_64 (podiums INTEGER, position VARCHAR, wins VARCHAR)
SELECT MAX(matches) FROM table_16570286_2
What is the highest number of matches?
CREATE TABLE table_16570286_2 (matches INTEGER)
SELECT high_assists FROM table_17103645_9 WHERE score = "79-88"
Who made the highest assist in the game that scored 79-88?
CREATE TABLE table_17103645_9 (high_assists VARCHAR, score VARCHAR)
SELECT AVG(stolen_ends) FROM table_name_89 WHERE ends_lost < 35
Name the average Stolen Ends which has an Ends Lost smaller than 35?
CREATE TABLE table_name_89 (stolen_ends INTEGER, ends_lost INTEGER)
SELECT AVG(effic) FROM table_name_9 WHERE avg_g > 3.7 AND gp_gs = "13" AND cmp_att_int = "318-521-15"
Which Effic is the average one that has an Avg/G larger than 3.7, and a GP-GS of 13, and a Cmp-Att-Int of 318-521-15?
CREATE TABLE table_name_9 (effic INTEGER, cmp_att_int VARCHAR, avg_g VARCHAR, gp_gs VARCHAR)
SELECT country FROM table_name_69 WHERE to_par = "–1"
What is the Country of the Player with a To par of –1?
CREATE TABLE table_name_69 (country VARCHAR, to_par VARCHAR)
SELECT completed FROM table_name_91 WHERE pennant_number = "h63"
When is the completed date of the destroyer with a pennant number h63?
CREATE TABLE table_name_91 (completed VARCHAR, pennant_number VARCHAR)
SELECT water FROM table_name_50 WHERE wood = "green"
Which water has green wood?
CREATE TABLE table_name_50 (water VARCHAR, wood VARCHAR)
SELECT MIN(attendance) FROM table_name_91 WHERE opponent = "st. louis cardinals"
What was the lowest attendance at a game against the St. Louis Cardinals?
CREATE TABLE table_name_91 (attendance INTEGER, opponent VARCHAR)
SELECT MAX(year) FROM table_name_13 WHERE points > 0
What is the latest year with more than 0 points?
CREATE TABLE table_name_13 (year INTEGER, points INTEGER)
SELECT school FROM table_11677100_18 WHERE hometown = "Montvale, NJ"
What school did the player attend who's hometown was Montvale, NJ?
CREATE TABLE table_11677100_18 (school VARCHAR, hometown VARCHAR)
SELECT record FROM table_name_6 WHERE home = "chicago"
What is the record of the team from chicago?
CREATE TABLE table_name_6 (record VARCHAR, home VARCHAR)
SELECT SUM(goals) FROM table_name_52 WHERE assists = 12 AND apps < 291
What is the total goals with 12 assists, and less than 291 apps?
CREATE TABLE table_name_52 (goals INTEGER, assists VARCHAR, apps VARCHAR)
SELECT MAX(average) FROM table_name_80 WHERE goals < 34 AND matches > 30 AND team = "cultural leonesa"
What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?
CREATE TABLE table_name_80 (average INTEGER, team VARCHAR, goals VARCHAR, matches VARCHAR)
SELECT COUNT(_number) FROM table_27905664_1 WHERE directed_by = "Ken Fink"
How many episodes were directed by Ken Fink?
CREATE TABLE table_27905664_1 (_number VARCHAR, directed_by VARCHAR)
SELECT district FROM table_name_51 WHERE party = "democratic" AND first_elected > 2006
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 event FROM table_name_81 WHERE games = "2008 beijing"
What event was in the 2008 Beijing games?
CREATE TABLE table_name_81 (event VARCHAR, games VARCHAR)
SELECT height__m_ FROM table_23670057_1 WHERE no = 7
Name the height for number 7
CREATE TABLE table_23670057_1 (height__m_ VARCHAR, no VARCHAR)
SELECT AVG(year) FROM table_name_93 WHERE beer_name = "maggs magnificent mild" AND prize = "gold medal" AND category = "mild and porter" AND competition = "siba south east region beer competition"
What year did maggs magnificent mild win a gold medal in the mild and porter category at the siba south east region beer competition?
CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, category VARCHAR, beer_name VARCHAR, prize VARCHAR)
SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid = T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid = T5.amenid GROUP BY T3.dormid ORDER BY COUNT(*) DESC LIMIT 1)
Find the first name of students who are living in the dorm that has most number of amenities.
CREATE TABLE dorm_amenity (amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR); CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR)
SELECT origin FROM table_name_29 WHERE destination = "anand vihar terminal"
From where did the train that arrived in the Anand Vihar Terminal originate?
CREATE TABLE table_name_29 (origin VARCHAR, destination VARCHAR)
SELECT COUNT(DISTINCT SOURCE) FROM injury_accident
How many different kinds of information sources are there for injury accidents?
CREATE TABLE injury_accident (SOURCE VARCHAR)
SELECT name FROM races WHERE TIME > "12:00:00" OR TIME < "09:00:00"
What are the names of races held after 12:00:00 or before 09:00:00?
CREATE TABLE races (name VARCHAR, TIME VARCHAR)
SELECT winning_team FROM table_name_99 WHERE usa_captain = "beth daniel"
When the USA's captain was Beth Daniel, who was the winning team?
CREATE TABLE table_name_99 (winning_team VARCHAR, usa_captain VARCHAR)
SELECT winner FROM table_name_59 WHERE series = "atcc round 6"
WHAT IS THE WINNER WITH ATCC ROUND 6?
CREATE TABLE table_name_59 (winner VARCHAR, series VARCHAR)
SELECT MIN(wins) FROM table_name_94 WHERE points = 28 AND year < 1972
Name the lowest Wins which has Points of 28, and a Year smaller than 1972?
CREATE TABLE table_name_94 (wins INTEGER, points VARCHAR, year VARCHAR)
SELECT tries_against FROM table_12828723_3 WHERE tries_for = "47"
what's the tries against with tries for being 47
CREATE TABLE table_12828723_3 (tries_against VARCHAR, tries_for VARCHAR)
SELECT COUNT(total) FROM table_name_14 WHERE silver < 0
What is the total number that 0 silver?
CREATE TABLE table_name_14 (total VARCHAR, silver INTEGER)
SELECT COUNT(laps) FROM table_name_21 WHERE driver = "john watson" AND grid < 7
What was John Watson's total laps with a grid of less than 7?
CREATE TABLE table_name_21 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
SELECT COUNT(canton) FROM table_1417184_1 WHERE commune = "Waldbillig"
how many canton with commune being waldbillig
CREATE TABLE table_1417184_1 (canton VARCHAR, commune VARCHAR)
SELECT AVG(crowd) FROM table_name_36 WHERE home_team = "north melbourne"
What is the average crowd size when the home team is North Melbourne?
CREATE TABLE table_name_36 (crowd INTEGER, home_team VARCHAR)
SELECT tries_against FROM table_17941032_2 WHERE points_for = "150"
How many tries against were there with points of 150?
CREATE TABLE table_17941032_2 (tries_against VARCHAR, points_for VARCHAR)
SELECT COUNT(area__km_2__) FROM table_1404486_1 WHERE county = "Marsabit"
what is the number of area where the county is marsabit?
CREATE TABLE table_1404486_1 (area__km_2__ VARCHAR, county VARCHAR)
SELECT COUNT(game) FROM table_name_24 WHERE score = "l 91–95 (ot)"
How many games had a score of l 91–95 (ot)?
CREATE TABLE table_name_24 (game VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_71 WHERE score = 73 - 71 = 144
What is the to par for the score 73-71=144?
CREATE TABLE table_name_71 (to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_52 WHERE figures = "source: . last updated: 28 june 2007."
What is Player, when Figures is source: . last updated: 28 june 2007.?
CREATE TABLE table_name_52 (player VARCHAR, figures VARCHAR)
SELECT original_air_date FROM table_17356106_1 WHERE series__number = 256
For series number 256, what was the original air date?
CREATE TABLE table_17356106_1 (original_air_date VARCHAR, series__number VARCHAR)
SELECT MAX(draws) FROM table_name_35 WHERE club = "real valladolid" AND played < 38
How many draws has a Club of real valladolid that was played less than 38?
CREATE TABLE table_name_35 (draws INTEGER, club VARCHAR, played VARCHAR)
SELECT office FROM table_name_51 WHERE law_preservation_ticket = "william e. barron"
What office was law preservation ticket holder William E. Barron running for?
CREATE TABLE table_name_51 (office VARCHAR, law_preservation_ticket VARCHAR)
SELECT SUM(balance) FROM checking
What is the total checking balance in all accounts?
CREATE TABLE checking (balance INTEGER)
SELECT rice_[b_] FROM table_name_7 WHERE potato_[d_] = "79"
What is the rice amount when the potato amount is 79?
CREATE TABLE table_name_7 (rice_ VARCHAR, b_ VARCHAR, potato_ VARCHAR, d_ VARCHAR)
SELECT road_number FROM table_name_75 WHERE type = "dead end" AND rank = "22"
What is the rad number for the dead end in rank 22?
CREATE TABLE table_name_75 (road_number VARCHAR, type VARCHAR, rank VARCHAR)
SELECT fast_laps FROM table_name_28 WHERE series = "world series by nissan" AND races = "6" AND points = "30"
How many fast laps are in 6 races with 30 points in the World Series by Nissan?
CREATE TABLE table_name_28 (fast_laps VARCHAR, points VARCHAR, series VARCHAR, races VARCHAR)
SELECT MIN(avg_attendance) FROM table_2380212_1 WHERE regular_season = "3rd, Central"
How many people saw the 3rd, Central regular season on average?
CREATE TABLE table_2380212_1 (avg_attendance INTEGER, regular_season VARCHAR)
SELECT date FROM table_name_20 WHERE distance = "km (mi)" AND course = "roccaraso to san giorgio del sannio"
What is the date with the distance of km (mi) at the course of roccaraso to san giorgio del sannio?
CREATE TABLE table_name_20 (date VARCHAR, distance VARCHAR, course VARCHAR)
SELECT lost FROM table_name_35 WHERE try_bonus = "2" AND losing_bonus = "4"
What is the value for Lost, when the value for Try bonus is 2, and when the value for Losing bonus is 4?
CREATE TABLE table_name_35 (lost VARCHAR, try_bonus VARCHAR, losing_bonus VARCHAR)
SELECT driver FROM table_name_42 WHERE car__number < 5 AND make = "dodge"
Who drove the dodge with a car # less than 5?
CREATE TABLE table_name_42 (driver VARCHAR, car__number VARCHAR, make VARCHAR)
SELECT MIN(assists) FROM table_25016555_5
What is the lowest overall amount of assists?
CREATE TABLE table_25016555_5 (assists INTEGER)
SELECT roll FROM table_name_76 WHERE authority = "state" AND area = "waiotira"
What is the roll number of the school with a state authority in Waiotira?
CREATE TABLE table_name_76 (roll VARCHAR, authority VARCHAR, area VARCHAR)
SELECT viewers__millions_ FROM table_17525955_2 WHERE episode__number = 5
How many viewers did Episode #5 have?
CREATE TABLE table_17525955_2 (viewers__millions_ VARCHAR, episode__number VARCHAR)
SELECT final_score FROM table_name_99 WHERE date = "december 30"
What was the final score for the date of December 30?
CREATE TABLE table_name_99 (final_score VARCHAR, date VARCHAR)
SELECT finish FROM table_name_17 WHERE season = "playoffs"
What was the finish in the playoffs season?
CREATE TABLE table_name_17 (finish VARCHAR, season VARCHAR)
SELECT team FROM table_name_87 WHERE name = "jiang tengyi"
Jiang Tengyi is on which team?
CREATE TABLE table_name_87 (team VARCHAR, name VARCHAR)
SELECT fate_in_1832 FROM table_24329520_4 WHERE county = "Pembrokeshire"
Name the fate in 1832 for pembrokeshire
CREATE TABLE table_24329520_4 (fate_in_1832 VARCHAR, county VARCHAR)
SELECT no_5 FROM table_name_76 WHERE no_8 = "chloe" AND no_2 = "olivia" AND no_1 = "emma" AND no_4 = "ava"
When Chloe was number 8, Olivia was number 2, Emma was number 1, and Ava was number 4, who was number 5?
CREATE TABLE table_name_76 (no_5 VARCHAR, no_4 VARCHAR, no_1 VARCHAR, no_8 VARCHAR, no_2 VARCHAR)
SELECT COUNT(field_goals) FROM table_24915964_4 WHERE points = 597
How many field goals had 597 points?
CREATE TABLE table_24915964_4 (field_goals VARCHAR, points VARCHAR)
SELECT score FROM table_name_95 WHERE record = "81-54"
What's the score of the game they played against a team with a record of 81-54?
CREATE TABLE table_name_95 (score VARCHAR, record VARCHAR)
SELECT year FROM table_name_51 WHERE chassis = "dallara" AND team = "andretti green racing" AND finish < 8
What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?
CREATE TABLE table_name_51 (year VARCHAR, finish VARCHAR, chassis VARCHAR, team VARCHAR)
SELECT COUNT(year) FROM table_name_17 WHERE playoffs = "did not qualify" AND regular_season = "10th"
What is the year when they did not qualify for the playoff and the Regular Season shows as 10th?
CREATE TABLE table_name_17 (year VARCHAR, playoffs VARCHAR, regular_season VARCHAR)
SELECT airing_date FROM table_name_1 WHERE number_of_episodes = 62
What's the airing date for the show with 62 episodes?
CREATE TABLE table_name_1 (airing_date VARCHAR, number_of_episodes VARCHAR)
SELECT attendance FROM table_name_6 WHERE date = "new zealand scores in bold"
What is the Attendance of New Zealand Scores in bold?
CREATE TABLE table_name_6 (attendance VARCHAR, date VARCHAR)
SELECT airport FROM table_name_74 WHERE iata = "dmk"
Name the airport with IATA of dmk
CREATE TABLE table_name_74 (airport VARCHAR, iata VARCHAR)
SELECT place FROM table_name_68 WHERE country = "united states" AND player = "tiger woods"
In what place was Tiger Woods of the United States?
CREATE TABLE table_name_68 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT DISTINCT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id
What are all the course names of the courses which ever have students enrolled in?
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR)
SELECT performer_1 FROM table_name_31 WHERE date = "8 july 1994"
Date of 8 july 1994 involves which performer 1?
CREATE TABLE table_name_31 (performer_1 VARCHAR, date VARCHAR)
SELECT grades FROM table_1984697_85 WHERE school = "Manchester Junior-Senior High school"
What are the grades served at Manchester Junior-Senior High School?
CREATE TABLE table_1984697_85 (grades VARCHAR, school VARCHAR)
SELECT MAX(Age), MIN(Age) FROM STUDENT WHERE Major = 600
What are the maximum and minimum age of students with major 600?
CREATE TABLE STUDENT (Age INTEGER, Major VARCHAR)
SELECT loss FROM table_name_50 WHERE save = "||12,838||48–35"
What is the resulting loss when a save is ||12,838||48–35?
CREATE TABLE table_name_50 (loss VARCHAR, save VARCHAR)
SELECT 1 AS st_leg FROM table_1233026_4 WHERE club = "A.C. Libertas"
What is the 1st leg when club is a.c. libertas?
CREATE TABLE table_1233026_4 (club VARCHAR)
SELECT AVG(game) FROM table_name_11 WHERE date = "october 16"
Which game is on the date October 16?
CREATE TABLE table_name_11 (game INTEGER, date VARCHAR)
SELECT airport FROM table_13836704_4 WHERE aircraft_movements_2009 < 238223.1659471435 AND change_2008_09 = "0.5%"
what's the airport with aircraft movements 2009 being smaller than 238223.1659471435 and change 2008/09 being 0.5%
CREATE TABLE table_13836704_4 (airport VARCHAR, aircraft_movements_2009 VARCHAR, change_2008_09 VARCHAR)
SELECT SUM(laps) FROM table_name_13 WHERE driver = "denny hulme" AND grid < 4
How many laps for denny hulme with under 4 on the grid?
CREATE TABLE table_name_13 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT 2 AS nd_leg FROM table_name_90 WHERE team_2 = "pelister"
What is the 2nd leg of pelister team 2?
CREATE TABLE table_name_90 (team_2 VARCHAR)
SELECT gt3_winner FROM table_30062172_3 WHERE pole_position = "Tim Bridgman Gregor Fisken"
When tim bridgman gregor fisken is the pole position who is the gt3 winner?
CREATE TABLE table_30062172_3 (gt3_winner VARCHAR, pole_position VARCHAR)
SELECT title FROM table_name_65 WHERE production_number > 1334 AND release_date = "1955-08-27"
What is the title with the production number greater than 1334 released on 1955-08-27?
CREATE TABLE table_name_65 (title VARCHAR, production_number VARCHAR, release_date VARCHAR)
SELECT constructor FROM table_name_50 WHERE driver = "nick heidfeld"
What company was the constructor when Nick Heidfeld was the driver/
CREATE TABLE table_name_50 (constructor VARCHAR, driver VARCHAR)
SELECT fis_nordic_world_ski_championships FROM table_name_93 WHERE winter_olympics = 1968
What is the FIS Nordic World Ski Championship years when the winter Olympics took place in 1968?
CREATE TABLE table_name_93 (fis_nordic_world_ski_championships VARCHAR, winter_olympics VARCHAR)
SELECT original_air_date FROM table_15431251_1 WHERE no_in_season = 17
What is the original air date for episode 17 in the season?
CREATE TABLE table_15431251_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT no FROM table_25737761_3 WHERE viewing_figure = 797000
What was the episode number that had 797000 viewers?
CREATE TABLE table_25737761_3 (no VARCHAR, viewing_figure VARCHAR)
SELECT original_airing FROM table_name_74 WHERE rating < 10.1 AND episode_number_production_number = "96 5-09"
What was the date of airing for episodes with ratings under 10.1 and production number of 96 5-09?
CREATE TABLE table_name_74 (original_airing VARCHAR, rating VARCHAR, episode_number_production_number VARCHAR)
SELECT vacated_throne FROM table_name_63 WHERE archbishop = "albert daeger"
When did Archbishop Albert Daeger vacate the throne?
CREATE TABLE table_name_63 (vacated_throne VARCHAR, archbishop VARCHAR)
SELECT COUNT(date) FROM table_22334183_3 WHERE circuit = "Silverstone"
On how many different dates was the race at the Silverstone circuit?
CREATE TABLE table_22334183_3 (date VARCHAR, circuit VARCHAR)
SELECT location FROM table_name_89 WHERE callsign = "dxbl"
What is the Location of the Frequency with a Callsign of DXBL?
CREATE TABLE table_name_89 (location VARCHAR, callsign VARCHAR)
SELECT position FROM table_name_37 WHERE no_s_ = "41"
Name the position for numbers of 41
CREATE TABLE table_name_37 (position VARCHAR, no_s_ VARCHAR)
SELECT MIN(year) FROM table_19047_2
What is the first year in the competition?
CREATE TABLE table_19047_2 (year INTEGER)
SELECT date FROM table_name_35 WHERE streak = "win 1" AND record = "8–4"
Which Date has a Streak of win 1, and a Record of 8–4?
CREATE TABLE table_name_35 (date VARCHAR, streak VARCHAR, record VARCHAR)
SELECT long_scale FROM table_name_94 WHERE short_scale = "one quadrillion a thousand trillion"
For a short scale of one quadrillion a thousand trillion, what is the Long scale?
CREATE TABLE table_name_94 (long_scale VARCHAR, short_scale VARCHAR)
SELECT gender FROM table_1930857_1 WHERE year_founded = "1894"
What's the gender of the students taught in the school founded in 1894?
CREATE TABLE table_1930857_1 (gender VARCHAR, year_founded VARCHAR)
SELECT player FROM table_16376436_1 WHERE pick__number = 150
Which player was pick number 150?
CREATE TABLE table_16376436_1 (player VARCHAR, pick__number VARCHAR)
SELECT score FROM table_name_92 WHERE opponents_in_the_final = "john bromwich frank sedgman"
Which Score has Opponents in the final of john bromwich frank sedgman?
CREATE TABLE table_name_92 (score VARCHAR, opponents_in_the_final VARCHAR)
SELECT venue FROM table_name_22 WHERE player = "jack badcock"
Where did Jack Badcock play?
CREATE TABLE table_name_22 (venue VARCHAR, player VARCHAR)
SELECT surface FROM table_22853654_9 WHERE against = "Monaco"
Name the surface against monaco
CREATE TABLE table_22853654_9 (surface VARCHAR, against VARCHAR)
SELECT result FROM table_name_33 WHERE nominated_work = "marlene" AND award = "olivier award"
When Marlene was nominated for the Olivier Award, what was the result?
CREATE TABLE table_name_33 (result VARCHAR, nominated_work VARCHAR, award VARCHAR)