answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT title FROM table_name_56 WHERE riaa = "gold"
What is the title of the album that had a RIAA of gold?
CREATE TABLE table_name_56 (title VARCHAR, riaa VARCHAR)
SELECT COUNT(points) FROM table_name_95 WHERE drawn < 2 AND team = "paulistano" AND against < 15
What number of Points are shown for Team Paulistano where the Drawn is less than 2 and the Against is less than 15?
CREATE TABLE table_name_95 (points VARCHAR, against VARCHAR, drawn VARCHAR, team VARCHAR)
SELECT nickname FROM table_1974545_2 WHERE institution = "Westfield State University"
What's the nickname of Westfield State University's students?
CREATE TABLE table_1974545_2 (nickname VARCHAR, institution VARCHAR)
SELECT visitor FROM table_name_78 WHERE score = "136–120"
Who was the visitor when the score was 136–120?
CREATE TABLE table_name_78 (visitor VARCHAR, score VARCHAR)
SELECT gender FROM table_2933761_1 WHERE name = "Quentin"
What gender is Quentin?
CREATE TABLE table_2933761_1 (gender VARCHAR, name VARCHAR)
SELECT SUM(t__µm_) FROM table_name_26 WHERE technology = "mj"
What is the sum of t (µm), when Technology is MJ?
CREATE TABLE table_name_26 (t__µm_ INTEGER, technology VARCHAR)
SELECT club FROM table_name_95 WHERE home_ground = "n/a"
Which club, had a home ground of n/a?
CREATE TABLE table_name_95 (club VARCHAR, home_ground VARCHAR)
SELECT high_assists FROM table_17325937_5 WHERE date = "November 14"
What was the high assists on November 14?
CREATE TABLE table_17325937_5 (high_assists VARCHAR, date VARCHAR)
SELECT nation FROM table_name_22 WHERE places = 122.5
What Nation Placed 122.5?
CREATE TABLE table_name_22 (nation VARCHAR, places VARCHAR)
SELECT tonnage FROM table_name_91 WHERE date = "12 september 1942"
What was the tonnage on 12 september 1942?
CREATE TABLE table_name_91 (tonnage VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
How many employees have salary between 100000 and 200000?
CREATE TABLE Employee (salary INTEGER)
SELECT district FROM table_23214055_2 WHERE nairs = "8.2"
Name the district for nairs 8.2
CREATE TABLE table_23214055_2 (district VARCHAR, nairs VARCHAR)
SELECT award FROM table_name_35 WHERE category = "best actor" AND year < 1988
What is Award, when Category is "Best Actor", and when Year is less than 1988?
CREATE TABLE table_name_35 (award VARCHAR, category VARCHAR, year VARCHAR)
SELECT MAX(swimsuit) FROM table_name_1 WHERE interview < 8.46
Name the most swimsuit for interview less than 8.46
CREATE TABLE table_name_1 (swimsuit INTEGER, interview INTEGER)
SELECT high_points FROM table_17288869_7 WHERE high_rebounds = "Dirk Nowitzki (13)"
Who had the high points while Dirk Nowitzki (13) had the high rebounds?
CREATE TABLE table_17288869_7 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(walker__percentage) FROM table_21046399_3 WHERE county = "Kenosha"
How many figures are given for Walker's percentage in Kenosha county?
CREATE TABLE table_21046399_3 (walker__percentage VARCHAR, county VARCHAR)
SELECT country FROM table_29302711_13 WHERE prize_money__usd_ = 66400
What country offered a prize of 66400 US dollars?
CREATE TABLE table_29302711_13 (country VARCHAR, prize_money__usd_ VARCHAR)
SELECT year FROM table_name_57 WHERE "label" = "label"
Which year's label was label?
CREATE TABLE table_name_57 (year VARCHAR)
SELECT MIN(loser_rank) FROM matches
Find the highest rank of losers in all matches.
CREATE TABLE matches (loser_rank INTEGER)
SELECT february FROM table_name_46 WHERE record = "21-29-11"
What is February, when Record is "21-29-11"?
CREATE TABLE table_name_46 (february VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_12 WHERE method = "ko" AND record = "6-0"
What opponent used the Ko method, and a 6-0 record?
CREATE TABLE table_name_12 (opponent VARCHAR, method VARCHAR, record VARCHAR)
SELECT pick FROM table_name_42 WHERE player = "mark hayes"
What was the pick number when mark hayes was drafted?
CREATE TABLE table_name_42 (pick VARCHAR, player VARCHAR)
SELECT tv_time FROM table_name_33 WHERE week > 15 AND opponent = "oakland raiders"
WHAT IS THE TV TIME WOTH A WEEK BIGGER THAN 15, WITH THE OAKLAND RAIDERS AS OPPONENT?
CREATE TABLE table_name_33 (tv_time VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT 2004 FROM table_name_60 WHERE 1994 = "2r"
What is the 2004 value with 2r in 1994?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT del_pueblo FROM table_15977768_1 WHERE centennial = "Red/black"
Name the del pueblo for red/black
CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR)
SELECT pennant_number FROM table_name_20 WHERE current_status = "retired"
what builder is now retired
CREATE TABLE table_name_20 (pennant_number VARCHAR, current_status VARCHAR)
SELECT SUM(track) FROM table_name_99 WHERE song_title = "raised on rock"
I want the sum of tracks for raised on rock
CREATE TABLE table_name_99 (track INTEGER, song_title VARCHAR)
SELECT date FROM table_name_93 WHERE tie_no = "13"
On what date was Tie #13 played?
CREATE TABLE table_name_93 (date VARCHAR, tie_no VARCHAR)
SELECT AVG(bronze) FROM table_name_80 WHERE silver = 0 AND rank = "17" AND gold < 1
What average bronze has 0 as the silver, 17 as the rank, and a gold less than 1?
CREATE TABLE table_name_80 (bronze INTEGER, gold VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT COUNT(week) FROM table_name_94 WHERE opponent = "san diego chargers"
What week was the opponent the San Diego Chargers?
CREATE TABLE table_name_94 (week VARCHAR, opponent VARCHAR)
SELECT d_45_o FROM table_name_60 WHERE d_41_√ = "r 41 √"
What is the value of D 45 O, when the value of D 41 √ is r 41 √?
CREATE TABLE table_name_60 (d_45_o VARCHAR, d_41_√ VARCHAR)
SELECT score FROM table_name_24 WHERE home_team = "townsville crocodiles"
Can you tell me the Score that has the Home team of townsville crocodiles?
CREATE TABLE table_name_24 (score VARCHAR, home_team VARCHAR)
SELECT COUNT(january) FROM table_name_83 WHERE opponent = "st. louis blues" AND game < 42
What is the total number in January when the St. Louis Blues had a game smaller than 42?
CREATE TABLE table_name_83 (january VARCHAR, opponent VARCHAR, game VARCHAR)
SELECT electrics FROM table_name_28 WHERE engine = "175cc, bhp (kw)" AND model_name = "d10 sports & bushman"
Which Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports & bushman?
CREATE TABLE table_name_28 (electrics VARCHAR, engine VARCHAR, model_name VARCHAR)
SELECT 1 AS st_leg FROM table_name_33 WHERE aggregate = "4-2"
What was the 1st leg that had a 4-2 aggregate?
CREATE TABLE table_name_33 (aggregate VARCHAR)
SELECT tournament FROM table_name_18 WHERE winning_score = −14(65 - 69 - 72 - 68 = 274)
Which Tournament has a Winning score of −14 (65-69-72-68=274)?
CREATE TABLE table_name_18 (tournament VARCHAR, winning_score VARCHAR)
SELECT AVG(pages) FROM table_name_77 WHERE isbn = "978-0-9766580-5-4"
I want the average pages for ISBN of 978-0-9766580-5-4
CREATE TABLE table_name_77 (pages INTEGER, isbn VARCHAR)
SELECT player FROM table_name_51 WHERE wins = 3 AND rank > 3
What player has 3 wins and ranks above 3rd?
CREATE TABLE table_name_51 (player VARCHAR, wins VARCHAR, rank VARCHAR)
SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "River Plate"
For home of River Plate, what is the first leg listed?
CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR)
SELECT website FROM table_name_55 WHERE license = "apache license 2.0"
What is Website, when License is Apache License 2.0?
CREATE TABLE table_name_55 (website VARCHAR, license VARCHAR)
SELECT score FROM table_name_73 WHERE visitor = "columbus"
Name the score for columbus visitor
CREATE TABLE table_name_73 (score VARCHAR, visitor VARCHAR)
SELECT 2005 AS _2006_team FROM table_name_89 WHERE name = "phil kessel"
What is the 2005-2006 team for player Phil Kessel?
CREATE TABLE table_name_89 (name VARCHAR)
SELECT second FROM table_name_2 WHERE lead = "ilian kirilov"
Who was the second when Ilian Kirilov was the lead?
CREATE TABLE table_name_2 (second VARCHAR, lead VARCHAR)
SELECT home_captain FROM table_name_89 WHERE date = "23,24,25,26 july 1992"
Who is the Home Captain for 23,24,25,26 july 1992?
CREATE TABLE table_name_89 (home_captain VARCHAR, date VARCHAR)
SELECT international_tourist_arrivals__2012_ FROM table_29789_1 WHERE country = "Russia"
How many international tourists visited Russia in 2012?
CREATE TABLE table_29789_1 (international_tourist_arrivals__2012_ VARCHAR, country VARCHAR)
SELECT built FROM table_12113888_1 WHERE number = 34
What is the built data for number 34?
CREATE TABLE table_12113888_1 (built VARCHAR, number VARCHAR)
SELECT COUNT(power_kw) FROM table_23915973_1 WHERE frequency = "93.7 MHz"
How many power kw have a frequency of 93.7 mhz?
CREATE TABLE table_23915973_1 (power_kw VARCHAR, frequency VARCHAR)
SELECT chassis FROM table_name_30 WHERE driver = "ricardo zonta"
What kind of chassis does Ricardo Zonta have?
CREATE TABLE table_name_30 (chassis VARCHAR, driver VARCHAR)
SELECT AVG(people_on_board) FROM table_name_48 WHERE airline = "iberia" AND aircraft_type = "lockheed l-1049g"
What is the number of people on board at Iberia Airline, with the aircraft type of lockheed l-1049g?
CREATE TABLE table_name_48 (people_on_board INTEGER, airline VARCHAR, aircraft_type VARCHAR)
SELECT name FROM races ORDER BY date DESC LIMIT 1
What is the name of the race held most recently?
CREATE TABLE races (name VARCHAR, date VARCHAR)
SELECT COUNT(grid) FROM table_name_78 WHERE laps > 24
What is the total number of Grid, when Laps is greater than 24?
CREATE TABLE table_name_78 (grid VARCHAR, laps INTEGER)
SELECT outgoing_manager FROM table_27225944_3 WHERE manner_of_departure = "Mutual consent" AND position_in_table = "16th"
Name the outgoing manager for mutual consent and position 16th
CREATE TABLE table_27225944_3 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.14"
If the amount of U.S. viewers is 2.14 million, who was the episode directed by?
CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT 2003 FROM table_name_37 WHERE 2005 = "did not qualify"
what is 2003 when 2005 is did not qualify?
CREATE TABLE table_name_37 (Id VARCHAR)
SELECT date FROM table_name_1 WHERE source = "suffolk university" AND murray = "11%"
What is the date of the poll where Murray had 11% from the Suffolk University source?
CREATE TABLE table_name_1 (date VARCHAR, source VARCHAR, murray VARCHAR)
SELECT country FROM table_name_12 WHERE to_par = "+1" AND score = 74 - 70 - 70 = 214
What is the Country of the Player with a To par of +1 and a Score of 74-70-70=214?
CREATE TABLE table_name_12 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT best_fit__wmap, _extra_parameter_ FROM table_name_92 WHERE best_fit__all_data_ = ".0224 ± .0009"
What is the best fit (WMAP, extra parameter)when the best fit (all data) is .0224 ± .0009?
CREATE TABLE table_name_92 (best_fit__wmap VARCHAR, _extra_parameter_ VARCHAR, best_fit__all_data_ VARCHAR)
SELECT week FROM table_name_89 WHERE attendance = "39,056"
Which week had 39,056 people in attendance?
CREATE TABLE table_name_89 (week VARCHAR, attendance VARCHAR)
SELECT MIN(decile) FROM table_name_52 WHERE area = "matakohe" AND roll > 86
Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86?
CREATE TABLE table_name_52 (decile INTEGER, area VARCHAR, roll VARCHAR)
SELECT type FROM table_name_38 WHERE satellite = "gps iif-10"
What is the type of the gps iif-10 satellite?
CREATE TABLE table_name_38 (type VARCHAR, satellite VARCHAR)
SELECT candidates FROM table_2668254_8 WHERE district = "Kentucky 5"
Who were the candidates in the Kentucky 5 district?
CREATE TABLE table_2668254_8 (candidates VARCHAR, district VARCHAR)
SELECT COUNT(inaug) FROM table_name_96 WHERE type = "public" AND name = "mei lam estate" AND no_units > 4 OFFSET 156
What is the number of Inaug., when the Type is Public, when the Name is Mei Lam Estate, and when the No Units is larger than 4,156?
CREATE TABLE table_name_96 (inaug VARCHAR, no_units VARCHAR, type VARCHAR, name VARCHAR)
SELECT MIN(number_of_dances) FROM table_name_93 WHERE rank_by_average > 4 AND place = 8
What is the lowest number of dances with a rank larger than 4 and a place of 8?
CREATE TABLE table_name_93 (number_of_dances INTEGER, rank_by_average VARCHAR, place VARCHAR)
SELECT runner_up FROM table_name_14 WHERE score = "4 & 3" AND winner = "michael bonallack"
What runner-up has 4 & 3 as the score, with michael bonallack as the winner?
CREATE TABLE table_name_14 (runner_up VARCHAR, score VARCHAR, winner VARCHAR)
SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "rem" EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "aut"
Find the first and last name of the staff members who reported problems from the product "rem" but not "aut"?
CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_first_name VARCHAR, staff_last_name VARCHAR, staff_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)
SELECT term_ended FROM table_1602620_1 WHERE elected = 1984
What year did the term end for the office elected in 1984
CREATE TABLE table_1602620_1 (term_ended VARCHAR, elected VARCHAR)
SELECT mission FROM table_name_8 WHERE name = "david scott"
David Scott went on which mission?
CREATE TABLE table_name_8 (mission VARCHAR, name VARCHAR)
SELECT introduced FROM table_name_64 WHERE type = "electro-diesel locomotive"
What is the year of introduction for the Electro-Diesel locomotive?
CREATE TABLE table_name_64 (introduced VARCHAR, type VARCHAR)
SELECT year_startup FROM table_name_89 WHERE operator = "nioc"
What was the startup year for the project with a nioc operator?
CREATE TABLE table_name_89 (year_startup VARCHAR, operator VARCHAR)
SELECT COUNT(enrollment) FROM table_name_74 WHERE _number___county = "49 marion" AND mascot = "warriors"
How many are enrolled at 49 Marion with the Warriors as their mascot?
CREATE TABLE table_name_74 (enrollment VARCHAR, _number___county VARCHAR, mascot VARCHAR)
SELECT MIN(rank) FROM table_name_67 WHERE name = "citigroup"
What is the lowest rank of Citigroup?
CREATE TABLE table_name_67 (rank INTEGER, name VARCHAR)
SELECT label FROM table_name_77 WHERE date = "april 7, 1967"
What is the Label that shows on april 7, 1967?
CREATE TABLE table_name_77 (label VARCHAR, date VARCHAR)
SELECT integrated FROM table_name_11 WHERE allied_related = "centralized"
What integrated has an allied-related of centralized?
CREATE TABLE table_name_11 (integrated VARCHAR, allied_related VARCHAR)
SELECT record FROM table_name_69 WHERE decision = "backstrom" AND date = "november 28"
What was the record for the game on November 28 when the decision was Backstrom?
CREATE TABLE table_name_69 (record VARCHAR, decision VARCHAR, date VARCHAR)
SELECT television_service FROM table_name_49 WHERE content = "general television"
Which Television service has a Content of general television?
CREATE TABLE table_name_49 (television_service VARCHAR, content VARCHAR)
SELECT written_by FROM table_name_4 WHERE production_code = "ad1c05"
Who wrote the episode that has the production code ad1c05?
CREATE TABLE table_name_4 (written_by VARCHAR, production_code VARCHAR)
SELECT report FROM table_name_25 WHERE circuit = "modena"
Tell me the report for circuit of modena
CREATE TABLE table_name_25 (report VARCHAR, circuit VARCHAR)
SELECT player FROM table_name_7 WHERE school = "ul-monroe"
what player went to ul-monroe
CREATE TABLE table_name_7 (player VARCHAR, school VARCHAR)
SELECT serials_issued FROM table_name_39 WHERE design = "yellow on blue" AND issued = 1955
What was the issued serial for yellow on blue design issued in 1955?
CREATE TABLE table_name_39 (serials_issued VARCHAR, design VARCHAR, issued VARCHAR)
SELECT year FROM table_name_44 WHERE production = "wicked" AND award = "green room awards"
During what year was Wicked associated with the Green Room Awards?
CREATE TABLE table_name_44 (year VARCHAR, production VARCHAR, award VARCHAR)
SELECT tonnage___grt__ FROM table_name_11 WHERE fate = "sunk" AND deaths < 17 AND date = "16 november 1940"
Which Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940?
CREATE TABLE table_name_11 (tonnage___grt__ VARCHAR, date VARCHAR, fate VARCHAR, deaths VARCHAR)
SELECT year FROM table_name_87 WHERE venue = "beijing"
Which year was held in beijing?
CREATE TABLE table_name_87 (year VARCHAR, venue VARCHAR)
SELECT record FROM table_name_78 WHERE game = 31
What was the record of the game for game 31?
CREATE TABLE table_name_78 (record VARCHAR, game VARCHAR)
SELECT democrat AS :_carl_levin FROM table_name_88 WHERE lead_margin = 22
What is Democrat: Carl Levin, when Lead Margin is 22?
CREATE TABLE table_name_88 (democrat VARCHAR, lead_margin VARCHAR)
SELECT class FROM table_name_85 WHERE type = "1′c n2t"
Which Class has a Type of 1′c n2t?
CREATE TABLE table_name_85 (class VARCHAR, type VARCHAR)
SELECT COUNT(year) FROM table_name_51 WHERE performer_s_ = "louis armstrong"
How many years was Louis Armstrong performing?
CREATE TABLE table_name_51 (year VARCHAR, performer_s_ VARCHAR)
SELECT location FROM table_1749567_2 WHERE average_climb___percentage_ = 40
Which race had an average climb of 40%?
CREATE TABLE table_1749567_2 (location VARCHAR, average_climb___percentage_ VARCHAR)
SELECT AVG(wins) FROM table_name_80 WHERE team = "great britain"
What are the average wins that have great britain as the team?
CREATE TABLE table_name_80 (wins INTEGER, team VARCHAR)
SELECT MIN(round) FROM table_name_32 WHERE team = "central florida"
What was the earliest Round for Central Florida?
CREATE TABLE table_name_32 (round INTEGER, team VARCHAR)
SELECT date FROM table_name_21 WHERE city = "minneapolis"
What date was the game in Minneapolis?
CREATE TABLE table_name_21 (date VARCHAR, city VARCHAR)
SELECT score FROM table_name_85 WHERE date = "january 18"
What is the score of the game on January 18?
CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR)
SELECT group_7 FROM table_19523142_5 WHERE group_11 = "Persikos Sorong City"
When persikos sorong city played in group 11, who played in group 7?
CREATE TABLE table_19523142_5 (group_7 VARCHAR, group_11 VARCHAR)
SELECT director FROM table_name_94 WHERE title = "fish tales"
Who is the Director of Fish Tales?
CREATE TABLE table_name_94 (director VARCHAR, title VARCHAR)
SELECT language FROM table_name_23 WHERE hdtv = "no" AND package_option = "sky famiglia" AND television_service = "national geographic channel"
What language has NO, as the HDTV, sky famiglia as the package/option, and national geographic channel as the television service?
CREATE TABLE table_name_23 (language VARCHAR, television_service VARCHAR, hdtv VARCHAR, package_option VARCHAR)
SELECT max_memory FROM table_10818465_1 WHERE model = "T5120"
What is the max memory of the t5120 model?
CREATE TABLE table_10818465_1 (max_memory VARCHAR, model VARCHAR)
SELECT english_translation FROM table_name_51 WHERE language = "english" AND draw < 16 AND artist = "aysel and arash"
what is the english translation when the Language is english, Draw is smaller than 16, and the Artist is aysel and arash?
CREATE TABLE table_name_51 (english_translation VARCHAR, artist VARCHAR, language VARCHAR, draw VARCHAR)
SELECT rank FROM table_name_17 WHERE laps > 165 AND finish = "5"
What rank had more than 165 laps and a finish of 5?
CREATE TABLE table_name_17 (rank VARCHAR, laps VARCHAR, finish VARCHAR)
SELECT AVG(l_100km_urban__cold_) FROM table_name_27 WHERE engine_capacity > 1910 AND mpg_us_urban < 25.3 AND mpg_uk_combined > 27.2 AND mpg_uk_urban__cold_ = 22.4
What is the average L/100km urban (cold) for engine capacities over 1910, mpg in the US (urban) under 25.3, mpg in the UK (combined) over 27.2, and mpg in the UK (urban, cold) of 22.4?
CREATE TABLE table_name_27 (l_100km_urban__cold_ INTEGER, mpg_uk_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR, engine_capacity VARCHAR, mpg_us_urban VARCHAR)
SELECT date FROM table_name_56 WHERE away_team = "mansfield town"
What date did the away team Mansfield Town play?
CREATE TABLE table_name_56 (date VARCHAR, away_team VARCHAR)
SELECT MAX(average) FROM table_name_36 WHERE finale > 35 AND hk_viewers = "2.12 million" AND peak > 40
What is the high average that has a Finale larger than 35, a HK viewers of 2.12 million, and a Peak larger than 40?
CREATE TABLE table_name_36 (average INTEGER, peak VARCHAR, finale VARCHAR, hk_viewers VARCHAR)