answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT position FROM table_name_14 WHERE height = 205 AND shirt_no = 8
What is the position of the player with a height of 205 and shirt no 8?
CREATE TABLE table_name_14 (position VARCHAR, height VARCHAR, shirt_no VARCHAR)
SELECT enlisted FROM table_23508196_5 WHERE type_of_unit = "Troop carrier group"
Nam ethe enlisted for troop carrier group
CREATE TABLE table_23508196_5 (enlisted VARCHAR, type_of_unit VARCHAR)
SELECT AVG(attendance) FROM table_name_86 WHERE date = "april 24"
What is the average attendance on april 24?
CREATE TABLE table_name_86 (attendance INTEGER, date VARCHAR)
SELECT team FROM table_name_64 WHERE ravg = "1.3"
Which team has a Ravg of 1.3?
CREATE TABLE table_name_64 (team VARCHAR, ravg VARCHAR)
SELECT built FROM table_name_71 WHERE location = "lovell"
In what year was the bridge in Lovell built?
CREATE TABLE table_name_71 (built VARCHAR, location VARCHAR)
SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = "Vincent"
Which tourist attractions does the visitor with detail 'Vincent' visit?
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT tongyong FROM table_17015_2 WHERE chinese = "湖內區"
Name the tongyong for chinese of 湖內區
CREATE TABLE table_17015_2 (tongyong VARCHAR, chinese VARCHAR)
SELECT party FROM table_1341865_44 WHERE district = "Tennessee 3"
what's party with district being tennessee 3
CREATE TABLE table_1341865_44 (party VARCHAR, district VARCHAR)
SELECT couple FROM table_name_20 WHERE rank_by_average > 3 AND average > 16.5 AND total < 195 AND number_of_dances > 3
Which Couple has a Rank by average larger than 3, and an Average larger than 16.5, and a Total smaller than 195, and a Number of dances larger than 3?
CREATE TABLE table_name_20 (couple VARCHAR, number_of_dances VARCHAR, total VARCHAR, rank_by_average VARCHAR, average VARCHAR)
SELECT content FROM table_15887683_1 WHERE television_service = "Rai 1"
What is the content of the rai 1 television service?
CREATE TABLE table_15887683_1 (content VARCHAR, television_service VARCHAR)
SELECT year FROM table_name_78 WHERE total = "0" AND competitors = "4"
In what Year did Yugoslavia have 4 Competitors with 0 medals Total?
CREATE TABLE table_name_78 (year VARCHAR, total VARCHAR, competitors VARCHAR)
SELECT report FROM table_name_68 WHERE winning_team = "penske racing" AND pole_position = "rick mears"
What is the Report of Winning Team Penske Racing, and what was Rick Mears' Pole position?
CREATE TABLE table_name_68 (report VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT place FROM table_name_66 WHERE player = "kirk triplett"
What is Kirk Triplett's Place?
CREATE TABLE table_name_66 (place VARCHAR, player VARCHAR)
SELECT canadian_championship FROM table_name_45 WHERE name = "ashtone morgan category:articles with hcards"
What Canadian Championship has Ashtone Morgan Category:Articles with hcards as the name?
CREATE TABLE table_name_45 (canadian_championship VARCHAR, name VARCHAR)
SELECT common_english FROM table_name_50 WHERE italian = "san gallo"
What is the common English for the Italian word san gallo?
CREATE TABLE table_name_50 (common_english VARCHAR, italian VARCHAR)
SELECT s_mestizo FROM table_1333612_1 WHERE population = 29461933
what's the s mestizo with population being 29461933
CREATE TABLE table_1333612_1 (s_mestizo VARCHAR, population VARCHAR)
SELECT site FROM table_1601792_4 WHERE television_station = "TV3"
What site(s) for tv station tv3?
CREATE TABLE table_1601792_4 (site VARCHAR, television_station VARCHAR)
SELECT MAX(races) FROM table_23128286_1
What was the most races he had in a season?
CREATE TABLE table_23128286_1 (races INTEGER)
SELECT score FROM table_name_31 WHERE venue = "idrottsparken"
Which Score has a Venue of idrottsparken?
CREATE TABLE table_name_31 (score VARCHAR, venue VARCHAR)
SELECT written_by FROM table_29273243_1 WHERE no_in_season = 11
Who wrote episode number 11?
CREATE TABLE table_29273243_1 (written_by VARCHAR, no_in_season VARCHAR)
SELECT opponent FROM table_name_63 WHERE record = "52-52"
Which opponent has a record of 52-52?
CREATE TABLE table_name_63 (opponent VARCHAR, record VARCHAR)
SELECT team FROM table_name_95 WHERE pos = "1st" AND year = 2011
Which team has finished in 1st place in 2011?
CREATE TABLE table_name_95 (team VARCHAR, pos VARCHAR, year VARCHAR)
SELECT COUNT(first_elected) FROM table_name_80 WHERE counties_represented = "baltimore county" AND district = "06.0 6" AND committee = "economic matters"
What is the total number of First elected that has a country represented in Baltimore county, a district of 06.0 6, and a committee of economic matters?
CREATE TABLE table_name_80 (first_elected VARCHAR, committee VARCHAR, counties_represented VARCHAR, district VARCHAR)
SELECT AVG(bronze) FROM table_name_29 WHERE total < 1
What average bronze has a total less than 1?
CREATE TABLE table_name_29 (bronze INTEGER, total INTEGER)
SELECT MAX(last_competed) FROM table_14308895_2 WHERE country_territory = "New Zealand"
when did new zealand last compete?
CREATE TABLE table_14308895_2 (last_competed INTEGER, country_territory VARCHAR)
SELECT score FROM table_name_43 WHERE venue = "tanteen recreation ground, st. george's"
Tell me the score for Venue of tanteen recreation ground, st. george's
CREATE TABLE table_name_43 (score VARCHAR, venue VARCHAR)
SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211'
What is the first name of each student enrolled in class ACCT-211?
CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR)
SELECT mascot FROM table_name_20 WHERE location = "bedford"
What is bedford's mascot?
CREATE TABLE table_name_20 (mascot VARCHAR, location VARCHAR)
SELECT score FROM table_name_93 WHERE surface = "hard" AND championship = "new haven , usa"
What is the Score when there was a hard surface and the Championship is new haven , usa?
CREATE TABLE table_name_93 (score VARCHAR, surface VARCHAR, championship VARCHAR)
SELECT record FROM table_name_71 WHERE time = "3:00"
What is the record at 3:00?
CREATE TABLE table_name_71 (record VARCHAR, time VARCHAR)
SELECT result FROM table_name_88 WHERE date = "september 14, 2008"
What was the score of the game on September 14, 2008?
CREATE TABLE table_name_88 (result VARCHAR, date VARCHAR)
SELECT 2008 FROM table_name_84 WHERE tournament = "win-loss" AND 2005 = "a"
WHAT IS THE 2008 WITH TOURNAMENT OF WIN-LOSS, AND 2005 A?
CREATE TABLE table_name_84 (tournament VARCHAR)
SELECT reader FROM table_20174050_23 WHERE title = "Department X"
who the reader of title department x?
CREATE TABLE table_20174050_23 (reader VARCHAR, title VARCHAR)
SELECT date FROM table_name_52 WHERE game_site = "schaeffer stadium"
What is the date of the game being played at Schaeffer Stadium?
CREATE TABLE table_name_52 (date VARCHAR, game_site VARCHAR)
SELECT year FROM table_name_6 WHERE runner_up = "england (24 pts)"
What year shows as Runner-up of england (24 pts)?
CREATE TABLE table_name_6 (year VARCHAR, runner_up VARCHAR)
SELECT record FROM table_name_58 WHERE opponent = "philadelphia 76ers"
What is the final record for the Philadelphia 76ers?
CREATE TABLE table_name_58 (record VARCHAR, opponent VARCHAR)
SELECT mandate_end FROM table_name_44 WHERE office = "prime minister" AND name_a = "agathe uwilingiyimana"
When did Prime Minister Agathe Uwilingiyimana's mandate end?
CREATE TABLE table_name_44 (mandate_end VARCHAR, office VARCHAR, name_a VARCHAR)
SELECT party FROM table_1341522_38 WHERE opponent = "Mike Oxley (R) unopposed"
what's the party with opponent being mike oxley (r) unopposed
CREATE TABLE table_1341522_38 (party VARCHAR, opponent VARCHAR)
SELECT event_4 FROM table_name_10 WHERE event_1 = "gauntlet" AND event_2 = "duel" AND event_3 = "pendulum"
What is event 4 when event one was gauntlet, event 2 was duel, and event 3 was pendulum?
CREATE TABLE table_name_10 (event_4 VARCHAR, event_3 VARCHAR, event_1 VARCHAR, event_2 VARCHAR)
SELECT driver_matched_db FROM table_1601027_2 WHERE headphone_class = "Joseph Grado Signature"
Name the driver matched db for joseph grado signature
CREATE TABLE table_1601027_2 (driver_matched_db VARCHAR, headphone_class VARCHAR)
SELECT written_by FROM table_23528223_2 WHERE us_viewers__millions_ = "10.64"
Who wrote the episode seen by 10.64 million people in the US?
CREATE TABLE table_23528223_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT COUNT(place) FROM table_29583818_3 WHERE couple = "Kerry & Daniel"
How many times is the couple kerry & daniel?
CREATE TABLE table_29583818_3 (place VARCHAR, couple VARCHAR)
SELECT opponent FROM table_name_7 WHERE game_site = "heinz field" AND record = "3–1"
Which Opponent has a Game site of heinz field, and a Record of 3–1?
CREATE TABLE table_name_7 (opponent VARCHAR, game_site VARCHAR, record VARCHAR)
SELECT AVG(points) FROM table_name_90 WHERE opponent = "calgary flames" AND january > 22
Which Points have an Opponent of calgary flames, and a January larger than 22?
CREATE TABLE table_name_90 (points INTEGER, opponent VARCHAR, january VARCHAR)
SELECT fis_nordic_world_ski_championships FROM table_174491_1 WHERE country = "Norway" AND holmenkollen = "1958"
What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic World Ski Championships?
CREATE TABLE table_174491_1 (fis_nordic_world_ski_championships VARCHAR, country VARCHAR, holmenkollen VARCHAR)
SELECT AVG(attendance) FROM table_name_74 WHERE week = 7
In week 7, what was the average attendance?
CREATE TABLE table_name_74 (attendance INTEGER, week VARCHAR)
SELECT Birth AS name FROM table_name_45 WHERE start_of_reign < 1986 AND name = "angelarios angelarij"
What is Angelarios Angelarij with a Start of Reign date before 1986 Birth Name?
CREATE TABLE table_name_45 (Birth VARCHAR, start_of_reign VARCHAR, name VARCHAR)
SELECT MIN(wins) FROM table_name_98 WHERE losses < 6 AND position = 4 AND played > 9
Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?
CREATE TABLE table_name_98 (wins INTEGER, played VARCHAR, losses VARCHAR, position VARCHAR)
SELECT 2005 FROM table_name_98 WHERE 2009 = "a" AND 2000 = "a"
What is the value for 2005 when A is 2009 and 2000?
CREATE TABLE table_name_98 (Id VARCHAR)
SELECT date FROM table_name_27 WHERE outcome = "winner" AND opponent_in_the_final = "jim courier"
What is the date of the match with a winner outcome and jim courier as the opponent in the final?
CREATE TABLE table_name_27 (date VARCHAR, outcome VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_76 WHERE home_team = "torquay united"
What date was the game that home team torquay united played?
CREATE TABLE table_name_76 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(country) FROM table_13681_2 WHERE currency_name = "Republika Srpska dinar"
how many country with currency name being republika srpska dinar
CREATE TABLE table_13681_2 (country VARCHAR, currency_name VARCHAR)
SELECT to_par FROM table_name_73 WHERE score = 68 - 71 = 139
What was the TO par for the player who scored 68-71=139?
CREATE TABLE table_name_73 (to_par VARCHAR, score VARCHAR)
SELECT AVG(grid) FROM table_name_76 WHERE laps < 32 AND manufacturer = "yamaha"
If the manufacturer is Yamaha, and the laps driven were under 32, what's the average of all grid sizes with that criteria?
CREATE TABLE table_name_76 (grid INTEGER, laps VARCHAR, manufacturer 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 outcome FROM table_name_78 WHERE surface = "hard (i)" AND date = "28 january 2003"
Which Outcome has a Surface of hard (i), and a Date of 28 january 2003?
CREATE TABLE table_name_78 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
SELECT terminus FROM table_name_37 WHERE length = "3.5km"
What terminus is 3.5km in lenght?
CREATE TABLE table_name_37 (terminus VARCHAR, length VARCHAR)
SELECT goals FROM table_name_94 WHERE caps = 93
Caps of 93 had how many goals?
CREATE TABLE table_name_94 (goals VARCHAR, caps VARCHAR)
SELECT average_ratings FROM table_name_38 WHERE episodes > 9 AND japanese_title = "ホタルノヒカリ"
What is average ratings for Japanese title of ホタルノヒカリ, with episodes larger than 9?
CREATE TABLE table_name_38 (average_ratings VARCHAR, episodes VARCHAR, japanese_title VARCHAR)
SELECT date FROM table_name_50 WHERE away_team = "carlisle united"
What was the date when the away team was carlisle united?
CREATE TABLE table_name_50 (date VARCHAR, away_team VARCHAR)
SELECT result FROM table_name_75 WHERE record = "62–12"
What was the result when the record was 62–12?
CREATE TABLE table_name_75 (result VARCHAR, record VARCHAR)
SELECT usage FROM table_name_98 WHERE engine = "f136fb"
What is the for the f136fb engine?
CREATE TABLE table_name_98 (usage VARCHAR, engine VARCHAR)
SELECT 2 AS nd_leg FROM table_name_61 WHERE team_2 = "defence force"
Name the 2nd leg for defence force
CREATE TABLE table_name_61 (team_2 VARCHAR)
SELECT written_by FROM table_25604014_5 WHERE no_in_series = 81
Who wrote episode number 81 in the series?
CREATE TABLE table_25604014_5 (written_by VARCHAR, no_in_series VARCHAR)
SELECT pos FROM table_name_76 WHERE to_club = "released" AND player = "teerasil dangda"
Teerasil Dangda who had a to club of released plays what position?
CREATE TABLE table_name_76 (pos VARCHAR, to_club VARCHAR, player VARCHAR)
SELECT COUNT(year) FROM table_22834834_12 WHERE earnings__$_ = 2254598
How many years had a total earnings amount of 2254598?
CREATE TABLE table_22834834_12 (year VARCHAR, earnings__$_ VARCHAR)
SELECT roomName, bedType FROM Rooms WHERE decor = "traditional"
List the type of bed and name of all traditional rooms.
CREATE TABLE Rooms (roomName VARCHAR, bedType VARCHAR, decor VARCHAR)
SELECT games FROM table_name_52 WHERE pen_min = "22"
How many games were played by the player who had 22 penalty minutes?
CREATE TABLE table_name_52 (games VARCHAR, pen_min VARCHAR)
SELECT venue FROM table_name_60 WHERE score = "2–0"
Which venue has a scoreof 2–0?
CREATE TABLE table_name_60 (venue VARCHAR, score VARCHAR)
SELECT opengl AS ES FROM table_1439045_5 WHERE model = "SGX520"
Which version of opengl is used by model sgx520?
CREATE TABLE table_1439045_5 (opengl VARCHAR, model VARCHAR)
SELECT prime_mover FROM table_name_61 WHERE model = "rs-18"
Which prime mover had a Model of rs-18?
CREATE TABLE table_name_61 (prime_mover VARCHAR, model VARCHAR)
SELECT COUNT(party) FROM table_1342233_11 WHERE candidates = "Albert Sidney Camp (D) Unopposed"
Which party is associated with the candidate Albert Sidney Camp (D) unopposed?
CREATE TABLE table_1342233_11 (party VARCHAR, candidates VARCHAR)
SELECT position FROM table_name_85 WHERE affiliation = "ucla"
Which position did the drafted player affiliated with UCLA play?
CREATE TABLE table_name_85 (position VARCHAR, affiliation VARCHAR)
SELECT location_attendance FROM table_name_3 WHERE date = "september 11"
What was the Location/Attendance on september 11?
CREATE TABLE table_name_3 (location_attendance VARCHAR, date VARCHAR)
SELECT MIN(first_downs) FROM table_14877831_2 WHERE attendance = 13196
How many first downs were there when the attendance was 13196?
CREATE TABLE table_14877831_2 (first_downs INTEGER, attendance VARCHAR)
SELECT young_classification FROM table_name_89 WHERE aggressive_rider = "tim johnson"
Which young classification has an aggressive rider of Tim Johnson?
CREATE TABLE table_name_89 (young_classification VARCHAR, aggressive_rider VARCHAR)
SELECT Name, SurfaceArea FROM country ORDER BY SurfaceArea DESC LIMIT 5
What are the names and areas of countries with the top 5 largest area?
CREATE TABLE country (Name VARCHAR, SurfaceArea VARCHAR)
SELECT COUNT(lmp1_winning_team) FROM table_19722436_2 WHERE gt1_winning_team = "Peter Kox Roman Rusinov"
When peter kox roman rusinov is the gt1 of the winning team how many lmp1 winning teams are there?
CREATE TABLE table_19722436_2 (lmp1_winning_team VARCHAR, gt1_winning_team VARCHAR)
SELECT attendance FROM table_name_70 WHERE week = 17
What was the Attendance in Week 17?
CREATE TABLE table_name_70 (attendance VARCHAR, week VARCHAR)
SELECT winner FROM table_name_31 WHERE finalist = "fsv frankfurt"
Who was the winner when the finalist was fsv frankfurt?
CREATE TABLE table_name_31 (winner VARCHAR, finalist VARCHAR)
SELECT institution FROM table_name_78 WHERE location = "akron, oh"
what is the institution at akron, oh?
CREATE TABLE table_name_78 (institution VARCHAR, location VARCHAR)
SELECT season FROM table_2140071_10 WHERE premier_date = "August 16, 2010"
Name the season for august 16, 2010
CREATE TABLE table_2140071_10 (season VARCHAR, premier_date VARCHAR)
SELECT AVG(points) FROM table_name_3 WHERE chassis = "mclaren m23" AND entrant = "centro asegurador"
What is the average points that Centro Asegurador earned with the McLaren M23 chassis?
CREATE TABLE table_name_3 (points INTEGER, chassis VARCHAR, entrant VARCHAR)
SELECT burglary FROM table_1818254_1 WHERE violent_crime = "974.7"
How many burglaries occurred in the city where the violent crime rate was 974.7?
CREATE TABLE table_1818254_1 (burglary VARCHAR, violent_crime VARCHAR)
SELECT COUNT(*) FROM premises
How many premises are there?
CREATE TABLE premises (Id VARCHAR)
SELECT year FROM table_name_2 WHERE winner = "burning roma"
What year was Burning Roma the winner?
CREATE TABLE table_name_2 (year VARCHAR, winner 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 state_province_county FROM addresses WHERE NOT address_id IN (SELECT employee_address_id FROM Employees)
Find the states which do not have any employee in their record.
CREATE TABLE Employees (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR)
SELECT model_number FROM table_name_70 WHERE part_number_s_ = "ay80609003987ab"
What is Model Number, when Part Number(s) is AY80609003987AB?
CREATE TABLE table_name_70 (model_number VARCHAR, part_number_s_ VARCHAR)
SELECT avg_finish FROM table_1909647_2 WHERE year = 2008
What's the average finish in 2008?
CREATE TABLE table_1909647_2 (avg_finish VARCHAR, year VARCHAR)
SELECT team FROM table_name_10 WHERE location = "gomel"
what team scored in gomel
CREATE TABLE table_name_10 (team VARCHAR, location VARCHAR)
SELECT COUNT(represents) FROM table_26301697_2 WHERE contestant = "Clary Sermina Delgado Cid"
Name the total number of represents for clary sermina delgado cid
CREATE TABLE table_26301697_2 (represents VARCHAR, contestant VARCHAR)
SELECT date_of_issue FROM table_name_46 WHERE design = "katalin kovats"
What's the Date of Issue for Design of Katalin Kovats?
CREATE TABLE table_name_46 (date_of_issue VARCHAR, design VARCHAR)
SELECT place FROM table_name_26 WHERE country = "united states" AND player = "fred couples"
What was United States place when the player was Fred Couples?
CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT directed_by FROM table_14889988_1 WHERE production_code = 176252
Who directed the episode with the production code 176252?
CREATE TABLE table_14889988_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT AVG(position) FROM table_name_60 WHERE goals_against > 42 AND club = "burgos cf" AND losses > 14
What is the average position of club burgos cf, which has more than 42 goals against and more than 14 losses?
CREATE TABLE table_name_60 (position INTEGER, losses VARCHAR, goals_against VARCHAR, club VARCHAR)
SELECT america FROM table_22860_1 WHERE atlantic_europe = "Hoxniense"
What is every entry for America when Atlantic Europe is Hoxniense?
CREATE TABLE table_22860_1 (america VARCHAR, atlantic_europe VARCHAR)
SELECT replaced_by FROM table_name_10 WHERE team = "milton keynes dons"
who is the replacement when the team is milton keynes dons?
CREATE TABLE table_name_10 (replaced_by VARCHAR, team VARCHAR)
SELECT iwork_version FROM table_name_44 WHERE release_date = "october 22, 2013" AND pages_version > 2
What version of iWork was released on October 22, 2013 with a pages version greater than 2?
CREATE TABLE table_name_44 (iwork_version VARCHAR, release_date VARCHAR, pages_version VARCHAR)
SELECT final_score FROM table_name_74 WHERE stadium = "astrodome"
What was the final score of the game at the astrodome?
CREATE TABLE table_name_74 (final_score VARCHAR, stadium VARCHAR)