answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT SUM(total_passengers) FROM table_name_88 WHERE capacity_in_use = "81.2%"
what is the number of passengers when the capacity is 81.2%?
CREATE TABLE table_name_88 (total_passengers INTEGER, capacity_in_use VARCHAR)
SELECT _number FROM table_20745754_1 WHERE attendance = 2813
What game number had an attendance of 2813?
CREATE TABLE table_20745754_1 (_number VARCHAR, attendance VARCHAR)
SELECT school FROM table_name_72 WHERE player = "delray brooks"
What school did delray brooks go to?
CREATE TABLE table_name_72 (school VARCHAR, player VARCHAR)
SELECT city FROM table_name_41 WHERE erp__analog__digital_ = "600kw 500kw"
Which City has 600kw 500kw ERP (Analog/ Digital)?
CREATE TABLE table_name_41 (city VARCHAR, erp__analog__digital_ VARCHAR)
SELECT AVG(lane) FROM table_name_93 WHERE nationality = "spain" AND heat < 4
What's Spain's lane with a heat less than 4?
CREATE TABLE table_name_93 (lane INTEGER, nationality VARCHAR, heat VARCHAR)
SELECT years_in_orlando FROM table_name_54 WHERE player = "bo outlaw"
Which Years in Orlando has a Player of bo outlaw?
CREATE TABLE table_name_54 (years_in_orlando VARCHAR, player VARCHAR)
SELECT vehicle_details FROM Vehicles WHERE vehicle_id = 1
Show the detail of vehicle with id 1.
CREATE TABLE Vehicles (vehicle_details VARCHAR, vehicle_id VARCHAR)
SELECT 2011 FROM table_name_31 WHERE 2008 = "134"
What is the 2011 value with a 134 in 2008?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT championship FROM table_name_8 WHERE runner_s__up = "louise suggs" AND margin = "3 strokes"
Which Championship was louise suggs the runner-up by 3 strokes?
CREATE TABLE table_name_8 (championship VARCHAR, runner_s__up VARCHAR, margin VARCHAR)
SELECT drawn FROM table_name_80 WHERE club = "hirwaun rfc"
what is drawn when the club is hirwaun rfc?
CREATE TABLE table_name_80 (drawn VARCHAR, club VARCHAR)
SELECT year FROM table_2011349_2 WHERE third_place = "Austin Austin TX"
When did Austin Austin TX get the third place?
CREATE TABLE table_2011349_2 (year VARCHAR, third_place VARCHAR)
SELECT AVG(position) FROM table_name_60 WHERE lost > 4 AND played > 14
Which Position has a Lost larger than 4, and a Played larger than 14?
CREATE TABLE table_name_60 (position INTEGER, lost VARCHAR, played VARCHAR)
SELECT entrant FROM table_name_12 WHERE year < 1987 AND engine = "bmw straight-4 (t/c)" AND pts > 2
Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts?
CREATE TABLE table_name_12 (entrant VARCHAR, pts VARCHAR, year VARCHAR, engine VARCHAR)
SELECT opponent FROM table_name_43 WHERE week > 16
Who was the opponent after week 16?
CREATE TABLE table_name_43 (opponent VARCHAR, week INTEGER)
SELECT SUM(overall) FROM table_name_39 WHERE name = "markus koch"
Which Overall has a Name of markus koch?
CREATE TABLE table_name_39 (overall INTEGER, name VARCHAR)
SELECT area__km²_ FROM table_2168295_1 WHERE district = "Chittorgarh"
If the district is Chittorgarh, what is the area?
CREATE TABLE table_2168295_1 (area__km²_ VARCHAR, district VARCHAR)
SELECT player FROM table_name_52 WHERE round > 5 AND school_club_team = "bethune-cookman"
Which Player has a Round larger than 5, and a School/Club Team of bethune-cookman?
CREATE TABLE table_name_52 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)
SELECT supervisor FROM table_name_43 WHERE years = "1846"
Who was the supervisor in the year 1846?
CREATE TABLE table_name_43 (supervisor VARCHAR, years VARCHAR)
SELECT MIN(goals_conceded) FROM table_name_72 WHERE played < 18
If the games played are smaller than 18, what are the lowest goals conceded?
CREATE TABLE table_name_72 (goals_conceded INTEGER, played INTEGER)
SELECT state FROM table_name_67 WHERE host = "university of california, los angeles"
What state has the University of California, Los Angeles?
CREATE TABLE table_name_67 (state VARCHAR, host VARCHAR)
SELECT COUNT(year) FROM table_2267857_1 WHERE driver = "Dick Hutcherson"
Name the number of year for dick hutcherson
CREATE TABLE table_2267857_1 (year VARCHAR, driver VARCHAR)
SELECT opponent FROM table_name_93 WHERE march > 21 AND game = 75
who is the opponent after march 21 and the game is 75?
CREATE TABLE table_name_93 (opponent VARCHAR, march VARCHAR, game VARCHAR)
SELECT MIN(age) FROM table_1859855_2 WHERE hometown = "Austin, Texas"
When austin, texas is the hometown what is the lowest age?
CREATE TABLE table_1859855_2 (age INTEGER, hometown VARCHAR)
SELECT MAX(attendance) FROM table_name_74 WHERE arena = "arrowhead pond of anaheim" AND loss = "giguere (3–3)"
Which Attendance has an Arena of arrowhead pond of anaheim, and a Loss of giguere (3–3)?
CREATE TABLE table_name_74 (attendance INTEGER, arena VARCHAR, loss VARCHAR)
SELECT position FROM table_15463188_1 WHERE name = "judy-ann ramirez"
Name the position for judy-ann ramirez
CREATE TABLE table_15463188_1 (position VARCHAR, name VARCHAR)
SELECT date FROM table_27902171_7 WHERE location_attendance = "Delta Center 19,911"
What dated was the game played at the location delta center 19,911?
CREATE TABLE table_27902171_7 (date VARCHAR, location_attendance VARCHAR)
SELECT character_name FROM table_name_97 WHERE leading_lady = "phyllis welch"
What is the character name that has phyllis welch as the leading lady?
CREATE TABLE table_name_97 (character_name VARCHAR, leading_lady VARCHAR)
SELECT COUNT(barony) FROM table_30121075_1 WHERE townland = "Derrigra"
How many entries are in barony when the townland is derrigra?
CREATE TABLE table_30121075_1 (barony VARCHAR, townland VARCHAR)
SELECT venue FROM table_name_72 WHERE date = "2003-08-13"
What is Venue, when Date is "2003-08-13"?
CREATE TABLE table_name_72 (venue VARCHAR, date VARCHAR)
SELECT COUNT(inns) FROM table_name_56 WHERE matches = 127
Matches of 127 has how many total number of inns?
CREATE TABLE table_name_56 (inns VARCHAR, matches VARCHAR)
SELECT cover_model FROM table_1566848_7 WHERE date = "7-86"
Who was the cover model in the 7-86 issue?
CREATE TABLE table_1566848_7 (cover_model VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_15 WHERE away_team = "south melbourne"
Name the home team score when the away team is south melbourne
CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR)
SELECT date FROM table_1507431_1 WHERE tournament = "Buick Classic"
The tournament Buick Classic occured on what dates?
CREATE TABLE table_1507431_1 (date VARCHAR, tournament VARCHAR)
SELECT disposable_usd_growth FROM table_24486462_1 WHERE rank = 26
If the rank is 26, what is the disposable USD growth?
CREATE TABLE table_24486462_1 (disposable_usd_growth VARCHAR, rank VARCHAR)
SELECT bbc_two_total_viewing FROM table_name_57 WHERE year = "1999"
How much is the total BBC 2 viewing in 1999?
CREATE TABLE table_name_57 (bbc_two_total_viewing VARCHAR, year VARCHAR)
SELECT area__1930__in_1, 000 AS skm_2 FROM table_name_72 WHERE capital = "brześć nad bugiem"
Capital of brześć nad bugiem has what area (1930) in 1000skm?
CREATE TABLE table_name_72 (area__1930__in_1 VARCHAR, capital VARCHAR)
SELECT club_province FROM table_name_51 WHERE player = "steve borthwick"
Name the club/province for steve borthwick
CREATE TABLE table_name_51 (club_province VARCHAR, player VARCHAR)
SELECT bronze FROM table_name_80 WHERE rank = "1"
How many bronze medals does the nation ranked number 1 have?
CREATE TABLE table_name_80 (bronze VARCHAR, rank VARCHAR)
SELECT COUNT(incumbent) FROM table_1342233_5 WHERE district = "Arkansas 3"
How many incumbents had a district of Arkansas 3?
CREATE TABLE table_1342233_5 (incumbent VARCHAR, district VARCHAR)
SELECT denomination FROM table_11900773_4 WHERE theme = "Opera, Léopold Simoneau and Pierrette Alarie"
What denominations are the stamps with themes opera, léopold simoneau and pierrette alarie?
CREATE TABLE table_11900773_4 (denomination VARCHAR, theme VARCHAR)
SELECT -time AS rank FROM table_name_55 WHERE rank < 9 AND debut_year = 1994
What is the all-time rank associated with a rank less than 9 and a debut in 1994?
CREATE TABLE table_name_55 (time VARCHAR, rank VARCHAR, debut_year VARCHAR)
SELECT team FROM table_name_21 WHERE bowl = "humanitarian"
What team has a bowl of humanitarian?
CREATE TABLE table_name_21 (team VARCHAR, bowl VARCHAR)
SELECT material_or_non_material FROM table_name_63 WHERE suits = "2" AND opponents = "either"
Is it material or non-material when there are 2 suits for either opponent?
CREATE TABLE table_name_63 (material_or_non_material VARCHAR, suits VARCHAR, opponents VARCHAR)
SELECT record FROM table_name_31 WHERE date = "june 7"
On the date of june 7 what was the score?
CREATE TABLE table_name_31 (record VARCHAR, date VARCHAR)
SELECT theatre, _studio, _or_network FROM table_name_8 WHERE role = "peter p. peters"
What was the theatre where Peter P. Peters is the role?
CREATE TABLE table_name_8 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, role VARCHAR)
SELECT opponent FROM table_name_75 WHERE player = "andrew symonds" AND season = "2004"
Who is the opponent for Andrew Symonds in the 2004 season?
CREATE TABLE table_name_75 (opponent VARCHAR, player VARCHAR, season VARCHAR)
SELECT mixed_veteran FROM table_28211674_3 WHERE womens_singles = "Naomi Owen" AND mens_singles = "Ricardo Walther"
When Naomi Owen won the Womens Singles and Ricardo Walther won the Mens Singles, who won the mixed veteran?
CREATE TABLE table_28211674_3 (mixed_veteran VARCHAR, womens_singles VARCHAR, mens_singles VARCHAR)
SELECT SUM(position) FROM table_name_57 WHERE points = 15 AND drawn < 3
How many positions have 15 for the points, with a drawn less than 3?
CREATE TABLE table_name_57 (position INTEGER, points VARCHAR, drawn VARCHAR)
SELECT COUNT(market_share__target_group_14_49_) FROM table_2639433_4 WHERE viewers__in_millions_target_group_14_49_ = "0.63"
How many times was the viewer target group 0.63?
CREATE TABLE table_2639433_4 (market_share__target_group_14_49_ VARCHAR, viewers__in_millions_target_group_14_49_ VARCHAR)
SELECT home_team AS score FROM table_name_65 WHERE home_team = "carlton"
What was Carlton's score as the home team?
CREATE TABLE table_name_65 (home_team VARCHAR)
SELECT race_leader FROM table_name_90 WHERE course = "cuneo to turin"
Who's the race leader of Cuneo to Turin?
CREATE TABLE table_name_90 (race_leader VARCHAR, course VARCHAR)
SELECT DISTINCT state, created FROM votes
What are the distinct states and create time of all votes?
CREATE TABLE votes (state VARCHAR, created VARCHAR)
SELECT date_of_birth FROM table_name_39 WHERE club = "bvsc vízilabda"
What is the birth date of a member of the Club of bvsc vízilabda?
CREATE TABLE table_name_39 (date_of_birth VARCHAR, club VARCHAR)
SELECT duration FROM table_name_84 WHERE defeated_by = "retired"
Which duration was defeated by retired?
CREATE TABLE table_name_84 (duration VARCHAR, defeated_by VARCHAR)
SELECT ordered FROM table_name_73 WHERE name = "algerine (2nd of name)"
What ordered has algerine (2nd of name) as the name?
CREATE TABLE table_name_73 (ordered VARCHAR, name VARCHAR)
SELECT semester_name FROM Semesters WHERE NOT semester_id IN (SELECT semester_id FROM Student_Enrolment)
Which semesters do not have any student enrolled? List the semester name.
CREATE TABLE Student_Enrolment (semester_name VARCHAR, semester_id VARCHAR); CREATE TABLE Semesters (semester_name VARCHAR, semester_id VARCHAR)
SELECT COUNT(successor) FROM table_224839_3 WHERE vacator = "William North ( F )"
What is the total number of successors when the vacator was William North ( F )
CREATE TABLE table_224839_3 (successor VARCHAR, vacator VARCHAR)
SELECT COUNT(location) FROM table_262560_2 WHERE nickname = "Panthers"
How many locations have a school that is nicknamed the Panthers?
CREATE TABLE table_262560_2 (location VARCHAR, nickname VARCHAR)
SELECT home_team FROM table_name_64 WHERE tie_no = "27"
What home team has 27 as the tie no.?
CREATE TABLE table_name_64 (home_team VARCHAR, tie_no VARCHAR)
SELECT settlement FROM table_2562572_46 WHERE cyrillic_name_other_names = "Војводинци (Romanian: Voivodinţ)"
Which settlement has a cyrillic and other name of војводинци (romanian: voivodinţ)?
CREATE TABLE table_2562572_46 (settlement VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT high_rebounds FROM table_23281862_9 WHERE game = 64
Who is the high rebounds for game 64?
CREATE TABLE table_23281862_9 (high_rebounds VARCHAR, game VARCHAR)
SELECT team__number1 FROM table_name_17 WHERE res = "0-3"
What was the team #1 for the match that had a result of 0-3?
CREATE TABLE table_name_17 (team__number1 VARCHAR, res VARCHAR)
SELECT dpi FROM table_16409745_1 WHERE max_page_size = "216mm x 355mm"
What is the dpi for the scanner with a max page size of 216mm x 355mm?
CREATE TABLE table_16409745_1 (dpi VARCHAR, max_page_size VARCHAR)
SELECT player FROM table_name_17 WHERE round = 3 AND nationality = "russia"
Who is the player from Round 3 from Russia?
CREATE TABLE table_name_17 (player VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT Payment_Method_Code, Date_Payment_Made, Amount_Payment FROM Payments ORDER BY Date_Payment_Made
List the method, date and amount of all the payments, in ascending order of date.
CREATE TABLE Payments (Payment_Method_Code VARCHAR, Date_Payment_Made VARCHAR, Amount_Payment VARCHAR)
SELECT MAX(points) FROM table_name_19 WHERE position < 3 AND lost < 1
What is the highest number of points for a position less than 3 and less than 1 loss?
CREATE TABLE table_name_19 (points INTEGER, position VARCHAR, lost VARCHAR)
SELECT score FROM table_name_70 WHERE date = "october 29, 2008"
Which score has a Date of october 29, 2008?
CREATE TABLE table_name_70 (score VARCHAR, date VARCHAR)
SELECT declination___j2000__ FROM table_name_53 WHERE constellation = "scorpius" AND object_type = "planetary nebula"
For the constellation scorpius and object of planetary nebula, what was the declination (J2000)?
CREATE TABLE table_name_53 (declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)
SELECT AVG(points) FROM table_name_97 WHERE goals_conceded = 14 AND goals_scored < 32
what is the average points when goals conceded is 14 and goals scored is less than 32?
CREATE TABLE table_name_97 (points INTEGER, goals_conceded VARCHAR, goals_scored VARCHAR)
SELECT candidates FROM table_1341423_49 WHERE first_elected = 1998 AND incumbent = "Paul Ryan"
Who were the candidates in the district first elected in 1998 whose incumbent ended up being Paul Ryan?
CREATE TABLE table_1341423_49 (candidates VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT event FROM table_name_9 WHERE round = 1 AND record = "6-2"
What event had 1 round and a record of 6-2?
CREATE TABLE table_name_9 (event VARCHAR, round VARCHAR, record VARCHAR)
SELECT attendance FROM table_name_85 WHERE opponent = "denver broncos"
What was the attendance at the game where the opponent was the denver broncos?
CREATE TABLE table_name_85 (attendance VARCHAR, opponent VARCHAR)
SELECT model FROM table_name_15 WHERE total_produced > 5 AND prime_mover = "12-251c"
What model has a total produced more than 5 and a prime move of 12-251c?
CREATE TABLE table_name_15 (model VARCHAR, total_produced VARCHAR, prime_mover VARCHAR)
SELECT no FROM table_18442691_2 WHERE released = "Cannot handle non-empty timestamp argument! 2007"
When cannot handle non-empty timestamp argument! 2007 is released what is the no.?
CREATE TABLE table_18442691_2 (no VARCHAR, released VARCHAR)
SELECT party FROM table_1341897_6 WHERE district = "Arkansas 2"
What party did the incumbent in the Arkansas 2 district belong to?
CREATE TABLE table_1341897_6 (party VARCHAR, district VARCHAR)
SELECT AVG(gold) FROM table_name_25 WHERE nation = "moldova" AND bronze < 1
Tell me the average gold for moldova and bronze less than 1
CREATE TABLE table_name_25 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT no_8 FROM table_name_32 WHERE no_4 = "noah"
What is the No. 8 of the person with a No. 4 of Noah?
CREATE TABLE table_name_32 (no_8 VARCHAR, no_4 VARCHAR)
SELECT COUNT(silver) FROM table_name_97 WHERE gold = 2
How many silver metals are possessed by countries with 2 gold medals?
CREATE TABLE table_name_97 (silver VARCHAR, gold VARCHAR)
SELECT AVG(fatalities) FROM table_name_67 WHERE airline = "spantax" AND registration = "ec-arz"
How many fatalities are there for the airline of spantax, with a registration of ec-arz?
CREATE TABLE table_name_67 (fatalities INTEGER, airline VARCHAR, registration VARCHAR)
SELECT AVG(year) FROM table_name_64 WHERE tournament = "international meeting & national championships"
What average year has international meeting & national championships as the tournament?
CREATE TABLE table_name_64 (year INTEGER, tournament VARCHAR)
SELECT opponent FROM table_21007907_1 WHERE record = "7-1-0"
Name the opponent for 7-1-0
CREATE TABLE table_21007907_1 (opponent VARCHAR, record VARCHAR)
SELECT series FROM table_21297652_1 WHERE position = 7
What series is at the position 7?
CREATE TABLE table_21297652_1 (series VARCHAR, position VARCHAR)
SELECT date FROM table_name_15 WHERE centerfold_model = "shannon long"
When was Shannon Long the Centerfold model?
CREATE TABLE table_name_15 (date VARCHAR, centerfold_model VARCHAR)
SELECT candidates FROM table_2668169_2 WHERE district = "Pennsylvania 11"
Who are the candidates for the Pennsylvania 11 district?
CREATE TABLE table_2668169_2 (candidates VARCHAR, district VARCHAR)
SELECT release_date FROM table_name_84 WHERE format = "cd" AND title = "tsar wars"
What is Release Date, when Format is CD, and when Title is Tsar Wars?
CREATE TABLE table_name_84 (release_date VARCHAR, format VARCHAR, title VARCHAR)
SELECT years FROM table_name_70 WHERE representative = "frank a. oliver"
What years did Representative Frank A. Oliver serve?
CREATE TABLE table_name_70 (years VARCHAR, representative 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 SUM(established) FROM table_name_40 WHERE championships < 1 AND league = "niagara rugby union"
With less than 1 Championship, what es the Established date of the Niagara Rugby Union League?
CREATE TABLE table_name_40 (established INTEGER, championships VARCHAR, league VARCHAR)
SELECT team_s_ FROM table_1708014_2 WHERE winnings = "$81,690"
what is the team where winnings is $81,690?
CREATE TABLE table_1708014_2 (team_s_ VARCHAR, winnings VARCHAR)
SELECT opponent FROM table_name_22 WHERE date = "july 8"
Who did the Red Sox play against on July 8?
CREATE TABLE table_name_22 (opponent VARCHAR, date VARCHAR)
SELECT result FROM table_2668352_14 WHERE first_elected = "1810"
Name the result for 1810
CREATE TABLE table_2668352_14 (result VARCHAR, first_elected VARCHAR)
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY COUNT(*) LIMIT 1
Which products has been complained by the customer who has filed least amount of complaints?
CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE complaints (product_id VARCHAR)
SELECT manager_1 FROM table_name_95 WHERE team = "leeds united"
Who is the manager 1 for Leeds United?
CREATE TABLE table_name_95 (manager_1 VARCHAR, team VARCHAR)
SELECT original_air_date FROM table_12722302_2 WHERE us_viewers__million_ = "3.90"
What was the original air date for the episode with 3.90 u.s. viewers (millions)?
CREATE TABLE table_12722302_2 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT SUM(top_25) FROM table_name_93 WHERE tournament = "u.s. open" AND events < 7
What is the top-25 of the U.S. open, which has less than 7 events?
CREATE TABLE table_name_93 (top_25 INTEGER, tournament VARCHAR, events VARCHAR)
SELECT away_team FROM table_name_93 WHERE home_team = "arsenal"
What is the Away team when Arsenal is the Home team?
CREATE TABLE table_name_93 (away_team VARCHAR, home_team VARCHAR)
SELECT segment_1 FROM table_24172078_2 WHERE episode__number = "2/225"
Name the segment 1 for episode # 2/225
CREATE TABLE table_24172078_2 (segment_1 VARCHAR, episode__number VARCHAR)
SELECT AVG(rank) FROM table_name_81 WHERE name = "karen frohner" AND points < 1266
What was the rank for karen frohner with under 1266 points?
CREATE TABLE table_name_81 (rank INTEGER, name VARCHAR, points VARCHAR)
SELECT season AS Finale FROM table_1348989_2 WHERE viewers__in_millions_ = "10.29"
What year did the season finale have a total of 10.29 million viewers?
CREATE TABLE table_1348989_2 (season VARCHAR, viewers__in_millions_ VARCHAR)
SELECT AVG(round) FROM table_name_90 WHERE position = "rb"
What's the average round the position of RB was drafted?
CREATE TABLE table_name_90 (round INTEGER, position VARCHAR)