answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT SUM(rank) FROM table_name_85 WHERE municipality = "winnipeg" AND area__km_2__ > 464.01
What is the total Rank that has a Municipality of Winnipeg, an Area (KM 2) that's larger than 464.01?
CREATE TABLE table_name_85 (rank INTEGER, municipality VARCHAR, area__km_2__ VARCHAR)
SELECT total_deaths FROM table_name_33 WHERE total_casualties = "6"
How many deaths were there when the total casualties were 6?
CREATE TABLE table_name_33 (total_deaths VARCHAR, total_casualties VARCHAR)
SELECT MAX(population__2010_) FROM table_2144436_1 WHERE barangay = "Minane"
What was the population in 2010 for Minane
CREATE TABLE table_2144436_1 (population__2010_ INTEGER, barangay VARCHAR)
SELECT MIN(extra_points) FROM table_25730460_2
Name the least extra points
CREATE TABLE table_25730460_2 (extra_points INTEGER)
SELECT COUNT(us_viewers__millions_) FROM table_22265225_1 WHERE no_in_series = "36"
How many times was u.s. Viewers listed for episode 36 in the series?
CREATE TABLE table_22265225_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR)
SELECT MIN(sales__billion_) AS $_ FROM table_name_73 WHERE company = "bp"
What is BP's lowest sales?
CREATE TABLE table_name_73 (sales__billion_ INTEGER, company VARCHAR)
SELECT COUNT(total) FROM table_name_64 WHERE concacaf = 0 AND mls_cup < 6
How many Totals have a CONCACAF of 0, and an MLS Cup smaller than 6?
CREATE TABLE table_name_64 (total VARCHAR, concacaf VARCHAR, mls_cup VARCHAR)
SELECT network FROM table_2170969_2 WHERE viewers_in_millions = "2.74"
What network garnered 2.74 million viewers for Supernatural?
CREATE TABLE table_2170969_2 (network VARCHAR, viewers_in_millions VARCHAR)
SELECT weeks_in_top_10 FROM table_26400075_2 WHERE artist = "Beats International"
How many weeks in the top-10 did Beats International have?
CREATE TABLE table_26400075_2 (weeks_in_top_10 VARCHAR, artist VARCHAR)
SELECT runner_up FROM table_name_72 WHERE season = "2000–01"
Which Runner-up played in the Season of 2000–01?
CREATE TABLE table_name_72 (runner_up VARCHAR, season VARCHAR)
SELECT MAX(money___) AS £__ FROM table_name_95 WHERE player = "peter hedblom"
What is the highest Money ( £ ), when Player is "Peter Hedblom"?
CREATE TABLE table_name_95 (money___ INTEGER, player VARCHAR)
SELECT division FROM table_name_66 WHERE country = "ukraine" AND season = "2006/07"
What division was Ukraine in 2006/07?
CREATE TABLE table_name_66 (division VARCHAR, country VARCHAR, season VARCHAR)
SELECT losing_team FROM table_name_44 WHERE total = 24 AND winning_team = "sydney roosters"
Who was the losing team with a total of 24 when the winning team was Sydney Roosters?
CREATE TABLE table_name_44 (losing_team VARCHAR, total VARCHAR, winning_team VARCHAR)
SELECT SUM(wins) FROM table_name_80 WHERE against < 1148
What is the sum of wins against the smaller score 1148?
CREATE TABLE table_name_80 (wins INTEGER, against INTEGER)
SELECT time FROM table_name_84 WHERE date = "may 9"
What Time has Date of May 9?
CREATE TABLE table_name_84 (time VARCHAR, date VARCHAR)
SELECT position FROM table_name_65 WHERE jersey_number_s_ = "22"
What position does the player with jersey number 22 play?
CREATE TABLE table_name_65 (position VARCHAR, jersey_number_s_ VARCHAR)
SELECT MAX(pick) FROM table_name_11 WHERE year > 2010 AND round < 1
What is the highest pick for a year after 2010, and a round smaller than 1?
CREATE TABLE table_name_11 (pick INTEGER, year VARCHAR, round VARCHAR)
SELECT george_h_w_bush FROM table_name_59 WHERE ronald_reagan = "43%"
Name the george bush for ronald reagan of 43%
CREATE TABLE table_name_59 (george_h_w_bush VARCHAR, ronald_reagan VARCHAR)
SELECT player FROM table_name_36 WHERE total = 292
What is Player, when Total is 292?
CREATE TABLE table_name_36 (player VARCHAR, total VARCHAR)
SELECT score FROM table_name_93 WHERE country = "spain"
What was spain's score?
CREATE TABLE table_name_93 (score VARCHAR, country VARCHAR)
SELECT percentage___percentage_ FROM table_name_73 WHERE language = "russian"
What is the percentage who speak Russian?
CREATE TABLE table_name_73 (percentage___percentage_ VARCHAR, language VARCHAR)
SELECT average_speed__mph_ FROM table_1963459_2 WHERE team = "Jon Thorne"
What is Jon Thorne's average speed?
CREATE TABLE table_1963459_2 (average_speed__mph_ VARCHAR, team VARCHAR)
SELECT score FROM table_name_65 WHERE site_stadium = "alex box stadium" AND date = "may 10"
What was the score for the game played on May 10 at Alex Box Stadium?
CREATE TABLE table_name_65 (score VARCHAR, site_stadium VARCHAR, date VARCHAR)
SELECT school FROM table_name_39 WHERE hometown = "phoenix, az"
Which school has a Hometown of phoenix, az?
CREATE TABLE table_name_39 (school VARCHAR, hometown VARCHAR)
SELECT published_in FROM table_name_22 WHERE setting = "mars" AND publication_date = "july 1934"
Name what was published in july 1934 with a setting of mars
CREATE TABLE table_name_22 (published_in VARCHAR, setting VARCHAR, publication_date VARCHAR)
SELECT MIN(year) FROM table_name_15 WHERE apparatus = "uneven bars" AND rank_final < 3
Which Year is the first one that has an Apparatus of uneven bars, and a Rank-Final smaller than 3?
CREATE TABLE table_name_15 (year INTEGER, apparatus VARCHAR, rank_final VARCHAR)
SELECT result FROM table_15778392_1 WHERE original_artist = "Betty Everett"
WHAT IS THE RESULT FOR THE SONG WHERE THE ORIGINAL ARTIST IS BETTY EVERETT?
CREATE TABLE table_15778392_1 (result VARCHAR, original_artist VARCHAR)
SELECT brakes FROM table_250230_2 WHERE wheels = "16x8.0JJ (front) 16x8.0JJ (rear)" AND tyres = "225/50R16 92V(front) 225/50R16 92V(rear)" AND model = "Type RB 4AT"
What kind of brakes for the model type rb 4at with 16x8.0jj (front) 16x8.0jj (rear) wheels and 225/50r16 92v(front) 225/50r16 92v(rear) tyres?
CREATE TABLE table_250230_2 (brakes VARCHAR, model VARCHAR, wheels VARCHAR, tyres VARCHAR)
SELECT school AS website FROM table_28523_3 WHERE religious_affiliation = "Church of England"
What is the website of the school affiliated with the Church of England?
CREATE TABLE table_28523_3 (school VARCHAR, religious_affiliation VARCHAR)
SELECT time_retired FROM table_name_88 WHERE grid = 13
What is the grid 13 time score?
CREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR)
SELECT MIN(round) FROM table_name_54 WHERE name = "samuel scheschuk"
What is the smallest round associated with Samuel Scheschuk?
CREATE TABLE table_name_54 (round INTEGER, name VARCHAR)
SELECT MAX(year) FROM table_name_60 WHERE position = "1st" AND venue = "maputo, mozambique"
What was the latest year with a position of 1st at Maputo, Mozambique?
CREATE TABLE table_name_60 (year INTEGER, position VARCHAR, venue VARCHAR)
SELECT episode FROM table_23292220_13 WHERE seans_team = "Jack Dee and Stacey Solomon"
What was the episode that had Jack Dee and Stacey Solomon on Sean's team?
CREATE TABLE table_23292220_13 (episode VARCHAR, seans_team VARCHAR)
SELECT winning_driver FROM table_1137702_3 WHERE grand_prix = "Pacific grand_prix"
Who was the winning driver in the grand prix at Pacific Grand Prix?
CREATE TABLE table_1137702_3 (winning_driver VARCHAR, grand_prix VARCHAR)
SELECT score FROM table_27721131_6 WHERE high_points = "Andray Blatche , Al Thornton (20)"
What was the score when andray blatche , al thornton (20) had the high points?
CREATE TABLE table_27721131_6 (score VARCHAR, high_points VARCHAR)
SELECT second_member FROM table_name_14 WHERE first_member = "rt hon. edward stanley"
Who is the second member when RT Hon. Edward Stanley is the first member?
CREATE TABLE table_name_14 (second_member VARCHAR, first_member VARCHAR)
SELECT grid FROM table_17244483_1 WHERE points = "19"
What grid did the driver who earned 19 points start at?
CREATE TABLE table_17244483_1 (grid VARCHAR, points VARCHAR)
SELECT SUM(rebounds) FROM table_name_12 WHERE games > 22
with games more than 22 what is the rebound total?
CREATE TABLE table_name_12 (rebounds INTEGER, games INTEGER)
SELECT record FROM table_11406866_2 WHERE attendance = "61,350"
what's the record where attendance is 61,350
CREATE TABLE table_11406866_2 (record VARCHAR, attendance VARCHAR)
SELECT model_number FROM table_name_48 WHERE socket = "standard voltage"
What model number uses standard voltage socket?
CREATE TABLE table_name_48 (model_number VARCHAR, socket VARCHAR)
SELECT myspace_band FROM table_name_38 WHERE original_airdate = "19 february 2008"
What is the name of the MySpace Band with an Original Airdate of 19 february 2008?
CREATE TABLE table_name_38 (myspace_band VARCHAR, original_airdate VARCHAR)
SELECT november_3 FROM table_25252080_3 WHERE january_15_16 = "151"
What number is shown for november 3 where january 15-16 is 151?
CREATE TABLE table_25252080_3 (november_3 VARCHAR, january_15_16 VARCHAR)
SELECT COUNT(theme) FROM table_21501564_1 WHERE original_artist = "Duffy"
How many weeks featured duffy as the original artist?
CREATE TABLE table_21501564_1 (theme VARCHAR, original_artist VARCHAR)
SELECT height_ft___m FROM table_name_24 WHERE floors > 30 AND name = "bny mellon center"
Name the height when the floors are bigger than 30 at the bny mellon center
CREATE TABLE table_name_24 (height_ft___m VARCHAR, floors VARCHAR, name VARCHAR)
SELECT event FROM table_name_43 WHERE record = "12-1"
Which event has 12-1 as a record?
CREATE TABLE table_name_43 (event VARCHAR, record VARCHAR)
SELECT transfer_window FROM table_name_76 WHERE moving_to = "alianza atlético" AND name = "v. zapata"
What is the transfer window when moving to alianza atlético by the name of v. zapata?
CREATE TABLE table_name_76 (transfer_window VARCHAR, moving_to VARCHAR, name VARCHAR)
SELECT time FROM table_26842217_8 WHERE visiting_team = "Clemson"
If the visiting team is Clemson, when was the time?
CREATE TABLE table_26842217_8 (time VARCHAR, visiting_team VARCHAR)
SELECT event FROM table_name_25 WHERE athlete = "fatima whitbread trine hattestad"
What event was Fatima Whitbread Trine Hattestad in?
CREATE TABLE table_name_25 (event VARCHAR, athlete VARCHAR)
SELECT COUNT(affiliation) FROM table_13456202_1 WHERE mascot = "Eagles"
How many teams have an eagles mascot?
CREATE TABLE table_13456202_1 (affiliation VARCHAR, mascot VARCHAR)
SELECT position FROM table_name_26 WHERE overall = 273
WHAT POSITION IS 273?
CREATE TABLE table_name_26 (position VARCHAR, overall VARCHAR)
SELECT attendance FROM table_name_25 WHERE away_team = "bournemouth"
What was the attendance when Bournemouth was the away team?
CREATE TABLE table_name_25 (attendance VARCHAR, away_team VARCHAR)
SELECT pick__number FROM table_2508633_8 WHERE player = "Gary Kubiak"
What is the pick number if the player is Gary Kubiak?
CREATE TABLE table_2508633_8 (pick__number VARCHAR, player VARCHAR)
SELECT score FROM table_name_93 WHERE date = "september 25"
Name the score for september 25
CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)
SELECT result FROM table_name_29 WHERE h___a = "h" AND round = "r6 replay"
What is the result for an H/A of H and a round value of R6 replay?
CREATE TABLE table_name_29 (result VARCHAR, h___a VARCHAR, round VARCHAR)
SELECT latest_stable_release FROM table_name_36 WHERE price_in_usd = "free / negotiable"
Name the Latest stable release that has a Price in USD of free / negotiable?
CREATE TABLE table_name_36 (latest_stable_release VARCHAR, price_in_usd VARCHAR)
SELECT AVG(goals) FROM table_name_17 WHERE player = "thierry henry" AND rank > 7
What was Thierry Henry's average goal when his rank was higher than 7?
CREATE TABLE table_name_17 (goals INTEGER, player VARCHAR, rank VARCHAR)
SELECT pick FROM table_name_10 WHERE position = "dt" AND round > 1 AND overall < 155 AND year = "1952"
What number was the pick for the position of DT in 1952, after round 1, where the overall was less than 155?
CREATE TABLE table_name_10 (pick VARCHAR, year VARCHAR, overall VARCHAR, position VARCHAR, round VARCHAR)
SELECT 3 AS rd_liga_3rd FROM table_name_41 WHERE date = "2010-11"
What is the 3rd Liga from 2010-11?
CREATE TABLE table_name_41 (date VARCHAR)
SELECT SUM(laps) FROM table_name_17 WHERE co_drivers = "oliver gavin jan magnussen" AND class = "gts" AND year < 2004
Name the sum of Laps for co-drivers of oliver gavin jan magnussen and class of gts with year less than 2004
CREATE TABLE table_name_17 (laps INTEGER, year VARCHAR, co_drivers VARCHAR, class VARCHAR)
SELECT date FROM table_name_33 WHERE location = "faro"
Name the date for faro
CREATE TABLE table_name_33 (date VARCHAR, location VARCHAR)
SELECT MIN(round) FROM table_name_82 WHERE event = "kotc 25: flaming fury"
What was the lowest round for the KOTC 25: Flaming Fury event?
CREATE TABLE table_name_82 (round INTEGER, event VARCHAR)
SELECT T1.staff_name FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id GROUP BY T2.staff_id HAVING COUNT(*) > 1
List the name of staff who has been assigned multiple jobs.
CREATE TABLE staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR)
SELECT result FROM table_name_69 WHERE time = "6:00 pm" AND attendance = "79,419"
What was the score of the match that took place at 6:00 PM with 79,419 in attendance?
CREATE TABLE table_name_69 (result VARCHAR, time VARCHAR, attendance VARCHAR)
SELECT points_against FROM table_name_51 WHERE drawn = "0" AND tries_for = "50"
For the club that had tries of 50 and drawn of 0, what were the points?
CREATE TABLE table_name_51 (points_against VARCHAR, drawn VARCHAR, tries_for VARCHAR)
SELECT title FROM table_27892955_1 WHERE us_viewers__million_ = "2.02"
What is the name of the episode that had 2.02 million u.s. viewers?
CREATE TABLE table_27892955_1 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(receptions) FROM table_name_6 WHERE receiving_yards < 161 AND rushing_tds < 14
How many receptions were smaller than 161 receiving yards but also had less than 14 rushing TDs?
CREATE TABLE table_name_6 (receptions VARCHAR, receiving_yards VARCHAR, rushing_tds VARCHAR)
SELECT sing_pres FROM table_name_51 WHERE sing_pret = "ou" AND subj_pres = "ie"
What is the singular present that is associated with a singular preterite of ou and a subjunctive present of ie?
CREATE TABLE table_name_51 (sing_pres VARCHAR, sing_pret VARCHAR, subj_pres VARCHAR)
SELECT frequency FROM table_11602313_4 WHERE part_number_s_ = "LF80537GF0411M"
What is the frequency of the model with part number lf80537gf0411m?
CREATE TABLE table_11602313_4 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT shirt_sponsor FROM table_name_68 WHERE kit_manufacturer = "nike"
Which shirt sponser has Nike as a kit manufacturer?
CREATE TABLE table_name_68 (shirt_sponsor VARCHAR, kit_manufacturer VARCHAR)
SELECT COUNT(rank_by_average) FROM table_name_99 WHERE number_of_dances = 2 AND total_points > 37
What is the total rank by average for 2 dances, which have more than 37 total points?
CREATE TABLE table_name_99 (rank_by_average VARCHAR, number_of_dances VARCHAR, total_points VARCHAR)
SELECT translation FROM table_name_10 WHERE unit = "uncia"
Which translation had a unit of Uncia?
CREATE TABLE table_name_10 (translation VARCHAR, unit VARCHAR)
SELECT COUNT(rnd) FROM table_1140073_2 WHERE fastest_lap = "Patrick Tambay"
How many rounds did Patrick Tambay record the fastest lap?
CREATE TABLE table_1140073_2 (rnd VARCHAR, fastest_lap VARCHAR)
SELECT cumulative_time__min_and_seconds_ FROM table_name_93 WHERE shuttle_time__seconds_ > 6 AND total_level_time__s_ = 64.8
What is the cumulative time (min and seconds) that has more than 6 seconds in shuttle time and a total level time of 64.8 seconds?
CREATE TABLE table_name_93 (cumulative_time__min_and_seconds_ VARCHAR, shuttle_time__seconds_ VARCHAR, total_level_time__s_ VARCHAR)
SELECT MAX(number_of_selections) FROM table_26130295_3 WHERE season_mvp > 1.0
when season mvp is larger than 1.0 what is the maximum number of selection
CREATE TABLE table_26130295_3 (number_of_selections INTEGER, season_mvp INTEGER)
SELECT COUNT(capacity) FROM table_name_61 WHERE club = "leicester tigers"
What is the total capacity for the Leicester Tigers?
CREATE TABLE table_name_61 (capacity VARCHAR, club VARCHAR)
SELECT AVG(points) FROM table_name_72 WHERE played > 18
What is the average number of points of the team with more than 18 played?
CREATE TABLE table_name_72 (points INTEGER, played INTEGER)
SELECT score FROM table_name_31 WHERE date = "june 8, 1996"
What is Score, when Date is "June 8, 1996"?
CREATE TABLE table_name_31 (score VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_34 WHERE venue = "windy hill"
How much was the score of the home team at windy hill?
CREATE TABLE table_name_34 (home_team VARCHAR, venue VARCHAR)
SELECT bubbles FROM table_name_12 WHERE attribute = "onscroll"
Name the bubbles for onscroll
CREATE TABLE table_name_12 (bubbles VARCHAR, attribute VARCHAR)
SELECT peak FROM table_name_14 WHERE project_name = "talakan ph 1"
What is the Peak with a Project Name that is talakan ph 1?
CREATE TABLE table_name_14 (peak VARCHAR, project_name VARCHAR)
SELECT lane FROM table_name_21 WHERE time = 55.69
What is the lane number of the swimmer with a time of 55.69?
CREATE TABLE table_name_21 (lane VARCHAR, time VARCHAR)
SELECT attendance FROM table_name_22 WHERE loss = "wakefield (7–10)"
What was the attendance at the Red Sox game that had a loss of Wakefield (7–10)?
CREATE TABLE table_name_22 (attendance VARCHAR, loss VARCHAR)
SELECT writer_s_ FROM table_2602958_4 WHERE no = 45
Who wrote episode number 45?
CREATE TABLE table_2602958_4 (writer_s_ VARCHAR, no VARCHAR)
SELECT MAX(2010) FROM table_30133_3 WHERE economy = "China"
What is the maximum 2010 value for China?
CREATE TABLE table_30133_3 (economy VARCHAR)
SELECT MAX(laps) FROM table_name_19 WHERE grid > 13 AND time_retired = "engine" AND driver = "luigi piotti"
What was the highest lap for Luigi Piotti with more than 13 grid and a time/retired engine?
CREATE TABLE table_name_19 (laps INTEGER, driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT AVG(draws) FROM table_name_70 WHERE losses > 9 AND wins > 9
What is the average Draws, when Losses is greater than 9, and when Wins is greater than 9?
CREATE TABLE table_name_70 (draws INTEGER, losses VARCHAR, wins VARCHAR)
SELECT event FROM table_name_24 WHERE prize = "$248,004"
What event has a $248,004 prize?
CREATE TABLE table_name_24 (event VARCHAR, prize VARCHAR)
SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < "2018-03-17 07:13:53"
Find the total amount of products ordered before 2018-03-17 07:13:53.
CREATE TABLE customer_orders (order_id VARCHAR, order_date INTEGER); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR)
SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1
List the name of the aircraft that has been named winning aircraft the most number of times.
CREATE TABLE MATCH (Winning_Aircraft VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR)
SELECT constructor FROM table_name_66 WHERE grid = "20"
Who was the contstructor of the car having a grid of 20?
CREATE TABLE table_name_66 (constructor VARCHAR, grid VARCHAR)
SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2002 AND T2.campus = "Long Beach State University"
What is the number of faculty lines in campus "Long Beach State University" in 2002?
CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR)
SELECT home_team FROM table_name_20 WHERE venue = "mcg"
What is the home team at the venue mcg?
CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR)
SELECT loss FROM table_name_24 WHERE record = "22-24"
What's the Loss for the game that had a 22-24 record?
CREATE TABLE table_name_24 (loss VARCHAR, record VARCHAR)
SELECT venue FROM table_name_34 WHERE home_team = "collingwood"
What was the venue when Collingwood was the home team?
CREATE TABLE table_name_34 (venue VARCHAR, home_team VARCHAR)
SELECT season FROM table_name_34 WHERE score = "1-0"
Can you tell me the Season that has the Score of 1-0?
CREATE TABLE table_name_34 (season VARCHAR, score VARCHAR)
SELECT MAX(year) FROM table_15001681_1 WHERE womens_doubles = "Astrid Eidenbenz Claudia Jehle"
What is the most current year where the women's doubles champions are astrid eidenbenz claudia jehle
CREATE TABLE table_15001681_1 (year INTEGER, womens_doubles VARCHAR)
SELECT score FROM table_24765815_2 WHERE player = "Samir Nasri"
What was the score for the game in which Samir Nasri played?
CREATE TABLE table_24765815_2 (score VARCHAR, player VARCHAR)
SELECT h_a_n FROM table_name_13 WHERE score = "105*♠"
Which H/A/N has a score of 105*♠?
CREATE TABLE table_name_13 (h_a_n VARCHAR, score VARCHAR)
SELECT date FROM table_name_78 WHERE score = "w 105-88"
What is the date of the game with a w 105-88 score?
CREATE TABLE table_name_78 (date VARCHAR, score VARCHAR)
SELECT rank FROM table_name_26 WHERE laps > 107 AND qual = "137.825"
What is the rank when there are more than 107 laps and the qual is 137.825?
CREATE TABLE table_name_26 (rank VARCHAR, laps VARCHAR, qual VARCHAR)