answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT SUM(quantity) FROM table_name_71 WHERE date = "1900"
What was the Quantity on Date 1900?
CREATE TABLE table_name_71 (quantity INTEGER, date VARCHAR)
SELECT pts_[b_] FROM table_name_82 WHERE reb_[b_] > 636 AND no_[a_] = "50"
What is the points that is more than 636 and has a value of 50?
CREATE TABLE table_name_82 (pts_ VARCHAR, b_ VARCHAR, reb_ VARCHAR, no_ VARCHAR, a_ VARCHAR)
SELECT country FROM table_name_60 WHERE place = "t8" AND score = 70 - 67 - 71 = 208
What is the Country of the T8 Place Player with a Score of 70-67-71=208?
CREATE TABLE table_name_60 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT party FROM table_27050336_7 WHERE delegate = "Gaines, Tawanna P. Tawanna Gaines"
For delegate is gaines, tawanna p. tawanna gaines, please specify all the party.
CREATE TABLE table_27050336_7 (party VARCHAR, delegate VARCHAR)
SELECT score FROM table_name_27 WHERE place = "t9" AND country = "sweden"
What was sweden's score in T9 place?
CREATE TABLE table_name_27 (score VARCHAR, place VARCHAR, country VARCHAR)
SELECT engine FROM table_name_94 WHERE team = "bf racing marron excavations" AND chassis = "monaco" AND driver = "lee filliponi"
What type of engine does the BF Racing Marron Excavations have that also has Monaco as chassis and Lee Filliponi as the driver?
CREATE TABLE table_name_94 (engine VARCHAR, driver VARCHAR, team VARCHAR, chassis VARCHAR)
SELECT bayonet_lug FROM table_12834315_5 WHERE barrel_profile = "M4 HBAR" AND name = "M4LE Carbine"
What is the bayonet lug status for a m4 hbar and m4le carbine equipped?
CREATE TABLE table_12834315_5 (bayonet_lug VARCHAR, barrel_profile VARCHAR, name VARCHAR)
SELECT course FROM table_name_5 WHERE stage = "1"
What course are they running on stage 1?
CREATE TABLE table_name_5 (course VARCHAR, stage VARCHAR)
SELECT country FROM table_17634290_7 WHERE moving_from = "Bristol City"
What is the name of the country where moving from is listed as bristol city?
CREATE TABLE table_17634290_7 (country VARCHAR, moving_from VARCHAR)
SELECT player FROM table_25730123_2 WHERE extra_points < 1.0 AND points = 20
Name the player/s when there were 20 points with less than 1.0 extra point .
CREATE TABLE table_25730123_2 (player VARCHAR, extra_points VARCHAR, points VARCHAR)
SELECT date FROM table_name_48 WHERE time = "2:48"
What date has 2:48 as the time?
CREATE TABLE table_name_48 (date VARCHAR, time VARCHAR)
SELECT SUM(week) FROM table_name_7 WHERE date = "december 2, 2001"
What is the sum of Week, when Date is December 2, 2001?
CREATE TABLE table_name_7 (week INTEGER, date VARCHAR)
SELECT MIN(game__number) FROM table_name_93 WHERE home = "detroit"
What is the first game that has a home team of Detroit?
CREATE TABLE table_name_93 (game__number INTEGER, home VARCHAR)
SELECT week_4 FROM table_name_12 WHERE week_3 = "mikaela james"
Who was the girl on week 4 after week 3's Mikaela James?
CREATE TABLE table_name_12 (week_4 VARCHAR, week_3 VARCHAR)
SELECT COUNT(*) FROM teacher
How many teachers are there?
CREATE TABLE teacher (Id VARCHAR)
SELECT result FROM table_name_58 WHERE date = "october 8, 1985"
What was the result on October 8, 1985?
CREATE TABLE table_name_58 (result VARCHAR, date VARCHAR)
SELECT season_outcome FROM table_name_70 WHERE school = "sussex tech"
What is the Season Outcome, when the School is Sussex Tech?
CREATE TABLE table_name_70 (season_outcome VARCHAR, school VARCHAR)
SELECT home_team FROM table_name_91 WHERE attendance = "160"
Which Home team had attendance 160?
CREATE TABLE table_name_91 (home_team VARCHAR, attendance VARCHAR)
SELECT original_team FROM table_12286195_1 WHERE result = "08 Fired in week 10 (2008-03-06)"
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 function__figure_ FROM table_name_95 WHERE serial_number = "af 934103"
What Function (figure) has Serial number AF 934103?
CREATE TABLE table_name_95 (function__figure_ VARCHAR, serial_number VARCHAR)
SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1
Find the branch name of the bank that has the most number of customers.
CREATE TABLE bank (bname VARCHAR, no_of_customers VARCHAR)
SELECT COUNT(year) FROM table_name_10 WHERE engine = "audi 3.6l turbo v8" AND rank = "1st" AND chassis = "audi r8r"
How many years has an engine of audi 3.6l turbo v8 and 1st as the rank with an audi r8r as the chassis?
CREATE TABLE table_name_10 (year VARCHAR, chassis VARCHAR, engine VARCHAR, rank VARCHAR)
SELECT home_team FROM table_name_51 WHERE away_team = "armthorpe welfare"
Who was the home team that played against Armthorpe Welfare?
CREATE TABLE table_name_51 (home_team VARCHAR, away_team VARCHAR)
SELECT liscumb FROM table_11447995_2 WHERE haydon = "1632"
What is Liscumb when Haydon is 1632?
CREATE TABLE table_11447995_2 (liscumb VARCHAR, haydon VARCHAR)
SELECT college_junior_club_team FROM table_1473672_8 WHERE position = "Left Wing"
Name the college/junior/club team for left wing
CREATE TABLE table_1473672_8 (college_junior_club_team VARCHAR, position VARCHAR)
SELECT actor FROM table_name_14 WHERE soap_opera = "the archers" AND character = "martha woodford"
Who's the actor for the Archers having a character of Martha Woodford?
CREATE TABLE table_name_14 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR)
SELECT winner FROM table_name_49 WHERE circuit = "barbagallo raceway"
Who won at the Barbagallo Raceway circuit?
CREATE TABLE table_name_49 (winner VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_41 WHERE opponent_in_the_final = "kenneth carlsen"
What is the Date of the match with Opponent in the final Kenneth Carlsen?
CREATE TABLE table_name_41 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT candidates FROM table_1342218_35 WHERE district = "Ohio 9"
Who are the candidates in the election in the Ohio 9 district?
CREATE TABLE table_1342218_35 (candidates VARCHAR, district VARCHAR)
SELECT original_air_date FROM table_13273629_2 WHERE directed_by = "Carey Meyer"
When was the episode directed by Carey Meyer aired for the first time?
CREATE TABLE table_13273629_2 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT species FROM table_name_78 WHERE length__bp_aa_ = "1154bp/358aa"
Which Species has a Length (bp/aa) of 1154bp/358aa?
CREATE TABLE table_name_78 (species VARCHAR, length__bp_aa_ VARCHAR)
SELECT COUNT(company_name) FROM table_1756264_2 WHERE parent__holding__company = "POSTERMOBILE LIMITED"
How many companies have Postermobile Limited as a parent company?
CREATE TABLE table_1756264_2 (company_name VARCHAR, parent__holding__company VARCHAR)
SELECT t1.customer_name, t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email'
Find the name and active date of the customer that use email as the contact channel.
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_contact_channels (active_from_date VARCHAR, customer_id VARCHAR, channel_code VARCHAR)
SELECT event FROM table_name_86 WHERE time = "2:34"
Which event had a time of 2:34?
CREATE TABLE table_name_86 (event VARCHAR, time VARCHAR)
SELECT MAX(basses) FROM table_2414_1
What is the biggest number of basses suggested in either one of the references?
CREATE TABLE table_2414_1 (basses INTEGER)
SELECT tie_no FROM table_name_26 WHERE home_team = "swansea city"
What is the tie no for the home team swansea city?
CREATE TABLE table_name_26 (tie_no VARCHAR, home_team VARCHAR)
SELECT AVG(total) FROM table_name_96 WHERE finish = "t10" AND country = "fiji"
What is the average of Fiji with t10 Finish?
CREATE TABLE table_name_96 (total INTEGER, finish VARCHAR, country VARCHAR)
SELECT MAX(180 AS s) FROM table_20948329_1 WHERE legs_won = 45
How many 180s have legs won of 45?
CREATE TABLE table_20948329_1 (legs_won VARCHAR)
SELECT player FROM table_name_23 WHERE college = "british columbia"
What player was from the British Columbia college?
CREATE TABLE table_name_23 (player VARCHAR, college VARCHAR)
SELECT home_team AS score FROM table_name_18 WHERE venue = "victoria park"
What did the team score when playing at home in victoria park?
CREATE TABLE table_name_18 (home_team VARCHAR, venue VARCHAR)
SELECT SUM(total) FROM table_name_56 WHERE gold < 1 AND bronze = 3
Name the sum of total for gold less than 1 and bronze of 3
CREATE TABLE table_name_56 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT pos FROM table_name_4 WHERE laps < 343 AND year = 2010
What position has less than 343 laps in 2010?
CREATE TABLE table_name_4 (pos VARCHAR, laps VARCHAR, year VARCHAR)
SELECT result FROM table_name_65 WHERE date = "november 20, 1994"
On November 20, 1994, what was the result of the game?
CREATE TABLE table_name_65 (result VARCHAR, date VARCHAR)
SELECT avg_finish FROM table_1875157_2 WHERE winnings = "$1,400"
What is the average finish for winnings of $1,400?
CREATE TABLE table_1875157_2 (avg_finish VARCHAR, winnings VARCHAR)
SELECT title FROM table_13336122_3 WHERE directed_by = "David Von Ancken" AND no_in_series > 16.0
What's the title of the episode directed by David von Ancken, with a episode number bigger than 16.0?
CREATE TABLE table_13336122_3 (title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)
SELECT area__km²__2005 FROM table_21734764_1 WHERE administrative_division = "Cimahi City"
What is the area of cimahi city?
CREATE TABLE table_21734764_1 (area__km²__2005 VARCHAR, administrative_division VARCHAR)
SELECT MIN(position) FROM table_15331868_1 WHERE difference = "6"
What is the smalledt position when the difference was 6?
CREATE TABLE table_15331868_1 (position INTEGER, difference VARCHAR)
SELECT COUNT(ects_credit_points) FROM table_name_25 WHERE program = "master in management"
How many ECTS credit points occur with Master in Management?
CREATE TABLE table_name_25 (ects_credit_points VARCHAR, program VARCHAR)
SELECT country FROM table_name_18 WHERE total < 153 AND year_s__won = "1984"
What is the Country of the Player with a Total less than 153 and Year(s) won of 1984?
CREATE TABLE table_name_18 (country VARCHAR, total VARCHAR, year_s__won VARCHAR)
SELECT fcc_info FROM table_13998897_1 WHERE call_sign = "W221AW"
what's the fcc info with call sign being w221aw
CREATE TABLE table_13998897_1 (fcc_info VARCHAR, call_sign VARCHAR)
SELECT away_team FROM table_name_22 WHERE home_team = "south melbourne"
What team played South Melbourne at their home game?
CREATE TABLE table_name_22 (away_team VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_85 WHERE game = 21
What was the date of game 21?
CREATE TABLE table_name_85 (date VARCHAR, game VARCHAR)
SELECT molecules FROM table_name_8 WHERE percent_of_mass = "1.0"
what is the molecules when the percent mass is 1.0?
CREATE TABLE table_name_8 (molecules VARCHAR, percent_of_mass VARCHAR)
SELECT COUNT(pct) FROM table_name_17 WHERE lost = 20 AND seasons > 1
How many percentages have 20 losses and more than 1 season?
CREATE TABLE table_name_17 (pct VARCHAR, lost VARCHAR, seasons VARCHAR)
SELECT directed_by FROM table_29273390_1 WHERE us_viewers__million_ = "1.19"
Who directed an episode with 1.19 million?
CREATE TABLE table_29273390_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT AVG(rank) FROM table_name_72 WHERE total = 12
Which Rank has a Total of 12?
CREATE TABLE table_name_72 (rank INTEGER, total VARCHAR)
SELECT uk_chart FROM table_name_84 WHERE artist = "scott fitzgerald"
Where did Scott Fitzgerald rank on the UK charts?
CREATE TABLE table_name_84 (uk_chart VARCHAR, artist VARCHAR)
SELECT frequency FROM table_24418525_1 WHERE coverage = "Mega Manila"
What frequency is mega manila set to?
CREATE TABLE table_24418525_1 (frequency VARCHAR, coverage VARCHAR)
SELECT date FROM table_name_30 WHERE venue = "candlestick park"
What date(s) was the game(s) at Candlestick Park?
CREATE TABLE table_name_30 (date VARCHAR, venue VARCHAR)
SELECT record FROM table_name_39 WHERE date = "february 19"
What is the record on February 19?
CREATE TABLE table_name_39 (record VARCHAR, date VARCHAR)
SELECT record FROM table_13619135_5 WHERE score = "W 108–93 (OT)"
What was the record when the score was w 108–93 (ot)?
CREATE TABLE table_13619135_5 (record VARCHAR, score VARCHAR)
SELECT player FROM table_name_89 WHERE team = "buffalo braves" AND previous_team = "los angeles lakers" AND career_with_the_franchise_[b_] = "1970"
Who is the player from the Buffalo Braves with the previous team Los Angeles Lakers and a career with the franchase in 1970?
CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, previous_team VARCHAR, career_with_the_franchise_ VARCHAR, b_ VARCHAR)
SELECT score FROM table_name_96 WHERE venue = "kathmandu"
What was the score in Kathmandu?
CREATE TABLE table_name_96 (score VARCHAR, venue VARCHAR)
SELECT home_captain FROM table_name_53 WHERE venue = "melbourne cricket ground"
Which Home captain has a Venue of melbourne cricket ground?
CREATE TABLE table_name_53 (home_captain VARCHAR, venue VARCHAR)
SELECT status FROM table_1341568_44 WHERE incumbent = "Charles Stenholm"
What is the status of incumbent Charles Stenholm?
CREATE TABLE table_1341568_44 (status VARCHAR, incumbent VARCHAR)
SELECT country FROM table_name_37 WHERE year_s__won = "1964"
Which country has a Year(s) won in 1964?
CREATE TABLE table_name_37 (country VARCHAR, year_s__won VARCHAR)
SELECT AVG(heat_rank) FROM table_name_15 WHERE time < 24.02 AND lane = 1
Tell me the average heat rank for time less than 24.02 and lane of 1
CREATE TABLE table_name_15 (heat_rank INTEGER, time VARCHAR, lane VARCHAR)
SELECT method FROM table_name_78 WHERE round < 3 AND record = "4-2"
What's the method for a record of 4-2 and round smaller than 3?
CREATE TABLE table_name_78 (method VARCHAR, round VARCHAR, record VARCHAR)
SELECT date FROM table_13619135_7 WHERE location_attendance = "Staples Center 18,176"
What day was the attendance at the staples center 18,176?
CREATE TABLE table_13619135_7 (date VARCHAR, location_attendance VARCHAR)
SELECT first_elected FROM table_1341640_14 WHERE incumbent = "Phil Crane"
What year was incumbent phil crane first elected?
CREATE TABLE table_1341640_14 (first_elected VARCHAR, incumbent VARCHAR)
SELECT AVG(year) FROM table_name_11 WHERE participation_as = "actor, film editor"
Participation as of actor, film editor has what average year?
CREATE TABLE table_name_11 (year INTEGER, participation_as VARCHAR)
SELECT week_14_nov_30 FROM table_name_50 WHERE week_10_nov_2 = "michigan state (8-2)"
What was the week 14 opponent for the year with a week 10 opponent of Michigan State (8-2)?
CREATE TABLE table_name_50 (week_14_nov_30 VARCHAR, week_10_nov_2 VARCHAR)
SELECT party FROM table_name_79 WHERE member = "ralph jacobi"
To what party does Ralph Jacobi belong?
CREATE TABLE table_name_79 (party VARCHAR, member VARCHAR)
SELECT state_province_county, country FROM addresses WHERE zip_postcode LIKE "4%"
Find the state and country of all cities with post code starting with 4.
CREATE TABLE addresses (state_province_county VARCHAR, country VARCHAR, zip_postcode VARCHAR)
SELECT remixed_by FROM table_name_47 WHERE version = "strings for soul's mix"
What's the Remixed by with a Version of Strings for Soul's Mix?
CREATE TABLE table_name_47 (remixed_by VARCHAR, version VARCHAR)
SELECT result FROM table_name_35 WHERE opponent = "san francisco 49ers"
What was the result when the San Francisco 49ers were the opponents?
CREATE TABLE table_name_35 (result VARCHAR, opponent VARCHAR)
SELECT MIN(year) FROM table_name_67 WHERE type = "lp" AND catalog__number = "ual 24033"
What is the earliest year catalog # ual 24033 had an LP?
CREATE TABLE table_name_67 (year INTEGER, type VARCHAR, catalog__number VARCHAR)
SELECT primary_sponsor_s_ FROM table_19908313_2 WHERE crew_chief = "Rick Ren"
Who is the primary sponsor for crew cheif Rick Ren's team?
CREATE TABLE table_19908313_2 (primary_sponsor_s_ VARCHAR, crew_chief VARCHAR)
SELECT AVG(density__inh_km²_) FROM table_name_33 WHERE land_area__hectares_ = 123.02 AND code > 2356
What is the average density with a land area of 123.02, and a Code larger than 2356?
CREATE TABLE table_name_33 (density__inh_km²_ INTEGER, land_area__hectares_ VARCHAR, code VARCHAR)
SELECT permanence_of_the_body FROM table_11609814_1 WHERE penance = "the undifferenced"
what's the permanence of the body where penance is the undifferenced
CREATE TABLE table_11609814_1 (permanence_of_the_body VARCHAR, penance VARCHAR)
SELECT opponent FROM table_name_88 WHERE week > 14 AND game_site = "lincoln financial field" AND time__et_ = "8:30"
Who did they play at lincoln financial field at 8:30 (ET) after week 14?
CREATE TABLE table_name_88 (opponent VARCHAR, time__et_ VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT time_retired FROM table_name_88 WHERE manufacturer = "yamaha" AND rider = "garry mccoy"
Which Time/Retired has a Manufacturer of yamaha, and a Rider of garry mccoy?
CREATE TABLE table_name_88 (time_retired VARCHAR, manufacturer VARCHAR, rider VARCHAR)
SELECT lived_when___mya__ FROM table_name_99 WHERE discovery___publication_of_name = "1994/2003"
Tell me lived for name of 1994/2003
CREATE TABLE table_name_99 (lived_when___mya__ VARCHAR, discovery___publication_of_name VARCHAR)
SELECT result FROM table_name_29 WHERE round < 3 AND location = "auckland, new zealand" AND method = "tko"
What is the result when the round is less than 3, the location is in Auckland, New Zealand, and tko is the method?
CREATE TABLE table_name_29 (result VARCHAR, method VARCHAR, round VARCHAR, location VARCHAR)
SELECT name FROM table_name_19 WHERE winning_constructor = "mercedes"
Which race did Mercedes win?
CREATE TABLE table_name_19 (name VARCHAR, winning_constructor VARCHAR)
SELECT SUM(attendance) FROM table_name_25 WHERE opponent = "oakland raiders" AND week > 7
How many were in attendance against the Oakland Raiders after week 7?
CREATE TABLE table_name_25 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT leading_scorer FROM table_11964047_8 WHERE date = "February 1"
What is the leading scorer on february 1?
CREATE TABLE table_11964047_8 (leading_scorer VARCHAR, date VARCHAR)
SELECT T1.party_name, T2.region_name FROM party AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id
Show all party names and their region names.
CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE party (party_name VARCHAR, region_id VARCHAR)
SELECT MIN(laps) FROM table_name_34 WHERE qual = "142.744"
What is the lowest laps with a 142.744 qual?
CREATE TABLE table_name_34 (laps INTEGER, qual VARCHAR)
SELECT location FROM table_name_29 WHERE disposition_of_ship = "captured" AND tonnage = "225"
Where was the ship when the ship had captured as the disposition of ship and was carrying 225 tonnage?
CREATE TABLE table_name_29 (location VARCHAR, disposition_of_ship VARCHAR, tonnage VARCHAR)
SELECT venue FROM table_name_49 WHERE opponent = "cronulla sharks"
What is the venue of the match with the cronulla sharks as the opponent?
CREATE TABLE table_name_49 (venue VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_14 WHERE date = "august 17, 2008"
what is the tournament on august 17, 2008?
CREATE TABLE table_name_14 (tournament VARCHAR, date VARCHAR)
SELECT location FROM table_21980_1 WHERE january__°f_ = "30/17"
In what location were the January (°F) temperatures 30/17?
CREATE TABLE table_21980_1 (location VARCHAR, january__°f_ VARCHAR)
SELECT SUM(wins) FROM table_name_20 WHERE year = 1994
How many wins were there in 1994?
CREATE TABLE table_name_20 (wins INTEGER, year VARCHAR)
SELECT MAX(runs) FROM table_name_75 WHERE match > 63 AND venue = "national stadium, karachi" AND year < 1996
Which Runs is the highest one that has a Match larger than 63, and a Venue of national stadium, karachi, and a Year smaller than 1996?
CREATE TABLE table_name_75 (runs INTEGER, year VARCHAR, match VARCHAR, venue VARCHAR)
SELECT podiums FROM table_name_97 WHERE races_† = "13/15"
What is the number of podiums for the races of 13/15?
CREATE TABLE table_name_97 (podiums VARCHAR, races_† VARCHAR)
SELECT DISTINCT country FROM singer WHERE age > 20
What are all distinct countries where singers above age 20 are from?
CREATE TABLE singer (country VARCHAR, age INTEGER)
SELECT date FROM table_name_40 WHERE location = "mexico city" AND winner = "vampiro"
What is the date of the match where vampiro was the winner in Mexico City?
CREATE TABLE table_name_40 (date VARCHAR, location VARCHAR, winner VARCHAR)
SELECT COUNT(avg_g) FROM table_name_88 WHERE att_cmp_int = "143–269–16" AND effic < 116.9
How many players had an Att-Cmp-Int of 143–269–16, and an efficiency of less than 116.9?
CREATE TABLE table_name_88 (avg_g VARCHAR, att_cmp_int VARCHAR, effic VARCHAR)
SELECT model FROM table_name_51 WHERE chipset = "intel q43"
What model number had a chipset of intel q43?
CREATE TABLE table_name_51 (model VARCHAR, chipset VARCHAR)