answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_1639689_2 WHERE week = 2
What day(s) did they play on week 2?
CREATE TABLE table_1639689_2 (date VARCHAR, week VARCHAR)
SELECT MAX(runs) FROM table_name_96 WHERE high_score = "385" AND innings < 407
What is the high run total associated with a high score of 385 and under 407 innings?
CREATE TABLE table_name_96 (runs INTEGER, high_score VARCHAR, innings VARCHAR)
SELECT nat FROM table_19018191_5 WHERE total_apps = 27
Name the nat for total apps for 27
CREATE TABLE table_19018191_5 (nat VARCHAR, total_apps VARCHAR)
SELECT res FROM table_name_35 WHERE record = "3-0"
Which res has a Record of 3-0?
CREATE TABLE table_name_35 (res VARCHAR, record VARCHAR)
SELECT regular_season FROM table_name_50 WHERE year = 2013
Which regular season was 2013 in?
CREATE TABLE table_name_50 (regular_season VARCHAR, year VARCHAR)
SELECT COUNT(number_of_australians_involved) FROM table_10121127_1 WHERE un_operation_title = "UN Commission on Korea"
How many Australians were in the UN commission on Korea?
CREATE TABLE table_10121127_1 (number_of_australians_involved VARCHAR, un_operation_title VARCHAR)
SELECT position FROM table_name_30 WHERE year > 2008 AND player = "greg fredlund"
What was the position of Greg Fredlund in years after 2008?
CREATE TABLE table_name_30 (position VARCHAR, year VARCHAR, player VARCHAR)
SELECT fuel_propulsion FROM table_name_73 WHERE fleet_series__quantity_ = "04001-04125 (125)"
Which Fuel Propulsion has a Fleet Series (Quantity) of 04001-04125 (125)?
CREATE TABLE table_name_73 (fuel_propulsion VARCHAR, fleet_series__quantity_ VARCHAR)
SELECT SUM(rank) FROM table_name_51 WHERE province = "gīlān" AND date_of_official_foundation_of_municipality > 1922 AND 2006 > 557366
What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366?
CREATE TABLE table_name_51 (rank INTEGER, province VARCHAR, date_of_official_foundation_of_municipality VARCHAR)
SELECT lead FROM table_name_73 WHERE skip = "mike mcewen"
Which Lead has a Skip of mike mcewen?
CREATE TABLE table_name_73 (lead VARCHAR, skip VARCHAR)
SELECT T1.Name, T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID
Show the names of members and the decoration themes they have.
CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Decoration_Theme VARCHAR, Member_ID VARCHAR)
SELECT score FROM table_name_64 WHERE result = "draw" AND opponent = "arema malang"
For the match against Arema Malang that ended in a draw, what was the final score?
CREATE TABLE table_name_64 (score VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT title FROM table_16090262_1 WHERE no_in_season = 4
Which title was No. 4 in season?
CREATE TABLE table_16090262_1 (title VARCHAR, no_in_season VARCHAR)
SELECT special_edition FROM table_25173505_13 WHERE english_version = "Nick Stewart"
what is the special edition where the english version is nick stewart?
CREATE TABLE table_25173505_13 (special_edition VARCHAR, english_version VARCHAR)
SELECT SUM(pick) FROM table_name_23 WHERE school = "tulane university"
What is the pick number for tulane university?
CREATE TABLE table_name_23 (pick INTEGER, school VARCHAR)
SELECT codename FROM table_199666_1 WHERE centrino = "Chief River"
What's the code name of the wireless LAN with Chief River Centrino?
CREATE TABLE table_199666_1 (codename VARCHAR, centrino VARCHAR)
SELECT team FROM table_name_1 WHERE player = "bill walker"
What team does Bill Walker play for?
CREATE TABLE table_name_1 (team VARCHAR, player VARCHAR)
SELECT runner_up FROM table_name_18 WHERE champion = "0" AND fourth_place = "0" AND rank = 6
What was the runner-up when champion is 0, 4th place is 0 and rank is 6?
CREATE TABLE table_name_18 (runner_up VARCHAR, rank VARCHAR, champion VARCHAR, fourth_place VARCHAR)
SELECT MAX(points) FROM table_name_15 WHERE equipment = "zabel-wsp" AND position > 7
What were highest points received from someone using a zabel-wsp with a position greater than 7?
CREATE TABLE table_name_15 (points INTEGER, equipment VARCHAR, position VARCHAR)
SELECT MAX(rebounds) FROM table_22824319_3 WHERE player = "Larry Smith"
Name the most rebounds for larry smith
CREATE TABLE table_22824319_3 (rebounds INTEGER, player VARCHAR)
SELECT COUNT(wins) FROM table_name_4 WHERE goals_for > 35 AND team = "montreal hockey club" AND losses < 2
What is the sum of wins when the goals for number was bigger than 35, the team was the Montreal Hockey Club, and the number of losses was less than 2?
CREATE TABLE table_name_4 (wins VARCHAR, losses VARCHAR, goals_for VARCHAR, team VARCHAR)
SELECT domari FROM table_name_40 WHERE hindi = "pāñc"
What Domari word has the same meaning as the Hindi word pāñc?
CREATE TABLE table_name_40 (domari VARCHAR, hindi VARCHAR)
SELECT MIN(wins) FROM table_name_66 WHERE tournament = "totals" AND top_25 < 4
Which totals tournament has the lowest wins and top-25 less than 4?
CREATE TABLE table_name_66 (wins INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT fastest_lap FROM table_2911781_3 WHERE rd = 15
Who had the fastest lap in round 15?
CREATE TABLE table_2911781_3 (fastest_lap VARCHAR, rd VARCHAR)
SELECT MIN(grid) FROM table_name_92 WHERE driver = "juan pablo montoya"
What is the smallest grid for driver of juan pablo montoya?
CREATE TABLE table_name_92 (grid INTEGER, driver VARCHAR)
SELECT match_type FROM table_name_64 WHERE location = "budapest" AND opponenent = "luxembourg"
What was the match type in Budapest where the opponent was Luxembourg?
CREATE TABLE table_name_64 (match_type VARCHAR, location VARCHAR, opponenent VARCHAR)
SELECT AVG(area__km²_) FROM table_name_10 WHERE density___km²_ = 263
What's the Area with a Density of 263?
CREATE TABLE table_name_10 (area__km²_ INTEGER, density___km²_ VARCHAR)
SELECT MAX(purse__) AS $_ FROM table_15315276_1
What is the maximum purse prize of the Northeast Delta Dental International Championship?
CREATE TABLE table_15315276_1 (purse__ INTEGER)
SELECT home_team FROM table_24887326_7 WHERE away_team = "Fulham"
Who was the home team when the away team was fulham?
CREATE TABLE table_24887326_7 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(gold) FROM table_name_97 WHERE rank < 5 AND bronze = 20
Which Gold has a Rank smaller than 5, and a Bronze of 20?
CREATE TABLE table_name_97 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT title FROM table_14637853_3 WHERE original_air_date = "September23,1995"
what's the title with original air date being september23,1995
CREATE TABLE table_14637853_3 (title VARCHAR, original_air_date VARCHAR)
SELECT arena__capacity_ FROM table_name_19 WHERE town = "kazan"
What is the Arena o Kazan?
CREATE TABLE table_name_19 (arena__capacity_ VARCHAR, town VARCHAR)
SELECT assists FROM table_name_4 WHERE player = "steve walker"
How many assists did Steve Walker have?
CREATE TABLE table_name_4 (assists VARCHAR, player VARCHAR)
SELECT date FROM table_name_37 WHERE record = "11-8"
On which Date was there a record of 11-8?
CREATE TABLE table_name_37 (date VARCHAR, record VARCHAR)
SELECT AVG(total_votes) FROM table_name_75 WHERE _number_of_seats_won < 0
Can you tell me the average Total votes that has the # of seats won smaller than 0?
CREATE TABLE table_name_75 (total_votes INTEGER, _number_of_seats_won INTEGER)
SELECT location_of_the_church FROM table_name_51 WHERE year_built = 1914
What is the Location of the Church that was built in the year 1914?
CREATE TABLE table_name_51 (location_of_the_church VARCHAR, year_built VARCHAR)
SELECT withdrawal_rate__2010_11_ FROM table_21514460_1 WHERE graduation_rate__2011_12_ = "89.3%"
What is the withdrawal rate for the school district with a graduation rate of 89.3%?
CREATE TABLE table_21514460_1 (withdrawal_rate__2010_11_ VARCHAR, graduation_rate__2011_12_ VARCHAR)
SELECT 2008 FROM table_name_47 WHERE 2011 = "1r"
Which year has a 2011 of 1r?
CREATE TABLE table_name_47 (Id VARCHAR)
SELECT no_of_s_barangay FROM table_255885_1 WHERE municipality = "Paracale"
What is the number of S Barangay for Paracale?
CREATE TABLE table_255885_1 (no_of_s_barangay VARCHAR, municipality VARCHAR)
SELECT nationality FROM table_11303072_9 WHERE player = "David Bairstow"
What is the nationality of David Bairstow?
CREATE TABLE table_11303072_9 (nationality VARCHAR, player VARCHAR)
SELECT MAX(crowd) FROM table_name_30 WHERE ground = "telstra dome" AND home_team = "western bulldogs"
What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs?
CREATE TABLE table_name_30 (crowd INTEGER, ground VARCHAR, home_team VARCHAR)
SELECT position FROM table_name_96 WHERE signed = "yes" AND round < 24 AND name = "charlie hough"
what is the position when signed is yes, round is less than 24 and name is charlie hough?
CREATE TABLE table_name_96 (position VARCHAR, name VARCHAR, signed VARCHAR, round VARCHAR)
SELECT points_for FROM table_name_14 WHERE "club" = "club"
What is listed for Points for that has a Club of Club?
CREATE TABLE table_name_14 (points_for VARCHAR)
SELECT scheduled FROM table_name_13 WHERE capacity__mw_ < 32.5 AND type = "nordex n90 2.5mw" AND wind_farm = "glenough extension"
What is the scheduled value for the farm having a capacity under 32.5MW, type of Nordex n90 2.5MW, and a farm of Glenough Extension?
CREATE TABLE table_name_13 (scheduled VARCHAR, wind_farm VARCHAR, capacity__mw_ VARCHAR, type VARCHAR)
SELECT points_classification FROM table_name_92 WHERE stage = "15"
What is the point classification of stage 15?
CREATE TABLE table_name_92 (points_classification VARCHAR, stage VARCHAR)
SELECT 2014 FROM table_name_23 WHERE 2013 = "jarrah rubinstein"
Who held the same position in 2014 that Jarrah Rubinstein held in 2013?
CREATE TABLE table_name_23 (Id VARCHAR)
SELECT AVG(cuts_made) FROM table_name_17 WHERE top_5 = 3 AND top_10 < 5
What's the listed average of Cuts made that has a Top-5 of 3, and a Top-10 that's smaller than 5?
CREATE TABLE table_name_17 (cuts_made INTEGER, top_5 VARCHAR, top_10 VARCHAR)
SELECT 2005 FROM table_name_89 WHERE 1998 = "f" AND 2002 = "2r"
What is 2005, when 1998 is "F", and when 2002 is "2R"?
CREATE TABLE table_name_89 (Id VARCHAR)
SELECT MIN(silver) FROM table_name_2 WHERE overall < 67 AND team = "saami" AND gold < 5
what is the least silver when overall is less than 67, team is saami and gold is less than 5?
CREATE TABLE table_name_2 (silver INTEGER, gold VARCHAR, overall VARCHAR, team VARCHAR)
SELECT reigns FROM table_name_53 WHERE days_held = 92
Which Reigns has 92 days held?
CREATE TABLE table_name_53 (reigns VARCHAR, days_held VARCHAR)
SELECT laps FROM table_name_18 WHERE grid < 11 AND driver = "john love"
How many laps did John Love have on a grid less than 11?
CREATE TABLE table_name_18 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT SUM(attendance) FROM table_name_80 WHERE h___a = "n"
What is the sum of attendance for H/A values of "n"?
CREATE TABLE table_name_80 (attendance INTEGER, h___a VARCHAR)
SELECT owner FROM table_name_64 WHERE trainer = "todd a. pletcher"
What Owner's Trainer is Todd A. Pletcher?
CREATE TABLE table_name_64 (owner VARCHAR, trainer VARCHAR)
SELECT cardinal_direction FROM table_name_90 WHERE english = "wednesday p.m."
What is the cardinal direction of Wednesday p.m. in English?
CREATE TABLE table_name_90 (cardinal_direction VARCHAR, english VARCHAR)
SELECT call_sign FROM table_name_52 WHERE network = "omni television" AND digital_psip = 14.1
What is the Call sign of the Omni television network with a Digitial PSIP of 14.1?
CREATE TABLE table_name_52 (call_sign VARCHAR, network VARCHAR, digital_psip VARCHAR)
SELECT elector FROM table_name_4 WHERE place_of_birth = "bavaria"
What Elector has the Place of Birth listed as Bavaria?
CREATE TABLE table_name_4 (elector VARCHAR, place_of_birth VARCHAR)
SELECT AVG(age), city_code FROM student GROUP BY city_code
Find the average age of all students living in the each city.
CREATE TABLE student (city_code VARCHAR, age INTEGER)
SELECT label FROM table_name_61 WHERE album = "so red the rose"
Which Label that has an Album of so red the rose?
CREATE TABLE table_name_61 (label VARCHAR, album VARCHAR)
SELECT represented FROM table_23576576_2 WHERE hometown = "Windhoek"
If the hometown is Windhoek, what is the represented?
CREATE TABLE table_23576576_2 (represented VARCHAR, hometown VARCHAR)
SELECT MIN(top_10) FROM table_2506300_1 WHERE winnings = "$1,741,176"
What the rank in the top 10 when the winnings were $1,741,176?
CREATE TABLE table_2506300_1 (top_10 INTEGER, winnings VARCHAR)
SELECT affiliation FROM table_20887670_1 WHERE mascot = "Hilltoppers"
what is the affiliation of the hilltoppers mascot?
CREATE TABLE table_20887670_1 (affiliation VARCHAR, mascot VARCHAR)
SELECT competition FROM table_name_91 WHERE result = "win" AND score = "1-0"
What is the Competition with a Result of win with a Score that is 1-0?
CREATE TABLE table_name_91 (competition VARCHAR, result VARCHAR, score VARCHAR)
SELECT AVG(pop_area__1_km²_) FROM table_name_84 WHERE no_p > 1 AND name = "albergaria-a-velha"
Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha?
CREATE TABLE table_name_84 (pop_area__1_km²_ INTEGER, no_p VARCHAR, name VARCHAR)
SELECT steals FROM table_22824319_3 WHERE blocks = 5
Name the steals for 5 blocks
CREATE TABLE table_22824319_3 (steals VARCHAR, blocks VARCHAR)
SELECT date FROM table_name_23 WHERE week = 8
What is the date of week 8?
CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR)
SELECT capital FROM table_19605700_1 WHERE area_km² = 377930
Which capitals have an area of exactly 377930 square km?
CREATE TABLE table_19605700_1 (capital VARCHAR, area_km² VARCHAR)
SELECT unemployment_rate FROM table_22815568_13 WHERE market_income_per_capita = "$16,406"
what is the unemployment rate where the market income per capita is $16,406?
CREATE TABLE table_22815568_13 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR)
SELECT type FROM table_2538117_7 WHERE organization = "Gamma Rho Lambda 1"
What is the type if the organization name is Gamma RHO Lambda 1?
CREATE TABLE table_2538117_7 (type VARCHAR, organization VARCHAR)
SELECT high_rebounds FROM table_name_6 WHERE score = "61-59"
What is High Rebounds, when Score is 61-59?
CREATE TABLE table_name_6 (high_rebounds VARCHAR, score VARCHAR)
SELECT swimmer FROM table_name_41 WHERE time = "7:52.04"
Who got the time of 7:52.04?
CREATE TABLE table_name_41 (swimmer VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_42 WHERE date = "march 16"
Which Opponent has a Date of march 16?
CREATE TABLE table_name_42 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(points) AS defending FROM table_26218783_6 WHERE player = "Stanislas Wawrinka"
How many times is player Stanislas Wawrinka on the list?
CREATE TABLE table_26218783_6 (points VARCHAR, player VARCHAR)
SELECT budget FROM table_name_28 WHERE worldwide = "$363,398,565"
WHAT IS THE BUDGET WHEN THE WORLDWIDE BOX OFFICE IS $363,398,565?
CREATE TABLE table_name_28 (budget VARCHAR, worldwide VARCHAR)
SELECT tie_no FROM table_name_73 WHERE away_team = "lewes"
What is the tie number when the away team is Lewes?
CREATE TABLE table_name_73 (tie_no VARCHAR, away_team VARCHAR)
SELECT class FROM table_name_5 WHERE weight = 220
Weight of 220 has what class?
CREATE TABLE table_name_5 (class VARCHAR, weight VARCHAR)
SELECT to_par FROM table_name_42 WHERE country = "united states" AND player = "dave stockton"
which To par has a Country of united states, and a Player of dave stockton?
CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, player VARCHAR)
SELECT set_1 FROM table_name_39 WHERE set_3 = "22-25"
What is Set 1, when Set 3 is 22-25?
CREATE TABLE table_name_39 (set_1 VARCHAR, set_3 VARCHAR)
SELECT result FROM table_name_43 WHERE date = "22 january 2008"
What is the Result with a Date with 22 january 2008?
CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR)
SELECT village FROM table_name_57 WHERE region = "côte de nuits" AND wine_style = "red wine" AND grand_cru = "latricières-chambertin"
Which Village has a Region of Côte De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latricières-Chambertin?
CREATE TABLE table_name_57 (village VARCHAR, grand_cru VARCHAR, region VARCHAR, wine_style VARCHAR)
SELECT performance_order FROM table_26267849_11 WHERE artist = "Velasco Brothers"
Name the performance order of the velasco brothers
CREATE TABLE table_26267849_11 (performance_order VARCHAR, artist VARCHAR)
SELECT result FROM table_name_75 WHERE record = "62–12"
What was the result when the record was 62–12?
CREATE TABLE table_name_75 (result VARCHAR, record VARCHAR)
SELECT series FROM table_name_41 WHERE date = "april 24"
What is the series record for the game on April 24?
CREATE TABLE table_name_41 (series VARCHAR, date VARCHAR)
SELECT Name FROM People ORDER BY Weight
What are the names of people in ascending order of weight?
CREATE TABLE People (Name VARCHAR, Weight VARCHAR)
SELECT MAX(transit_passengers) FROM table_13836704_7 WHERE international_passengers = 4870184
What is the maximum number of trnsit passeners when the total number of international passengers is 4870184?
CREATE TABLE table_13836704_7 (transit_passengers INTEGER, international_passengers VARCHAR)
SELECT airport FROM table_name_85 WHERE city = "kota kinabalu"
What is the name of the airport in the city of Kota Kinabalu?
CREATE TABLE table_name_85 (airport VARCHAR, city VARCHAR)
SELECT year FROM table_name_13 WHERE superlative = "oldest winner"
In what year had the oldest winner?
CREATE TABLE table_name_13 (year VARCHAR, superlative VARCHAR)
SELECT MAX(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = "£2,350"
What is the latest amount of won legs in the payoffs when the prize money was £2,350?
CREATE TABLE table_24334163_1 (Winners INTEGER, total_money_won VARCHAR)
SELECT score FROM table_name_50 WHERE attendance = "43,746"
What was the score when 43,746 attended?
CREATE TABLE table_name_50 (score VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_69 WHERE opponent_in_the_final = "arnaud di pasquale"
What is the date of the match with arnaud di pasquale as the opponent in the final?
CREATE TABLE table_name_69 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT SUM(total__000s_) FROM table_name_20 WHERE year = "1996"
What is the amount of 000s from 1996?
CREATE TABLE table_name_20 (total__000s_ INTEGER, year VARCHAR)
SELECT away_team FROM table_name_59 WHERE home_team = "st kilda"
Who is the away side when st kilda is the home side?
CREATE TABLE table_name_59 (away_team VARCHAR, home_team VARCHAR)
SELECT Major FROM STUDENT WHERE Sex = "M"
What are the majors of male (sex is M) students?
CREATE TABLE STUDENT (Major VARCHAR, Sex VARCHAR)
SELECT T2.name, T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = "Lewis"
Give me a list of names and years of races that had any driver whose forename is Lewis?
CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (name VARCHAR, year VARCHAR, raceid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR)
SELECT venue FROM table_name_7 WHERE losing_team = "newcastle knights"
Name the Venue which has a Losing Team of newcastle knights?
CREATE TABLE table_name_7 (venue VARCHAR, losing_team VARCHAR)
SELECT building FROM Faculty GROUP BY building ORDER BY COUNT(*) DESC LIMIT 1
Which building has most faculty members?
CREATE TABLE Faculty (building VARCHAR)
SELECT 2008 FROM table_name_79 WHERE 2012 = "3r" AND 2009 = "2r"
what is 2008 when 2012 is 3r and 2009 is 2r?
CREATE TABLE table_name_79 (Id VARCHAR)
SELECT duration FROM table_name_42 WHERE actor = "pietro genuardi"
What is the duration that has pietro genuardi as the actor?
CREATE TABLE table_name_42 (duration VARCHAR, actor VARCHAR)
SELECT 1989 FROM table_name_95 WHERE 1983 = "a" AND 1987 = "a"
What is the 1989 result for the tournament that had a 1983 and 1987 result of A?
CREATE TABLE table_name_95 (Id VARCHAR)
SELECT high_rebounds FROM table_22879323_10 WHERE date = "April 4"
What were the high rebounds on April 4?
CREATE TABLE table_22879323_10 (high_rebounds VARCHAR, date VARCHAR)
SELECT MAX(seed) FROM table_24431264_16 WHERE player = "David Ferrer"
What was david ferrer seeded?
CREATE TABLE table_24431264_16 (seed INTEGER, player VARCHAR)