answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
What is the product with the highest height? Give me the catalog entry name.
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR, height VARCHAR)
SELECT home FROM table_name_50 WHERE record = "2-4"
Who was the home team in the game with a record of 2-4?
CREATE TABLE table_name_50 (home VARCHAR, record VARCHAR)
SELECT location FROM table_name_67 WHERE result = "l 31-52"
Which Location has a result of L 31-52?
CREATE TABLE table_name_67 (location VARCHAR, result VARCHAR)
SELECT season FROM table_name_33 WHERE runs = "577"
In what season was 577 runs scored?
CREATE TABLE table_name_33 (season VARCHAR, runs VARCHAR)
SELECT opponent FROM table_name_64 WHERE time = "20:00 gmt" AND ground = "camp nou"
Who is the Opponent playing at 20:00 GMT at Camp Nou?
CREATE TABLE table_name_64 (opponent VARCHAR, time VARCHAR, ground VARCHAR)
SELECT COUNT(total) FROM table_19312274_2 WHERE last_current_driver_s_ = "Narain Karthikeyan ( 2010 )"
how many total where last/current driver(s) is narain karthikeyan ( 2010 )
CREATE TABLE table_19312274_2 (total VARCHAR, last_current_driver_s_ VARCHAR)
SELECT MIN(attendance) FROM table_17360840_4 WHERE record = "0-2-1"
What is the minimum attendance on games of record 0-2-1
CREATE TABLE table_17360840_4 (attendance INTEGER, record VARCHAR)
SELECT SUM(attendance) FROM table_name_56 WHERE date = "november 29, 1953"
What was the Attendance on November 29, 1953?
CREATE TABLE table_name_56 (attendance INTEGER, date VARCHAR)
SELECT SUM(total_assists) FROM table_name_11 WHERE ast_avg > 6 AND games < 55
What is the total number of assists for players with under 55 games and over 6 assists per game average?
CREATE TABLE table_name_11 (total_assists INTEGER, ast_avg VARCHAR, games VARCHAR)
SELECT COUNT(production_code) FROM table_28037619_2 WHERE us_viewers__million_ = "4.36"
How many production codes are there for the episode that had 4.36 million u.s. viewers?
CREATE TABLE table_28037619_2 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT round FROM table_name_34 WHERE competition = "uefa cup" AND series = "5–2"
Which Round has a Competition of uefa cup, and a Series of 5–2?
CREATE TABLE table_name_34 (round VARCHAR, competition VARCHAR, series VARCHAR)
SELECT player FROM table_name_84 WHERE jersey_number_s_ = "31"
Who has a Jersey number of 31?
CREATE TABLE table_name_84 (player VARCHAR, jersey_number_s_ VARCHAR)
SELECT player FROM table_name_41 WHERE school_club_team = "dartmouth"
Which player is from Dartmouth?
CREATE TABLE table_name_41 (player VARCHAR, school_club_team VARCHAR)
SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = "Heilo" AND T2.title = "Der Kapitan"
Which vocal type did the musician with last name "Heilo" played in the song with title "Der Kapitan"?
CREATE TABLE band (id VARCHAR, lastname VARCHAR); CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR)
SELECT AVG(floors) FROM table_name_40 WHERE city = "mecca" AND rank < 12
What is the average number of floors for buildings in mecca ranked above 12?
CREATE TABLE table_name_40 (floors INTEGER, city VARCHAR, rank VARCHAR)
SELECT to_par FROM table_name_70 WHERE score = 68 - 74 - 69 = 211
What was the to par that goes with the score 68-74-69=211?
CREATE TABLE table_name_70 (to_par VARCHAR, score VARCHAR)
SELECT AVG(bronze) FROM table_name_75 WHERE gold > 0 AND nation = "greece" AND silver < 0
what is the average bronze when gold is more than 0, the nation is greece and silver is less than 0?
CREATE TABLE table_name_75 (bronze INTEGER, silver VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT tyre FROM table_name_91 WHERE rounds = "1" AND driver = "dave charlton"
What tyre has 1 round with Dave Charlton driving?
CREATE TABLE table_name_91 (tyre VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT term_in_office FROM table_name_27 WHERE party = "liberal" AND state = "sa" AND member = "ian mclachlan"
Name the term in office for liberal and state of sa for ian mclachlan
CREATE TABLE table_name_27 (term_in_office VARCHAR, member VARCHAR, party VARCHAR, state VARCHAR)
SELECT outcome FROM table_name_27 WHERE surface = "carpet"
What is the outcome of the match played on carpet surface?
CREATE TABLE table_name_27 (outcome VARCHAR, surface VARCHAR)
SELECT SUM(gold) FROM table_name_49 WHERE nation = "south korea"
How much gold did South Korea get?
CREATE TABLE table_name_49 (gold INTEGER, nation VARCHAR)
SELECT played FROM table_13564637_4 WHERE points_against = "321"
What is the played total when the points against was 321?
CREATE TABLE table_13564637_4 (played VARCHAR, points_against VARCHAR)
SELECT hometown FROM table_11677691_6 WHERE school = "Lincoln High school"
Where is lincoln high school located?
CREATE TABLE table_11677691_6 (hometown VARCHAR, school VARCHAR)
SELECT season FROM table_20217456_7 WHERE rl_süd__1st_ = "SV Darmstadt 98"
What season did SV Darmstadt 98 end up at RL Süd (1st)?
CREATE TABLE table_20217456_7 (season VARCHAR, rl_süd__1st_ VARCHAR)
SELECT MAX(group_equity_shareholding) FROM operate_company
What is maximum group equity shareholding of the companies?
CREATE TABLE operate_company (group_equity_shareholding INTEGER)
SELECT player FROM table_name_96 WHERE round = 6
What player was selected in Round 6?
CREATE TABLE table_name_96 (player VARCHAR, round VARCHAR)
SELECT outgoing_manager FROM table_name_64 WHERE replaced_by = "jürgen klopp"
Who is the outgoing manager who was replaced by jürgen klopp?
CREATE TABLE table_name_64 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT MIN(attendance) FROM table_name_34 WHERE time = "2:13"
What was the Attendance when the Time was 2:13?
CREATE TABLE table_name_34 (attendance INTEGER, time VARCHAR)
SELECT first_elected FROM table_name_52 WHERE results = "re-elected" AND party = "democratic"
In what year did the Democratic incumbent that was re-elected first take office?
CREATE TABLE table_name_52 (first_elected VARCHAR, results VARCHAR, party VARCHAR)
SELECT cfl_team FROM table_name_73 WHERE college = "south carolina"
Which team picked a player(s) from South Carolina?
CREATE TABLE table_name_73 (cfl_team VARCHAR, college VARCHAR)
SELECT MIN(year) FROM table_name_83 WHERE venue = "athens, greece"
What is the lowest year that has athens, greece as the venue?
CREATE TABLE table_name_83 (year INTEGER, venue VARCHAR)
SELECT pro_stock FROM table_name_83 WHERE top_fuel = "tony schumacher" AND funny_car = "tony pedregon"
Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon won Funny Car?
CREATE TABLE table_name_83 (pro_stock VARCHAR, top_fuel VARCHAR, funny_car VARCHAR)
SELECT COUNT(record) FROM table_20010140_10 WHERE date = "February 22"
how many records were made on february 22
CREATE TABLE table_20010140_10 (record VARCHAR, date VARCHAR)
SELECT score FROM table_name_2 WHERE money___$__ = "32,200" AND player = "chip beck"
What is Score, when Money ( $ ) is 32,200, and when Player is Chip Beck?
CREATE TABLE table_name_2 (score VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT d_42_√ FROM table_name_77 WHERE d_46_√ = "r 6"
What is the D 42 √ figure when D 46 √ is r 6?
CREATE TABLE table_name_77 (d_42_√ VARCHAR, d_46_√ VARCHAR)
SELECT date_released FROM table_1463383_1 WHERE green_communist = "8.9%"
When was there 8.9% Green-Communist?
CREATE TABLE table_1463383_1 (date_released VARCHAR, green_communist VARCHAR)
SELECT place FROM table_name_82 WHERE country = "united states" AND player = "calvin peete"
Where did Calvin Peete of the United States place?
CREATE TABLE table_name_82 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_72 WHERE player = "mathew goggin"
what is the to par for mathew goggin?
CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR)
SELECT date FROM table_name_88 WHERE score = "3-0" AND year = 2011
What day was the score 3-0 after 2011?
CREATE TABLE table_name_88 (date VARCHAR, score VARCHAR, year VARCHAR)
SELECT team FROM table_name_29 WHERE location_attendance = "energysolutions arena 19,911"
Who was the team that played at Energysolutions Arena 19,911?
CREATE TABLE table_name_29 (team VARCHAR, location_attendance VARCHAR)
SELECT tournament FROM table_name_48 WHERE 2001 = "1r"
What is Tournament, when 2001 is "1R"?
CREATE TABLE table_name_48 (tournament VARCHAR)
SELECT MIN(field_goals__4_points_) FROM table_25711913_14
What is the least number of field goals scored by a player?
CREATE TABLE table_25711913_14 (field_goals__4_points_ INTEGER)
SELECT number FROM table_15463188_16 WHERE acquisition_via = "Far Eastern"
Name the number when acquisition via far eastern
CREATE TABLE table_15463188_16 (number VARCHAR, acquisition_via VARCHAR)
SELECT AVG(year) FROM table_name_17 WHERE title_of_work = "saber" AND category = "best action"
What year was The Saber nominated for best action?
CREATE TABLE table_name_17 (year INTEGER, title_of_work VARCHAR, category VARCHAR)
SELECT COUNT(south_asians_2011) FROM table_name_19 WHERE province = "quebec" AND south_asians_2001 < 59 OFFSET 510
How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?
CREATE TABLE table_name_19 (south_asians_2011 VARCHAR, province VARCHAR, south_asians_2001 VARCHAR)
SELECT date_opened FROM table_1817879_2 WHERE segment_description = "Red Line MOS-2 North"
What date of segment description red line mos-2 north open?
CREATE TABLE table_1817879_2 (date_opened VARCHAR, segment_description VARCHAR)
SELECT frequency FROM table_name_49 WHERE owner = "canadian broadcasting corporation" AND branding = "cbc radio one"
What is the frequency of the station owned by the Canadian Broadcasting Corporation and branded as CBC Radio One?
CREATE TABLE table_name_49 (frequency VARCHAR, owner VARCHAR, branding VARCHAR)
SELECT MAX(base_pairs) FROM table_name_2 WHERE strain = "unspecified"
What is the largest base pair with a Strain of unspecified?
CREATE TABLE table_name_2 (base_pairs INTEGER, strain VARCHAR)
SELECT COUNT(*) FROM phone WHERE Company_name = "Nokia Corporation"
How many phone hardware models are produced by the company named "Nokia Corporation"?
CREATE TABLE phone (Company_name VARCHAR)
SELECT reason FROM table_name_95 WHERE venue = "belk gymnasium"
Why did the Belk Gymnasium close?
CREATE TABLE table_name_95 (reason VARCHAR, venue VARCHAR)
SELECT SUM(attendance) FROM table_name_23 WHERE home = "calgary"
What's the sum of the attendance for the calgary home team?
CREATE TABLE table_name_23 (attendance INTEGER, home VARCHAR)
SELECT player FROM table_name_67 WHERE country = "united states" AND to_par = "+4" AND score = 71 - 77 = 148
What United States Player has a To par of +4 and a Score of 71-77=148?
CREATE TABLE table_name_67 (player VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT player FROM table_name_21 WHERE year_s__won = "1993"
Which player won in 1993?
CREATE TABLE table_name_21 (player VARCHAR, year_s__won VARCHAR)
SELECT average FROM table_28797906_3 WHERE wickets = 27
What is the average of all the wickets that were 27?
CREATE TABLE table_28797906_3 (average VARCHAR, wickets VARCHAR)
SELECT title FROM table_27115960_1 WHERE written_by = "Phil Klemmer" AND production_code = "3T6455"
Phil Klemmer wrote all titles and production code is 3t6455.
CREATE TABLE table_27115960_1 (title VARCHAR, written_by VARCHAR, production_code VARCHAR)
SELECT COUNT(gold) FROM table_name_46 WHERE rank = "6" AND bronze > 0
Gold that has a Rank of 6, and a Bronze larger than 0 had what total number of gold?
CREATE TABLE table_name_46 (gold VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT claimed_sales FROM table_name_85 WHERE genre = "rock"
What is the number of claimed sales in the rock genre?
CREATE TABLE table_name_85 (claimed_sales VARCHAR, genre VARCHAR)
SELECT type FROM table_name_70 WHERE date = "1 june"
What type has a date of 1 june?
CREATE TABLE table_name_70 (type VARCHAR, date VARCHAR)
SELECT latitude FROM table_name_18 WHERE land___sqmi__ < 34.401 AND geo_id < 3807157722 AND longitude = -98.475995
What is the latitude that has a sqmi smaller than 34.401, a Geo ID smaller than 3807157722, and a Longitude of -98.475995?
CREATE TABLE table_name_18 (latitude VARCHAR, longitude VARCHAR, land___sqmi__ VARCHAR, geo_id VARCHAR)
SELECT student_body FROM table_name_27 WHERE affiliation = "roman catholic" AND enrollment = 502
What's the Student Body with an Affiliation of Roman Catholic and has an Enrollment of 502?
CREATE TABLE table_name_27 (student_body VARCHAR, affiliation VARCHAR, enrollment VARCHAR)
SELECT transfer_window FROM table_name_15 WHERE name = "giuly"
Name the transfer wind for giuly
CREATE TABLE table_name_15 (transfer_window VARCHAR, name VARCHAR)
SELECT tournament FROM table_name_60 WHERE surface = "hard" AND finalist = "monica seles"
Where was the tournament where monica seles was the finalist who played on a hard surface?
CREATE TABLE table_name_60 (tournament VARCHAR, surface VARCHAR, finalist VARCHAR)
SELECT course_description FROM COURSES WHERE course_name = "database"
What are the descriptions of the courses with name "database"?
CREATE TABLE COURSES (course_description VARCHAR, course_name VARCHAR)
SELECT division_east FROM table_17881033_1 WHERE division_north = "Milano"
what is the division east when division north was milano
CREATE TABLE table_17881033_1 (division_east VARCHAR, division_north VARCHAR)
SELECT MIN(enrollment) FROM table_1974443_1 WHERE founded = 1880
What is the smallest enrollment for institutions founded in exactly 1880?
CREATE TABLE table_1974443_1 (enrollment INTEGER, founded VARCHAR)
SELECT MAX(silver) FROM table_name_50 WHERE gold = 0 AND nation = "soviet union"
what is the highest amount of silver when gold is 0 for soviet union?
CREATE TABLE table_name_50 (silver INTEGER, gold VARCHAR, nation VARCHAR)
SELECT MAX(wins) FROM table_name_61 WHERE against = 1940 AND byes > 0
Which Wins has an Against of 1940, and a Byes larger than 0?
CREATE TABLE table_name_61 (wins INTEGER, against VARCHAR, byes VARCHAR)
SELECT role FROM table_name_4 WHERE pick__number = 18
What is Pick #18's Role?
CREATE TABLE table_name_4 (role VARCHAR, pick__number VARCHAR)
SELECT date FROM table_name_25 WHERE result = "draw" AND venue = "antigua recreation ground"
On what dates did the draw at the Antigua Recreation Ground happen?
CREATE TABLE table_name_25 (date VARCHAR, result VARCHAR, venue VARCHAR)
SELECT MAX(bronze) FROM table_name_70 WHERE gold = 0 AND total > 0 AND silver > 1
Gold of 0, and a Total larger than 0, and a Silver larger than 1 and what is the highest bronze?
CREATE TABLE table_name_70 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT join_date FROM table_26466528_1 WHERE location = "North Canton"
Name when north canton joined
CREATE TABLE table_26466528_1 (join_date VARCHAR, location VARCHAR)
SELECT economy FROM table_28797906_3 WHERE wickets = 29
When the number of wickets is 29, what was the economy?
CREATE TABLE table_28797906_3 (economy VARCHAR, wickets VARCHAR)
SELECT date FROM table_name_14 WHERE home_team = "tranmere rovers"
Name the Home team of tranmere rovers?
CREATE TABLE table_name_14 (date VARCHAR, home_team VARCHAR)
SELECT high_assists FROM table_23285761_7 WHERE high_rebounds = "Amar'e Stoudemire (10)"
Who did the high assists in the game where Amar'e Stoudemire (10) did the high rebounds?
CREATE TABLE table_23285761_7 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(*), rank FROM captain GROUP BY rank
How many captains are in each rank?
CREATE TABLE captain (rank VARCHAR)
SELECT brand FROM table_name_95 WHERE model = "rw-2100"
What brand is the RW-2100 model?
CREATE TABLE table_name_95 (brand VARCHAR, model VARCHAR)
SELECT player FROM table_28498999_6 WHERE points = 2343
what is the person there the numbers is 2343
CREATE TABLE table_28498999_6 (player VARCHAR, points VARCHAR)
SELECT segment_d FROM table_15187735_13 WHERE segment_a = "Bowling Balls"
Name the segment d for bowling balls
CREATE TABLE table_15187735_13 (segment_d VARCHAR, segment_a VARCHAR)
SELECT MAX(top_5) FROM table_name_40 WHERE cuts_made > 39
what is the highest top-5 when cuts made is more than 39?
CREATE TABLE table_name_40 (top_5 INTEGER, cuts_made INTEGER)
SELECT 2009 FROM table_name_94 WHERE 2007 = "a" AND tournament = "us open"
What is the 2009 entry for the row that has a 2007 entry of A and a tournament entry of US Open?
CREATE TABLE table_name_94 (tournament VARCHAR)
SELECT agg FROM table_name_42 WHERE team_2 = "mukungwa"
What is Agg., when Team 2 is Mukungwa?
CREATE TABLE table_name_42 (agg VARCHAR, team_2 VARCHAR)
SELECT location FROM table_name_76 WHERE runner_s__up = "betsy rawls"
Where is runner-up Betsy Rawls from?
CREATE TABLE table_name_76 (location VARCHAR, runner_s__up VARCHAR)
SELECT position FROM table_name_35 WHERE mls_team = "colorado rapids" AND pick__number > 15
What position does the Colorado Rapids pick after 15 play?
CREATE TABLE table_name_35 (position VARCHAR, mls_team VARCHAR, pick__number VARCHAR)
SELECT surface FROM table_23944006_4 WHERE opponents = "Cara Black Rennae Stubbs"
Name the surface for cara black rennae stubbs
CREATE TABLE table_23944006_4 (surface VARCHAR, opponents VARCHAR)
SELECT COUNT(location) FROM table_11603006_1 WHERE score = "207 (-10)"
How many different locations have the score 207 (-10)?
CREATE TABLE table_11603006_1 (location VARCHAR, score VARCHAR)
SELECT home_team FROM table_name_93 WHERE venue = "mcg"
Which home team played at MCG?
CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR)
SELECT MAX(number_of_people_1991) FROM table_name_67 WHERE percent_of_slovenes_1991 = "14.4%"
Which Number of people 1991 has a Percent of Slovenes 1991 of 14.4%?
CREATE TABLE table_name_67 (number_of_people_1991 INTEGER, percent_of_slovenes_1991 VARCHAR)
SELECT MAX(points) FROM table_27539272_5
what is the maximum number of points?
CREATE TABLE table_27539272_5 (points INTEGER)
SELECT format FROM table_name_61 WHERE catalog = "11 135"
What shows as the format for catalog 11 135?
CREATE TABLE table_name_61 (format VARCHAR, catalog VARCHAR)
SELECT result FROM table_name_58 WHERE date = "october 8, 1985"
What was the result on October 8, 1985?
CREATE TABLE table_name_58 (result VARCHAR, date VARCHAR)
SELECT record FROM table_name_56 WHERE score = "111-96"
What record has a score of 111-96?
CREATE TABLE table_name_56 (record VARCHAR, score VARCHAR)
SELECT party FROM table_name_50 WHERE results = "re-elected" AND first_elected = 2000
What party is the person who was first elected in 2000 and was re-elected?
CREATE TABLE table_name_50 (party VARCHAR, results VARCHAR, first_elected VARCHAR)
SELECT MIN(round3) FROM table_name_73 WHERE round4 = 37
what is the lowest round3 when round4 is 37?
CREATE TABLE table_name_73 (round3 INTEGER, round4 VARCHAR)
SELECT decision FROM table_name_10 WHERE record = "31-43-2"
For the game ending with a record of 31-43-2, what was the decision?
CREATE TABLE table_name_10 (decision VARCHAR, record VARCHAR)
SELECT antonio_thomas FROM table_name_24 WHERE hikaru_sato = "tanaka (8:09)"
Name the antonio thomas for Hikaru Sato of tanaka (8:09)
CREATE TABLE table_name_24 (antonio_thomas VARCHAR, hikaru_sato VARCHAR)
SELECT club_team FROM table_name_37 WHERE nationality = "canada" AND overall = "15"
What is the Overall of 15 Club team with a Nationality of Canada?
CREATE TABLE table_name_37 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR)
SELECT position FROM table_name_80 WHERE pick__number < 16 AND name = "tommy nobis"
What is Tommy Nobis' position that has fewer than 16 picks?
CREATE TABLE table_name_80 (position VARCHAR, pick__number VARCHAR, name VARCHAR)
SELECT AVG(grid) FROM table_name_99 WHERE laps < 11 AND time_retired = "accident"
Which grid has less than 11 laps, and a Time/Retired of accident?
CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, time_retired VARCHAR)
SELECT incumbent FROM table_1342013_41 WHERE candidates = "Percy Priest (D) 90.8% Robert M. Donihi (R) 9.2%"
Who is the incumbent candidate in the election of percy priest (d) 90.8% robert m. donihi (r) 9.2%?
CREATE TABLE table_1342013_41 (incumbent VARCHAR, candidates VARCHAR)
SELECT event FROM table_name_29 WHERE winning_driver = "laurent aiello laurent aiello" AND round > 1 AND circuit = "wunstorf"
What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"?
CREATE TABLE table_name_29 (event VARCHAR, circuit VARCHAR, winning_driver VARCHAR, round VARCHAR)