context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_8 (stadium VARCHAR, final_score VARCHAR)
What stadium has a final score of 26–21?
SELECT stadium FROM table_name_8 WHERE final_score = "26–21"
CREATE TABLE table_name_94 (final_score VARCHAR, stadium VARCHAR, visiting_team VARCHAR)
When the new orleans saints were visiting texas stadium, what was the final score?
SELECT final_score FROM table_name_94 WHERE stadium = "texas stadium" AND visiting_team = "new orleans saints"
CREATE TABLE table_name_43 (final_score VARCHAR, stadium VARCHAR, date VARCHAR)
What was the final score at texas stadium on September 17?
SELECT final_score FROM table_name_43 WHERE stadium = "texas stadium" AND date = "september 17"
CREATE TABLE table_name_9 (final_score VARCHAR, visiting_team VARCHAR, stadium VARCHAR)
What was the final score for the game at giants stadium when the indianapolis colts were the visiting team?
SELECT final_score FROM table_name_9 WHERE visiting_team = "indianapolis colts" AND stadium = "giants stadium"
CREATE TABLE table_name_82 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR)
What were the investment earnings in the year that State and Federal taxes were $8,549,565?
SELECT investment_earnings FROM table_name_82 WHERE state_ & _federal = "8,549,565"
CREATE TABLE table_name_26 (investment_earnings VARCHAR, state_ VARCHAR, _federal VARCHAR)
What were the investment earnings in the year that State and Federal taxes were $13,999,169?
SELECT investment_earnings FROM table_name_26 WHERE state_ & _federal = "13,999,169"
CREATE TABLE table_name_3 (investment_earnings VARCHAR, year VARCHAR, other_local_sources VARCHAR)
What were the investment earnings in a year when other local sources were $2,670,060 after 2001?
SELECT investment_earnings FROM table_name_3 WHERE year > 2001 AND other_local_sources = "$2,670,060"
CREATE TABLE table_name_23 (investment_earnings VARCHAR, total_revenue VARCHAR)
What were the investment earnings in a year when total revenue was $21,779,618?
SELECT investment_earnings FROM table_name_23 WHERE total_revenue = "21,779,618"
CREATE TABLE table_name_33 (property_taxes VARCHAR, year VARCHAR, total_revenue VARCHAR)
What were property taxes in a year when total revenue was $40,891,700 after 2002?
SELECT property_taxes FROM table_name_33 WHERE year > 2002 AND total_revenue = "$40,891,700"
CREATE TABLE table_name_28 (rank VARCHAR, season VARCHAR)
What rank for season 1?
SELECT rank FROM table_name_28 WHERE season = 1
CREATE TABLE table_name_66 (week VARCHAR, attendance VARCHAR)
What week had an attendance of 27,262?
SELECT week FROM table_name_66 WHERE attendance = "27,262"
CREATE TABLE table_name_7 (opponent VARCHAR, attendance VARCHAR)
What opponent has an attendance of 20,456?
SELECT opponent FROM table_name_7 WHERE attendance = "20,456"
CREATE TABLE table_name_40 (record VARCHAR, date VARCHAR)
What was the record on March 27?
SELECT record FROM table_name_40 WHERE date = "march 27"
CREATE TABLE table_name_68 (record VARCHAR, date VARCHAR)
What was the record on March 22?
SELECT record FROM table_name_68 WHERE date = "march 22"
CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)
What was the record on April 1?
SELECT record FROM table_name_44 WHERE date = "april 1"
CREATE TABLE table_name_65 (crowd INTEGER, away_team VARCHAR)
What was the lowest crowd size when Carlton was the away team.
SELECT MIN(crowd) FROM table_name_65 WHERE away_team = "carlton"
CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR)
Who played as the home team when Footscray was the away team?
SELECT home_team FROM table_name_5 WHERE away_team = "footscray"
CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR)
What size was the crowd when Hawthorn was the home team?
SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = "hawthorn"
CREATE TABLE table_name_25 (gold INTEGER, silver VARCHAR, rank VARCHAR, nation VARCHAR)
What is the lowest number of Gold the Nation of Italy had when it ranked other than 1, and had more than 0 Silver?
SELECT MIN(gold) FROM table_name_25 WHERE rank > 1 AND nation = "italy" AND silver > 0
CREATE TABLE table_name_76 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
How many Golds did the country with a Rank better than 5 and more Bronze than 1 receive?
SELECT SUM(gold) FROM table_name_76 WHERE rank < 5 AND bronze > 1
CREATE TABLE table_name_27 (bronze INTEGER, total INTEGER)
When the Total is less than 1, how many Bronze medals are won?
SELECT MIN(bronze) FROM table_name_27 WHERE total < 1
CREATE TABLE table_name_73 (gold INTEGER, bronze VARCHAR, total VARCHAR)
When the Total is less than 1, and Bronze is 0, how many Gold medals are there?
SELECT SUM(gold) FROM table_name_73 WHERE bronze = 0 AND total < 1
CREATE TABLE table_name_63 (rank VARCHAR, nation VARCHAR, total VARCHAR)
What is the Rank of the Nation of Germany when the Total is more than 2?
SELECT COUNT(rank) FROM table_name_63 WHERE nation = "germany" AND total > 2
CREATE TABLE table_name_35 (bodyweight INTEGER, snatch INTEGER)
Which weightlifter with a snatch larger than 117.5 had the lowest bodyweight?
SELECT MIN(bodyweight) FROM table_name_35 WHERE snatch > 117.5
CREATE TABLE table_name_43 (total__kg_ INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
Which weightlifter, who had a bodyweight of less than 136.16 and a clean and jerk larger than 135, had the highest Total?
SELECT MAX(total__kg_) FROM table_name_43 WHERE bodyweight < 136.16 AND clean_ & _jerk > 135
CREATE TABLE table_name_82 (total__kg_ INTEGER, bodyweight INTEGER)
Of weightlifters who weighed more than 136.16, who had the highest Total?
SELECT MAX(total__kg_) FROM table_name_82 WHERE bodyweight > 136.16
CREATE TABLE table_name_94 (_jerk VARCHAR, clean_ INTEGER, bodyweight VARCHAR, snatch VARCHAR)
What was the average clean and jerk of all weightlifters who had a bodyweight smaller than 87.5 and a snatch of less than 95?
SELECT AVG(clean_) & _jerk FROM table_name_94 WHERE bodyweight = 87.5 AND snatch < 95
CREATE TABLE table_name_8 (_jerk VARCHAR, clean_ VARCHAR, total__kg_ VARCHAR, snatch VARCHAR)
What is the sum of the weight that all weightlifters managed to clean and jerk, among weightlifters who had a snatch of more than 95 and a Total of more than 200?
SELECT COUNT(clean_) & _jerk FROM table_name_8 WHERE total__kg_ = 200 AND snatch > 95
CREATE TABLE table_name_92 (kilometer_no__rizal_park_basis_ VARCHAR, kilometer_no__layac_basis_ VARCHAR)
What kilometer (Rizal Park-basis) has a kilometer of 25?
SELECT kilometer_no__rizal_park_basis_ FROM table_name_92 WHERE kilometer_no__layac_basis_ = "25"
CREATE TABLE table_name_66 (barangay VARCHAR, exit VARCHAR)
Which Barangay has an exit of Sisiman toll barrier?
SELECT barangay FROM table_name_66 WHERE exit = "sisiman toll barrier"
CREATE TABLE table_name_29 (kilometer_no__layac_basis_ VARCHAR, barangay VARCHAR)
What kilometer (Layac-basis) has a Barangay of general lim (capot)?
SELECT kilometer_no__layac_basis_ FROM table_name_29 WHERE barangay = "general lim (capot)"
CREATE TABLE table_name_42 (municipality VARCHAR, barangay VARCHAR)
In which municipality is Barangay Poblacion?
SELECT municipality FROM table_name_42 WHERE barangay = "poblacion"
CREATE TABLE table_name_57 (exit VARCHAR, kilometer_no__rizal_park_basis_ VARCHAR)
What is the exit at kilometer (Rizal Park-basis) 164?
SELECT exit FROM table_name_57 WHERE kilometer_no__rizal_park_basis_ = "164"
CREATE TABLE table_name_27 (competition VARCHAR, date VARCHAR)
What is the competition on 23 February 1929?
SELECT competition FROM table_name_27 WHERE date = "23 february 1929"
CREATE TABLE table_name_93 (club_province VARCHAR, player VARCHAR, position VARCHAR, caps VARCHAR)
What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps?
SELECT club_province FROM table_name_93 WHERE position = "wing" AND caps < 24 AND player = "sireli bobo"
CREATE TABLE table_name_40 (caps VARCHAR, position VARCHAR, player VARCHAR)
What is the total number of Caps Aca Ratuva, a flanker, has?
SELECT COUNT(caps) FROM table_name_40 WHERE position = "flanker" AND player = "aca ratuva"
CREATE TABLE table_name_45 (date_of_birth__age_ VARCHAR, player VARCHAR)
What is the date of birth of Kameli Ratuvou?
SELECT date_of_birth__age_ FROM table_name_45 WHERE player = "kameli ratuvou"
CREATE TABLE table_name_49 (date_of_birth__age_ VARCHAR, player VARCHAR)
What is the date of birth of Henry Qiodravu?
SELECT date_of_birth__age_ FROM table_name_49 WHERE player = "henry qiodravu"
CREATE TABLE table_name_89 (total INTEGER, gold INTEGER)
What is the lowest medal total with less than 3 gold medals?
SELECT MIN(total) FROM table_name_89 WHERE gold < 3
CREATE TABLE table_name_32 (laps INTEGER, start VARCHAR)
What's the lowest amount of laps with a start of 21?
SELECT MIN(laps) FROM table_name_32 WHERE start = "21"
CREATE TABLE table_name_20 (start VARCHAR, qual VARCHAR)
What was the start of the competitor with a qualifying time of 84.300?
SELECT start FROM table_name_20 WHERE qual = "84.300"
CREATE TABLE table_name_38 (year VARCHAR, laps INTEGER)
In what year were there more laps than 200 in a race?
SELECT year FROM table_name_38 WHERE laps > 200
CREATE TABLE table_name_38 (current_version VARCHAR, license VARCHAR, name VARCHAR)
what is the current version of the project64 with gpl v2 license?
SELECT current_version FROM table_name_38 WHERE license = "gpl v2" AND name = "project64"
CREATE TABLE table_name_97 (current_version VARCHAR, license VARCHAR, name VARCHAR)
what is the current version of the name mupen64plus with gpl v2 license?
SELECT current_version FROM table_name_97 WHERE license = "gpl v2" AND name = "mupen64plus"
CREATE TABLE table_name_77 (current_version VARCHAR, license VARCHAR)
what is the current version with license gpl v3?
SELECT current_version FROM table_name_77 WHERE license = "gpl v3"
CREATE TABLE table_name_1 (leading_man VARCHAR, year VARCHAR, director VARCHAR)
What leading man earlier than 1932 was directed by archie mayo?
SELECT leading_man FROM table_name_1 WHERE year < 1932 AND director = "archie mayo"
CREATE TABLE table_name_56 (year INTEGER, role VARCHAR, director VARCHAR)
What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley?
SELECT SUM(year) FROM table_name_56 WHERE role = "nan taylor, alias of nan ellis, aka mrs. andrews" AND director = "william keighley"
CREATE TABLE table_name_65 (year INTEGER, role VARCHAR)
What is the latest year for the role of joan gordon, aka francine la rue?
SELECT MAX(year) FROM table_name_65 WHERE role = "joan gordon, aka francine la rue"
CREATE TABLE table_name_91 (film VARCHAR, leading_man VARCHAR, year VARCHAR)
What film has a leading man of adolphe menjou in 1939?
SELECT film FROM table_name_91 WHERE leading_man = "adolphe menjou" AND year = 1939
CREATE TABLE table_name_54 (film VARCHAR, role VARCHAR, leading_man VARCHAR, director VARCHAR, year VARCHAR)
What film was the director william a. wellman, later than 1931 with a leading man of george brent, and a Role of joan gordon, aka francine la rue?
SELECT film FROM table_name_54 WHERE director = "william a. wellman" AND year > 1931 AND leading_man = "george brent" AND role = "joan gordon, aka francine la rue"
CREATE TABLE table_name_14 (director VARCHAR, year VARCHAR, role VARCHAR)
What director directed the role of shelby barret wyatt in 1935?
SELECT director FROM table_name_14 WHERE year = 1935 AND role = "shelby barret wyatt"
CREATE TABLE table_name_53 (weekly_rank___number_ VARCHAR, share VARCHAR, viewers__m_ VARCHAR)
What is the weekly rank for a share of 9 and 9.42 million viewers?
SELECT weekly_rank___number_ FROM table_name_53 WHERE share = 9 AND viewers__m_ = 9.42
CREATE TABLE table_name_33 (rating INTEGER, weekly_rank___number_ VARCHAR, share VARCHAR)
What is the sum of all ratings at a weekly rank of 10 and a share less than 11?
SELECT SUM(rating) FROM table_name_33 WHERE weekly_rank___number_ = "10" AND share < 11
CREATE TABLE table_name_47 (viewers__m_ INTEGER, rating INTEGER)
What is the highest number of viewers for a rating greater than 9.4?
SELECT MAX(viewers__m_) FROM table_name_47 WHERE rating > 9.4
CREATE TABLE table_name_40 (athlete VARCHAR, year VARCHAR, event VARCHAR)
Which athlete performed before 1984 in an 800 m event?
SELECT athlete FROM table_name_40 WHERE year < 1984 AND event = "800 m"
CREATE TABLE table_name_97 (points INTEGER, tries VARCHAR, player VARCHAR)
What is the lowest number of points that Tevita Vaikona scored when making more than 23 tries?
SELECT MIN(points) FROM table_name_97 WHERE tries > 23 AND player = "tevita vaikona"
CREATE TABLE table_name_46 (points INTEGER, player VARCHAR, tries VARCHAR)
What is the average number of points scored by Joe Vagana when making fewer than 2 tries?
SELECT AVG(points) FROM table_name_46 WHERE player = "joe vagana" AND tries < 2
CREATE TABLE table_name_19 (competition VARCHAR, result VARCHAR, score VARCHAR)
What is the competition that had a win result and a score of 3-1?
SELECT competition FROM table_name_19 WHERE result = "win" AND score = "3-1"
CREATE TABLE table_name_33 (venue VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
What is the venue of the match that had a win result and a score of 0-4 in the 2002 Tiger Cup Group Stage?
SELECT venue FROM table_name_33 WHERE result = "win" AND competition = "2002 tiger cup group stage" AND score = "0-4"
CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR)
What is the score of the match on July 22, 2008?
SELECT score FROM table_name_98 WHERE date = "july 22, 2008"
CREATE TABLE table_name_16 (score VARCHAR, competition VARCHAR)
What is the score of the 2002 Tiger Cup third/fourth place match?
SELECT score FROM table_name_16 WHERE competition = "2002 tiger cup third/fourth place"
CREATE TABLE table_name_37 (competition VARCHAR, date VARCHAR)
What is the competition on October 15, 2008?
SELECT competition FROM table_name_37 WHERE date = "october 15, 2008"
CREATE TABLE table_name_61 (player VARCHAR, school VARCHAR)
What is the player that went to st. benedict's prep?
SELECT player FROM table_name_61 WHERE school = "st. benedict's prep"
CREATE TABLE table_name_58 (nba_draft VARCHAR, college VARCHAR)
What is the NBA draft for ohio state?
SELECT nba_draft FROM table_name_58 WHERE college = "ohio state"
CREATE TABLE table_name_69 (school VARCHAR, height VARCHAR)
What school did the player that is 6-6 go to?
SELECT school FROM table_name_69 WHERE height = "6-6"
CREATE TABLE table_name_28 (school VARCHAR, player VARCHAR)
What school did samardo samuels go to?
SELECT school FROM table_name_28 WHERE player = "samardo samuels"
CREATE TABLE table_name_88 (final VARCHAR, event VARCHAR)
What is the final for middleweight –75 kg?
SELECT final FROM table_name_88 WHERE event = "middleweight –75 kg"
CREATE TABLE table_name_26 (athlete VARCHAR, semifinal VARCHAR, event VARCHAR)
For the light heavyweight –81 kg event that did not advance to semifinal, who was the athlete?
SELECT athlete FROM table_name_26 WHERE semifinal = "did not advance" AND event = "light heavyweight –81 kg"
CREATE TABLE table_name_78 (final VARCHAR, athlete VARCHAR)
What was the final for rouhollah hosseini?
SELECT final FROM table_name_78 WHERE athlete = "rouhollah hosseini"
CREATE TABLE table_name_75 (round_of_16 VARCHAR, quarterfinal VARCHAR, round_of_32 VARCHAR)
When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16?
SELECT round_of_16 FROM table_name_75 WHERE quarterfinal = "did not advance" AND round_of_32 = "n/a"
CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR)
Can you tell me the Home team that has a Venue of Windy Hill?
SELECT home_team FROM table_name_17 WHERE venue = "windy hill"
CREATE TABLE table_name_68 (attendance INTEGER, home VARCHAR)
What was the lowest attendance at a game when Pittsburgh was the home team?
SELECT MIN(attendance) FROM table_name_68 WHERE home = "pittsburgh"
CREATE TABLE table_name_81 (date VARCHAR, home VARCHAR)
What was the date of the game when Atlanta was the home team?
SELECT date FROM table_name_81 WHERE home = "atlanta"
CREATE TABLE table_name_90 (decision VARCHAR, home VARCHAR)
What was the decision of the game when Montreal was the home team?
SELECT decision FROM table_name_90 WHERE home = "montreal"
CREATE TABLE table_name_26 (date VARCHAR, decision VARCHAR, record VARCHAR)
What was the date of the game with a decision of Niittymaki and when the Flyers had a record of 30–21–5?
SELECT date FROM table_name_26 WHERE decision = "niittymaki" AND record = "30–21–5"
CREATE TABLE table_name_19 (position VARCHAR, nationality VARCHAR, pick VARCHAR)
Which Position has a Nationality of united states, and a Pick of 9?
SELECT position FROM table_name_19 WHERE nationality = "united states" AND pick = 9
CREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR)
What is the average Pick with a Position of pg, and a Round less than 1?
SELECT AVG(pick) FROM table_name_14 WHERE position = "pg" AND round < 1
CREATE TABLE table_name_92 (top_10 INTEGER, events VARCHAR, cuts_made VARCHAR, top_5 VARCHAR)
Which top ten, having less than 12 cuts less than 2 top five, and events smaller than 14, is the highest?
SELECT MAX(top_10) FROM table_name_92 WHERE cuts_made < 12 AND top_5 < 2 AND events < 14
CREATE TABLE table_name_79 (top_5 INTEGER, cuts_made VARCHAR)
What is the average for the top five having a number of 42 cuts made.
SELECT AVG(top_5) FROM table_name_79 WHERE cuts_made = 42
CREATE TABLE table_name_8 (score VARCHAR, visitor VARCHAR, date VARCHAR)
Tell me the score on april 27 with visitor of buffalo
SELECT score FROM table_name_8 WHERE visitor = "buffalo" AND date = "april 27"
CREATE TABLE table_name_4 (crowd INTEGER, away_team VARCHAR)
How many people attended Melbourne's away game?
SELECT SUM(crowd) FROM table_name_4 WHERE away_team = "melbourne"
CREATE TABLE table_name_66 (result VARCHAR, venue VARCHAR, score VARCHAR)
Who won the game at Dairy farmers stadium with a score of 28-24?
SELECT result FROM table_name_66 WHERE venue = "dairy farmers stadium" AND score = "28-24"
CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)
Who won that game on 24 July 2010?
SELECT result FROM table_name_26 WHERE date = "24 july 2010"
CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR, score VARCHAR)
Who loss the 24-28 game?
SELECT opponent FROM table_name_20 WHERE result = "loss" AND score = "24-28"
CREATE TABLE table_name_69 (opponent VARCHAR, score VARCHAR)
Who scored 18-19?
SELECT opponent FROM table_name_69 WHERE score = "18-19"
CREATE TABLE table_name_1 (rank VARCHAR, silver VARCHAR, nation VARCHAR)
Which rank has more than 1 silver and a total nation?
SELECT rank FROM table_name_1 WHERE silver > 1 AND nation = "total"
CREATE TABLE table_name_79 (total INTEGER, nation VARCHAR, gold VARCHAR)
What is the lowest total from slovenia with a Gold smaller than 0?
SELECT MIN(total) FROM table_name_79 WHERE nation = "slovenia" AND gold < 0
CREATE TABLE table_name_1 (class VARCHAR, no_built VARCHAR, operator VARCHAR)
What class has less than 12 numbers built operated by southern?
SELECT class FROM table_name_1 WHERE no_built < 12 AND operator = "southern"
CREATE TABLE table_name_62 (episode VARCHAR, viewers__m_ VARCHAR, households__rating_share_ VARCHAR)
Name the episode for viewers bigger than 5.63 and the households rating is 4.5/7
SELECT episode FROM table_name_62 WHERE viewers__m_ > 5.63 AND households__rating_share_ = "4.5/7"
CREATE TABLE table_name_1 (weekly_rank___number_ VARCHAR)
Name the 18-49 rating for weekly rank of 30
SELECT 18 AS _49__rating_share_ FROM table_name_1 WHERE weekly_rank___number_ = "30"
CREATE TABLE table_name_39 (driver VARCHAR, laps VARCHAR)
Who was the driver with 29 laps?
SELECT driver FROM table_name_39 WHERE laps = "29"
CREATE TABLE table_name_76 (time_retired VARCHAR, grid VARCHAR)
What was the retired time for someone who was on grid 18?
SELECT time_retired FROM table_name_76 WHERE grid = "18"
CREATE TABLE table_name_84 (grid VARCHAR, driver VARCHAR)
Jacques Villeneuve was on what grid?
SELECT grid FROM table_name_84 WHERE driver = "jacques villeneuve"
CREATE TABLE table_name_34 (time_retired VARCHAR, grid VARCHAR)
What's the time for someone on grid 9?
SELECT time_retired FROM table_name_34 WHERE grid = "9"
CREATE TABLE table_name_77 (grid VARCHAR, driver VARCHAR)
What was the grid of Alex Yoong?
SELECT grid FROM table_name_77 WHERE driver = "alex yoong"
CREATE TABLE table_name_80 (date VARCHAR, venue VARCHAR)
What date was the game played at Lake Oval?
SELECT date FROM table_name_80 WHERE venue = "lake oval"
CREATE TABLE table_name_17 (crowd VARCHAR, venue VARCHAR)
How many people came to the game at Victoria Park?
SELECT COUNT(crowd) FROM table_name_17 WHERE venue = "victoria park"
CREATE TABLE table_name_26 (opponent VARCHAR, loss VARCHAR)
Who lost to moyer (9–4)?
SELECT opponent FROM table_name_26 WHERE loss = "moyer (9–4)"
CREATE TABLE table_name_38 (attendance VARCHAR, record VARCHAR)
How many people attended when the record was broken with 47–63?
SELECT attendance FROM table_name_38 WHERE record = "47–63"
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
What is the score of the home team that played Collingwood?
SELECT home_team AS score FROM table_name_70 WHERE away_team = "collingwood"