question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the Date of the match with Opponent in the final of Filip Polášek?
CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_49 WHERE opponent_in_the_final = "filip polášek"
What is the Rank of Qi Hui?
CREATE TABLE table_name_52 (rank VARCHAR, name VARCHAR)
SELECT COUNT(rank) FROM table_name_52 WHERE name = "qi hui"
On what Date was the Attendance 63,546?
CREATE TABLE table_name_62 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_62 WHERE attendance = "63,546"
what is the total number of goal different when the club is cf extremadura and the played is less than 38?
CREATE TABLE table_name_51 (goal_difference VARCHAR, club VARCHAR, played VARCHAR)
SELECT COUNT(goal_difference) FROM table_name_51 WHERE club = "cf extremadura" AND played < 38
What was the record of the game where the Rockets were the visiting team?
CREATE TABLE table_name_16 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_16 WHERE visitor = "rockets"
What round was the draft pick of tight end with an Overall larger than 21?
CREATE TABLE table_name_68 (round VARCHAR, position VARCHAR, overall VARCHAR)
SELECT COUNT(round) FROM table_name_68 WHERE position = "tight end" AND overall > 21
What is the region 1 date for series 4
CREATE TABLE table_15823956_1 (region_1 VARCHAR, series VARCHAR)
SELECT region_1 FROM table_15823956_1 WHERE series = "4"
Which Call sign has a Frequency of 102.5 fm?
CREATE TABLE table_name_26 (call_sign VARCHAR, frequency VARCHAR)
SELECT call_sign FROM table_name_26 WHERE frequency = "102.5 fm"
What is the highest point total that placed 3rd and has a draw larger than 5?
CREATE TABLE table_name_84 (points INTEGER, place VARCHAR, draw VARCHAR)
SELECT MAX(points) FROM table_name_84 WHERE place = "3rd" AND draw > 5
When риба (ríba) is the macedonian what is the proto-slavic?
CREATE TABLE table_26757_4 (proto_slavic VARCHAR, macedonian VARCHAR)
SELECT proto_slavic FROM table_26757_4 WHERE macedonian = "риба (ríba)"
What is the air date for the episode with production code ad1c13?
CREATE TABLE table_name_64 (original_air_date VARCHAR, production_code VARCHAR)
SELECT original_air_date FROM table_name_64 WHERE production_code = "ad1c13"
On channel 32, when the power is 32 kW horizontal, what is the modulation?
CREATE TABLE table_name_91 (modulation VARCHAR, power VARCHAR, channel VARCHAR)
SELECT modulation FROM table_name_91 WHERE power = "32 kw horizontal" AND channel = 32
tell the final for lindsey graham
CREATE TABLE table_1133844_4 (result VARCHAR, senator VARCHAR)
SELECT result FROM table_1133844_4 WHERE senator = "Lindsey Graham"
What animal was yes for tv series and was a terrapins?
CREATE TABLE table_name_98 (animal_name VARCHAR, tv_series VARCHAR, species VARCHAR)
SELECT animal_name FROM table_name_98 WHERE tv_series = "yes" AND species = "terrapins"
What is the highest League, when Title Playoff is greater than 0?
CREATE TABLE table_name_7 (league INTEGER, title_playoff INTEGER)
SELECT MAX(league) FROM table_name_7 WHERE title_playoff > 0
I want the sum of pages for thistle among roses
CREATE TABLE table_name_36 (pages INTEGER, translated_title VARCHAR)
SELECT SUM(pages) FROM table_name_36 WHERE translated_title = "thistle among roses"
What is the transfer fee of the move from Port Vale?
CREATE TABLE table_name_34 (transfer_fee VARCHAR, moving_from VARCHAR)
SELECT transfer_fee FROM table_name_34 WHERE moving_from = "port vale"
What is Competition, when Date is 30 December 2005?
CREATE TABLE table_name_96 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_96 WHERE date = "30 december 2005"
What was the highest place result in 2010 with a Clean and Jerk weight of 224kg?
CREATE TABLE table_name_92 (place INTEGER, year VARCHAR, clean_and_jerk VARCHAR)
SELECT MAX(place) FROM table_name_92 WHERE year = 2010 AND clean_and_jerk = "224kg"
What is Year, when Wins is "0"?
CREATE TABLE table_name_71 (year VARCHAR, wins VARCHAR)
SELECT year FROM table_name_71 WHERE wins = "0"
Name the least season
CREATE TABLE table_2223177_3 (season INTEGER)
SELECT MIN(season) FROM table_2223177_3
What is the total number of losses for the over 30 games played?
CREATE TABLE table_name_50 (losses VARCHAR, played INTEGER)
SELECT COUNT(losses) FROM table_name_50 WHERE played > 30
What is the size difference for exa?
CREATE TABLE table_name_29 (size_difference VARCHAR, prefix VARCHAR)
SELECT size_difference FROM table_name_29 WHERE prefix = "exa"
What's the date of the new orleans team ?
CREATE TABLE table_27734577_8 (date VARCHAR, team VARCHAR)
SELECT date FROM table_27734577_8 WHERE team = "New Orleans"
Tell me the player with econ of 4.23
CREATE TABLE table_name_40 (player VARCHAR, econ VARCHAR)
SELECT player FROM table_name_40 WHERE econ = "4.23"
What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley?
CREATE TABLE table_name_56 (year INTEGER, role VARCHAR, director VARCHAR)
SELECT SUM(year) FROM table_name_56 WHERE role = "nan taylor, alias of nan ellis, aka mrs. andrews" AND director = "william keighley"
What is the longest weeks on top when the Artist was Bruce Hornsby and the Range?
CREATE TABLE table_name_74 (weeks_on_top INTEGER, artist VARCHAR)
SELECT MAX(weeks_on_top) FROM table_name_74 WHERE artist = "bruce hornsby and the range"
What is the average expenditures on R&D for Croatia after 2007?
CREATE TABLE table_name_32 (_ppp__ VARCHAR, d__billions_of_us$_ VARCHAR, expenditures_on_r INTEGER, country_region VARCHAR, year VARCHAR)
SELECT AVG(expenditures_on_r) & d__billions_of_us$_, _ppp__ FROM table_name_32 WHERE country_region = "croatia" AND year > 2007
Find the id and name of customers whose address contains WY state and do not use credit card for payment.
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR, customer_address VARCHAR, payment_method_code VARCHAR)
SELECT customer_id, customer_name FROM customers WHERE customer_address LIKE "%WY%" AND payment_method_code <> "Credit Card"
what is the percent for other when the margin of error is ± 3%?
CREATE TABLE table_name_35 (other VARCHAR, margin_of_error VARCHAR)
SELECT other FROM table_name_35 WHERE margin_of_error = "± 3%"
What is the black caribbean population when the other black population is 2243?
CREATE TABLE table_19149550_7 (black_caribbean_population INTEGER, other_black_population VARCHAR)
SELECT MAX(black_caribbean_population) FROM table_19149550_7 WHERE other_black_population = 2243
What is the lowest grid with matra as constructor?
CREATE TABLE table_name_17 (grid INTEGER, constructor VARCHAR)
SELECT MIN(grid) FROM table_name_17 WHERE constructor = "matra"
Can you tell me the TV Time that has the Date of november 22, 1998?
CREATE TABLE table_name_35 (tv_time VARCHAR, date VARCHAR)
SELECT tv_time FROM table_name_35 WHERE date = "november 22, 1998"
Name the attendance for september 19, 1976
CREATE TABLE table_14945881_1 (attendance INTEGER, date VARCHAR)
SELECT MIN(attendance) FROM table_14945881_1 WHERE date = "September 19, 1976"
What is the position when drafted is 1974,r11,p11?
CREATE TABLE table_1198175_1 (position VARCHAR, drafted VARCHAR)
SELECT position FROM table_1198175_1 WHERE drafted = "1974,R11,P11"
What is Silver, when Total is greater than 4, when Bronze is 2, and when Rank is greater than 1?
CREATE TABLE table_name_51 (silver VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT silver FROM table_name_51 WHERE total > 4 AND bronze = "2" AND rank > 1
How much Bronze has a Nation of mexico, and a Total larger than 1?
CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT SUM(bronze) FROM table_name_58 WHERE nation = "mexico" AND total > 1
What is the result of the match with an attendance of 73,855?
CREATE TABLE table_name_9 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_9 WHERE attendance = "73,855"
What is Record, when H/A/N is n?
CREATE TABLE table_name_42 (record VARCHAR, h_a_n VARCHAR)
SELECT record FROM table_name_42 WHERE h_a_n = "n"
When nac breda came in third place and psv eindhoven was the winner who is the top scorer?
CREATE TABLE table_20867295_2 (top_scorer VARCHAR, winner VARCHAR, third_place VARCHAR)
SELECT top_scorer FROM table_20867295_2 WHERE winner = "PSV Eindhoven" AND third_place = "NAC Breda"
What was the percentage of national votes for Mahmoud Ahmadinejad?
CREATE TABLE table_1827900_1 (_percentage_of_votes_nationally VARCHAR, candidates VARCHAR)
SELECT _percentage_of_votes_nationally FROM table_1827900_1 WHERE candidates = "Mahmoud Ahmadinejad"
What airport is in Muscat?
CREATE TABLE table_name_60 (airport VARCHAR, city VARCHAR)
SELECT airport FROM table_name_60 WHERE city = "muscat"
Which Office has a Party of dem, and a First Elected of 1991†?
CREATE TABLE table_name_2 (office VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT office FROM table_name_2 WHERE party = "dem" AND first_elected = "1991†"
What was pinky's bmi at the reunion?
CREATE TABLE table_28654454_5 (reunion_bmi VARCHAR, contestant VARCHAR)
SELECT reunion_bmi FROM table_28654454_5 WHERE contestant = "Pinky"
Who was the Opponent at Homewood Field with a Score of 5-8?
CREATE TABLE table_name_17 (opponent VARCHAR, site VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_17 WHERE site = "homewood field" AND score = "5-8"
What is Player, when Class is "senior", when Position is "shooting guard", and when School is "Bradley"?
CREATE TABLE table_name_56 (player VARCHAR, school VARCHAR, class VARCHAR, position VARCHAR)
SELECT player FROM table_name_56 WHERE class = "senior" AND position = "shooting guard" AND school = "bradley"
When was 10 (10) bought?
CREATE TABLE table_1353096_1 (owned_since VARCHAR, channel_tv___dt__ VARCHAR)
SELECT owned_since FROM table_1353096_1 WHERE channel_tv___dt__ = "10 (10)"
Which date has a round more than 9?
CREATE TABLE table_name_85 (date VARCHAR, round INTEGER)
SELECT date FROM table_name_85 WHERE round > 9
How many times was there a record of 49-15-11?
CREATE TABLE table_23308178_9 (attendance VARCHAR, record VARCHAR)
SELECT COUNT(attendance) FROM table_23308178_9 WHERE record = "49-15-11"
What is in 2001, that has the year 2006, 2r, and in 2010 an A?
CREATE TABLE table_name_71 (Id VARCHAR)
SELECT 2001 FROM table_name_71 WHERE 2006 = "2r" AND 2010 = "a"
In what year saw a total distance of 1,870.23 km?
CREATE TABLE table_name_52 (year VARCHAR, distance VARCHAR)
SELECT year FROM table_name_52 WHERE distance = "1,870.23 km"
If Democratic is 42.5%, what is the city?
CREATE TABLE table_25200461_9 (city VARCHAR, democratic VARCHAR)
SELECT city FROM table_25200461_9 WHERE democratic = "42.5%"
Find the different first names and cities of the students who have allergy to milk or cat.
CREATE TABLE Has_Allergy (stuid VARCHAR, Allergy VARCHAR); CREATE TABLE Student (fname VARCHAR, city_code VARCHAR, stuid VARCHAR)
SELECT DISTINCT T1.fname, T1.city_code FROM Student AS T1 JOIN Has_Allergy AS T2 ON T1.stuid = T2.stuid WHERE T2.Allergy = "Milk" OR T2.Allergy = "Cat"
What was the Rider of the LCR Honda 600CC Team with a Time of 59’ 22.80?
CREATE TABLE table_name_96 (rider VARCHAR, team VARCHAR, time VARCHAR)
SELECT rider FROM table_name_96 WHERE team = "lcr honda 600cc" AND time = "59’ 22.80"
Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.
CREATE TABLE invoices (invoice_details VARCHAR, invoice_date VARCHAR)
SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
When Bob Dole had 26%, and Pete du Pont had 0%, what did Pat Robertson have?
CREATE TABLE table_name_43 (pat_robertson VARCHAR, bob_dole VARCHAR, pete_du_pont VARCHAR)
SELECT pat_robertson FROM table_name_43 WHERE bob_dole = "26%" AND pete_du_pont = "0%"
How many locations have #12 Michigan State as the big ten team?
CREATE TABLE table_21330550_2 (location VARCHAR, big_ten_team VARCHAR)
SELECT COUNT(location) FROM table_21330550_2 WHERE big_ten_team = "#12 Michigan State"
What Average Pick # has an Overall of 296?
CREATE TABLE table_name_8 (pick__number INTEGER, overall VARCHAR)
SELECT AVG(pick__number) FROM table_name_8 WHERE overall = 296
Which Webcast has a Callsign of kgbt?
CREATE TABLE table_name_91 (webcast VARCHAR, callsign VARCHAR)
SELECT webcast FROM table_name_91 WHERE callsign = "kgbt"
What country is player thomas bjørn from?
CREATE TABLE table_name_96 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_96 WHERE player = "thomas bjørn"
What was the score for the opponent lukáš dlouhý leander paes?
CREATE TABLE table_name_75 (score VARCHAR, opponents VARCHAR)
SELECT score FROM table_name_75 WHERE opponents = "lukáš dlouhý leander paes"
What is the Year of the Film Klondike Annie?
CREATE TABLE table_name_25 (year INTEGER, film VARCHAR)
SELECT SUM(year) FROM table_name_25 WHERE film = "klondike annie"
Which players attend Stanford college?
CREATE TABLE table_11677691_5 (player VARCHAR, college VARCHAR)
SELECT player FROM table_11677691_5 WHERE college = "Stanford"
What is the hometown of the representative that served the twenty-sixth legislature?
CREATE TABLE table_name_22 (hometown VARCHAR, legislatures VARCHAR)
SELECT hometown FROM table_name_22 WHERE legislatures = "twenty-sixth"
What year had the supernova award?
CREATE TABLE table_name_46 (year VARCHAR, category VARCHAR)
SELECT year FROM table_name_46 WHERE category = "supernova award"
When Yale is listed as the regular season winner, what tournament venue is given?
CREATE TABLE table_28365816_2 (tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR)
SELECT tournament_venue__city_ FROM table_28365816_2 WHERE regular_season_winner = "Yale"
What was the minimum touchdowns of the Fullback player?
CREATE TABLE table_25711913_2 (touchdowns INTEGER, position VARCHAR)
SELECT MIN(touchdowns) FROM table_25711913_2 WHERE position = "Fullback"
What is the colors for the nickname engineers?
CREATE TABLE table_261927_1 (colors VARCHAR, nickname VARCHAR)
SELECT colors FROM table_261927_1 WHERE nickname = "Engineers"
How many reg GP for nathan barrett in a round less than 8?
CREATE TABLE table_name_62 (reg_gp VARCHAR, player VARCHAR, rd__number VARCHAR)
SELECT COUNT(reg_gp) FROM table_name_62 WHERE player = "nathan barrett" AND rd__number < 8
Who did the Flames play against when Stephen Lee was the man of the match?
CREATE TABLE table_name_6 (opponent VARCHAR, man_of_the_match VARCHAR)
SELECT opponent FROM table_name_6 WHERE man_of_the_match = "stephen lee"
What is the p max (bar) of the pistol with a P1 diameter of 9.70 mm?
CREATE TABLE table_26967904_1 (p_max___bar__ VARCHAR, p1_diameter__mm_ VARCHAR)
SELECT p_max___bar__ FROM table_26967904_1 WHERE p1_diameter__mm_ = "9.70"
What is the catalog number of Alfa records?
CREATE TABLE table_name_74 (catalog VARCHAR, label VARCHAR)
SELECT catalog FROM table_name_74 WHERE label = "alfa records"
What was the constructor for the fastest nelson piquet?
CREATE TABLE table_name_72 (constructor VARCHAR, fastest_lap VARCHAR)
SELECT constructor FROM table_name_72 WHERE fastest_lap = "nelson piquet"
Who was the team played on January 23?
CREATE TABLE table_17311759_6 (team VARCHAR, date VARCHAR)
SELECT team FROM table_17311759_6 WHERE date = "January 23"
How many number of lakes are there in the Valdez-Cordova (CA) area?
CREATE TABLE table_17978052_2 (_number_s_lake_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR)
SELECT MIN(_number_s_lake_and_gnis_query_link) FROM table_17978052_2 WHERE borough_or_census_area = "Valdez-Cordova (CA)"
What was the emission rating in Mid-Atlantic South for the vehicle that was rated 300 g/mi (186 g/km) in the Midwest?
CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, midwest__des_moines_ VARCHAR)
SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE midwest__des_moines_ = "300 g/mi (186 g/km)"
When the group stage has been 4 what is the largest playoff?
CREATE TABLE table_14460937_1 (play_off INTEGER, group_stage VARCHAR)
SELECT MAX(play_off) FROM table_14460937_1 WHERE group_stage = 4
WHAT POSITION DOES THE PLAYER FROM SOUTH POINTE HIGH SCHOOL PLAY?
CREATE TABLE table_11677691_2 (position VARCHAR, school VARCHAR)
SELECT position FROM table_11677691_2 WHERE school = "South Pointe High school"
What was the nationality of the player with a score of 72-72-67=211?
CREATE TABLE table_name_38 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_38 WHERE score = 72 - 72 - 67 = 211
What is shown for Chassis for the year of 2007?
CREATE TABLE table_name_70 (chassis VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_70 WHERE year = 2007
How many games have a March of 19, and Points smaller than 83?
CREATE TABLE table_name_50 (game VARCHAR, march VARCHAR, points VARCHAR)
SELECT COUNT(game) FROM table_name_50 WHERE march = 19 AND points < 83
In what year did Iljuštšenko compete in Barcelona, Spain?
CREATE TABLE table_name_70 (year VARCHAR, venue VARCHAR)
SELECT year FROM table_name_70 WHERE venue = "barcelona, spain"
Who was the home team that played against the visiting team Minnesota?
CREATE TABLE table_name_63 (home VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_63 WHERE visitor = "minnesota"
What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?
CREATE TABLE Employees (employee_name VARCHAR, employee_id VARCHAR); CREATE TABLE Documents_to_be_destroyed (Destruction_Authorised_by_Employee_ID VARCHAR, Destroyed_by_Employee_ID VARCHAR)
SELECT T2.employee_name, T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id
What is the Format of the release in Greece?
CREATE TABLE table_name_16 (format VARCHAR, region VARCHAR)
SELECT format FROM table_name_16 WHERE region = "greece"
What was the location/attendance for the game with a record of 16-6?
CREATE TABLE table_name_79 (location_attendance VARCHAR, record VARCHAR)
SELECT location_attendance FROM table_name_79 WHERE record = "16-6"
What was the result for the game with final record listed as 0-1?
CREATE TABLE table_name_66 (result VARCHAR, record VARCHAR)
SELECT result FROM table_name_66 WHERE record = "0-1"
who is the character where the special edition is koichi sakaguchi?
CREATE TABLE table_25173505_13 (character VARCHAR, special_edition VARCHAR)
SELECT character FROM table_25173505_13 WHERE special_edition = "Koichi Sakaguchi"
display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, salary VARCHAR, department_id VARCHAR)
SELECT first_name, last_name, hire_date, salary, department_id FROM employees WHERE NOT first_name LIKE '%M%'
Name the original title for years before 1977 and author of lagercrantz olof lagercrantz
CREATE TABLE table_name_53 (original_title VARCHAR, year VARCHAR, author VARCHAR)
SELECT original_title FROM table_name_53 WHERE year < 1977 AND author = "lagercrantz olof lagercrantz"
What is the lowest pick number where the overall pick number was 38?
CREATE TABLE table_name_73 (pick INTEGER, overall VARCHAR)
SELECT MIN(pick) FROM table_name_73 WHERE overall = 38
What is the range of the head of household whereas single is $171,551–$372,950?
CREATE TABLE table_11647327_2 (head_of_household VARCHAR, single VARCHAR)
SELECT head_of_household FROM table_11647327_2 WHERE single = "$171,551–$372,950"
Which segment a's netflix figure is s04e24?
CREATE TABLE table_name_77 (segment_a VARCHAR, netflix VARCHAR)
SELECT segment_a FROM table_name_77 WHERE netflix = "s04e24"
What was the score when 43,746 attended?
CREATE TABLE table_name_50 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_50 WHERE attendance = "43,746"
What party has an incumbent of Stanyarne Wilson?
CREATE TABLE table_name_86 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_name_86 WHERE incumbent = "stanyarne wilson"
What was the doctor when the author was Gary Hopkins category:articles with hcards?
CREATE TABLE table_1620397_5 (doctor VARCHAR, author VARCHAR)
SELECT doctor FROM table_1620397_5 WHERE author = "Gary Hopkins Category:Articles with hCards"
What team was home, when the record was 24–16–6?
CREATE TABLE table_name_77 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_77 WHERE record = "24–16–6"
What Score points has a Rank points of defending champion?
CREATE TABLE table_name_80 (score_points VARCHAR, rank_points VARCHAR)
SELECT score_points FROM table_name_80 WHERE rank_points = "defending champion"
What is the score for Collingwood as the home team?
CREATE TABLE table_name_85 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_85 WHERE home_team = "collingwood"
In what Year did Chernova come in 1st in Götzis, Austria?
CREATE TABLE table_name_37 (year INTEGER, venue VARCHAR, position VARCHAR)
SELECT SUM(year) FROM table_name_37 WHERE venue = "götzis, austria" AND position = "1st"