question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the Label with a Catalog that is mhcl-20017?
CREATE TABLE table_name_45 (label VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_45 WHERE catalog = "mhcl-20017"
Who was the director of Small Voices, a film title used in nomination?
CREATE TABLE table_name_61 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT director FROM table_name_61 WHERE film_title_used_in_nomination = "small voices"
What music is in the film with an Uncut run time of 95 minutes?
CREATE TABLE table_name_63 (music VARCHAR, uncut_run_time VARCHAR)
SELECT music FROM table_name_63 WHERE uncut_run_time = "95 minutes"
What's the average year lebanon won?
CREATE TABLE table_name_51 (year INTEGER, country_territory VARCHAR)
SELECT AVG(year) FROM table_name_51 WHERE country_territory = "lebanon"
What is the literacy rate for groups that grew 103.1% between 1991 and 2001?
CREATE TABLE table_10710364_2 (literacy___percentage_ VARCHAR, growth__1991_2001_ VARCHAR)
SELECT literacy___percentage_ FROM table_10710364_2 WHERE growth__1991_2001_ = "103.1%"
List the number of vacators when successors were formally installed on June 22, 1868.
CREATE TABLE table_2417340_3 (vacator VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT COUNT(vacator) FROM table_2417340_3 WHERE date_of_successors_formal_installation = "June 22, 1868"
When was the first year he placed 2nd in Izmir, Turkey?
CREATE TABLE table_name_3 (year INTEGER, result VARCHAR, venue VARCHAR)
SELECT MIN(year) FROM table_name_3 WHERE result = "2nd" AND venue = "izmir, turkey"
On what date was Edward Jeffreys the writer?
CREATE TABLE table_name_43 (date VARCHAR, writer_s_ VARCHAR)
SELECT date FROM table_name_43 WHERE writer_s_ = "edward jeffreys"
On June 17 in Tiger stadium, what was the average home run?
CREATE TABLE table_name_43 (home_run INTEGER, location VARCHAR, date VARCHAR)
SELECT AVG(home_run) FROM table_name_43 WHERE location = "tiger stadium" AND date = "june 17"
List the lowest number of assists.
CREATE TABLE table_26360571_2 (assists INTEGER)
SELECT MIN(assists) FROM table_26360571_2
What station has average ratings of 14.7%?
CREATE TABLE table_name_25 (tv_station VARCHAR, average_ratings VARCHAR)
SELECT tv_station FROM table_name_25 WHERE average_ratings = "14.7%"
Name the most goals for algeria
CREATE TABLE table_24565004_20 (goals¹ INTEGER, nationality² VARCHAR)
SELECT MIN(goals¹) FROM table_24565004_20 WHERE nationality² = "Algeria"
What was the result of week 2?
CREATE TABLE table_16028499_2 (result VARCHAR, week VARCHAR)
SELECT result FROM table_16028499_2 WHERE week = 2
What is Trailing Party % Votes, when Party Won is "Bharatiya Janta Party", and when Trailing Party is "Indian National Congress"?
CREATE TABLE table_name_74 (trailing_party VARCHAR, votes VARCHAR, party_won VARCHAR)
SELECT trailing_party % votes FROM table_name_74 WHERE party_won = "bharatiya janta party" AND trailing_party = "indian national congress"
Which Staying councillors have a New council of 7, and a Previous council larger than 8?
CREATE TABLE table_name_22 (staying_councillors INTEGER, new_council VARCHAR, previous_council VARCHAR)
SELECT AVG(staying_councillors) FROM table_name_22 WHERE new_council = 7 AND previous_council > 8
What is the label for 2002, in Germany, Catalog Dos 195?
CREATE TABLE table_name_23 (label VARCHAR, catalog VARCHAR, date VARCHAR, region VARCHAR)
SELECT label FROM table_name_23 WHERE date = "2002" AND region = "germany" AND catalog = "dos 195"
Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.
CREATE TABLE Claims (Amount_Settled VARCHAR, Amount_Claimed VARCHAR)
SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Settled LIMIT 1
What is the rank of the company known for retailing?
CREATE TABLE table_21926985_2 (state_rank_by_revenue VARCHAR, known_for VARCHAR)
SELECT COUNT(state_rank_by_revenue) FROM table_21926985_2 WHERE known_for = "Retailing"
What venue did the European Championships' 400 m Hurdles take place?
CREATE TABLE table_name_7 (venue VARCHAR, notes VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_7 WHERE notes = "400 m hurdles" AND competition = "european championships"
Who was the visitor on April 2?
CREATE TABLE table_name_7 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_7 WHERE date = "april 2"
What record was reached when the Eagles played the Phoenix Cardinals?
CREATE TABLE table_16678052_2 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_16678052_2 WHERE opponent = "Phoenix Cardinals"
What is the time/retired of Driver Masten Gregory Carroll Shelby when the constructor was Maserati, the Grid was larger than 10 and there were more than 2 laps?
CREATE TABLE table_name_30 (time_retired VARCHAR, driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_30 WHERE grid > 10 AND laps > 2 AND constructor = "maserati" AND driver = "masten gregory carroll shelby"
Name the team on february 12
CREATE TABLE table_name_68 (team VARCHAR, date VARCHAR)
SELECT team FROM table_name_68 WHERE date = "february 12"
When did the Tournament of the Tour Championship take place?
CREATE TABLE table_name_10 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_10 WHERE tournament = "the tour championship"
Find the number of students for each department.
CREATE TABLE student (dept_code VARCHAR)
SELECT COUNT(*), dept_code FROM student GROUP BY dept_code
When has a Surface of clay, and an Opponent in the final of andrés gómez javier sánchez?
CREATE TABLE table_name_98 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_98 WHERE surface = "clay" AND opponent_in_the_final = "andrés gómez javier sánchez"
What player was at Albion?
CREATE TABLE table_name_90 (player VARCHAR, venue VARCHAR)
SELECT player FROM table_name_90 WHERE venue = "albion"
What is the attendance at the game where San Jose was the visitor on May 4?
CREATE TABLE table_name_32 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_32 WHERE visitor = "san jose" AND date = "may 4"
Name the candidates for result of lost renomination democratic loss
CREATE TABLE table_1342149_24 (candidates VARCHAR, result VARCHAR)
SELECT candidates FROM table_1342149_24 WHERE result = "Lost renomination Democratic loss"
What is the week 3 with addison miller in week 2?
CREATE TABLE table_name_17 (week_3 VARCHAR, week_2 VARCHAR)
SELECT week_3 FROM table_name_17 WHERE week_2 = "addison miller"
Name the date for opponent in the final being ignasi villacampa
CREATE TABLE table_name_5 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_5 WHERE opponent_in_the_final = "ignasi villacampa"
What is the total number of Draws with less than 4 matches?
CREATE TABLE table_name_27 (draws VARCHAR, matches INTEGER)
SELECT COUNT(draws) FROM table_name_27 WHERE matches < 4
what is the total of floors when the name is kölntriangle and rank is less thank 63?
CREATE TABLE table_name_10 (floors INTEGER, name VARCHAR, rank VARCHAR)
SELECT SUM(floors) FROM table_name_10 WHERE name = "kölntriangle" AND rank < 63
What are the names of the categories when the player is olsen racela?
CREATE TABLE table_28628309_9 (category VARCHAR, player VARCHAR)
SELECT category FROM table_28628309_9 WHERE player = "Olsen Racela"
What is the sum of the glyph with a 38 hexadecimal and a binary less than 111000?
CREATE TABLE table_name_4 (glyph INTEGER, hexadecimal VARCHAR, binary VARCHAR)
SELECT SUM(glyph) FROM table_name_4 WHERE hexadecimal = 38 AND binary < 111000
How many times was the incumbent john dawson redistricted from the 15th district?
CREATE TABLE table_2668393_18 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_2668393_18 WHERE incumbent = "John Dawson Redistricted from the 15th district"
How many platforms have nanaly fletch as the character?
CREATE TABLE table_28178595_2 (platform VARCHAR, character VARCHAR)
SELECT COUNT(platform) FROM table_28178595_2 WHERE character = "Nanaly Fletch"
What was strikeforce: barnett vs. cormier's record?
CREATE TABLE table_name_26 (record VARCHAR, event VARCHAR)
SELECT record FROM table_name_26 WHERE event = "strikeforce: barnett vs. cormier"
What is the sum of Against when the lost is more than 7?
CREATE TABLE table_name_45 (against INTEGER, lost INTEGER)
SELECT SUM(against) FROM table_name_45 WHERE lost > 7
What is the Result of the game with an Attendance of 55,353?
CREATE TABLE table_name_53 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_53 WHERE attendance = "55,353"
Which average match has points less than 6?
CREATE TABLE table_name_33 (match INTEGER, points INTEGER)
SELECT AVG(match) FROM table_name_33 WHERE points < 6
What was John Hildreth's speed?
CREATE TABLE table_name_55 (speed VARCHAR, rider VARCHAR)
SELECT speed FROM table_name_55 WHERE rider = "john hildreth"
How many medals for spain with 1 silver?
CREATE TABLE table_name_68 (total INTEGER, silver VARCHAR, nation VARCHAR)
SELECT SUM(total) FROM table_name_68 WHERE silver = "1" AND nation = "spain"
What TV channel had a license from Boston?
CREATE TABLE table_1353096_2 (channel_tv___dt__ VARCHAR, city_of_license_market VARCHAR)
SELECT channel_tv___dt__ FROM table_1353096_2 WHERE city_of_license_market = "Boston"
Show all customer ids and the number of accounts for each customer.
CREATE TABLE Accounts (customer_id VARCHAR)
SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id
Which incumbent was first elected in 1984?
CREATE TABLE table_1341453_44 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1341453_44 WHERE first_elected = 1984
Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)?
CREATE TABLE table_name_78 (fencing_victories__pts_ VARCHAR, equestrian_time__pts_ VARCHAR)
SELECT fencing_victories__pts_ FROM table_name_78 WHERE equestrian_time__pts_ = "67.88 (1144)"
What is the time for the rank after 5 with sc/d notes?
CREATE TABLE table_name_55 (time VARCHAR, notes VARCHAR, rank VARCHAR)
SELECT time FROM table_name_55 WHERE notes = "sc/d" AND rank > 5
Who were the Visitor when the Nets were the Home team?
CREATE TABLE table_name_7 (visitor VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_7 WHERE home = "nets"
what is ҕь ҕь [ʁʲ/ɣʲ] when гь гь [ɡʲ] is ҷ ҷ [t͡ʃʼ]?
CREATE TABLE table_202365_2 (ҕь_ҕь_ VARCHAR, ʁʲ_ɣʲ VARCHAR, гь_гь_ VARCHAR, ɡʲ VARCHAR)
SELECT ҕь_ҕь_[ʁʲ_ɣʲ] FROM table_202365_2 WHERE гь_гь_[ɡʲ] = "Ҷ ҷ [t͡ʃʼ]"
How many Years have Ratings of 10.9/23?
CREATE TABLE table_name_7 (year VARCHAR, ratings VARCHAR)
SELECT COUNT(year) FROM table_name_7 WHERE ratings = "10.9/23"
What is the rank for the competitor from Bulgaria?
CREATE TABLE table_name_16 (rank INTEGER, country VARCHAR)
SELECT MIN(rank) FROM table_name_16 WHERE country = "bulgaria"
What is the driver with the laps under 16, grid of 10, a bike of Yamaha YZF-R6, and ended with an accident?
CREATE TABLE table_name_67 (rider VARCHAR, grid VARCHAR, bike VARCHAR, laps VARCHAR, time VARCHAR)
SELECT rider FROM table_name_67 WHERE laps < 16 AND time = "accident" AND bike = "yamaha yzf-r6" AND grid = 10
Who is the player from round 13 that plays center?
CREATE TABLE table_name_47 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT player FROM table_name_47 WHERE round = 13 AND position = "center"
All high points are team new york.
CREATE TABLE table_17080868_8 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_17080868_8 WHERE team = "New York"
What are the distinct reigns of wrestlers whose location is not "Tokyo,Japan" ?
CREATE TABLE wrestler (Reign VARCHAR, LOCATION VARCHAR)
SELECT DISTINCT Reign FROM wrestler WHERE LOCATION <> "Tokyo , Japan"
display job title and average salary of employees.
CREATE TABLE jobs (job_title VARCHAR, job_id VARCHAR); CREATE TABLE employees (job_id VARCHAR)
SELECT job_title, AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id GROUP BY T2.job_title
When sigma (with 1.5σ shift) is 2.5, what percent is defective?
CREATE TABLE table_222448_1 (percent_defective VARCHAR, sigma__with_15σ_shift_ VARCHAR)
SELECT percent_defective FROM table_222448_1 WHERE sigma__with_15σ_shift_ = "2.5"
Who played against team 1 Liverpool?
CREATE TABLE table_17282875_2 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT team__number2 FROM table_17282875_2 WHERE team__number1 = "Liverpool"
How many songs have used the instrument "drums"?
CREATE TABLE instruments (instrument VARCHAR)
SELECT COUNT(*) FROM instruments WHERE instrument = "drums"
What is the Chassis having a year later than 1990, and Minardi Scuderia Italia as an entrant, and 4 points?
CREATE TABLE table_name_41 (chassis VARCHAR, points VARCHAR, year VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_41 WHERE year > 1990 AND entrant = "minardi scuderia italia" AND points = 4
What is the name of the car that was made in the years 1956-1958?
CREATE TABLE table_name_18 (automobile_name VARCHAR, year VARCHAR)
SELECT automobile_name FROM table_name_18 WHERE year = "1956-1958"
What is the poor law union on Marshalstown?
CREATE TABLE table_28802165_1 (poor_law_union VARCHAR, townland VARCHAR)
SELECT poor_law_union FROM table_28802165_1 WHERE townland = "Marshalstown"
When 16 is the cap who is the player?
CREATE TABLE table_28286776_50 (player VARCHAR, cap_s_ VARCHAR)
SELECT player FROM table_28286776_50 WHERE cap_s_ = 16
What is the date of game 7?
CREATE TABLE table_20745746_1 (date VARCHAR, _number VARCHAR)
SELECT date FROM table_20745746_1 WHERE _number = "7"
What team was he on the year he had 38 points?
CREATE TABLE table_24584486_1 (team VARCHAR, points VARCHAR)
SELECT team FROM table_24584486_1 WHERE points = 38
What is the release in Germany?
CREATE TABLE table_name_96 (release_date VARCHAR, location VARCHAR)
SELECT release_date FROM table_name_96 WHERE location = "germany"
What is the smallest bush# with 66.0% bush and less than 65 others#?
CREATE TABLE table_name_55 (bush_number INTEGER, bush_percentage VARCHAR, others_number VARCHAR)
SELECT MIN(bush_number) FROM table_name_55 WHERE bush_percentage = "66.0%" AND others_number < 65
When marshmallow cookies is segment b what episode is it on netflix?
CREATE TABLE table_15187735_5 (netflix VARCHAR, segment_b VARCHAR)
SELECT netflix FROM table_15187735_5 WHERE segment_b = "Marshmallow Cookies"
What Week has a Result of l 17-14?
CREATE TABLE table_name_52 (week INTEGER, result VARCHAR)
SELECT SUM(week) FROM table_name_52 WHERE result = "l 17-14"
Name the least rank subcontinent for bangladesh
CREATE TABLE table_2248784_3 (rank_subcontinent INTEGER, country VARCHAR)
SELECT MIN(rank_subcontinent) FROM table_2248784_3 WHERE country = "Bangladesh"
What is the surface of the tournament with cédric pioline as the opponent in the final?
CREATE TABLE table_name_37 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT surface FROM table_name_37 WHERE opponent_in_the_final = "cédric pioline"
When was the song by Andy Gibb issued?
CREATE TABLE table_name_44 (issue_date_s_ VARCHAR, artist VARCHAR)
SELECT issue_date_s_ FROM table_name_44 WHERE artist = "andy gibb"
What is the id and type code for the template used by the most documents?
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (Template_Type_Code VARCHAR, template_id VARCHAR)
SELECT T1.template_id, T2.Template_Type_Code FROM Documents AS T1 JOIN Templates AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_id ORDER BY COUNT(*) DESC LIMIT 1
Who is the women's doubles when the mixed doubles are sudket prapakamol saralee thungthongkam?
CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, mixed_doubles VARCHAR)
SELECT womens_doubles FROM table_27753492_2 WHERE mixed_doubles = "Sudket Prapakamol Saralee Thungthongkam"
How many books are there?
CREATE TABLE book (Id VARCHAR)
SELECT COUNT(*) FROM book
In which year(s) did the person who has a total of 291 win?
CREATE TABLE table_name_69 (year_s__won VARCHAR, total VARCHAR)
SELECT year_s__won FROM table_name_69 WHERE total = 291
Which document has the most draft copies? List its document id and number of draft copies.
CREATE TABLE Draft_Copies (document_id VARCHAR, copy_number VARCHAR)
SELECT document_id, COUNT(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY COUNT(copy_number) DESC LIMIT 1
How many dates for the week of 4?
CREATE TABLE table_23916462_3 (date VARCHAR, week VARCHAR)
SELECT COUNT(date) FROM table_23916462_3 WHERE week = 4
Find distinct cities of addresses of people?
CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE people_addresses (address_id VARCHAR)
SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id
What is the location for the first division, Sun Pegasus Club?
CREATE TABLE table_name_25 (location VARCHAR, league_division VARCHAR, club VARCHAR)
SELECT location FROM table_name_25 WHERE league_division = "first division" AND club = "sun pegasus"
What is Career Win-Loss, when Tournament is "Hamburg"?
CREATE TABLE table_name_11 (career_win_loss VARCHAR, tournament VARCHAR)
SELECT career_win_loss FROM table_name_11 WHERE tournament = "hamburg"
What was Des Dickson's lowest rank for matches smaller than 285 and less than 219 goals?
CREATE TABLE table_name_89 (rank INTEGER, goals VARCHAR, matches VARCHAR, name VARCHAR)
SELECT MIN(rank) FROM table_name_89 WHERE matches < 285 AND name = "des dickson" AND goals < 219
What is the enrollment at the school with IHSAA class A and where mascot is the Vikings?
CREATE TABLE table_name_39 (enrollment VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT enrollment FROM table_name_39 WHERE ihsaa_class = "a" AND mascot = "vikings"
what is ba - running bear where b - bishop is rn - running stag?
CREATE TABLE table_2603017_2 (ba___running_bear VARCHAR, b___bishop VARCHAR)
SELECT ba___running_bear FROM table_2603017_2 WHERE b___bishop = "RN - Running Stag"
How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?
CREATE TABLE table_name_97 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT SUM(laps) FROM table_name_97 WHERE grid < 5 AND time_retired = "retirement"
What is the average, minimum, maximum, and total transaction amount?
CREATE TABLE Financial_transactions (transaction_amount INTEGER)
SELECT AVG(transaction_amount), MIN(transaction_amount), MAX(transaction_amount), SUM(transaction_amount) FROM Financial_transactions
What location was the game with the result of 29-14?
CREATE TABLE table_name_11 (location VARCHAR, result VARCHAR)
SELECT location FROM table_name_11 WHERE result = "29-14"
What year was owner Michael E. Pegram's last win?
CREATE TABLE table_name_42 (year INTEGER, owner VARCHAR)
SELECT MAX(year) FROM table_name_42 WHERE owner = "michael e. pegram"
What's the average Year for the Position of 7th (sf)?
CREATE TABLE table_name_47 (year INTEGER, position VARCHAR)
SELECT AVG(year) FROM table_name_47 WHERE position = "7th (sf)"
Which Skip has a Third of constanze hummelt?
CREATE TABLE table_name_37 (skip VARCHAR, third VARCHAR)
SELECT skip FROM table_name_37 WHERE third = "constanze hummelt"
what is the total number of 2nd leg where aggregate is 7-2
CREATE TABLE table_1061075_1 (aggregate VARCHAR)
SELECT COUNT(2 AS nd_leg) FROM table_1061075_1 WHERE aggregate = "7-2"
From which country is the player who made less than $216?
CREATE TABLE table_name_63 (country VARCHAR, money___$__ INTEGER)
SELECT country FROM table_name_63 WHERE money___$__ < 216
What is the date of appointment when replaced by is roy hodgson?
CREATE TABLE table_10592536_8 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT date_of_appointment FROM table_10592536_8 WHERE replaced_by = "Roy Hodgson"
Which player went to the college of Western Washington?
CREATE TABLE table_name_84 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_84 WHERE college = "western washington"
Who were the champions in 1988?
CREATE TABLE table_name_26 (champion VARCHAR, year VARCHAR)
SELECT champion FROM table_name_26 WHERE year = 1988
Name the sum of Comp which has a Yds/game smaller than 209.5,brytus Name, and a Rating smaller than 100?
CREATE TABLE table_name_94 (comp INTEGER, rating VARCHAR, yds_game VARCHAR, name VARCHAR)
SELECT SUM(comp) FROM table_name_94 WHERE yds_game < 209.5 AND name = "brytus" AND rating < 100
Who vacated his post when his successor was formally installed on May 11, 1966?
CREATE TABLE table_1847180_3 (vacator VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT vacator FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966"
what's the minimum species in the peruvian amazon with species in peru of 1000
CREATE TABLE table_11727969_1 (species_in_the_peruvian_amazon INTEGER, species_in_peru VARCHAR)
SELECT MIN(species_in_the_peruvian_amazon) FROM table_11727969_1 WHERE species_in_peru = 1000
Which Scorers have a Venue of A, and an Opponent of arsenal?
CREATE TABLE table_name_41 (scorers VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT scorers FROM table_name_41 WHERE venue = "a" AND opponent = "arsenal"