answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT overall FROM table_name_95 WHERE date = "february 4, 1964"
What is the Overall with a Date that is february 4, 1964?
CREATE TABLE table_name_95 (overall VARCHAR, date VARCHAR)
SELECT d_45_o FROM table_name_67 WHERE d_44_o = "← majority"
What is the value of D 45 O when the value of D 44 O is ← majority?
CREATE TABLE table_name_67 (d_45_o VARCHAR, d_44_o VARCHAR)
SELECT MIN(november) FROM table_name_69 WHERE game > 22 AND opponent = "toronto maple leafs"
What is the earliest game in November with more than 22 Games and Toronto Maple Leafs as the Opponent?
CREATE TABLE table_name_69 (november INTEGER, game VARCHAR, opponent VARCHAR)
SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity > 800
Show all the locations where no cinema has capacity over 800.
CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)
SELECT date FROM table_11622924_1 WHERE score = "204 (-6)"
When was the tournament that was won with a score of 204 (-6) played?
CREATE TABLE table_11622924_1 (date VARCHAR, score VARCHAR)
SELECT patient FROM stay WHERE room = 111 ORDER BY staystart DESC LIMIT 1
Find the patient who most recently stayed in room 111.
CREATE TABLE stay (patient VARCHAR, room VARCHAR, staystart VARCHAR)
SELECT high_points FROM table_23211041_5 WHERE team = "New York"
Who had the highest points against new york?
CREATE TABLE table_23211041_5 (high_points VARCHAR, team VARCHAR)
SELECT time___et__ FROM table_name_38 WHERE location = "three rivers stadium" AND opponent = "detroit lions"
What time did the game featuring the Detroit Lions at Three Rivers Stadium occur?
CREATE TABLE table_name_38 (time___et__ VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT wiaa_classification FROM table_22058547_1 WHERE high_school = "Vancouver iTech Prepratory"
What wiaa classifications does vancouver itech prepratory have?
CREATE TABLE table_22058547_1 (wiaa_classification VARCHAR, high_school VARCHAR)
SELECT pinyin FROM table_1204998_2 WHERE population = 374047
Which pinyin have a population of 374047?
CREATE TABLE table_1204998_2 (pinyin VARCHAR, population VARCHAR)
SELECT regional_county_municipality FROM table_name_30 WHERE area__km_2__ > 108.46 AND population = 719
What municipality has 719 people and is larger than 108.46 km2?
CREATE TABLE table_name_30 (regional_county_municipality VARCHAR, area__km_2__ VARCHAR, population VARCHAR)
SELECT 1 AS st_leg FROM table_name_85 WHERE team_1 = "marseille"
What is the first leg score in that match where Marseille was the first team?
CREATE TABLE table_name_85 (team_1 VARCHAR)
SELECT status FROM table_name_86 WHERE against = 44
What is the Status of the 44 Against?
CREATE TABLE table_name_86 (status VARCHAR, against VARCHAR)
SELECT institution FROM table_27599216_6 WHERE endowment = "$25.9M"
Which institution has an endowment of $25.9m?
CREATE TABLE table_27599216_6 (institution VARCHAR, endowment VARCHAR)
SELECT COUNT(laps) FROM table_name_82 WHERE car__number > 9 AND driver = "jeff burton" AND points > 118
How many laps did Jeff Burton have when he drove car with a # over 9 and more than 118 points?
CREATE TABLE table_name_82 (laps VARCHAR, points VARCHAR, car__number VARCHAR, driver VARCHAR)
SELECT winning_driver FROM table_name_78 WHERE pole_position = "joakim bonnier"
What driver was the winner when Joakim Bonnier was in the Pole Position?
CREATE TABLE table_name_78 (winning_driver VARCHAR, pole_position VARCHAR)
SELECT MAX(wins) FROM table_name_7 WHERE class = "350cc" AND team = "yamaha" AND points < 37 AND year > 1979
What is the highest wins that has 350cc as the class, yamaha for the team, with points less than 37, and a year after 1979?
CREATE TABLE table_name_7 (wins INTEGER, year VARCHAR, points VARCHAR, class VARCHAR, team VARCHAR)
SELECT COUNT(santee_sisseton) FROM table_1499791_2 WHERE yankton_yanktonai = "híŋhaŋna"
Name the santee sisseton for híŋhaŋna
CREATE TABLE table_1499791_2 (santee_sisseton VARCHAR, yankton_yanktonai VARCHAR)
SELECT title FROM table_name_69 WHERE season__number < 10 AND directed_by = "milan cheylov" AND original_air_date = "september 29, 1997"
What is the title of the show with less than 10 seasons that aired on September 29, 1997 and is directed by Milan Cheylov?
CREATE TABLE table_name_69 (title VARCHAR, original_air_date VARCHAR, season__number VARCHAR, directed_by VARCHAR)
SELECT country FROM table_15887683_4 WHERE television_service = "Sky Calcio 2"
What country has the Sky Calcio 2 tv service?
CREATE TABLE table_15887683_4 (country VARCHAR, television_service VARCHAR)
SELECT studio FROM table_name_77 WHERE year = 1943 AND title = "the hard way"
What was the studio for The Hard Way in 1943?
CREATE TABLE table_name_77 (studio VARCHAR, year VARCHAR, title VARCHAR)
SELECT COUNT(population) FROM table_16796625_1 WHERE land_area__hectares_ = "30.94"
How many people live in an area of 30.94 hectares?
CREATE TABLE table_16796625_1 (population VARCHAR, land_area__hectares_ VARCHAR)
SELECT COUNT(*) FROM Reviewer
How many reviewers listed?
CREATE TABLE Reviewer (Id VARCHAR)
SELECT city FROM table_name_61 WHERE icao = "zsxz"
Which city has an ICAO of ZSXZ?
CREATE TABLE table_name_61 (city VARCHAR, icao VARCHAR)
SELECT deaths FROM table_name_64 WHERE storm_name = "darby"
How many deaths occurred during Darby?
CREATE TABLE table_name_64 (deaths VARCHAR, storm_name VARCHAR)
SELECT 2000 FROM table_name_67 WHERE 1998 = "1.5"
What is the 2000 value if the 1998 value is 1.5?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT capacity FROM table_283203_1 WHERE club = "New Zealand Breakers"
What is the capacity for the Home Venue of the New Zealand Breakers club?
CREATE TABLE table_283203_1 (capacity VARCHAR, club VARCHAR)
SELECT SUM(heat) FROM table_name_61 WHERE nationality = "china" AND name = "zhang lin" AND lane > 6
What's China's heat for Zhang Lin in a lane after 6?
CREATE TABLE table_name_61 (heat INTEGER, lane VARCHAR, nationality VARCHAR, name VARCHAR)
SELECT COUNT(teleplay_by) FROM table_14346950_1 WHERE series__number = 35
What is the total number of values for "Teleplay by" category for series # 35?
CREATE TABLE table_14346950_1 (teleplay_by VARCHAR, series__number VARCHAR)
SELECT major FROM Student GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1
Which major has most number of students?
CREATE TABLE Student (major VARCHAR)
SELECT real_life_years_of_operation FROM table_243664_1 WHERE currently¹_part_of = "Amtrak"
Name the real life years of operation for amtrak
CREATE TABLE table_243664_1 (real_life_years_of_operation VARCHAR, currently¹_part_of VARCHAR)
SELECT MAX(black_knights_points) FROM table_21094951_1 WHERE result = "Loss"
Name the black knights points for loss result
CREATE TABLE table_21094951_1 (black_knights_points INTEGER, result VARCHAR)
SELECT death FROM table_name_86 WHERE spouse = "charles ii"
When was the date of death for the person married to Charles II?
CREATE TABLE table_name_86 (death VARCHAR, spouse VARCHAR)
SELECT est FROM table_name_96 WHERE state_province = "illinois" AND city = "chicago" AND league = "nfl"
In what year was the NFL team in chicago illinois established?
CREATE TABLE table_name_96 (est VARCHAR, league VARCHAR, state_province VARCHAR, city VARCHAR)
SELECT fname, lname FROM student WHERE age < (SELECT AVG(age) FROM student)
Find the first and last name of students whose age is younger than the average age.
CREATE TABLE student (fname VARCHAR, lname VARCHAR, age INTEGER)
SELECT skip FROM table_name_30 WHERE second = "philippe caux"
What is the skip with a second of Philippe Caux?
CREATE TABLE table_name_30 (skip VARCHAR, second VARCHAR)
SELECT COUNT(research_funding__) AS £, 000 AS _ FROM table_142950_1 WHERE gained_university_status = 1900
How many members gained university status in 1900?
CREATE TABLE table_142950_1 (research_funding__ VARCHAR, gained_university_status VARCHAR)
SELECT home_team FROM table_name_82 WHERE venue = "glenferrie oval"
Which team was the home team at Glenferrie Oval?
CREATE TABLE table_name_82 (home_team VARCHAR, venue VARCHAR)
SELECT name FROM table_name_72 WHERE date = "9 july"
What is the name of the race on 9 July?
CREATE TABLE table_name_72 (name VARCHAR, date VARCHAR)
SELECT iso_3166_2_codes FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = "South Sudan"
What is the ISO for South Sudan?
CREATE TABLE table_222771_1 (iso_3166_2_codes VARCHAR, english_short_name__upper_lower_case_ VARCHAR)
SELECT MIN(dances) FROM table_25931938_1 WHERE celebrity = "John Barnes"
How many dances did John Barnes have?
CREATE TABLE table_25931938_1 (dances INTEGER, celebrity VARCHAR)
SELECT opponent FROM table_name_48 WHERE date = "september 29"
Who plays on the date september 29?
CREATE TABLE table_name_48 (opponent VARCHAR, date VARCHAR)
SELECT name FROM scientists ORDER BY name
List the names of all scientists sorted in alphabetical order.
CREATE TABLE scientists (name VARCHAR)
SELECT COUNT(tickets_sold___available) FROM table_16331025_2 WHERE sellout___percentage_ = "82%"
What is the position of tickets sold/available when the sellout is 82%?
CREATE TABLE table_16331025_2 (tickets_sold___available VARCHAR, sellout___percentage_ VARCHAR)
SELECT prothrombin_time FROM table_1557752_1 WHERE condition = "Von Willebrand disease"
What is the prothrombin time in Von willebrand disease?
CREATE TABLE table_1557752_1 (prothrombin_time VARCHAR, condition VARCHAR)
SELECT COUNT(week) FROM table_name_37 WHERE result = "bye"
How many weeks do they have a bye?
CREATE TABLE table_name_37 (week VARCHAR, result VARCHAR)
SELECT name FROM table_name_56 WHERE novelty = "gen et sp nov"
What name has gen et sp nov as the novelty?
CREATE TABLE table_name_56 (name VARCHAR, novelty VARCHAR)
SELECT AVG(score) FROM table_name_60 WHERE place = "t5" AND country = "united states"
What is the average score for the player who is T5 in the United States?
CREATE TABLE table_name_60 (score INTEGER, place VARCHAR, country VARCHAR)
SELECT webcast FROM table_name_5 WHERE website = "•" AND frequency = 103.3
Name the webcast for website of • and frequency of 103.3
CREATE TABLE table_name_5 (webcast VARCHAR, website VARCHAR, frequency VARCHAR)
SELECT time FROM table_name_44 WHERE team = "triumph" AND rank < 4
What is the time/s of team Triumph in those races in which Triumph ranked higher than 4?
CREATE TABLE table_name_44 (time VARCHAR, team VARCHAR, rank VARCHAR)
SELECT T1.Name, T2.Tourist_Attraction_ID, COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID
Show different tourist attractions' names, ids, and the corresponding number of visits.
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT record FROM table_name_96 WHERE date = "april 25"
Which record has a Date of april 25?
CREATE TABLE table_name_96 (record VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_95 WHERE week = 5
What is Attendance, when Week is 5?
CREATE TABLE table_name_95 (attendance VARCHAR, week VARCHAR)
SELECT win__percentage FROM table_name_19 WHERE 2012 = "olympic games"
What is the win percentage for the 2012 of olympic games?
CREATE TABLE table_name_19 (win__percentage VARCHAR)
SELECT score_points FROM table_name_25 WHERE rank_points = "10" AND total = "11"
With a total of 11, and 10 rank points, what are the score points?
CREATE TABLE table_name_25 (score_points VARCHAR, rank_points VARCHAR, total VARCHAR)
SELECT proto_italo_western_1 FROM table_25401_15 WHERE english = "door"
What is every entry for Proto-Italo-Western 1 when door is English?
CREATE TABLE table_25401_15 (proto_italo_western_1 VARCHAR, english VARCHAR)
SELECT unemployment_rate FROM table_22815568_13 WHERE county = "Wayne"
what is the unemployment rate for wayne county?
CREATE TABLE table_22815568_13 (unemployment_rate VARCHAR, county VARCHAR)
SELECT rider FROM table_name_17 WHERE time = "1:54.26.6"
Which rider had a time of 1:54.26.6?
CREATE TABLE table_name_17 (rider VARCHAR, time VARCHAR)
SELECT record FROM table_name_35 WHERE round = 5 AND time = "5:00" AND opponent = "torrance taylor"
What is the Record when the round was 5, time was 5:00, and the opponent was Torrance Taylor
CREATE TABLE table_name_35 (record VARCHAR, opponent VARCHAR, round VARCHAR, time VARCHAR)
SELECT country FROM table_name_50 WHERE score = 70 - 73 = 143
What is Country, when Score is 70-73=143?
CREATE TABLE table_name_50 (country VARCHAR, score VARCHAR)
SELECT segment_a FROM table_15187735_15 WHERE segment_c = "Sushi (Part 1)"
What is Segment A where Segment C is Sushi (part 1)?
CREATE TABLE table_15187735_15 (segment_a VARCHAR, segment_c VARCHAR)
SELECT away_team FROM table_name_17 WHERE home_team = "fitzroy"
Name the away team for home team of fitzroy
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR)
SELECT party AS a FROM table_22753439_1 WHERE constituency = "Tiruchendur"
What is every party A with a constituency of Tiruchendur?
CREATE TABLE table_22753439_1 (party VARCHAR, constituency VARCHAR)
SELECT MAX(weight__kg_) FROM table_name_41 WHERE position = "f" AND jersey__number = 12
What was the highest weight in kg for F Position, Jersey #12?
CREATE TABLE table_name_41 (weight__kg_ INTEGER, position VARCHAR, jersey__number VARCHAR)
SELECT MIN(season__number) FROM table_12419515_5 WHERE written_by = "Adam Milch"
Name the number of season that was written by adam milch
CREATE TABLE table_12419515_5 (season__number INTEGER, written_by VARCHAR)
SELECT COUNT(frequency_mhz) FROM table_name_95 WHERE call_sign = "w233ag"
On what frequency does W233AG broadcast?
CREATE TABLE table_name_95 (frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT 1997 FROM table_name_63 WHERE 1996 = "1r" AND 1990 = "2r" AND 1991 = "f"
What is 1997, when 1996 is "1R", when 1990 is "2R", and when 1991 is "F"?
CREATE TABLE table_name_63 (Id VARCHAR)
SELECT COUNT(acres) FROM table_name_29 WHERE landfill = "sai tso wan" AND opened < 1978
What is the total number of acres at Sai Tso Wan, opening before 1978?
CREATE TABLE table_name_29 (acres VARCHAR, landfill VARCHAR, opened VARCHAR)
SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'
Find the name of dorms which have both TV Lounge and Study Room as amenities.
CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
SELECT position FROM table_name_38 WHERE school = "ohio state" AND points = "412"
What position does the winner from Ohio State with 412 points play?
CREATE TABLE table_name_38 (position VARCHAR, school VARCHAR, points VARCHAR)
SELECT last_performance FROM table_name_7 WHERE style = "ballet" AND name = "rhys kosakowski"
What is the date of the Last Ballet Style Performance of Rhys kosakowski as Billy Elliot?
CREATE TABLE table_name_7 (last_performance VARCHAR, style VARCHAR, name VARCHAR)
SELECT date FROM table_name_8 WHERE record = "32–31–6"
What is the Date of the game when the Record is 32–31–6?
CREATE TABLE table_name_8 (date VARCHAR, record VARCHAR)
SELECT class_aAA FROM table_10399701_2 WHERE class_a = "(tie) Apple Springs/Texline"
Who was Class AAA during the same year that Class A was (tie) Apple Springs/Texline?
CREATE TABLE table_10399701_2 (class_aAA VARCHAR, class_a VARCHAR)
SELECT COUNT(new_democratic) FROM table_24778847_2 WHERE date_of_polling = "May 11–31, 2010"
How many figures are given for the New Democratic for the polling range May 11–31, 2010?
CREATE TABLE table_24778847_2 (new_democratic VARCHAR, date_of_polling VARCHAR)
SELECT family FROM table_name_57 WHERE name = "eastern cottontail"
What family has the name of eastern cottontail?
CREATE TABLE table_name_57 (family VARCHAR, name VARCHAR)
SELECT employees__world_ FROM table_name_60 WHERE revenue__mil€_ = "104.000"
What is hte nuumber of employees that has a revenue of 104.000?
CREATE TABLE table_name_60 (employees__world_ VARCHAR, revenue__mil€_ VARCHAR)
SELECT team FROM table_name_98 WHERE position_in_table = "12th" AND replaced_by = "ove pedersen"
WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN?
CREATE TABLE table_name_98 (team VARCHAR, position_in_table VARCHAR, replaced_by VARCHAR)
SELECT home FROM table_name_62 WHERE date = "january 24, 1947"
What is the Home team on January 24, 1947?
CREATE TABLE table_name_62 (home VARCHAR, date VARCHAR)
SELECT MAX(points) FROM table_14342367_5
what is the maximum number of points?
CREATE TABLE table_14342367_5 (points INTEGER)
SELECT wind_farm FROM table_name_58 WHERE country = "usa" AND notes = "multiple farms"
Which wind farm is in the USA and is noted as having multiple farms?
CREATE TABLE table_name_58 (wind_farm VARCHAR, country VARCHAR, notes VARCHAR)
SELECT date FROM table_name_9 WHERE home_team = "st kilda"
What is the date of the game where St Kilda is the home team?
CREATE TABLE table_name_9 (date VARCHAR, home_team VARCHAR)
SELECT SUM(scored) FROM table_name_94 WHERE result = "40-22"
What is the scored figure when the result is 40-22?
CREATE TABLE table_name_94 (scored INTEGER, result VARCHAR)
SELECT trainer FROM table_name_3 WHERE winner = "mckaymackenna"
Who was the trainer when Mckaymackenna won?
CREATE TABLE table_name_3 (trainer VARCHAR, winner VARCHAR)
SELECT games FROM table_name_90 WHERE event = "women's half middleweight"
What games had the women's half middleweight event?
CREATE TABLE table_name_90 (games VARCHAR, event VARCHAR)
SELECT COUNT(losses) FROM table_name_54 WHERE byes < 0
Of the teams that had more than 0 byes, what was the total number of losses?
CREATE TABLE table_name_54 (losses VARCHAR, byes INTEGER)
SELECT fourth_district FROM table_name_98 WHERE first_district = "beverly bodem"
Who's the Fourth District with a First District of beverly bodem?
CREATE TABLE table_name_98 (fourth_district VARCHAR, first_district VARCHAR)
SELECT title FROM table_name_87 WHERE release_date = "24 july 2005"
What is the title released on 24 July 2005?
CREATE TABLE table_name_87 (title VARCHAR, release_date VARCHAR)
SELECT MIN(grid) FROM table_name_85 WHERE driver = "david coulthard"
I want the lowest Grid for David Coulthard
CREATE TABLE table_name_85 (grid INTEGER, driver VARCHAR)
SELECT score FROM table_name_66 WHERE tournament = "frankfurt"
What was the score in the Tournament of Frankfurt?
CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR)
SELECT SUM(cap_hour) FROM table_name_8 WHERE type = "double chair" AND vertical < 479
Tell me the sum of cap/hor for double chair and vertical less than 479
CREATE TABLE table_name_8 (cap_hour INTEGER, type VARCHAR, vertical VARCHAR)
SELECT district FROM table_1342013_42 WHERE incumbent = "Omar Burleson"
Omar Burleson was the incumbent in what district?
CREATE TABLE table_1342013_42 (district VARCHAR, incumbent VARCHAR)
SELECT isin FROM table_21692771_1 WHERE coupon = "1.02" AND amount_issued_[€] = "447,000,000"
What is the ISIN that has a coupon of 1.02 and a value issued of 447,000,000?
CREATE TABLE table_21692771_1 (isin VARCHAR, coupon VARCHAR, amount_issued_ VARCHAR, € VARCHAR)
SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Mary" OR T1.name = "Susan"
Find the id of users who are followed by Mary or Susan.
CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR)
SELECT women’s_nickname FROM table_10577579_3 WHERE enrollment = 1500 AND location = "Mobile, Alabama"
Name the women's nickname when the enrollment is 1500 in mobile, Alabama.
CREATE TABLE table_10577579_3 (women’s_nickname VARCHAR, enrollment VARCHAR, location VARCHAR)
SELECT us_viewers__million_ FROM table_26702204_1 WHERE production_code = "4ALH19"
What was the u.s. viewers (millions) when the production code was 4alh19?
CREATE TABLE table_26702204_1 (us_viewers__million_ VARCHAR, production_code VARCHAR)
SELECT length_of_stay_permitted FROM table_25965003_3 WHERE countries_and_territories = "Jersey"
What is the permitted length of stay in the Jersey territory?
CREATE TABLE table_25965003_3 (length_of_stay_permitted VARCHAR, countries_and_territories VARCHAR)
SELECT type FROM table_2273738_1 WHERE city = "Birmingham"
The city of Birmingham is what type of location?
CREATE TABLE table_2273738_1 (type VARCHAR, city VARCHAR)
SELECT lost FROM table_name_57 WHERE played = "22" AND tries_against = "88"
tries against is 88, played is 22, what is the lost?
CREATE TABLE table_name_57 (lost VARCHAR, played VARCHAR, tries_against VARCHAR)
SELECT competition FROM table_name_71 WHERE result = "17-1"
What competition has 17-1 as the result?
CREATE TABLE table_name_71 (competition VARCHAR, result VARCHAR)
SELECT cons FROM table_name_19 WHERE lib_dem = "8%" AND lead = "27%"
What is the cons for lib dem of 8% and a lead of 27%
CREATE TABLE table_name_19 (cons VARCHAR, lib_dem VARCHAR, lead VARCHAR)