answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MIN(wins) FROM table_name_49 WHERE year < 1964 AND points > 7
What is the least amount of wins earlier than 1964 with more than 7 points?
CREATE TABLE table_name_49 (wins INTEGER, year VARCHAR, points VARCHAR)
SELECT country FROM table_2351952_1 WHERE order_number = "711871-711880"
What country has the order number 711871-711880?
CREATE TABLE table_2351952_1 (country VARCHAR, order_number VARCHAR)
SELECT year FROM table_name_52 WHERE venue = "algiers, algeria" AND extra < 8.03 AND meeting = "all africa games"
What year has a venue of algiers, algeria, extra smaller than 8.03, and a Meeting of all africa games?
CREATE TABLE table_name_52 (year VARCHAR, meeting VARCHAR, venue VARCHAR, extra VARCHAR)
SELECT project FROM table_name_92 WHERE missile = "agni-iii"
Name the project which has a missle of agni-iii
CREATE TABLE table_name_92 (project VARCHAR, missile VARCHAR)
SELECT MAX(silver) FROM table_name_86 WHERE bronze = 1 AND gold = 1
What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal?
CREATE TABLE table_name_86 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT COUNT(*) FROM dorm
How many dorms are there?
CREATE TABLE dorm (Id VARCHAR)
SELECT COUNT(pos) FROM table_name_51 WHERE postseason = "promoted" AND tier < 2
How many teams were promoted in the postseason in a tier above 2?
CREATE TABLE table_name_51 (pos VARCHAR, postseason VARCHAR, tier VARCHAR)
SELECT third_place FROM table_16331144_1 WHERE season = "Four"
Who won third place in season four?
CREATE TABLE table_16331144_1 (third_place VARCHAR, season VARCHAR)
SELECT COUNT(crowd) FROM table_name_42 WHERE venue = "junction oval"
What's the total number of people to attend games at junction oval?
CREATE TABLE table_name_42 (crowd VARCHAR, venue VARCHAR)
SELECT opponents FROM table_name_45 WHERE date = "24 july 2011"
Name the opponents for 24 july 2011
CREATE TABLE table_name_45 (opponents VARCHAR, date VARCHAR)
SELECT date FROM table_name_73 WHERE opponent = "john mcenroe" AND score = "3–6, 6–3, 2–6"
What is the date of the match against John McEnroe with a Score of 3–6, 6–3, 2–6?
CREATE TABLE table_name_73 (date VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT MAX(_number_of_home_games) FROM table_name_41 WHERE year < 2012 AND canada___usa_rank = "52nd" AND average_attendance < 992
Before 2012, what was the greatest # of Home Games with a Canada - USA Rank of 52nd, and an Average Attendance less than 992?
CREATE TABLE table_name_41 (_number_of_home_games INTEGER, average_attendance VARCHAR, year VARCHAR, canada___usa_rank VARCHAR)
SELECT province FROM table_1024710_2 WHERE electorate = "Bay of Islands"
Which province is bay of islands in
CREATE TABLE table_1024710_2 (province VARCHAR, electorate VARCHAR)
SELECT date FROM table_name_59 WHERE score = "6–4, 6–2"
On what Date was the Score 6–4, 6–2?
CREATE TABLE table_name_59 (date VARCHAR, score VARCHAR)
SELECT AVG(kilometer) FROM table_name_15 WHERE pavement = "asphalt" AND length__m_ > 645 AND name = "berendries" AND average_climb___percentage_ < 7
What is the Kilometer of the Berendries asphalt course with an Average climb less than 7 and Length (m) longer than 645?
CREATE TABLE table_name_15 (kilometer INTEGER, average_climb___percentage_ VARCHAR, name VARCHAR, pavement VARCHAR, length__m_ VARCHAR)
SELECT club FROM table_name_73 WHERE founded > 1875 AND sport = "football"
Name the Club which has a Founded larger than 1875, and a Sport of football?
CREATE TABLE table_name_73 (club VARCHAR, founded VARCHAR, sport VARCHAR)
SELECT air_date FROM table_18733480_1 WHERE team_1 = "Wykeham Wonderers"
What is the original air date that had the wykeham wonderers as team 1?
CREATE TABLE table_18733480_1 (air_date VARCHAR, team_1 VARCHAR)
SELECT record FROM table_name_78 WHERE event = "ufc 64"
What is Record, when Event is "UFC 64"?
CREATE TABLE table_name_78 (record VARCHAR, event VARCHAR)
SELECT winning_driver FROM table_name_45 WHERE race = "belgian grand prix"
Name the winning driver for belgian grand prix
CREATE TABLE table_name_45 (winning_driver VARCHAR, race VARCHAR)
SELECT home_team AS score FROM table_name_99 WHERE venue = "punt road oval"
Who is the home team at the Punt Road Oval?
CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR)
SELECT MAX(area³) FROM table_254234_1 WHERE density² = "533.59"
What is the area of the province with a density of 533.59?
CREATE TABLE table_254234_1 (area³ INTEGER, density² VARCHAR)
SELECT COUNT(ends_lost) FROM table_name_67 WHERE blank_ends = 15 AND stolen_ends < 14
What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends?
CREATE TABLE table_name_67 (ends_lost VARCHAR, blank_ends VARCHAR, stolen_ends VARCHAR)
SELECT MAX(played) FROM table_name_62 WHERE drawn > 0 AND lost < 3 AND points < 27
What is the highest played with more than 0 draws, less than 3 losses, and less than 27 points?
CREATE TABLE table_name_62 (played INTEGER, points VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT city FROM city WHERE regional_population > 10000000
Please give me a list of cities whose regional population is over 10000000.
CREATE TABLE city (city VARCHAR, regional_population INTEGER)
SELECT kicks FROM table_name_61 WHERE games = "7"
How many kicks did he get in the year when he played 7 games?
CREATE TABLE table_name_61 (kicks VARCHAR, games VARCHAR)
SELECT entrant FROM table_name_22 WHERE year > 1987 AND chassis = "benetton b188" AND points = 12
which entrant after 1987 had 12 points and a benetton b188 chassis?
CREATE TABLE table_name_22 (entrant VARCHAR, points VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT la_cañada_flintridge FROM table_name_58 WHERE tujunga = "7%"
What is the percentage of La Canada Flintridge when Tujunga is 7%?
CREATE TABLE table_name_58 (la_cañada_flintridge VARCHAR, tujunga VARCHAR)
SELECT AVG(lane) FROM table_name_21 WHERE name = "elizabeth simmonds"
What is Elizabeth Simmonds' average lane number?
CREATE TABLE table_name_21 (lane INTEGER, name VARCHAR)
SELECT score FROM table_name_98 WHERE record = "12–8–3"
What is the score of the game with a record of 12–8–3?
CREATE TABLE table_name_98 (score VARCHAR, record VARCHAR)
SELECT incumbent FROM table_1342218_13 WHERE district = "Illinois 17"
Who was the incumbent in the Illinois 17 district?
CREATE TABLE table_1342218_13 (incumbent VARCHAR, district VARCHAR)
SELECT courtesy_title FROM table_name_36 WHERE lineage = "4th son of hatamoto ōoka tadataka"
What's the courtesy title of 4th son of hatamoto ōoka tadataka?
CREATE TABLE table_name_36 (courtesy_title VARCHAR, lineage VARCHAR)
SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2
Show first name and id for all customers with at least 2 accounts.
CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR)
SELECT MAX(attendance) FROM table_23486853_5
What was the largest attended game?
CREATE TABLE table_23486853_5 (attendance INTEGER)
SELECT no_9 FROM table_name_37 WHERE no_4 = "ava" AND no_6 = "addison"
Who was No. 9 when Ava was No. 4 and Addison was No. 6?
CREATE TABLE table_name_37 (no_9 VARCHAR, no_4 VARCHAR, no_6 VARCHAR)
SELECT SUM(year) FROM table_name_91 WHERE nominee_s_ = "neal baer"
That is the total year that Neal Baer is a nominee?
CREATE TABLE table_name_91 (year INTEGER, nominee_s_ VARCHAR)
SELECT work FROM table_name_47 WHERE year < 2007 AND award = "blockbuster entertainment awards"
Name the work for years before 2007 that won blockbuster entertainment awards
CREATE TABLE table_name_47 (work VARCHAR, year VARCHAR, award VARCHAR)
SELECT SUM(silver) FROM table_name_45 WHERE rank > 1 AND gold = 4
How many Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have?
CREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, gold VARCHAR)
SELECT record FROM table_name_44 WHERE date = "september 30"
What was the home team's record on September 30?
CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_94 WHERE week < 11 AND attendance = "63,571"
What was the Opponent before Week 11 with an Attendance of 63,571?
CREATE TABLE table_name_94 (opponent VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT MAX(_number) FROM table_27374740_2 WHERE viewers__m_ = "8.01"
how many maximum # when viewers (m) is 8.01
CREATE TABLE table_27374740_2 (_number INTEGER, viewers__m_ VARCHAR)
SELECT prothrombin_time FROM table_name_49 WHERE partial_thromboplastin_time = "prolonged" AND bleeding_time = "unaffected" AND condition = "factor xii deficiency"
I want the prothrombin time with a partial thromboplastin time of prolonged and unaffected bleeding time and factor xii deficiency for condition of factor
CREATE TABLE table_name_49 (prothrombin_time VARCHAR, condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR)
SELECT year_s__won FROM table_name_31 WHERE total > 295
Which Year(s) won has a Total larger than 295?
CREATE TABLE table_name_31 (year_s__won VARCHAR, total INTEGER)
SELECT MIN(position) FROM table_16034882_4 WHERE loses = 3
What position did the team with 3 losses finish?
CREATE TABLE table_16034882_4 (position INTEGER, loses VARCHAR)
SELECT rank FROM table_name_72 WHERE place = "burghley"
What is the rank for Burghley?
CREATE TABLE table_name_72 (rank VARCHAR, place VARCHAR)
SELECT tv FROM table_11465521_2 WHERE opponent = "Minnesota Vikings"
Which channel had the game against the Minnesota Vikings?
CREATE TABLE table_11465521_2 (tv VARCHAR, opponent VARCHAR)
SELECT sanction FROM table_name_5 WHERE location = "nashville, illinois"
What was the sanction of the event at Nashville, Illinois?
CREATE TABLE table_name_5 (sanction VARCHAR, location VARCHAR)
SELECT AVG(played) FROM table_name_4 WHERE points > 14 AND against > 17
How many average plays have points greater than 14, with an against greater than 17?
CREATE TABLE table_name_4 (played INTEGER, points VARCHAR, against VARCHAR)
SELECT MIN(place) FROM table_name_44 WHERE points > 1 AND machine = "bmw" AND time = "1:18.47.6"
Which place has points larger than 1, a bmw machine, and a time of 1:18.47.6?
CREATE TABLE table_name_44 (place INTEGER, time VARCHAR, points VARCHAR, machine VARCHAR)
SELECT SUM(population) FROM table_name_45 WHERE country_region = "hong kong" AND rank < 2
Can you tell me the sun of Population that has the Country/Region of hong kong, and the Rank smaller than 2?
CREATE TABLE table_name_45 (population INTEGER, country_region VARCHAR, rank VARCHAR)
SELECT position FROM table_name_78 WHERE current_club = "toronto raptors"
What is the Position of the Player from the Toronto Raptors?
CREATE TABLE table_name_78 (position VARCHAR, current_club VARCHAR)
SELECT COUNT(rank) FROM table_23248420_1 WHERE country = "England" AND county = "Merseyside" AND city_town = "Birkenhead"
When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?
CREATE TABLE table_23248420_1 (rank VARCHAR, city_town VARCHAR, country VARCHAR, county VARCHAR)
SELECT date FROM table_name_16 WHERE opponent = "marcos daniel"
What date was marcos daniel the opponent?
CREATE TABLE table_name_16 (date VARCHAR, opponent VARCHAR)
SELECT MAX(points) FROM table_name_69 WHERE difference = "12"
What is the largest points number where the difference is 12?
CREATE TABLE table_name_69 (points INTEGER, difference VARCHAR)
SELECT status FROM table_27469019_2 WHERE television_channel = "MediaCorp TV12 Suria"
What was the status of the series that was run by tv channel Mediacorp tv12 Suria?
CREATE TABLE table_27469019_2 (status VARCHAR, television_channel VARCHAR)
SELECT event FROM table_name_62 WHERE round = 10
What is Event, when Round is "10"?
CREATE TABLE table_name_62 (event VARCHAR, round VARCHAR)
SELECT SUM(2006) FROM table_name_38 WHERE rank = 1 AND 1996 > 6758845
What is the 2006 sum with a rank 1 and more than 6758845 in 1996?
CREATE TABLE table_name_38 (rank VARCHAR)
SELECT venue FROM table_name_29 WHERE tournament = "olympic games"
Where was the Olympic Games held?
CREATE TABLE table_name_29 (venue VARCHAR, tournament VARCHAR)
SELECT SUM(fa_cup_goals) FROM table_name_12 WHERE total_apps = "10 (4)"
what is the fa cup goals when total apps is 10 (4)?
CREATE TABLE table_name_12 (fa_cup_goals INTEGER, total_apps VARCHAR)
SELECT school_club_team FROM table_15463188_17 WHERE season = "2012" AND acquisition_via = "Trade"
What was the school/club team whose season was in 2012 and were acquired via trade?
CREATE TABLE table_15463188_17 (school_club_team VARCHAR, season VARCHAR, acquisition_via VARCHAR)
SELECT runners_up FROM table_name_7 WHERE club = "fc viktoria plzeň"
Who were the runners-up for the FC Viktoria Plzeň club?
CREATE TABLE table_name_7 (runners_up VARCHAR, club VARCHAR)
SELECT SUM(pick__number) FROM table_name_26 WHERE player = "don majkowski"
What is the sum of pick# for Don Majkowski?3
CREATE TABLE table_name_26 (pick__number INTEGER, player VARCHAR)
SELECT score FROM table_name_73 WHERE player = "nick faldo"
What was Nick Faldo's score?
CREATE TABLE table_name_73 (score VARCHAR, player VARCHAR)
SELECT district FROM table_name_24 WHERE location = "tharamani"
What District has a Location of tharamani?
CREATE TABLE table_name_24 (district VARCHAR, location VARCHAR)
SELECT position FROM table_name_81 WHERE nationality = "canada" AND player = "pat janostin"
Which Position has a Nationality of canada, and a Player of pat janostin?
CREATE TABLE table_name_81 (position VARCHAR, nationality VARCHAR, player VARCHAR)
SELECT uk_total_viewers FROM table_30139175_3 WHERE episode_no = 50
How many viewers in the UK did episode 50 have?
CREATE TABLE table_30139175_3 (uk_total_viewers VARCHAR, episode_no VARCHAR)
SELECT giant_slalom FROM table_name_14 WHERE combined = "1" AND country = "united states" AND victories > 11
Can you tell me the Giant Slalom that has the Combined of 1, and the Country of united states, and the Victories larger than 11?
CREATE TABLE table_name_14 (giant_slalom VARCHAR, victories VARCHAR, combined VARCHAR, country VARCHAR)
SELECT obama_percentage FROM table_20799905_1 WHERE county = "RUTHERFORD"
What percentage did Obama get in Rutherford county?
CREATE TABLE table_20799905_1 (obama_percentage VARCHAR, county VARCHAR)
SELECT T1.role_description FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code WHERE T2.employee_name = "Koby"
What is the role of the employee named Koby?
CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR); CREATE TABLE Employees (role_code VARCHAR, employee_name VARCHAR)
SELECT college FROM table_name_41 WHERE overall > 15 AND round = 7
What is the college when the over is larger than 15 in round 7?
CREATE TABLE table_name_41 (college VARCHAR, overall VARCHAR, round VARCHAR)
SELECT COUNT(date) FROM table_14934885_1 WHERE performer_3 = "Kate Robbins"
How many times was performer 3 Kate Robbins?
CREATE TABLE table_14934885_1 (date VARCHAR, performer_3 VARCHAR)
SELECT place FROM table_name_32 WHERE prize = "$381.030"
What is Place, when Prize is "$381.030"?
CREATE TABLE table_name_32 (place VARCHAR, prize VARCHAR)
SELECT processors_supported FROM table_name_91 WHERE memory = "ddr2" AND model = "nforce 550"
What are the processors supported by a ddr2 memory and the nforce 550 model?
CREATE TABLE table_name_91 (processors_supported VARCHAR, memory VARCHAR, model VARCHAR)
SELECT COUNT(assists) FROM table_17309500_1 WHERE blocks = "77"
Name the total number of assists for 77 blocks
CREATE TABLE table_17309500_1 (assists VARCHAR, blocks VARCHAR)
SELECT date_s__of_original_removal FROM table_19114172_11 WHERE new_channel_s_ = "Five"
When five is the new channel what is the date of original removal?
CREATE TABLE table_19114172_11 (date_s__of_original_removal VARCHAR, new_channel_s_ VARCHAR)
SELECT manner_of_departure FROM table_26593762_3 WHERE incoming_manager = "George Burley"
What was the manner of departure for the team whose incoming manager was George Burley?
CREATE TABLE table_26593762_3 (manner_of_departure VARCHAR, incoming_manager VARCHAR)
SELECT driver FROM table_name_45 WHERE grid = "1"
Which Driver has a Grid of 1?
CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR)
SELECT award FROM table_name_38 WHERE result = "nominated" AND year > 2011
Name the award for nominated result and year after 2011
CREATE TABLE table_name_38 (award VARCHAR, result VARCHAR, year VARCHAR)
SELECT district FROM table_12679326_1 WHERE party = "Republican" AND committee = "Appropriations"
What district is represented by a Republican Appropriations Committee?
CREATE TABLE table_12679326_1 (district VARCHAR, party VARCHAR, committee VARCHAR)
SELECT MAX(events) FROM table_name_72 WHERE cuts_made < 34 AND top_25 < 5 AND top_10 > 1
what is the highest events when the cuts made is less than 34, the top-25 is less than 5 and the top-10 is more than 1?
CREATE TABLE table_name_72 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR, top_25 VARCHAR)
SELECT inverse_subjunctive FROM table_name_9 WHERE imperative = "—" AND subjunctive = "se måchadn"
What inverse subjunctive has — as the imperative and a subjunctive of se måchadn?
CREATE TABLE table_name_9 (inverse_subjunctive VARCHAR, imperative VARCHAR, subjunctive VARCHAR)
SELECT builder FROM table_name_68 WHERE fuel_propulsion = "diesel" AND model = "d40lf" AND order_year = "2005"
Which builder has a Fuel Propulsion of diesel, a Model of d40lf, and an Order Year of 2005?
CREATE TABLE table_name_68 (builder VARCHAR, order_year VARCHAR, fuel_propulsion VARCHAR, model VARCHAR)
SELECT set_2 FROM table_name_74 WHERE set_3 = "25–22"
What was the score for set 2 when set 3 was 25–22?
CREATE TABLE table_name_74 (set_2 VARCHAR, set_3 VARCHAR)
SELECT AVG(silver) FROM table_name_23 WHERE nation = "belarus" AND total < 1
What average silver has belarus as the nation, with a total less than 1?
CREATE TABLE table_name_23 (silver INTEGER, nation VARCHAR, total VARCHAR)
SELECT tournament FROM table_name_28 WHERE 2007 = "wta premier 5 tournaments"
Which Tournament has a 2007 of wta premier 5 tournaments?
CREATE TABLE table_name_28 (tournament VARCHAR)
SELECT SUM(year) FROM table_name_33 WHERE team = "johnson city yankees" AND finish = "6th"
What is the total of the year with a Team of johnson city yankees, and a Finish of 6th?
CREATE TABLE table_name_33 (year INTEGER, team VARCHAR, finish VARCHAR)
SELECT round FROM table_name_41 WHERE pick__number = 323
For Pick #323, which round is it?
CREATE TABLE table_name_41 (round VARCHAR, pick__number VARCHAR)
SELECT COUNT(points) FROM table_name_7 WHERE entrant = "bs automotive"
Total points for a bs automotive entrant?
CREATE TABLE table_name_7 (points VARCHAR, entrant VARCHAR)
SELECT player FROM table_20170644_3 WHERE cfl_team = "BC Lions"
Which player is on the BC Lions?
CREATE TABLE table_20170644_3 (player VARCHAR, cfl_team VARCHAR)
SELECT batsmen FROM table_name_76 WHERE location = "the brit oval"
Who was the batsmen at the Brit Oval location?
CREATE TABLE table_name_76 (batsmen VARCHAR, location VARCHAR)
SELECT successor FROM table_225204_4 WHERE district = "North Carolina 13th"
Name the successor for north carolina 13th
CREATE TABLE table_225204_4 (successor VARCHAR, district VARCHAR)
SELECT score FROM table_name_9 WHERE opponent = "fernando vicente"
what is the score when the opponent is fernando vicente?
CREATE TABLE table_name_9 (score VARCHAR, opponent VARCHAR)
SELECT AVG(latitude) FROM table_name_57 WHERE water__sqmi_ = 0.058 AND ansi_code < 1759683
what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683?
CREATE TABLE table_name_57 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)
SELECT SUM(rank) FROM table_name_34 WHERE silver > 0 AND bronze = 4 AND total < 10
Which rank has a more than 0 silver, 4 bronze, and a total smaller than 10?
CREATE TABLE table_name_34 (rank INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT total FROM table_name_40 WHERE player = "mark o'meara"
What was Mark O'Meara's total?
CREATE TABLE table_name_40 (total VARCHAR, player VARCHAR)
SELECT venue FROM table_name_60 WHERE date = "10 november 2007"
On 10 November 2007, what was the venue?
CREATE TABLE table_name_60 (venue VARCHAR, date VARCHAR)
SELECT AVG(rating) FROM table_name_51 WHERE night_rank = "11" AND timeslot_rank > 4
What is the rating for the episode with the night rank of 11 and timeslot rank is larger than 4?
CREATE TABLE table_name_51 (rating INTEGER, night_rank VARCHAR, timeslot_rank VARCHAR)
SELECT directed_by FROM table_27969432_2 WHERE written_by = "Karina Csolty"
Who directed the episode written by karina csolty
CREATE TABLE table_27969432_2 (directed_by VARCHAR, written_by VARCHAR)
SELECT class AS pos FROM table_name_71 WHERE team = "jml team panoz"
Which class Pos has a Team of jml team panoz?
CREATE TABLE table_name_71 (class VARCHAR, team VARCHAR)
SELECT 2 AS nd_leg FROM table_name_99 WHERE team_1 = "dolphins"
What is the 2nd leg of team 1 Dolphins?
CREATE TABLE table_name_99 (team_1 VARCHAR)
SELECT score FROM table_name_97 WHERE player = "roberto devicenzo"
what had a score like roberto devicenzo
CREATE TABLE table_name_97 (score VARCHAR, player VARCHAR)