question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which week had the highest attendance with 58,701?
CREATE TABLE table_name_77 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_name_77 WHERE attendance = "58,701"
What team played before game 71 and had a score w 91–86 (ot)?
CREATE TABLE table_name_36 (team VARCHAR, game VARCHAR, score VARCHAR)
SELECT team FROM table_name_36 WHERE game < 71 AND score = "w 91–86 (ot)"
What Event did John dibella win?
CREATE TABLE table_name_56 (event VARCHAR, winner VARCHAR)
SELECT event FROM table_name_56 WHERE winner = "john dibella"
What is every deduction for pyramids of 49?
CREATE TABLE table_21995420_6 (deductions VARCHAR, pyramids VARCHAR)
SELECT deductions FROM table_21995420_6 WHERE pyramids = "49"
Who was the broadcaster in 2003?
CREATE TABLE table_name_24 (broadcaster VARCHAR, year VARCHAR)
SELECT broadcaster FROM table_name_24 WHERE year = "2003"
What is the most recent year?
CREATE TABLE table_13169136_1 (year INTEGER)
SELECT MAX(year) FROM table_13169136_1
What is the original team of the celebrity who had the result 08 fired in week 10 (2008-03-06)
CREATE TABLE table_12286195_1 (original_team VARCHAR, result VARCHAR)
SELECT original_team FROM table_12286195_1 WHERE result = "08 Fired in week 10 (2008-03-06)"
Name the sinhalese for manthai west
CREATE TABLE table_24574438_1 (sinhalese INTEGER, ds_division VARCHAR)
SELECT MAX(sinhalese) FROM table_24574438_1 WHERE ds_division = "Manthai West"
In what episode did heat 1 take place?
CREATE TABLE table_24051050_1 (episode VARCHAR, contest VARCHAR)
SELECT episode FROM table_24051050_1 WHERE contest = "Heat 1"
Which office has 1 New Hampshire as a third place state?
CREATE TABLE table_20246201_9 (office VARCHAR, states___third_place VARCHAR)
SELECT office FROM table_20246201_9 WHERE states___third_place = "1 New Hampshire"
What is the pole position of paul ricard?
CREATE TABLE table_1140078_2 (pole_position VARCHAR, location VARCHAR)
SELECT pole_position FROM table_1140078_2 WHERE location = "Paul Ricard"
What is Score, when Game is greater than 4?
CREATE TABLE table_name_1 (score VARCHAR, game INTEGER)
SELECT score FROM table_name_1 WHERE game > 4
Name the publication date when the fictional date is 2112
CREATE TABLE table_name_25 (publication_date VARCHAR, fictional_date VARCHAR)
SELECT publication_date FROM table_name_25 WHERE fictional_date = "2112"
What is Race 2, when Race 4 is 28?
CREATE TABLE table_name_40 (race_2 VARCHAR, race_4 VARCHAR)
SELECT race_2 FROM table_name_40 WHERE race_4 = "28"
What is the name with the builder of Kerr Stuart
CREATE TABLE table_142159_1 (name VARCHAR, builder VARCHAR)
SELECT name FROM table_142159_1 WHERE builder = "Kerr Stuart"
Name the genre for release-year of firsst charted less than 1980 and origin of jamaica
CREATE TABLE table_name_92 (genre VARCHAR, release_year_of_first_charted_record VARCHAR, country_of_origin VARCHAR)
SELECT genre FROM table_name_92 WHERE release_year_of_first_charted_record < 1980 AND country_of_origin = "jamaica"
What were property taxes in a year when total revenue was $40,891,700 after 2002?
CREATE TABLE table_name_33 (property_taxes VARCHAR, year VARCHAR, total_revenue VARCHAR)
SELECT property_taxes FROM table_name_33 WHERE year > 2002 AND total_revenue = "$40,891,700"
How many games does the player with 1 (0) finals and a w-league of 28 (1) have?
CREATE TABLE table_name_12 (games VARCHAR, finals VARCHAR, w_league VARCHAR)
SELECT games FROM table_name_12 WHERE finals = "1 (0)" AND w_league = "28 (1)"
What is Time, when Speed is 87.49mph?
CREATE TABLE table_name_15 (time VARCHAR, speed VARCHAR)
SELECT time FROM table_name_15 WHERE speed = "87.49mph"
What was the Result on November 9, 1958?
CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_77 WHERE date = "november 9, 1958"
Which Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdošová?
CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT opponents FROM table_name_80 WHERE surface = "hard" AND outcome = "runner-up" AND partner = "jarmila gajdošová"
What is the average against score of all teams with less than 7 losses, more than 6 draws, and 25 points?
CREATE TABLE table_name_99 (against INTEGER, points VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT AVG(against) FROM table_name_99 WHERE lost < 7 AND drawn > 6 AND points = 25
If a variant without niqqud is as final letter: ו or יו, what is the phonetic realisation?
CREATE TABLE table_name_61 (phonetic_realisation VARCHAR, without_niqqud VARCHAR)
SELECT phonetic_realisation FROM table_name_61 WHERE without_niqqud = "as final letter: ו or יו"
What is the saturated fat when the total fat is 100g, and polyunsaturated fat is 69g (4g in high oleic variety)?
CREATE TABLE table_name_63 (saturated_fat VARCHAR, total_fat VARCHAR, polyunsaturated_fat VARCHAR)
SELECT saturated_fat FROM table_name_63 WHERE total_fat = "100g" AND polyunsaturated_fat = "69g (4g in high oleic variety)"
What is the highest Pick, when Nationality is "France", and when Draft is less than 1979?
CREATE TABLE table_name_27 (pick INTEGER, nationality VARCHAR, draft VARCHAR)
SELECT MAX(pick) FROM table_name_27 WHERE nationality = "france" AND draft < 1979
What is Opponent, when Result is Win, and when Date is Aug 7?
CREATE TABLE table_name_67 (opponent VARCHAR, result VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_67 WHERE result = "win" AND date = "aug 7"
What is the smallest average for the player with 13 matches and fewer than 7 catches?
CREATE TABLE table_name_82 (average INTEGER, matches VARCHAR, catches VARCHAR)
SELECT MIN(average) FROM table_name_82 WHERE matches = 13 AND catches < 7
Who was the GTO winning team in round 5 when the GTU winning team was #59 Brumos Porsche - Audi?
CREATE TABLE table_13642023_2 (gto_winning_team VARCHAR, rnd VARCHAR, gtu_winning_team VARCHAR)
SELECT gto_winning_team FROM table_13642023_2 WHERE rnd = 5 AND gtu_winning_team = "#59 Brumos Porsche - Audi"
What is the number of the grid when there was a Time/Retired of engine and less than 9 laps?
CREATE TABLE table_name_25 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT SUM(grid) FROM table_name_25 WHERE time_retired = "engine" AND laps < 9
Which Home team has an Away team of collingwood?
CREATE TABLE table_name_25 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_25 WHERE away_team = "collingwood"
Which team has the high points of Raymond Felton (26)?
CREATE TABLE table_name_30 (team VARCHAR, high_points VARCHAR)
SELECT team FROM table_name_30 WHERE high_points = "raymond felton (26)"
What is the set 5 with a 25-23 set 3?
CREATE TABLE table_name_55 (set_5 VARCHAR, set_3 VARCHAR)
SELECT set_5 FROM table_name_55 WHERE set_3 = "25-23"
What were the high points on june 20?
CREATE TABLE table_name_36 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_36 WHERE date = "june 20"
Who is the runner-up for Ilhwa Chunma?
CREATE TABLE table_name_81 (runner_up VARCHAR, winner VARCHAR)
SELECT runner_up FROM table_name_81 WHERE winner = "ilhwa chunma"
What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws?
CREATE TABLE table_name_3 (goal_difference INTEGER, wins VARCHAR, draws VARCHAR, goals_against VARCHAR)
SELECT SUM(goal_difference) FROM table_name_3 WHERE draws = 8 AND goals_against = 32 AND wins < 12
What is the weight of the person born in 1980?
CREATE TABLE table_name_63 (weight VARCHAR, born VARCHAR)
SELECT weight FROM table_name_63 WHERE born = "1980"
What frequency has temagami as the city of license?
CREATE TABLE table_name_92 (frequency VARCHAR, city_of_license VARCHAR)
SELECT frequency FROM table_name_92 WHERE city_of_license = "temagami"
Which course has a flat stage on 4 September?
CREATE TABLE table_name_21 (course VARCHAR, type VARCHAR, date VARCHAR)
SELECT course FROM table_name_21 WHERE type = "flat stage" AND date = "4 september"
What is the Crowd for the Venue of Princes Park?
CREATE TABLE table_name_88 (crowd VARCHAR, venue VARCHAR)
SELECT crowd FROM table_name_88 WHERE venue = "princes park"
Who was the opponent when the loss was Wells (4-7)?
CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_35 WHERE loss = "wells (4-7)"
What king has an S. number over 1 and a number of villages of 600?
CREATE TABLE table_name_54 (name_of_king VARCHAR, sno VARCHAR, no_of_villages VARCHAR)
SELECT name_of_king FROM table_name_54 WHERE sno > 1 AND no_of_villages = 600
What date did the episode, with John O'Connell as the coach, premier?
CREATE TABLE table_2140071_5 (premier_date VARCHAR, coach VARCHAR)
SELECT premier_date FROM table_2140071_5 WHERE coach = "John O'Connell"
What was the attendance at the game that had a loss of Ayala (6-12)?
CREATE TABLE table_name_49 (attendance VARCHAR, loss VARCHAR)
SELECT attendance FROM table_name_49 WHERE loss = "ayala (6-12)"
When the home team of st kilda was playing, what was the away team score?
CREATE TABLE table_name_97 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_97 WHERE home_team = "st kilda"
Which Sub-Parish has a church built in 1866?
CREATE TABLE table_name_19 (sub_parish__sokn_ VARCHAR, year_built VARCHAR)
SELECT sub_parish__sokn_ FROM table_name_19 WHERE year_built = "1866"
What is the latest year rafael nadal was in the French Open, Roger Federer was in Wimbledon, and Roger Federer was in the Australian Open?
CREATE TABLE table_name_71 (year INTEGER, australian_open VARCHAR, french_open VARCHAR, wimbledon VARCHAR)
SELECT MAX(year) FROM table_name_71 WHERE french_open = "rafael nadal" AND wimbledon = "roger federer" AND australian_open = "roger federer"
What is the sum of draws for teams with against of 1731 and under 10 losses?
CREATE TABLE table_name_67 (draws INTEGER, against VARCHAR, losses VARCHAR)
SELECT SUM(draws) FROM table_name_67 WHERE against = 1731 AND losses < 10
What is the incident type description for the incident type with code "VIOLENCE"?
CREATE TABLE Ref_Incident_Type (incident_type_description VARCHAR, incident_type_code VARCHAR)
SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code = "VIOLENCE"
What was the location for when the opponent was @ roughriders?
CREATE TABLE table_21761882_4 (location VARCHAR, opponent VARCHAR)
SELECT location FROM table_21761882_4 WHERE opponent = "@ Roughriders"
What is every value for % 40-59 if % 60-74 is 12,40%?
CREATE TABLE table_23606500_4 (_percentage_40_59 VARCHAR, _percentage_60_74 VARCHAR)
SELECT _percentage_40_59 FROM table_23606500_4 WHERE _percentage_60_74 = "12,40%"
which Pada 3 has a Pada 2 of चे che?
CREATE TABLE table_name_27 (pada_3 VARCHAR, pada_2 VARCHAR)
SELECT pada_3 FROM table_name_27 WHERE pada_2 = "चे che"
What is the score for Fitzroy when they are the home team?
CREATE TABLE table_name_53 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_53 WHERE home_team = "fitzroy"
What is the authority for roll of 96?
CREATE TABLE table_name_46 (authority VARCHAR, roll VARCHAR)
SELECT authority FROM table_name_46 WHERE roll = 96
How many points differ from 134?
CREATE TABLE table_20760802_1 (points_difference VARCHAR, points_for VARCHAR)
SELECT points_difference FROM table_20760802_1 WHERE points_for = "134"
Which Share of seats has Seats smaller than 52, and a Name of sdp–liberal alliance, and a General election of 1983?
CREATE TABLE table_name_66 (share_of_seats VARCHAR, general_election VARCHAR, seats VARCHAR, name VARCHAR)
SELECT share_of_seats FROM table_name_66 WHERE seats < 52 AND name = "sdp–liberal alliance" AND general_election = 1983
What is the lowest Prize amount for the Irish Derby Race?
CREATE TABLE table_name_87 (prize__ INTEGER, race VARCHAR)
SELECT MIN(prize__) AS £k_ FROM table_name_87 WHERE race = "irish derby"
What's the average to par for lee trevino?
CREATE TABLE table_name_13 (to_par INTEGER, player VARCHAR)
SELECT AVG(to_par) FROM table_name_13 WHERE player = "lee trevino"
What is the qual 2 of team rocketsports racing, which has the best of 1:10.949?
CREATE TABLE table_name_34 (qual_2 VARCHAR, team VARCHAR, best VARCHAR)
SELECT qual_2 FROM table_name_34 WHERE team = "rocketsports racing" AND best = "1:10.949"
What was the Score on October 24, 1982 in Tokyo, Japan?
CREATE TABLE table_name_60 (score VARCHAR, tournament VARCHAR, date VARCHAR)
SELECT score FROM table_name_60 WHERE tournament = "tokyo, japan" AND date = "october 24, 1982"
What is Cha Bum-Kun's average number of goals per match?
CREATE TABLE table_name_12 (goals_per_match VARCHAR, name VARCHAR)
SELECT COUNT(goals_per_match) FROM table_name_12 WHERE name = "cha bum-kun"
What is the after debt has receipts of $379,794?
CREATE TABLE table_name_90 (after_debt VARCHAR, total_receipts VARCHAR)
SELECT after_debt FROM table_name_90 WHERE total_receipts = "$379,794"
Find the name of dorms that do not have amenity TV Lounge.
CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm (dorm_name VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge'
What was her place in the lineup on match 2?
CREATE TABLE table_name_33 (lineup VARCHAR, match VARCHAR)
SELECT lineup FROM table_name_33 WHERE match = "2"
How many times did Arsenal tie when they were away?
CREATE TABLE table_name_2 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_2 WHERE away_team = "arsenal"
What was the latest season with a nick production number of 942?
CREATE TABLE table_2655016_10 (season__number INTEGER, nick_prod__number VARCHAR)
SELECT MAX(season__number) FROM table_2655016_10 WHERE nick_prod__number = 942
what are all the state/nation where the race number is 36
CREATE TABLE table_25594271_1 (state_country VARCHAR, race_number VARCHAR)
SELECT state_country FROM table_25594271_1 WHERE race_number = "36"
Which game had 8 bronze and 4 gold?
CREATE TABLE table_name_61 (games VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT games FROM table_name_61 WHERE bronze = "8" AND gold = "4"
How many musical guests and songs were in episodes with a production code k0519?
CREATE TABLE table_11951237_2 (musical_guest_and_song VARCHAR, production_code VARCHAR)
SELECT COUNT(musical_guest_and_song) FROM table_11951237_2 WHERE production_code = "K0519"
What is the average Total for the Rank of 6, when Silver is smaller than 0?
CREATE TABLE table_name_36 (total INTEGER, rank VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_36 WHERE rank = 6 AND silver < 0
When is Edmonton Oilers in?
CREATE TABLE table_name_99 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_99 WHERE home = "edmonton oilers"
Show the times of elimination by "Punk" or "Orton".
CREATE TABLE elimination (TIME VARCHAR, Eliminated_By VARCHAR)
SELECT TIME FROM elimination WHERE Eliminated_By = "Punk" OR Eliminated_By = "Orton"
What is the name of the youngest editor?
CREATE TABLE editor (Name VARCHAR, Age VARCHAR)
SELECT Name FROM editor ORDER BY Age LIMIT 1
What is the number and name where the date is earlier than 1905?
CREATE TABLE table_name_37 (number_ VARCHAR, _name VARCHAR, date INTEGER)
SELECT number_ & _name FROM table_name_37 WHERE date < 1905
What is the lowest score that has t10 as the place, with Ireland as the country?
CREATE TABLE table_name_79 (score INTEGER, place VARCHAR, country VARCHAR)
SELECT MIN(score) FROM table_name_79 WHERE place = "t10" AND country = "ireland"
What is Ben Hogan's Place?
CREATE TABLE table_name_21 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_21 WHERE player = "ben hogan"
What is Gold, when Total is less than 4, when Silver is 1, and when Bronze is 1?
CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT gold FROM table_name_71 WHERE total < 4 AND silver = "1" AND bronze = "1"
What was the tonnage on 12 september 1942?
CREATE TABLE table_name_91 (tonnage VARCHAR, date VARCHAR)
SELECT tonnage FROM table_name_91 WHERE date = "12 september 1942"
List the customers first and last name of 10 least expensive invoices.
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR)
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10
Which player had a to par score larger than 7 and a total score of 298?
CREATE TABLE table_name_5 (player VARCHAR, to_par VARCHAR, total VARCHAR)
SELECT player FROM table_name_5 WHERE to_par > 7 AND total = 298
What is the pick of the NFL club buffalo bills?
CREATE TABLE table_name_95 (pick VARCHAR, nfl_club VARCHAR)
SELECT pick FROM table_name_95 WHERE nfl_club = "buffalo bills"
How old was the horse when the SP was 200/1?
CREATE TABLE table_22265261_1 (age VARCHAR, sp VARCHAR)
SELECT COUNT(age) FROM table_22265261_1 WHERE sp = "200/1"
what notes have the khmer ២៨?
CREATE TABLE table_name_59 (notes VARCHAR, khmer VARCHAR)
SELECT notes FROM table_name_59 WHERE khmer = "២៨"
Name the top-10 with top-5 less than 1
CREATE TABLE table_name_53 (top_10 VARCHAR, top_5 INTEGER)
SELECT top_10 FROM table_name_53 WHERE top_5 < 1
What is the Translation of the US Customary value 0.263 pt?
CREATE TABLE table_name_47 (translation VARCHAR, us_customary VARCHAR)
SELECT translation FROM table_name_47 WHERE us_customary = "0.263 pt"
Who is the driver of the team with the crew chief Derrick Finley?
CREATE TABLE table_name_16 (driver_s_ VARCHAR, crew_chief VARCHAR)
SELECT driver_s_ FROM table_name_16 WHERE crew_chief = "derrick finley"
Who was the Driver, when the Engine was 7.1 l6, and when the Chassis was Mercedes-Benz SSK l?
CREATE TABLE table_name_3 (driver VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT driver FROM table_name_3 WHERE engine = "7.1 l6" AND chassis = "mercedes-benz ssk l"
What was the Winning score for the Mynavi ABC Championship Tournament?
CREATE TABLE table_name_55 (winning_score VARCHAR, tournament VARCHAR)
SELECT winning_score FROM table_name_55 WHERE tournament = "mynavi abc championship"
What is the sum of losses when wins is more than 6, club is camperdown and against is more than 1238?
CREATE TABLE table_name_6 (losses INTEGER, against VARCHAR, wins VARCHAR, club VARCHAR)
SELECT SUM(losses) FROM table_name_6 WHERE wins > 6 AND club = "camperdown" AND against > 1238
for type diesel-mechanical and configuration b-b, what is the status?
CREATE TABLE table_name_4 (status VARCHAR, configuration VARCHAR, type VARCHAR)
SELECT status FROM table_name_4 WHERE configuration = "b-b" AND type = "diesel-mechanical"
What is the for the f136fb engine?
CREATE TABLE table_name_98 (usage VARCHAR, engine VARCHAR)
SELECT usage FROM table_name_98 WHERE engine = "f136fb"
What country placed 3?
CREATE TABLE table_name_16 (country VARCHAR, place VARCHAR)
SELECT country FROM table_name_16 WHERE place = "3"
What's Jim Farmer's nationality?
CREATE TABLE table_11545282_6 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_11545282_6 WHERE player = "Jim Farmer"
what's the fcc info with call sign being w221aw
CREATE TABLE table_13998897_1 (fcc_info VARCHAR, call_sign VARCHAR)
SELECT fcc_info FROM table_13998897_1 WHERE call_sign = "W221AW"
What is the mean number of play-offs when the league number was bigger than 18, where the player was John Grant and the total number was bigger than 25?
CREATE TABLE table_name_15 (play_offs INTEGER, total VARCHAR, league VARCHAR, player VARCHAR)
SELECT AVG(play_offs) FROM table_name_15 WHERE league > 18 AND player = "john grant" AND total > 25
What are the highest attempts that have net yards less than 631, and 2 for the touchdowns?
CREATE TABLE table_name_53 (attempts INTEGER, net_yards VARCHAR, touchdowns VARCHAR)
SELECT MAX(attempts) FROM table_name_53 WHERE net_yards < 631 AND touchdowns = 2
What position has less than 6 Points?
CREATE TABLE table_name_63 (position VARCHAR, points INTEGER)
SELECT COUNT(position) FROM table_name_63 WHERE points < 6
What is the total number for the week with a record of 0-11?
CREATE TABLE table_name_87 (week VARCHAR, record VARCHAR)
SELECT COUNT(week) FROM table_name_87 WHERE record = "0-11"
With a To par of –1, what is Player Henrik Stenson's Score?
CREATE TABLE table_name_48 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_48 WHERE to_par = "–1" AND player = "henrik stenson"
What is the place of the player with a 72-70-67=209 score?
CREATE TABLE table_name_51 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_51 WHERE score = 72 - 70 - 67 = 209
what year has the highest marcel granollers champions?
CREATE TABLE table_name_34 (year INTEGER, champion VARCHAR)
SELECT MAX(year) FROM table_name_34 WHERE champion = "marcel granollers"