answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_52 WHERE record = "1–0"
When has a Record of 1–0?
CREATE TABLE table_name_52 (date VARCHAR, record VARCHAR)
SELECT MAX(gold) FROM table_name_94 WHERE country = "cambodia" AND total < 1
What is the highest gold for Cambodia when the total is less than 1?
CREATE TABLE table_name_94 (gold INTEGER, country VARCHAR, total VARCHAR)
SELECT rank FROM table_name_44 WHERE react < 0.168 AND nationality = "virgin islands"
What the rank of the Virgin Islands athlete with react under 0.168?
CREATE TABLE table_name_44 (rank VARCHAR, react VARCHAR, nationality VARCHAR)
SELECT driver FROM table_name_14 WHERE chassis___engine = "porsche 956 gti"
Who is the driver of the chassis-engine porsche 956 gti?
CREATE TABLE table_name_14 (driver VARCHAR, chassis___engine VARCHAR)
SELECT tertiary__18_24_years_ FROM table_25042332_22 WHERE secondary__14_17_years_ = "71.43"
What is the enrollment ratio in tertiary in the region where the enrollment ration in secondary is 71.43?
CREATE TABLE table_25042332_22 (tertiary__18_24_years_ VARCHAR, secondary__14_17_years_ VARCHAR)
SELECT last_performance FROM table_name_7 WHERE status = "past" AND style = "ballet" AND name = "tommy batchelor"
what last performance has past status, ballet as style and tommy batchelor?
CREATE TABLE table_name_7 (last_performance VARCHAR, name VARCHAR, status VARCHAR, style VARCHAR)
SELECT director FROM table_name_80 WHERE title = "buddy of the apes"
Who's the director of Buddy of the Apes?
CREATE TABLE table_name_80 (director VARCHAR, title VARCHAR)
SELECT SUM(season) FROM table_name_74 WHERE series = "formula renault 3.5 series" AND races < 7
In what Season was the Series Formula Renault 3.5 series with less than 7 Races?
CREATE TABLE table_name_74 (season INTEGER, series VARCHAR, races VARCHAR)
SELECT date FROM table_name_30 WHERE winning_score = 72 - 67 - 68 - 67 = 274
On what Date was the Winning score of 72-67-68-67=274?
CREATE TABLE table_name_30 (date VARCHAR, winning_score VARCHAR)
SELECT release_date FROM table_name_43 WHERE vendor = "eclipse foundation"
What is the release date for Eclipse Foundation?
CREATE TABLE table_name_43 (release_date VARCHAR, vendor VARCHAR)
SELECT location FROM table_27409644_1 WHERE ground = "Lootospark"
Where is lootospark from?
CREATE TABLE table_27409644_1 (location VARCHAR, ground VARCHAR)
SELECT T2.Name FROM election AS T1 JOIN representative AS T2 ON T1.Representative_ID = T2.Representative_ID ORDER BY votes DESC
What are the names of representatives in descending order of votes?
CREATE TABLE representative (Name VARCHAR, Representative_ID VARCHAR); CREATE TABLE election (Representative_ID VARCHAR)
SELECT bandwidth___mhz__ FROM table_2394927_1 WHERE profile = "8b"
What are the mhz when the profile is 8b?
CREATE TABLE table_2394927_1 (bandwidth___mhz__ VARCHAR, profile VARCHAR)
SELECT tries_against FROM table_13399573_3 WHERE won = "14"
How many tries were against when the number won was 14?
CREATE TABLE table_13399573_3 (tries_against VARCHAR, won VARCHAR)
SELECT oct FROM table_name_94 WHERE nov = "51/30"
What were the Oct. temperatures for the city that had Nov. temperatures of 51/30?
CREATE TABLE table_name_94 (oct VARCHAR, nov VARCHAR)
SELECT days_with_rain__year_summer_ FROM table_12837_1 WHERE city_town = "Santiago de Compostela"
What is the days with rain figure for the city of Santiago de Compostela?
CREATE TABLE table_12837_1 (days_with_rain__year_summer_ VARCHAR, city_town VARCHAR)
SELECT SUM(year) FROM table_name_96 WHERE role = "narrator" AND radio_station_production_company = "bbc audiobooks" AND release_air_date = "13 november 2008"
Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year?
CREATE TABLE table_name_96 (year INTEGER, release_air_date VARCHAR, role VARCHAR, radio_station_production_company VARCHAR)
SELECT type FROM table_name_46 WHERE date < 1943 AND builder = "alco schenectady" AND number > 822 AND works_number = 59867
Which Type has a Date smaller than 1943, and a Builder of alco schenectady, and a Number larger than 822, and Works number of 59867?
CREATE TABLE table_name_46 (type VARCHAR, works_number VARCHAR, number VARCHAR, date VARCHAR, builder VARCHAR)
SELECT T2.premises_type, T1.address_type_code FROM customer_addresses AS T1 JOIN premises AS T2 ON T1.premise_id = T2.premise_id
Show the premise type and address type code for all customer addresses.
CREATE TABLE premises (premises_type VARCHAR, premise_id VARCHAR); CREATE TABLE customer_addresses (address_type_code VARCHAR, premise_id VARCHAR)
SELECT set_3 FROM table_name_61 WHERE time = "10:00" AND score = "3–2" AND total = "113–102"
Which set 3 has a Time of 10:00, and a Score of 3–2, and a Total of 113–102?
CREATE TABLE table_name_61 (set_3 VARCHAR, total VARCHAR, time VARCHAR, score VARCHAR)
SELECT MIN(total_gdp_world_rank) FROM table_2248991_2 WHERE gdp_per_capita = "$1,163"
What is the total gdp world rank when the gdp per capita was listed at $1,163?
CREATE TABLE table_2248991_2 (total_gdp_world_rank INTEGER, gdp_per_capita VARCHAR)
SELECT percent_of_capital FROM table_206419_3 WHERE s_b_share = 8256534
What is the percent of capital for the shareholder that has a s B share of 8256534?
CREATE TABLE table_206419_3 (percent_of_capital VARCHAR, s_b_share VARCHAR)
SELECT 153 AS kg FROM table_name_27 WHERE world_record = "clean & jerk"
Who has the world record of 153kg in the clean & jerk?
CREATE TABLE table_name_27 (world_record VARCHAR)
SELECT player FROM table_name_30 WHERE round < 10 AND pick = 16
Who was pick 16 and before round 10?
CREATE TABLE table_name_30 (player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT power_rpm FROM table_1212189_1 WHERE torque__nm__rpm = "N·m (lb·ft)/*N·m (lb·ft) @1750"
For the model with torque of n·m (lb·ft)/*n·m (lb·ft) @1750, what is the power?
CREATE TABLE table_1212189_1 (power_rpm VARCHAR, torque__nm__rpm VARCHAR)
SELECT date FROM table_name_54 WHERE location_attendance = "seattle center coliseum"
When was the game played that was at the Seattle Center Coliseum?
CREATE TABLE table_name_54 (date VARCHAR, location_attendance VARCHAR)
SELECT COUNT(release_price___usd__) FROM table_16400024_1 WHERE model_number = "Pentium III 550"
How many release prices are there for the Pentium iii 550?
CREATE TABLE table_16400024_1 (release_price___usd__ VARCHAR, model_number VARCHAR)
SELECT MIN(decile) FROM table_name_2 WHERE years = "1-6" AND area = "maitland"
What is the lowest decile with 1-6 years and area of Maitland?
CREATE TABLE table_name_2 (decile INTEGER, years VARCHAR, area VARCHAR)
SELECT 2013 FROM table_name_38 WHERE 2007 = "1r" AND 2009 = "1r"
What is the value in 2013 when it is 1R in 2007 and 2009?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT record FROM table_name_41 WHERE round < 3 AND time = "4:59"
what is the record when the round is before 3 and the time si 4:59?
CREATE TABLE table_name_41 (record VARCHAR, round VARCHAR, time VARCHAR)
SELECT dixon FROM table_1014319_1 WHERE dance_song = "Samba / Young Hearts Run Free" AND result = "Second place"
What score did Dixon give to the song "samba / young hearts run free", which was in second place?
CREATE TABLE table_1014319_1 (dixon VARCHAR, dance_song VARCHAR, result VARCHAR)
SELECT episode FROM table_2140071_10 WHERE coach = "Maritza Reveron"
Name the episode with maritza reveron
CREATE TABLE table_2140071_10 (episode VARCHAR, coach VARCHAR)
SELECT home_team AS score FROM table_name_52 WHERE home_team = "north melbourne"
What was the North Melbourne's score when they played as the home team?
CREATE TABLE table_name_52 (home_team VARCHAR)
SELECT AVG(week) FROM table_name_51 WHERE result = "w 14-13" AND attendance > 53 OFFSET 295
what is the week when the result is w 14-13 and the attendance is higher than 53,295?
CREATE TABLE table_name_51 (week INTEGER, result VARCHAR, attendance VARCHAR)
SELECT others_percentage FROM table_20693870_1 WHERE mccain_percentage = "52.9%" AND mccain_number < 45205.0
What percentage was the others vote when McCain had 52.9% and less than 45205.0 voters?
CREATE TABLE table_20693870_1 (others_percentage VARCHAR, mccain_percentage VARCHAR, mccain_number VARCHAR)
SELECT country FROM table_name_54 WHERE player = "curtis strange"
What country is Curtis Strange from?
CREATE TABLE table_name_54 (country VARCHAR, player VARCHAR)
SELECT SUM(clubs_remaining) FROM table_name_25 WHERE new_entries_this_round = "34" AND clubs_involved > 34
What is the sum of the clubs remaining with 34 new entries this round and more than 34 clubs involved?
CREATE TABLE table_name_25 (clubs_remaining INTEGER, new_entries_this_round VARCHAR, clubs_involved VARCHAR)
SELECT team FROM table_name_7 WHERE rider = "john williams"
Which team is John Williams a rider for?
CREATE TABLE table_name_7 (team VARCHAR, rider VARCHAR)
SELECT country FROM table_name_1 WHERE place = "t9" AND player = "michael campbell"
What is Country, when Place is "T9", and when Player is "Michael Campbell"?
CREATE TABLE table_name_1 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT record FROM table_name_37 WHERE date = "october 31"
What is Record, when Date is October 31?
CREATE TABLE table_name_37 (record VARCHAR, date VARCHAR)
SELECT date FROM table_name_26 WHERE venue = "punt road oval"
What day does the team play at punt road oval?
CREATE TABLE table_name_26 (date VARCHAR, venue VARCHAR)
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor
What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor?
CREATE TABLE entrepreneur (Investor VARCHAR)
SELECT mar_24 FROM table_name_93 WHERE may_26 = "13" AND may_12 = "6"
What is the Mar 24 rank when the May 26 is 13, and the May 12 is 6?
CREATE TABLE table_name_93 (mar_24 VARCHAR, may_26 VARCHAR, may_12 VARCHAR)
SELECT career FROM table_name_80 WHERE 2007 = "3r" AND 1999 = "1r"
What is the career for 2007 3r, and 1999 1r?
CREATE TABLE table_name_80 (career VARCHAR)
SELECT band FROM table_name_75 WHERE year > 2011
What band has a year above 2011?
CREATE TABLE table_name_75 (band VARCHAR, year INTEGER)
SELECT place FROM table_name_38 WHERE downhill_points = 7.73
What place is the skier with 7.73 downhill points?
CREATE TABLE table_name_38 (place VARCHAR, downhill_points VARCHAR)
SELECT position FROM table_name_40 WHERE venue = "helsinki, finland"
Which position has a venue of Helsinki, Finland?
CREATE TABLE table_name_40 (position VARCHAR, venue VARCHAR)
SELECT constructor FROM table_1140082_2 WHERE race = "Swedish Grand Prix"
What is the constructor of the Swedish Grand Prix?
CREATE TABLE table_1140082_2 (constructor VARCHAR, race VARCHAR)
SELECT railway FROM table_name_58 WHERE location = "shildon" AND objectnumber = "1975-7022"
Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?
CREATE TABLE table_name_58 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR)
SELECT home_city FROM table_name_29 WHERE stadium = "stadion src mladost"
what is the home city for the stadion src mladost?
CREATE TABLE table_name_29 (home_city VARCHAR, stadium VARCHAR)
SELECT season FROM table_21576644_2 WHERE mens_2nd_xi = "5th, South Western District 2"
When 5th, south western district 2 is the mens 2nd xi what is the season?
CREATE TABLE table_21576644_2 (season VARCHAR, mens_2nd_xi VARCHAR)
SELECT record FROM table_17288869_5 WHERE date = "November 1"
What was the record on November 1?
CREATE TABLE table_17288869_5 (record VARCHAR, date VARCHAR)
SELECT rider FROM table_name_44 WHERE laps < 15 AND grid > 32 AND time_retired = "accident"
Who is the rider with less than 15 laps, more than 32 grids, and an accident time/retired?
CREATE TABLE table_name_44 (rider VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT water_park FROM table_name_72 WHERE rank = 20
what is the water park with the rank 20?
CREATE TABLE table_name_72 (water_park VARCHAR, rank VARCHAR)
SELECT away_team FROM table_name_41 WHERE venue = "junction oval"
who is the away team when played at junction oval?
CREATE TABLE table_name_41 (away_team VARCHAR, venue VARCHAR)
SELECT MIN(no_in_series) FROM table_23289934_1 WHERE production_code = "3ABC21"
Name the least number for production code for 3abc21
CREATE TABLE table_23289934_1 (no_in_series INTEGER, production_code VARCHAR)
SELECT document_type_code FROM documents WHERE document_name = "David CV"
What is the type of the document named "David CV"?
CREATE TABLE documents (document_type_code VARCHAR, document_name VARCHAR)
SELECT opponent FROM table_name_49 WHERE week = 11
Which opponent has a week of 11?
CREATE TABLE table_name_49 (opponent VARCHAR, week VARCHAR)
SELECT set_2 FROM table_name_14 WHERE time = "15:33"
What set 2 has 15:33 as the time?
CREATE TABLE table_name_14 (set_2 VARCHAR, time VARCHAR)
SELECT high_assists FROM table_22883210_11 WHERE series = "0-1"
When 0-1 is the series who has the highest amount of assists?
CREATE TABLE table_22883210_11 (high_assists VARCHAR, series VARCHAR)
SELECT MAX(_number) FROM table_24108789_6 WHERE player = "Steve Stricker"
Name the most number for steve stricker
CREATE TABLE table_24108789_6 (_number INTEGER, player VARCHAR)
SELECT COUNT(party) FROM table_1342256_6 WHERE candidates = "John J. Phillips (R) 57.6% N. E. West (D) 42.4%"
how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4%
CREATE TABLE table_1342256_6 (party VARCHAR, candidates VARCHAR)
SELECT COUNT(release_date) FROM table_2263152_1 WHERE security_issues = "99-025" AND distribution_mechanism = "Microsoft website"
If the security issues is 99-025 and the distribution mechanism is the Microsoft website, what is the release date total number?
CREATE TABLE table_2263152_1 (release_date VARCHAR, security_issues VARCHAR, distribution_mechanism VARCHAR)
SELECT driver FROM table_name_30 WHERE grid = 1
Who is the driver with 1 grid?
CREATE TABLE table_name_30 (driver VARCHAR, grid VARCHAR)
SELECT performer_2 FROM table_name_26 WHERE episode = 5
Which Performer 2 has an Episode of 5?
CREATE TABLE table_name_26 (performer_2 VARCHAR, episode VARCHAR)
SELECT home_team FROM table_name_14 WHERE attendance = "1,859"
Which Home Team has an Attendance of 1,859?
CREATE TABLE table_name_14 (home_team VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_63 WHERE date = "january 7"
on january 7 what is the record?
CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR)
SELECT party FROM table_1342218_43 WHERE district = "Texas 2"
What party is associated with Texas 2?
CREATE TABLE table_1342218_43 (party VARCHAR, district VARCHAR)
SELECT COUNT(to_par) FROM table_name_48 WHERE year_won < 1993 AND player = "jeff sluman" AND total > 154
What is the total to par of player jeff sluman, who won before 1993 and has a total greater than 154?
CREATE TABLE table_name_48 (to_par VARCHAR, total VARCHAR, year_won VARCHAR, player VARCHAR)
SELECT team FROM table_name_46 WHERE position > 1 AND date = "9/1953" AND driver = "emmanuel de graffenried"
what team has a drive name emmanuel de graffenried and a position larger than 1 as well as the date of 9/1953?
CREATE TABLE table_name_46 (team VARCHAR, driver VARCHAR, position VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_83 WHERE score = "w 117–109 (ot)"
What is the location and attendance when the score as w 117–109 (ot)?
CREATE TABLE table_name_83 (location_attendance VARCHAR, score VARCHAR)
SELECT COUNT(reporters) FROM table_22514845_5 WHERE s_analyst = "Heywood Hale Broun"
Name the number of reporters for heywood hale broun
CREATE TABLE table_22514845_5 (reporters VARCHAR, s_analyst VARCHAR)
SELECT gender FROM table_name_9 WHERE roll = 338
What gender is allowed at the school which has a roll of 338?
CREATE TABLE table_name_9 (gender VARCHAR, roll VARCHAR)
SELECT AVG(year) FROM table_name_27 WHERE inglewood < 2 OFFSET 575
What is the average year that had a value less than 2,575 in Inglewood?
CREATE TABLE table_name_27 (year INTEGER, inglewood INTEGER)
SELECT other FROM table_name_80 WHERE atheism = "1.86%"
What is the value of other religions associated with atheism at 1.86%?
CREATE TABLE table_name_80 (other VARCHAR, atheism VARCHAR)
SELECT 1995 FROM table_name_81 WHERE 1997 = "lq" AND 1989 = "1r"
What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R?
CREATE TABLE table_name_81 (Id VARCHAR)
SELECT MAX(first_elected) FROM table_1341690_9
What is the last year that someone is first elected?
CREATE TABLE table_1341690_9 (first_elected INTEGER)
SELECT MIN(round) FROM table_name_16 WHERE college = "purdue" AND pick > 10
What was the earliest round that Purdue had a pick larger than 10?
CREATE TABLE table_name_16 (round INTEGER, college VARCHAR, pick VARCHAR)
SELECT SUM(crowd) FROM table_name_15 WHERE away_team = "fitzroy"
How large a crowd did the Fitzroy Away team draw?
CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR)
SELECT score FROM table_name_69 WHERE date = "14 december 1974" AND away_team = "crystal palace"
what is the score on 14 december 1974 and the away team is crystal palace?
CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT COUNT(silver) FROM table_name_71 WHERE bronze = 0 AND nation = "united kingdom"
What is the total number of silver medals when there are 0 Bronze medals, and the nation is the United Kingdom?
CREATE TABLE table_name_71 (silver VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT date FROM table_name_33 WHERE away_captain = "arthur jones" AND venue = "sydney cricket ground"
On what date was Arthur Jones the away captain at Sydney Cricket Ground?
CREATE TABLE table_name_33 (date VARCHAR, away_captain VARCHAR, venue VARCHAR)
SELECT position FROM table_name_16 WHERE name = "ronjay buenafe"
What position has ronjay buenafe as the name?
CREATE TABLE table_name_16 (position VARCHAR, name VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) DESC LIMIT 1
Which airline has most number of flights?
CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR)
SELECT semifinal FROM table_name_4 WHERE athlete = "hossein ojaghi"
Hossein Ojaghi participated in what semifinal.
CREATE TABLE table_name_4 (semifinal VARCHAR, athlete VARCHAR)
SELECT race_2 FROM table_15530244_5 WHERE driver = "James Winslow"
Name the race 2 for james winslow
CREATE TABLE table_15530244_5 (race_2 VARCHAR, driver VARCHAR)
SELECT location FROM table_name_94 WHERE game > 30 AND score = "106-111"
Where was the game that was larger than 30 and scored 106-111
CREATE TABLE table_name_94 (location VARCHAR, game VARCHAR, score VARCHAR)
SELECT SUM(wins) FROM table_name_19 WHERE draws < 2
How many wins happened when there were fewer than 2 draws?
CREATE TABLE table_name_19 (wins INTEGER, draws INTEGER)
SELECT Company_name FROM phone GROUP BY Company_name HAVING COUNT(*) > 1
List the name of the company that produced more than one phone model.
CREATE TABLE phone (Company_name VARCHAR)
SELECT call_sign FROM table_name_43 WHERE branding = "the q"
What's the call sign of The Q?
CREATE TABLE table_name_43 (call_sign VARCHAR, branding VARCHAR)
SELECT MAX(gold) FROM table_name_16 WHERE total < 3 AND rank = "5" AND silver > 1
What is the largest gold number when the total is less than 3, the rank is 5, and the silver is more than 1?
CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR)
SELECT record FROM table_name_63 WHERE date = "12 march 2008"
What was the record on 12 march 2008?
CREATE TABLE table_name_63 (record VARCHAR, date VARCHAR)
SELECT nhl_team FROM table_1213511_6 WHERE player = "Pierre Duguay"
Which team does Pierre Duguay play for?
CREATE TABLE table_1213511_6 (nhl_team VARCHAR, player VARCHAR)
SELECT population__1931__in_1, 000 AS s FROM table_14245_3 WHERE voivodeship_or_city = "lubelskie"
Name the population in 1931 for lubelskie
CREATE TABLE table_14245_3 (population__1931__in_1 VARCHAR, voivodeship_or_city VARCHAR)
SELECT MIN(lost) FROM table_name_96 WHERE drawn < 1 AND _percentage_won = "50%" AND against = "netherlands" AND played > 2
What is the lowest number of games lost that has less than 1 game drawn, a 50% winning percentage, against the netherlands, and over 2 played games?
CREATE TABLE table_name_96 (lost INTEGER, played VARCHAR, against VARCHAR, drawn VARCHAR, _percentage_won VARCHAR)
SELECT candidates FROM table_2668374_10 WHERE incumbent = "Samuel Riker"
Who were the running candidates when Samuel Riker was the incumbent?
CREATE TABLE table_2668374_10 (candidates VARCHAR, incumbent VARCHAR)
SELECT population FROM table_name_43 WHERE area__sq_mi_ = "6,004"
What is the population for the region with an area of 6,004 sq. Mi.?
CREATE TABLE table_name_43 (population VARCHAR, area__sq_mi_ VARCHAR)
SELECT AVG(year_joined) FROM table_name_22 WHERE year_left < 2003
Of all the schools that left before 2003, what is the average year joined?
CREATE TABLE table_name_22 (year_joined INTEGER, year_left INTEGER)
SELECT career FROM table_name_71 WHERE rank > 1 AND average < 36.13 AND wickets = 15 AND player = "george o'brien"
What was the career of the rank higher than 1, with an average less than 36.13 and 15 wickets, and player George O'Brien?
CREATE TABLE table_name_71 (career VARCHAR, player VARCHAR, wickets VARCHAR, rank VARCHAR, average VARCHAR)
SELECT COUNT(district) FROM table_29785324_5 WHERE constituency_no = 213
What district has 213 constituents?
CREATE TABLE table_29785324_5 (district VARCHAR, constituency_no VARCHAR)