question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What's the number of the episode seen by 2.24 million people in the US?
CREATE TABLE table_21696800_1 (_number VARCHAR, us_viewers__million_ VARCHAR)
SELECT _number FROM table_21696800_1 WHERE us_viewers__million_ = "2.24"
Which Points difference has Played of 32, and Points for of 840?
CREATE TABLE table_name_23 (points_difference VARCHAR, played VARCHAR, points_for VARCHAR)
SELECT points_difference FROM table_name_23 WHERE played = "32" AND points_for = "840"
What is the name and country for the artist with most number of exhibitions?
CREATE TABLE exhibition (artist_id VARCHAR); CREATE TABLE artist (name VARCHAR, country VARCHAR, artist_id VARCHAR)
SELECT T2.name, T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY COUNT(*) DESC LIMIT 1
When were the Brewers 27-31?
CREATE TABLE table_name_43 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_43 WHERE record = "27-31"
What is the number of the sail with an overall length of 13.68?
CREATE TABLE table_25595107_2 (sail_number VARCHAR, loa__metres_ VARCHAR)
SELECT sail_number FROM table_25595107_2 WHERE loa__metres_ = "13.68"
Which First elected is the highest one that has a Party of dem, and a District larger than 24, and a Home city/town of berlin?
CREATE TABLE table_name_73 (first_elected INTEGER, home_city_town VARCHAR, party VARCHAR, district VARCHAR)
SELECT MAX(first_elected) FROM table_name_73 WHERE party = "dem" AND district > 24 AND home_city_town = "berlin"
When ihaia tainui is the incumbent what is the date?
CREATE TABLE table_28898948_3 (date VARCHAR, incumbent VARCHAR)
SELECT date FROM table_28898948_3 WHERE incumbent = "Ihaia Tainui"
What is the average FA Cup that has gary jones as the player, and an FA trophy greater than 5?
CREATE TABLE table_name_15 (fa_cup INTEGER, player VARCHAR, fa_trophy VARCHAR)
SELECT AVG(fa_cup) FROM table_name_15 WHERE player = "gary jones" AND fa_trophy > 5
What are the titles of segment c when segment d is motorcycle brake locks?
CREATE TABLE table_15187735_21 (segment_c VARCHAR, segment_d VARCHAR)
SELECT segment_c FROM table_15187735_21 WHERE segment_d = "Motorcycle Brake Locks"
What body is at the World Championship for Underwater Target shooting?
CREATE TABLE table_name_12 (body VARCHAR, event_type VARCHAR, sport VARCHAR)
SELECT body FROM table_name_12 WHERE event_type = "world championship" AND sport = "underwater target shooting"
what's the status in the style of ballet/ gymnastics?
CREATE TABLE table_name_73 (status VARCHAR, style VARCHAR)
SELECT status FROM table_name_73 WHERE style = "ballet/ gymnastics"
what's result of first elected being 1980
CREATE TABLE table_1341577_10 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1341577_10 WHERE first_elected = 1980
What is the draw when the losses were more than 8 and less than 2 wins?
CREATE TABLE table_name_73 (draws INTEGER, losses VARCHAR, wins VARCHAR)
SELECT MAX(draws) FROM table_name_73 WHERE losses > 8 AND wins < 2
How many bronze medals for Romania when the silver count is more than 1?
CREATE TABLE table_name_96 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_96 WHERE nation = "romania" AND silver > 1
Which division was the Rampage in when they were in the 2nd round in the Open Cup?
CREATE TABLE table_name_39 (division VARCHAR, open_cup VARCHAR)
SELECT division FROM table_name_39 WHERE open_cup = "2nd round"
What is the home of aggregate's 3-4?
CREATE TABLE table_name_87 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)
SELECT home__2nd_leg_ FROM table_name_87 WHERE aggregate = "3-4"
Who is the lead for the team with Nkeiruka Ezekh as second?
CREATE TABLE table_name_59 (lead VARCHAR, second VARCHAR)
SELECT lead FROM table_name_59 WHERE second = "nkeiruka ezekh"
What is Result, when Original Title is "Qala"?
CREATE TABLE table_name_38 (result VARCHAR, original_title VARCHAR)
SELECT result FROM table_name_38 WHERE original_title = "qala"
What is the name for the entry that has a public of Yes, a personal sites of No, and a team sites of No?
CREATE TABLE table_name_34 (name VARCHAR, team_sites VARCHAR, public VARCHAR, personal_sites VARCHAR)
SELECT name FROM table_name_34 WHERE public = "yes" AND personal_sites = "no" AND team_sites = "no"
Who played against Save Of Ni Fu-Deh?
CREATE TABLE table_name_4 (opponent VARCHAR, save VARCHAR)
SELECT opponent FROM table_name_4 WHERE save = "ni fu-deh"
What first class team does sanath jayasuriya play for?
CREATE TABLE table_name_51 (first_class_team VARCHAR, player VARCHAR)
SELECT first_class_team FROM table_name_51 WHERE player = "sanath jayasuriya"
what is the date when the round is sf?
CREATE TABLE table_name_52 (date VARCHAR, round VARCHAR)
SELECT date FROM table_name_52 WHERE round = "sf"
What is the team name that as games of 7?
CREATE TABLE table_name_32 (team VARCHAR, games VARCHAR)
SELECT team FROM table_name_32 WHERE games = "7"
Who was Purdue's opponent?
CREATE TABLE table_name_19 (opp_team VARCHAR, big_ten_team VARCHAR)
SELECT opp_team FROM table_name_19 WHERE big_ten_team = "purdue"
The length of 30 minutes aired on what date?
CREATE TABLE table_name_54 (airdate VARCHAR, length VARCHAR)
SELECT airdate FROM table_name_54 WHERE length = "30 minutes"
Which season used production code "am10"?
CREATE TABLE table_23279434_1 (season__number VARCHAR, production_code VARCHAR)
SELECT COUNT(season__number) FROM table_23279434_1 WHERE production_code = "AM10"
What is the 2008 rank of Djibouti?
CREATE TABLE table_23050383_1 (country VARCHAR)
SELECT 2008 AS _rank FROM table_23050383_1 WHERE country = "Djibouti"
Which Gran Hamada has a Block A of tatsuhito takaiwa?
CREATE TABLE table_name_67 (gran_hamada VARCHAR, block_a VARCHAR)
SELECT gran_hamada FROM table_name_67 WHERE block_a = "tatsuhito takaiwa"
Which position's cfl team was the Montreal Alouettes when the pick number was less than 15?
CREATE TABLE table_name_52 (position VARCHAR, cfl_team VARCHAR, pick__number VARCHAR)
SELECT position FROM table_name_52 WHERE cfl_team = "montreal alouettes" AND pick__number < 15
Which district has joseph t. johnson as an incumbent?
CREATE TABLE table_name_61 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_name_61 WHERE incumbent = "joseph t. johnson"
Which Frequency has a Socket of socket 370, and a Model Number of c3 1.4a?
CREATE TABLE table_name_15 (frequency VARCHAR, socket VARCHAR, model_number VARCHAR)
SELECT frequency FROM table_name_15 WHERE socket = "socket 370" AND model_number = "c3 1.4a"
What is the Points with a Tries For that is 21?
CREATE TABLE table_name_13 (points VARCHAR, tries_for VARCHAR)
SELECT points FROM table_name_13 WHERE tries_for = "21"
What is team 2 if Team 1 is Numancia?
CREATE TABLE table_name_61 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_61 WHERE team_1 = "numancia"
Which record has a Team of manchester yankees?
CREATE TABLE table_name_43 (record VARCHAR, team VARCHAR)
SELECT record FROM table_name_43 WHERE team = "manchester yankees"
What is the average total for teams with more than 1 gold, ranked over 3 and more than 3 bronze?
CREATE TABLE table_name_39 (total INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT AVG(total) FROM table_name_39 WHERE gold > 1 AND rank > 3 AND bronze > 3
What type of game was played in Ljubljana?
CREATE TABLE table_name_97 (type_of_game VARCHAR, city VARCHAR)
SELECT type_of_game FROM table_name_97 WHERE city = "ljubljana"
When playing at Windy Hill, what was the home team?
CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_54 WHERE venue = "windy hill"
What is the order part number with a 12.5x multi 1?
CREATE TABLE table_name_61 (order_part_number VARCHAR, multi_1 VARCHAR)
SELECT order_part_number FROM table_name_61 WHERE multi_1 = "12.5x"
What is Opponent, when Result is Loss, and when Venue is Mosaic Stadium?
CREATE TABLE table_name_17 (opponent VARCHAR, result VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_17 WHERE result = "loss" AND venue = "mosaic stadium"
How many people voted for others in the county where McCain got 65.5% of the votes?
CREATE TABLE table_20453681_1 (others VARCHAR, mccain_percentage VARCHAR)
SELECT others FROM table_20453681_1 WHERE mccain_percentage = "65.5%"
Who is Winning driver on 18 may?
CREATE TABLE table_name_30 (winning_driver VARCHAR, date VARCHAR)
SELECT winning_driver FROM table_name_30 WHERE date = "18 may"
What is the inclination when the alt name is OPS-1584?
CREATE TABLE table_12141496_1 (inclination VARCHAR, alt_name VARCHAR)
SELECT inclination FROM table_12141496_1 WHERE alt_name = "OPS-1584"
who are all the visitor with a record of 25–18
CREATE TABLE table_11964047_7 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_11964047_7 WHERE record = "25–18"
What was the result for the politician first elected in 1942?
CREATE TABLE table_1342013_20 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1342013_20 WHERE first_elected = 1942
Who are the foreign players on team/s that play in Moscow?
CREATE TABLE table_19526911_1 (foreign_players__max_2_ VARCHAR, town VARCHAR)
SELECT foreign_players__max_2_ FROM table_19526911_1 WHERE town = "Moscow"
What is the least attendance that has 3-5 as a record?
CREATE TABLE table_name_25 (attendance INTEGER, record VARCHAR)
SELECT MIN(attendance) FROM table_name_25 WHERE record = "3-5"
what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc?
CREATE TABLE table_name_19 (yard_name VARCHAR, ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR)
SELECT yard_name FROM table_name_19 WHERE ship_types_delivered = "n3 type, v4 type" AND total_vessels_built_for_usmc = "13 ships for usmc"
Which Lane has a Reaction Time smaller than 0.199, and a Country of united states, and a Name of muna lee, and a Time larger than 22.01?
CREATE TABLE table_name_3 (lane INTEGER, time VARCHAR, name VARCHAR, reaction_time VARCHAR, country VARCHAR)
SELECT MAX(lane) FROM table_name_3 WHERE reaction_time < 0.199 AND country = "united states" AND name = "muna lee" AND time > 22.01
What is the crowd size of the match featuring North Melbourne as the away team?
CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_40 WHERE away_team = "north melbourne"
Which country has a to par of e?
CREATE TABLE table_name_20 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_20 WHERE to_par = "e"
How many districts have Mac Sweeney as incumbent?
CREATE TABLE table_1341586_44 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_1341586_44 WHERE incumbent = "Mac Sweeney"
What was the attendance on August 23?
CREATE TABLE table_name_77 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_77 WHERE date = "august 23"
Find the name of customers who did not pay with Cash.
CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR)
SELECT customer_name FROM customers WHERE payment_method <> 'Cash'
Who was the Driver, when the Chassis was Bugatti T51, and when the Entrant was Automobiles Ettore Bugatti?
CREATE TABLE table_name_87 (driver VARCHAR, chassis VARCHAR, entrant VARCHAR)
SELECT driver FROM table_name_87 WHERE chassis = "bugatti t51" AND entrant = "automobiles ettore bugatti"
What song has 24 votes?
CREATE TABLE table_19763199_3 (song VARCHAR, total_votes VARCHAR)
SELECT song FROM table_19763199_3 WHERE total_votes = 24
What is the gender with a age range of 3-11 at the st adrian roman catholic primary school?
CREATE TABLE table_28523_2 (gender VARCHAR, age_range VARCHAR, school VARCHAR)
SELECT gender FROM table_28523_2 WHERE age_range = "3-11" AND school = "St Adrian Roman Catholic Primary school"
Name the Others# when McCain# is 4730.
CREATE TABLE table_20750731_1 (others_number VARCHAR, mccain_number VARCHAR)
SELECT others_number FROM table_20750731_1 WHERE mccain_number = 4730
What player has 1 as the place?
CREATE TABLE table_name_69 (player VARCHAR, finish VARCHAR)
SELECT player FROM table_name_69 WHERE finish = "1"
What was the result of the game on august 30, 1968?
CREATE TABLE table_name_69 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_69 WHERE date = "august 30, 1968"
What date did Footscray play and Away game?
CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_24 WHERE away_team = "footscray"
In what year was BBC 2 13th in rank?
CREATE TABLE table_name_51 (year VARCHAR, bbc_two_rank VARCHAR)
SELECT year FROM table_name_51 WHERE bbc_two_rank = "13th"
what is the identifier when the power is 22500 watts?
CREATE TABLE table_name_17 (identifier VARCHAR, power VARCHAR)
SELECT identifier FROM table_name_17 WHERE power = "22500 watts"
What is the sum avg/g with an effic of 858.4?
CREATE TABLE table_name_61 (avg_g INTEGER, effic VARCHAR)
SELECT SUM(avg_g) FROM table_name_61 WHERE effic = 858.4
What are the most yards for 2 sacks and an average greater than 0?
CREATE TABLE table_name_27 (yards INTEGER, sacks VARCHAR, average VARCHAR)
SELECT MAX(yards) FROM table_name_27 WHERE sacks = 2 AND average > 0
Which player has a last name of baron?
CREATE TABLE table_name_93 (bats VARCHAR, surname VARCHAR)
SELECT bats FROM table_name_93 WHERE surname = "baron"
Which Round has a College of arizona?
CREATE TABLE table_name_26 (round INTEGER, college VARCHAR)
SELECT MIN(round) FROM table_name_26 WHERE college = "arizona"
Name the poles for avg start being 4.7
CREATE TABLE table_2308381_2 (poles VARCHAR, avg_start VARCHAR)
SELECT poles FROM table_2308381_2 WHERE avg_start = "4.7"
What time is CDT when EDT is 4:55 a.m.?
CREATE TABLE table_name_71 (cdt___5_utc_ VARCHAR, edt___4_utc_ VARCHAR)
SELECT cdt___5_utc_ FROM table_name_71 WHERE edt___4_utc_ = "4:55 a.m."
How many schools are named otafuku tholi?
CREATE TABLE table_16799784_4 (year_named VARCHAR, name VARCHAR)
SELECT COUNT(year_named) FROM table_16799784_4 WHERE name = "Otafuku Tholi"
Who had the most rebounds and how many did he have during the game on June 11?
CREATE TABLE table_name_41 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_name_41 WHERE date = "june 11"
When Fred Funk had a to par of E, what was the score?
CREATE TABLE table_name_95 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_95 WHERE to_par = "e" AND player = "fred funk"
Which opponent has a game larger than 23, December larger than 8, and record of 8-10-7?
CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR, game VARCHAR, december VARCHAR)
SELECT opponent FROM table_name_55 WHERE game > 23 AND december > 8 AND record = "8-10-7"
What Event has an Outcome of other open tournaments?
CREATE TABLE table_name_34 (event VARCHAR, outcome VARCHAR)
SELECT event FROM table_name_34 WHERE outcome = "other open tournaments"
Which player was drafted by Winnipeg?
CREATE TABLE table_28059992_6 (player VARCHAR, cfl_team VARCHAR)
SELECT player FROM table_28059992_6 WHERE cfl_team = "Winnipeg"
What is the average number of House of Representatives seats had an abbreviation of d66?
CREATE TABLE table_name_52 (house_of_rep_seats INTEGER, abbr VARCHAR)
SELECT AVG(house_of_rep_seats) FROM table_name_52 WHERE abbr = "d66"
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 first_elected FROM table_name_52 WHERE results = "re-elected" AND party = "democratic"
List the names and phone numbers of all the distinct suppliers who supply red jeans.
CREATE TABLE product_suppliers (supplier_id VARCHAR, product_id VARCHAR); CREATE TABLE suppliers (supplier_name VARCHAR, supplier_phone VARCHAR, supplier_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR)
SELECT DISTINCT T1.supplier_name, T1.supplier_phone FROM suppliers AS T1 JOIN product_suppliers AS T2 ON T1.supplier_id = T2.supplier_id JOIN products AS T3 ON T2.product_id = T3.product_id WHERE T3.product_name = "red jeans"
What player that has a Nationality of Turkey, a Height smaller than 183, a shirt no smaller than 19, and a birth date of June 27, 1993 (age20)?
CREATE TABLE table_name_90 (player VARCHAR, birth_date VARCHAR, shirt_no VARCHAR, nationality VARCHAR, height VARCHAR)
SELECT player FROM table_name_90 WHERE nationality = "turkey" AND height < 183 AND shirt_no < 19 AND birth_date = "june 27, 1993 (age20)"
What is the average weight of the player with a height of 180 cm and plays the d position?
CREATE TABLE table_name_53 (weight__kg_ INTEGER, height__cm_ VARCHAR, position VARCHAR)
SELECT AVG(weight__kg_) FROM table_name_53 WHERE height__cm_ = 180 AND position = "d"
What was the earliest round with Neil Colzie and a pick smaller than 24?
CREATE TABLE table_name_26 (round INTEGER, player VARCHAR, pick VARCHAR)
SELECT MIN(round) FROM table_name_26 WHERE player = "neil colzie" AND pick < 24
What artist has more than 6 draws, and in a place higher than 14?
CREATE TABLE table_name_28 (artist VARCHAR, draw VARCHAR, place VARCHAR)
SELECT artist FROM table_name_28 WHERE draw > 6 AND place > 14
What was the Against when the Opposing Team was sheffield wednesday?
CREATE TABLE table_name_24 (against VARCHAR, opposing_team VARCHAR)
SELECT against FROM table_name_24 WHERE opposing_team = "sheffield wednesday"
How many of the points difference lost equal 10?
CREATE TABLE table_20760802_1 (points_difference VARCHAR, lost VARCHAR)
SELECT points_difference FROM table_20760802_1 WHERE lost = "10"
What position did the sheffield eagles finish in?
CREATE TABLE table_13018091_1 (position INTEGER, club VARCHAR)
SELECT MAX(position) FROM table_13018091_1 WHERE club = "Sheffield Eagles"
What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5?
CREATE TABLE table_name_59 (sample_size VARCHAR, poll_source VARCHAR, margin_of_error VARCHAR)
SELECT COUNT(sample_size) FROM table_name_59 WHERE poll_source = "rasmussen reports" AND margin_of_error > 4.5
Name the city for los angeles stadium
CREATE TABLE table_28281704_1 (city VARCHAR, stadium VARCHAR)
SELECT city FROM table_28281704_1 WHERE stadium = "Los Angeles stadium"
What year has the time of 55:29:20?
CREATE TABLE table_name_16 (year VARCHAR, time VARCHAR)
SELECT COUNT(year) FROM table_name_16 WHERE time = "55:29:20"
What word in German translates into the Icelandic word efja?
CREATE TABLE table_name_10 (german VARCHAR, icelandic VARCHAR)
SELECT german FROM table_name_10 WHERE icelandic = "efja"
What pick had a wide receiver named johnny holloway?
CREATE TABLE table_name_66 (pick VARCHAR, position VARCHAR, name VARCHAR)
SELECT pick FROM table_name_66 WHERE position = "wide receiver" AND name = "johnny holloway"
What is the score for the away team at Victoria Park?
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_24 WHERE venue = "victoria park"
What was the total yards lost by antwon bailey when he gained 227?
CREATE TABLE table_name_75 (loss INTEGER, name VARCHAR, gain VARCHAR)
SELECT MIN(loss) FROM table_name_75 WHERE name = "antwon bailey" AND gain > 227
What is the deficit (-surplus) of the country who use 5.2% of the world demand of uranium?
CREATE TABLE table_15624586_2 (deficit___surplus_ VARCHAR, _percentage_of_world_demand VARCHAR)
SELECT deficit___surplus_ FROM table_15624586_2 WHERE _percentage_of_world_demand = "5.2%"
What is the hawthorn score at the year 2000?
CREATE TABLE table_28211103_1 (hawthorn_score VARCHAR, year VARCHAR)
SELECT hawthorn_score FROM table_28211103_1 WHERE year = 2000
When did the New England Patriots play as the visiting team?
CREATE TABLE table_name_23 (date VARCHAR, visiting_team VARCHAR)
SELECT date FROM table_name_23 WHERE visiting_team = "new england patriots"
What county is associated with ansi code 1759686?
CREATE TABLE table_18600760_13 (county VARCHAR, ansi_code VARCHAR)
SELECT county FROM table_18600760_13 WHERE ansi_code = 1759686
What is the highest number of laps with a +1:23.297 time/retired and a grid larger than 4?
CREATE TABLE table_name_98 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_98 WHERE time_retired = "+1:23.297" AND grid > 4
Which Asian countries have a population that is larger than any country in Africa?
CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)
SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT MAX(population) FROM country WHERE Continent = "Africa")
Tell me the partner for opponents of anamika bhargava sylvia krywacz
CREATE TABLE table_name_15 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT partner FROM table_name_15 WHERE opponents_in_the_final = "anamika bhargava sylvia krywacz"
What Date had a Result of draw, and a Venue of lord's?
CREATE TABLE table_name_28 (date VARCHAR, result VARCHAR, venue VARCHAR)
SELECT date FROM table_name_28 WHERE result = "draw" AND venue = "lord's"
Who played against in venue a on 17 february 1900?
CREATE TABLE table_name_43 (opponent VARCHAR, venue VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_43 WHERE venue = "a" AND date = "17 february 1900"