question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many years was Louis Armstrong performing?
CREATE TABLE table_name_51 (year VARCHAR, performer_s_ VARCHAR)
SELECT COUNT(year) FROM table_name_51 WHERE performer_s_ = "louis armstrong"
what is the nation when the penalty points is less than 40.2 and judge e is 82.22?
CREATE TABLE table_name_30 (nation VARCHAR, penalty_points VARCHAR, judge_e VARCHAR)
SELECT nation FROM table_name_30 WHERE penalty_points < 40.2 AND judge_e = "82.22"
What is event 4 when event one was gauntlet, event 2 was duel, and event 3 was pendulum?
CREATE TABLE table_name_10 (event_4 VARCHAR, event_3 VARCHAR, event_1 VARCHAR, event_2 VARCHAR)
SELECT event_4 FROM table_name_10 WHERE event_1 = "gauntlet" AND event_2 = "duel" AND event_3 = "pendulum"
Name the Scored which has a Position larger than 6?
CREATE TABLE table_name_28 (scored VARCHAR, position INTEGER)
SELECT COUNT(scored) FROM table_name_28 WHERE position > 6
What country is player jay haas, who is in t10 place, from?
CREATE TABLE table_name_61 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_61 WHERE place = "t10" AND player = "jay haas"
What reference is used with the title アイシテル?
CREATE TABLE table_name_39 (reference VARCHAR, japanese_title VARCHAR)
SELECT reference FROM table_name_39 WHERE japanese_title = "アイシテル"
What was the smallest crowd at a game when Richmond was the away team?
CREATE TABLE table_name_6 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_6 WHERE away_team = "richmond"
What's the smallest number for cores of any of the processor models?
CREATE TABLE table_24099916_1 (cores INTEGER)
SELECT MIN(cores) FROM table_24099916_1
What was the score in the game that had a record of 25-8?
CREATE TABLE table_18904831_7 (score VARCHAR, record VARCHAR)
SELECT score FROM table_18904831_7 WHERE record = "25-8"
How many losses did Notre Dame have in 1904?
CREATE TABLE table_name_43 (losses INTEGER, years VARCHAR)
SELECT AVG(losses) FROM table_name_43 WHERE years = "1904"
What is the point total for the Formula Renault 2.0 Italy series?
CREATE TABLE table_21795650_1 (points VARCHAR, series VARCHAR)
SELECT COUNT(points) FROM table_21795650_1 WHERE series = "Formula Renault 2.0 Italy"
At what event did he fight matt eckerle?
CREATE TABLE table_name_55 (event VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_55 WHERE opponent = "matt eckerle"
What is the smallest total for a rank below 4, 0 silver medals, and 2 gold medals?
CREATE TABLE table_name_85 (total INTEGER, gold VARCHAR, rank VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_85 WHERE rank < 4 AND silver > 0 AND gold < 2
What is the latest founded year?
CREATE TABLE table_1973729_2 (founded INTEGER)
SELECT MAX(founded) FROM table_1973729_2
Which title, directed by David Kendall, had 3.7 million viewers?
CREATE TABLE table_18054886_1 (title VARCHAR, viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT title FROM table_18054886_1 WHERE viewers__millions_ = "3.7" AND directed_by = "David Kendall"
Name the least attendance with carolina visitor
CREATE TABLE table_name_97 (attendance INTEGER, visitor VARCHAR)
SELECT MIN(attendance) FROM table_name_97 WHERE visitor = "carolina"
When the driver richard attwood has a constructor of brm, what is the number of laps?
CREATE TABLE table_name_87 (laps VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_87 WHERE constructor = "brm" AND driver = "richard attwood"
What is the home city when Mladen Frančić is the manager?
CREATE TABLE table_name_36 (home_city VARCHAR, manager VARCHAR)
SELECT home_city FROM table_name_36 WHERE manager = "mladen frančić"
What is Total, when Player is "Hale Irwin"?
CREATE TABLE table_name_12 (total VARCHAR, player VARCHAR)
SELECT total FROM table_name_12 WHERE player = "hale irwin"
What was the score of the game on February 8?
CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_69 WHERE date = "february 8"
What's the melamine content of 英雄牌嬰幼兒配方乳粉 having more than 1 samples failed?
CREATE TABLE table_name_31 (melamine_content_mg_kg_ VARCHAR, samples_failed VARCHAR, product VARCHAR)
SELECT melamine_content_mg_kg_ FROM table_name_31 WHERE samples_failed > 1 AND product = "英雄牌嬰幼兒配方乳粉"
Which team has a home field at Glenferrie Oval?
CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_48 WHERE venue = "glenferrie oval"
Name the total number of scores for 7x10
CREATE TABLE table_23292220_7 (scores VARCHAR, episode VARCHAR)
SELECT COUNT(scores) FROM table_23292220_7 WHERE episode = "7x10"
What institution(s) are located in wilkes-barre, pennsylvania?
CREATE TABLE table_261906_2 (institution VARCHAR, location VARCHAR)
SELECT institution FROM table_261906_2 WHERE location = "Wilkes-Barre, Pennsylvania"
Name the motogp winner for 6 may
CREATE TABLE table_27948565_1 (motogp_winner VARCHAR, date VARCHAR)
SELECT motogp_winner FROM table_27948565_1 WHERE date = "6 May"
What was the score of Bernhard Langer after 3 rounds?
CREATE TABLE table_name_88 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_88 WHERE player = "bernhard langer"
Who was the high point scorer in game number 68?
CREATE TABLE table_15869204_8 (high_points VARCHAR, game VARCHAR)
SELECT high_points FROM table_15869204_8 WHERE game = 68
What is the date of birth for basket baller called ido kozikaro
CREATE TABLE table_23670057_4 (year_born INTEGER, player VARCHAR)
SELECT MAX(year_born) FROM table_23670057_4 WHERE player = "Ido Kozikaro"
Which player was from Fermanagh and had an average score of 22?
CREATE TABLE table_name_53 (average INTEGER, total VARCHAR, county VARCHAR)
SELECT AVG(average) FROM table_name_53 WHERE total = 22 AND county = "fermanagh"
Where did Essendon play as the home team?
CREATE TABLE table_name_95 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_95 WHERE home_team = "essendon"
Which network serves the Guerrero region
CREATE TABLE table_2899987_2 (network VARCHAR, region VARCHAR)
SELECT network FROM table_2899987_2 WHERE region = "Guerrero"
Name the total number of division for apps more than 5 for greece
CREATE TABLE table_name_83 (division VARCHAR, apps VARCHAR, country VARCHAR)
SELECT COUNT(division) FROM table_name_83 WHERE apps > 5 AND country = "greece"
What is the spoofed title for Parks and Recreation with an issue larger than 509?
CREATE TABLE table_name_43 (spoofed_title VARCHAR, issue VARCHAR, actual_title VARCHAR)
SELECT spoofed_title FROM table_name_43 WHERE issue > 509 AND actual_title = "parks and recreation"
What is the most cuts made for events with 1 top-5, 2 top-10s, and more than 13 total events?
CREATE TABLE table_name_52 (cuts_made INTEGER, events VARCHAR, top_5 VARCHAR, top_10 VARCHAR)
SELECT MAX(cuts_made) FROM table_name_52 WHERE top_5 = 1 AND top_10 = 2 AND events > 13
What is Country of Origin, when Type is Disposable, when Primary Cartridge is 105mm, and when Year of Intro is less than 2008?
CREATE TABLE table_name_74 (country_of_origin VARCHAR, year_of_intro VARCHAR, type VARCHAR, primary_cartridge VARCHAR)
SELECT country_of_origin FROM table_name_74 WHERE type = "disposable" AND primary_cartridge = "105mm" AND year_of_intro < 2008
Who directed when the production code is 1.02?
CREATE TABLE table_2226817_2 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_2226817_2 WHERE production_code = "1.02"
What was the lowest crowd size for the Carlton at home?
CREATE TABLE table_name_2 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_2 WHERE home_team = "carlton"
What is the least amount of games played with 21 losses?
CREATE TABLE table_18018248_2 (games_played INTEGER, loses VARCHAR)
SELECT MIN(games_played) FROM table_18018248_2 WHERE loses = 21
I want the lowest laps that have a grid of 12
CREATE TABLE table_name_22 (laps INTEGER, grid VARCHAR)
SELECT MIN(laps) FROM table_name_22 WHERE grid = 12
How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)?
CREATE TABLE table_name_26 (model VARCHAR, top_speed VARCHAR)
SELECT 0 AS _100km_h__62mph_ FROM table_name_26 WHERE model = "slk200k" AND top_speed = "236km/h (147mph)"
What is the innings when the average is 36.48?
CREATE TABLE table_20367820_16 (innings INTEGER, average VARCHAR)
SELECT MAX(innings) FROM table_20367820_16 WHERE average = "36.48"
What is the average pick of player jim h. mitchell?
CREATE TABLE table_name_3 (pick INTEGER, player VARCHAR)
SELECT AVG(pick) FROM table_name_3 WHERE player = "jim h. mitchell"
What years have a total of 395 (0)?
CREATE TABLE table_name_64 (years VARCHAR, total VARCHAR)
SELECT years FROM table_name_64 WHERE total = "395 (0)"
Which Total has a Rank smaller than 3, and a County of cork?
CREATE TABLE table_name_18 (total INTEGER, rank VARCHAR, county VARCHAR)
SELECT MIN(total) FROM table_name_18 WHERE rank < 3 AND county = "cork"
What is the name of the episode that was written by Scott M. Gimple?
CREATE TABLE table_27450976_1 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_27450976_1 WHERE written_by = "Scott M. Gimple"
Which pick was Bill Bray?
CREATE TABLE table_name_66 (pick INTEGER, player VARCHAR)
SELECT SUM(pick) FROM table_name_66 WHERE player = "bill bray"
What is the theme of the Year 2002 which was created by Artist Dan Fell?
CREATE TABLE table_name_86 (theme VARCHAR, year VARCHAR, artist VARCHAR)
SELECT theme FROM table_name_86 WHERE year = 2002 AND artist = "dan fell"
Who is the Winner, when the Name is Ouninpohja 1?
CREATE TABLE table_name_92 (winner VARCHAR, name VARCHAR)
SELECT winner FROM table_name_92 WHERE name = "ouninpohja 1"
What is the Name with an Event that is men's time trial?
CREATE TABLE table_name_15 (name VARCHAR, event VARCHAR)
SELECT name FROM table_name_15 WHERE event = "men's time trial"
In what Region was the Catalogue number 1785089 released?
CREATE TABLE table_name_16 (region VARCHAR, catalogue VARCHAR)
SELECT region FROM table_name_16 WHERE catalogue = "1785089"
What was the sample size for the poll from Nov 9-11, 2007 with a margin of error less than 4.3?
CREATE TABLE table_name_72 (sample_size INTEGER, date VARCHAR, margin_of_error VARCHAR)
SELECT MAX(sample_size) FROM table_name_72 WHERE date = "nov 9-11, 2007" AND margin_of_error < 4.3
Record description of altitude with kg (lb) payload, and a Pilot of g.v. alfyorov had what type?
CREATE TABLE table_name_73 (type VARCHAR, record_description VARCHAR, pilot VARCHAR)
SELECT type FROM table_name_73 WHERE record_description = "altitude with kg (lb) payload" AND pilot = "g.v. alfyorov"
What is High Assists, when Team is "@ Milwaukee"?
CREATE TABLE table_name_83 (high_assists VARCHAR, team VARCHAR)
SELECT high_assists FROM table_name_83 WHERE team = "@ milwaukee"
Which city has a club called the Huntsville Stars?
CREATE TABLE table_name_96 (city VARCHAR, club VARCHAR)
SELECT city FROM table_name_96 WHERE club = "huntsville stars"
Who was the home team when the record was 36–21–8?
CREATE TABLE table_name_23 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_23 WHERE record = "36–21–8"
What date has fewer than 32 against and the opposing team of Australia?
CREATE TABLE table_name_84 (date VARCHAR, against VARCHAR, opposing_teams VARCHAR)
SELECT date FROM table_name_84 WHERE against < 32 AND opposing_teams = "australia"
What is the Visitor with a Series with 3 – 2?
CREATE TABLE table_name_50 (visitor VARCHAR, series VARCHAR)
SELECT visitor FROM table_name_50 WHERE series = "3 – 2"
What is the lowest bronze a team with 9 silvers, a total larger than 13, and more than 13 gold medals has?
CREATE TABLE table_name_58 (bronze INTEGER, gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_58 WHERE silver = 9 AND total > 13 AND gold > 13
display the employee number, name( first name and last name ), and salary for all employees who earn more than the average salary and who work in a department with any employee with a 'J' in their first name.
CREATE TABLE employees (employee_id VARCHAR, first_name VARCHAR, last_name VARCHAR, salary INTEGER, department_id VARCHAR)
SELECT employee_id, first_name, last_name, salary FROM employees WHERE salary > (SELECT AVG(salary) FROM employees) AND department_id IN (SELECT department_id FROM employees WHERE first_name LIKE '%J%')
What is the number reference for LIE?
CREATE TABLE table_222771_1 (numeric_code VARCHAR, alpha_3_code VARCHAR)
SELECT numeric_code FROM table_222771_1 WHERE alpha_3_code = "LIE"
How many car makers are there in france?
CREATE TABLE COUNTRIES (CountryId VARCHAR, CountryName VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR)
SELECT COUNT(*) FROM CAR_MAKERS AS T1 JOIN COUNTRIES AS T2 ON T1.Country = T2.CountryId WHERE T2.CountryName = 'france'
What is the name of the Home Captain for 23,24,25,26 july 1992?
CREATE TABLE table_name_7 (home_captain VARCHAR, date VARCHAR)
SELECT home_captain FROM table_name_7 WHERE date = "23,24,25,26 july 1992"
Which song has picturization by only vijay?
CREATE TABLE table_10848177_1 (song VARCHAR, picturization VARCHAR)
SELECT song FROM table_10848177_1 WHERE picturization = "Vijay"
How many words are there in rusyn for the bulgarian word купува (kupuva)?
CREATE TABLE table_28136_15 (rusyn VARCHAR, bulgarian VARCHAR)
SELECT COUNT(rusyn) FROM table_28136_15 WHERE bulgarian = "купува (kupuva)"
Who was the home team at VFL Park?
CREATE TABLE table_name_22 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_22 WHERE venue = "vfl park"
What date was the match where Daniel Gimeno-Traver's partner was pere riba?
CREATE TABLE table_name_26 (date VARCHAR, partner VARCHAR)
SELECT date FROM table_name_26 WHERE partner = "pere riba"
Who won the match when the winner used the Pedigree attack?
CREATE TABLE table_18598175_2 (eliminated_by VARCHAR, method_of_elimination VARCHAR)
SELECT eliminated_by FROM table_18598175_2 WHERE method_of_elimination = "Pedigree"
On the 19th, where was the venue?
CREATE TABLE table_17120964_6 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_17120964_6 WHERE date = "19th"
What was the score of Collingwood?
CREATE TABLE table_name_69 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_69 WHERE home_team = "collingwood"
What Tournament was the 2010 Olympic Games?
CREATE TABLE table_name_58 (tournament VARCHAR)
SELECT tournament FROM table_name_58 WHERE 2010 = "olympic games"
WHAT IS THE SUM OF RACES WITH 9 POINTS?
CREATE TABLE table_name_49 (races INTEGER, points VARCHAR)
SELECT SUM(races) FROM table_name_49 WHERE points = "9"
Which Date has an Opponent of @ mariners, and a Loss of hernández (0-1)?
CREATE TABLE table_name_25 (date VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT date FROM table_name_25 WHERE opponent = "@ mariners" AND loss = "hernández (0-1)"
Which Engine has a Model of sl500, and a Year From larger than 1999?
CREATE TABLE table_name_57 (engine INTEGER, model VARCHAR, year_from VARCHAR)
SELECT MAX(engine) FROM table_name_57 WHERE model = "sl500" AND year_from > 1999
What is the 2009 result when 2011 is 1R and 2007 is A?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT 2009 FROM table_name_84 WHERE 2011 = "1r" AND 2007 = "a"
What is the lowest average that has a swimsuit less than 8.966, for west virginia and an evening gown less than 8.711?
CREATE TABLE table_name_15 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, state VARCHAR)
SELECT MIN(average) FROM table_name_15 WHERE swimsuit < 8.966 AND state = "west virginia" AND evening_gown < 8.711
What is the most wins when the number of losses was less than 4 and there was more than 0 ties?
CREATE TABLE table_name_77 (wins INTEGER, losses VARCHAR, ties VARCHAR)
SELECT MAX(wins) FROM table_name_77 WHERE losses < 4 AND ties > 0
Who was the opponents of the 5th Wicket Partnership?
CREATE TABLE table_name_3 (opponents VARCHAR, wicket_partnership VARCHAR)
SELECT opponents FROM table_name_3 WHERE wicket_partnership = "5th"
what is the 2011 performance for the US open?
CREATE TABLE table_name_2 (tournament VARCHAR)
SELECT 2011 FROM table_name_2 WHERE tournament = "us open"
What is the To par when there was a total of 291?
CREATE TABLE table_name_10 (to_par VARCHAR, total VARCHAR)
SELECT to_par FROM table_name_10 WHERE total = 291
What is the season # where production code is k1505?
CREATE TABLE table_11951237_3 (season__number INTEGER, production_code VARCHAR)
SELECT MIN(season__number) FROM table_11951237_3 WHERE production_code = "K1505"
What date was the game at Comiskey Park and had a 4th Inning?
CREATE TABLE table_name_47 (date VARCHAR, location VARCHAR, inning VARCHAR)
SELECT date FROM table_name_47 WHERE location = "comiskey park" AND inning = "4th"
Which tournament had a score of 6–7 (0–7) , 6–2, 4–6?
CREATE TABLE table_name_3 (tournament VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_3 WHERE score = "6–7 (0–7) , 6–2, 4–6"
Which Network has Bill Weber for the Lap-by-lap?
CREATE TABLE table_name_90 (network VARCHAR, lap_by_lap VARCHAR)
SELECT network FROM table_name_90 WHERE lap_by_lap = "bill weber"
What is the Coach with a Big Ten that is 2nd (79)?
CREATE TABLE table_name_72 (coach VARCHAR, big_ten VARCHAR)
SELECT coach FROM table_name_72 WHERE big_ten = "2nd (79)"
Which Designation has a Quantity of 52?
CREATE TABLE table_name_84 (designation VARCHAR, quantity VARCHAR)
SELECT designation FROM table_name_84 WHERE quantity = 52
What was the method when the time was 1:01?
CREATE TABLE table_name_51 (method VARCHAR, time VARCHAR)
SELECT method FROM table_name_51 WHERE time = "1:01"
What was the record when chicago was the home team?
CREATE TABLE table_name_63 (record VARCHAR, home VARCHAR)
SELECT record FROM table_name_63 WHERE home = "chicago"
What theme had an issue price of $489.95 after 2005?
CREATE TABLE table_name_22 (theme VARCHAR, issue_price VARCHAR, year VARCHAR)
SELECT theme FROM table_name_22 WHERE issue_price = "$489.95" AND year > 2005
What MLS team drafted samuel appiah?
CREATE TABLE table_25518547_3 (mls_team VARCHAR, player VARCHAR)
SELECT mls_team FROM table_25518547_3 WHERE player = "Samuel Appiah"
What was the away score when the game was at Brunswick Street Oval?
CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_70 WHERE venue = "brunswick street oval"
What country is the contestant from Chihuahua from?
CREATE TABLE table_20754016_2 (country VARCHAR, hometown VARCHAR)
SELECT country FROM table_20754016_2 WHERE hometown = "Chihuahua"
How many patients do each physician take care of? List their names and number of patients they take care of.
CREATE TABLE patient (PCP VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR)
SELECT T1.name, COUNT(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid
When was radek necas with less than 2.04 height born?
CREATE TABLE table_name_97 (year_born INTEGER, player VARCHAR, height VARCHAR)
SELECT AVG(year_born) FROM table_name_97 WHERE player = "radek necas" AND height < 2.04
What is the average loss with a goal higher than 51 and wins higher than 14?
CREATE TABLE table_name_88 (losses INTEGER, goals_against VARCHAR, wins VARCHAR)
SELECT AVG(losses) FROM table_name_88 WHERE goals_against > 51 AND wins > 14
When did the hotel with 727 rooms open?
CREATE TABLE table_name_80 (opening_date VARCHAR, hotel_rooms VARCHAR)
SELECT opening_date FROM table_name_80 WHERE hotel_rooms = 727
Find the addresses and author IDs of the course authors that teach at least two courses.
CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)
SELECT T1.address_line_1, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING COUNT(*) >= 2
What week that shows a game record of 0–1?
CREATE TABLE table_name_94 (week INTEGER, record VARCHAR)
SELECT AVG(week) FROM table_name_94 WHERE record = "0–1"
What athlete has reno as the place?
CREATE TABLE table_name_73 (athlete VARCHAR, place VARCHAR)
SELECT athlete FROM table_name_73 WHERE place = "reno"
Which Surname has Throws of l, and a DOB of 5/02/79?
CREATE TABLE table_name_63 (surname VARCHAR, throws VARCHAR, dob VARCHAR)
SELECT surname FROM table_name_63 WHERE throws = "l" AND dob = "5/02/79"
Which title was directed by chuck jones and released on 1958-04-12?
CREATE TABLE table_name_56 (title VARCHAR, director VARCHAR, release_date VARCHAR)
SELECT title FROM table_name_56 WHERE director = "chuck jones" AND release_date = "1958-04-12"