answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT title FROM table_21146729_6 WHERE season__number = 8
What was the title in season #8?
CREATE TABLE table_21146729_6 (title VARCHAR, season__number VARCHAR)
SELECT frequency FROM table_27588823_2 WHERE location = "Polangui, Albay"
What is the frequency of the station located in polangui, albay?
CREATE TABLE table_27588823_2 (frequency VARCHAR, location VARCHAR)
SELECT SUM(played) FROM table_name_80 WHERE goal_difference = -8 AND position < 12
How many people played at the club that had a "goal difference" of -8 and a position lower than 12?
CREATE TABLE table_name_80 (played INTEGER, goal_difference VARCHAR, position VARCHAR)
SELECT SUM(total) FROM table_name_37 WHERE gold > 2 AND bronze > 0
What is the total for the team with more than 2 golds and more than 0 bronze?
CREATE TABLE table_name_37 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT attendance FROM table_name_45 WHERE date = "1/11"
How many people attended the match on 1/11?
CREATE TABLE table_name_45 (attendance VARCHAR, date VARCHAR)
SELECT rounds FROM table_name_64 WHERE driver = "ken wharton"
How many rounds did Ken Wharton go?
CREATE TABLE table_name_64 (rounds VARCHAR, driver VARCHAR)
SELECT street_address FROM table_name_20 WHERE name = "oliver building"
What is the street address of Oliver Building?
CREATE TABLE table_name_20 (street_address VARCHAR, name VARCHAR)
SELECT COUNT(*) FROM ship
How many ships are there?
CREATE TABLE ship (Id VARCHAR)
SELECT date FROM table_name_19 WHERE opponent = "@ philadelphia phillies" AND attendance = "20,072"
when has an Opponent of @ philadelphia phillies and an Attendance of 20,072?
CREATE TABLE table_name_19 (date VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT 2 AS nd_leg FROM table_name_98 WHERE team__number2 = "sumykhimprom"
What is the 2nd leg when second team is Sumykhimprom?
CREATE TABLE table_name_98 (team__number2 VARCHAR)
SELECT venue FROM table_name_33 WHERE tournament = "olympic games" AND result = "4th"
Which Venue has a Tournament of olympic games with a Result of 4th?
CREATE TABLE table_name_33 (venue VARCHAR, tournament VARCHAR, result VARCHAR)
SELECT SUM(drawn) FROM table_name_80 WHERE lost > 8 AND points < 7
Which Drawn has a Lost larger than 8, and Points smaller than 7?
CREATE TABLE table_name_80 (drawn INTEGER, lost VARCHAR, points VARCHAR)
SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1
What is the payment method code used by the most orders?
CREATE TABLE INVOICES (payment_method_code VARCHAR)
SELECT score FROM table_name_87 WHERE tournament = "canada f7, toronto"
What was the score for the match at the tournament in canada f7, toronto?
CREATE TABLE table_name_87 (score VARCHAR, tournament VARCHAR)
SELECT COUNT(duration) FROM table_11240028_1 WHERE portrayed_by = "Robert Joy"
What was the duration of Robert Joy's portrayal?
CREATE TABLE table_11240028_1 (duration VARCHAR, portrayed_by VARCHAR)
SELECT royal_house FROM table_name_34 WHERE name = "elah"
Which Royal house is named Elah?
CREATE TABLE table_name_34 (royal_house VARCHAR, name VARCHAR)
SELECT icao FROM table_name_73 WHERE country = "hong kong"
What is the ICAO for Hong Kong?
CREATE TABLE table_name_73 (icao VARCHAR, country VARCHAR)
SELECT MIN(game) FROM table_name_46 WHERE score = "2–3 ot" AND points > 76
Which Game is the lowest one that has a Score of 2–3 ot, and Points larger than 76?
CREATE TABLE table_name_46 (game INTEGER, score VARCHAR, points VARCHAR)
SELECT joined_tschl FROM table_16384648_2 WHERE institution = "University of Pittsburgh"
What year did the university of Pittsburgh school join the hockey league?
CREATE TABLE table_16384648_2 (joined_tschl VARCHAR, institution VARCHAR)
SELECT COUNT(premio) FROM table_27501971_2 WHERE categoría = "Artist of the Year"
How many premio are there when "Artist of the Year" was the categoria?
CREATE TABLE table_27501971_2 (premio VARCHAR, categoría VARCHAR)
SELECT COUNT(population__2011_) FROM table_name_2 WHERE population__2006_ < 7083 AND population_density < 342.8 AND change___percentage_ = 5 AND area__km²_ > 4.5
What was the Population (2011) when the Population (2006) was less than 7083, and the Population density less than 342.8, and the Change (%) of 5, and an Area (km²) larger than 4.5?
CREATE TABLE table_name_2 (population__2011_ VARCHAR, area__km²_ VARCHAR, change___percentage_ VARCHAR, population__2006_ VARCHAR, population_density VARCHAR)
SELECT callsign FROM table_name_22 WHERE location = "tacloban"
What's the callsign in Tacloban?
CREATE TABLE table_name_22 (callsign VARCHAR, location VARCHAR)
SELECT weight FROM table_name_7 WHERE distance = "8f" AND race = "rrc hill stakes (wfa)"
What weight has a distance of 8F, and RRC Hill Stakes (wfa) as the race?
CREATE TABLE table_name_7 (weight VARCHAR, distance VARCHAR, race VARCHAR)
SELECT episode FROM table_2101431_1 WHERE run_time = "24:18"
What episode had a run time of 24:18?
CREATE TABLE table_2101431_1 (episode VARCHAR, run_time VARCHAR)
SELECT team FROM table_name_11 WHERE runner_up = "capital city giants"
What team defeated the Capital City Giants?
CREATE TABLE table_name_11 (team VARCHAR, runner_up VARCHAR)
SELECT MIN(rank) FROM table_19744915_17 WHERE vote_percentage = "2.111%"
If the vote percentage is 2.111%, what was the minimum rank?
CREATE TABLE table_19744915_17 (rank INTEGER, vote_percentage VARCHAR)
SELECT position FROM table_name_6 WHERE player = "zack torquato"
What position does Zack Torquato play?
CREATE TABLE table_name_6 (position VARCHAR, player VARCHAR)
SELECT date FROM table_name_14 WHERE score = "4-3" AND site_stadium = "reese smith field"
On what day was a game played at Reese Smith Field, with a score of 4-3?
CREATE TABLE table_name_14 (date VARCHAR, score VARCHAR, site_stadium VARCHAR)
SELECT MAX(week) FROM table_name_54 WHERE opponent = "kansas city chiefs" AND attendance > 26 OFFSET 469
What is the highest Week when the opponent was kansas city chiefs, with more than 26,469 in attendance?
CREATE TABLE table_name_54 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_10 WHERE loss = "mccaskill (9-11)"
What opponent has a loss of McCaskill (9-11)?
CREATE TABLE table_name_10 (opponent VARCHAR, loss VARCHAR)
SELECT graphics FROM table_name_99 WHERE chipset = "intel 850e" AND model = "precision 340"
What type of graphics are present in the Precision 340 model with the intel 850e chipset?
CREATE TABLE table_name_99 (graphics VARCHAR, chipset VARCHAR, model VARCHAR)
SELECT tree_species FROM table_16577990_1 WHERE total_plant_species = 258
How many tree species are listed when the total plant species is 258?
CREATE TABLE table_16577990_1 (tree_species VARCHAR, total_plant_species VARCHAR)
SELECT club FROM table_name_72 WHERE apps < 22 AND rank < 2
Who was the club having less than 22 apps and ranked less than 2?
CREATE TABLE table_name_72 (club VARCHAR, apps VARCHAR, rank VARCHAR)
SELECT MIN(total_medals) FROM table_1305623_20
What was the smallest total number of medals?
CREATE TABLE table_1305623_20 (total_medals INTEGER)
SELECT week FROM table_23265433_2 WHERE transition = "Steve Toll"
Name the week for steve toll
CREATE TABLE table_23265433_2 (week VARCHAR, transition VARCHAR)
SELECT city FROM table_name_32 WHERE iata = "llw"
Name the city for IATA of llw
CREATE TABLE table_name_32 (city VARCHAR, iata VARCHAR)
SELECT written_by FROM table_20360535_2 WHERE television_order = "S01E06"
who wrote s01e06
CREATE TABLE table_20360535_2 (written_by VARCHAR, television_order VARCHAR)
SELECT year_s__won FROM table_name_68 WHERE finish = "t71"
What years did the player with a t71 finish win?
CREATE TABLE table_name_68 (year_s__won VARCHAR, finish VARCHAR)
SELECT MIN(season__number) FROM table_25800134_11
What is the lowest season #?
CREATE TABLE table_25800134_11 (season__number INTEGER)
SELECT week FROM table_name_57 WHERE record = "5–2"
Which week has a record of 5–2?
CREATE TABLE table_name_57 (week VARCHAR, record VARCHAR)
SELECT COUNT(*) FROM Vehicles
How many vehicle in total?
CREATE TABLE Vehicles (Id VARCHAR)
SELECT SUM(crowd) FROM table_name_49 WHERE venue = "windy hill"
What was the crowd when the VFL played Windy Hill?
CREATE TABLE table_name_49 (crowd INTEGER, venue VARCHAR)
SELECT incumbent FROM table_1341423_43 WHERE district = "Texas 22"
Name the incumbent for texas 22 district
CREATE TABLE table_1341423_43 (incumbent VARCHAR, district VARCHAR)
SELECT T1.name, AVG(T2.rating) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id
For each user, return the name and the average rating of reviews given by them.
CREATE TABLE review (rating INTEGER, u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)
SELECT COUNT(province) FROM table_15081939_4 WHERE evening_gown = "8.49"
How many provinces have evening gown score of 8.49
CREATE TABLE table_15081939_4 (province VARCHAR, evening_gown VARCHAR)
SELECT MAX(laps) FROM table_name_42 WHERE constructor = "tyrrell - yamaha" AND time_retired = "+ 1 lap"
What is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap?
CREATE TABLE table_name_42 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR)
SELECT opponents_in_the_final FROM table_name_68 WHERE score_in_the_final = "1–6, 2–6"
Tell me the opponents for score in the final of 1–6, 2–6
CREATE TABLE table_name_68 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(total) FROM table_name_53 WHERE silver > 3 AND rank = 3 AND bronze > 2
What is the total number of Total values associated with mroe than 3 silvers, more than 2 bronze, and a rank of 3?
CREATE TABLE table_name_53 (total VARCHAR, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT COUNT(DISTINCT bedType) FROM Rooms
How many different types of beds are there?
CREATE TABLE Rooms (bedType VARCHAR)
SELECT location FROM table_name_58 WHERE built = "1869"
What is the Location of the Bridge Built in 1869?
CREATE TABLE table_name_58 (location VARCHAR, built VARCHAR)
SELECT final_score FROM table_23601267_2 WHERE date = "October 28"
What was the score on the October 28 game?
CREATE TABLE table_23601267_2 (final_score VARCHAR, date VARCHAR)
SELECT AVG(silver) FROM table_name_88 WHERE nation = "france" AND rank > 8
What was the average number of silver medals won by France when they are ranked higher than 8?
CREATE TABLE table_name_88 (silver INTEGER, nation VARCHAR, rank VARCHAR)
SELECT high_assists FROM table_23284271_8 WHERE record = "32-19"
Who had the most high assists with a record of 32-19?
CREATE TABLE table_23284271_8 (high_assists VARCHAR, record VARCHAR)
SELECT winner FROM table_name_58 WHERE edition = "23rd"
Who was the winner of the 23rd Edition?
CREATE TABLE table_name_58 (winner VARCHAR, edition VARCHAR)
SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid'
Find the names of schools that have some students playing in goalie and mid positions.
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR)
SELECT school, nickname FROM university ORDER BY founded
List all schools and their nicknames in the order of founded year.
CREATE TABLE university (school VARCHAR, nickname VARCHAR, founded VARCHAR)
SELECT COUNT(draws) FROM table_name_41 WHERE wins = 1 AND against < 1728
What is the total number of draws when there is 1 Win, and less than 1728 against matches?
CREATE TABLE table_name_41 (draws VARCHAR, wins VARCHAR, against VARCHAR)
SELECT away_team FROM table_name_45 WHERE venue = "brunswick street oval"
Who was the away team at the game held at Brunswick Street Oval?
CREATE TABLE table_name_45 (away_team VARCHAR, venue VARCHAR)
SELECT english_title FROM table_name_18 WHERE director = "zhang yimou"
Name the english title for zhang yimou
CREATE TABLE table_name_18 (english_title VARCHAR, director VARCHAR)
SELECT MAX(taper) / ft FROM table_name_27 WHERE large_end < 0.5 AND taper = "#2"
Which Taper/ft that has a Large end smaller than 0.5, and a Taper of #2?
CREATE TABLE table_name_27 (ft VARCHAR, taper INTEGER, large_end VARCHAR)
SELECT MIN(mintage) FROM table_name_49 WHERE year < 2005
What is the lowest mintage in a year earlier than 2005?
CREATE TABLE table_name_49 (mintage INTEGER, year INTEGER)
SELECT player FROM table_name_56 WHERE country = "united states" AND money___$__ > 387 AND score = 75 - 74 - 74 - 70 = 293
What is Player, when Country is "United States", when Money ( $ ) is greater than 387, and when Score is "75-74-74-70=293"?
CREATE TABLE table_name_56 (player VARCHAR, country VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT district FROM table_name_12 WHERE party = "democrat" AND elected > 1998
In which District(s) has a Democrat held office since 1998?
CREATE TABLE table_name_12 (district VARCHAR, party VARCHAR, elected VARCHAR)
SELECT team FROM table_name_14 WHERE sponsor = "w.h. bolin"
What team is sponsored by w.h. bolin?
CREATE TABLE table_name_14 (team VARCHAR, sponsor VARCHAR)
SELECT longi__tude FROM table_name_28 WHERE date_³ = "jun 6"
Which Longi- tude is on jun 6?
CREATE TABLE table_name_28 (longi__tude VARCHAR, date_³ VARCHAR)
SELECT date FROM table_name_34 WHERE week > 6 AND attendance = "bye"
What date after Week 6 was a Bye?
CREATE TABLE table_name_34 (date VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT location FROM table_name_68 WHERE score = "w 82-76"
At what location was the score W 82-76?
CREATE TABLE table_name_68 (location VARCHAR, score VARCHAR)
SELECT name FROM table_name_22 WHERE delivered = "1839/08"
What is the name where the delivered date is 1839/08?
CREATE TABLE table_name_22 (name VARCHAR, delivered VARCHAR)
SELECT final_round FROM table_name_22 WHERE first_round = 20
Which final round had a first round of 20?
CREATE TABLE table_name_22 (final_round VARCHAR, first_round VARCHAR)
SELECT name FROM table_name_60 WHERE goals = 80 AND club_source_[i_] = "71 [ dead link ]"
What is Name, when Goals is "80", and when Club Source [I ] is "71 [ dead link ]"?
CREATE TABLE table_name_60 (name VARCHAR, goals VARCHAR, club_source_ VARCHAR, i_ VARCHAR)
SELECT COUNT(surface) FROM table_1028356_3 WHERE score = "3–6, 7–6(5), 6–3"
How many matched scored 3–6, 7–6(5), 6–3?
CREATE TABLE table_1028356_3 (surface VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_87 WHERE date = "7 aug 2011"
What tournament took place on 7 Aug 2011?
CREATE TABLE table_name_87 (tournament VARCHAR, date VARCHAR)
SELECT crowd FROM table_name_34 WHERE away_team = "richmond"
How big was the crowd of away team Richmond?
CREATE TABLE table_name_34 (crowd VARCHAR, away_team VARCHAR)
SELECT league FROM table_21602734_1 WHERE year = 2008
What league was involved in 2008?
CREATE TABLE table_21602734_1 (league VARCHAR, year VARCHAR)
SELECT MIN(lost) FROM table_name_63 WHERE played < 18
Which loss had a player lower than 18?
CREATE TABLE table_name_63 (lost INTEGER, played INTEGER)
SELECT province FROM table_name_38 WHERE party = "liberal" AND date = "december 31, 2006"
Which province had a liberal party member on December 31, 2006?
CREATE TABLE table_name_38 (province VARCHAR, party VARCHAR, date VARCHAR)
SELECT AVG(year) FROM table_name_28 WHERE day_in_release = "friday" AND day_of_week > 2
What is the average year for releases on Friday and weeks larger than 2 days?
CREATE TABLE table_name_28 (year INTEGER, day_in_release VARCHAR, day_of_week VARCHAR)
SELECT third_district FROM table_15442974_1 WHERE fifth_district = "Christine Young"
Name the third district for christine young
CREATE TABLE table_15442974_1 (third_district VARCHAR, fifth_district VARCHAR)
SELECT record FROM table_name_75 WHERE loss = "r. springer"
What is the record loss of R. Springer?
CREATE TABLE table_name_75 (record VARCHAR, loss VARCHAR)
SELECT last_performance FROM table_name_77 WHERE style = "street dance" AND name = "george maguire"
What is the date of the last performance when the style is street dance and the name is George Maguire?
CREATE TABLE table_name_77 (last_performance VARCHAR, style VARCHAR, name VARCHAR)
SELECT constructor FROM table_name_98 WHERE grid = 19
What is the name of the Constructor with a 19 Grid?
CREATE TABLE table_name_98 (constructor VARCHAR, grid VARCHAR)
SELECT score FROM table_name_77 WHERE money___$__ = 400
Which score has a prize of $400?
CREATE TABLE table_name_77 (score VARCHAR, money___$__ VARCHAR)
SELECT 2008 FROM table_name_45 WHERE 2007 = "career statistics"
WHAT IS THE 2008 PERFORMANCE WITH A 2007 CAREER STATISTICS?
CREATE TABLE table_name_45 (Id VARCHAR)
SELECT first FROM table_name_76 WHERE surname = "cook"
Which first's surname is Cook?
CREATE TABLE table_name_76 (first VARCHAR, surname VARCHAR)
SELECT MAX(lane) FROM table_name_42 WHERE rank < 6 AND nationality = "poland"
What is the highest lane for the poland swimmer who ranked under 6?
CREATE TABLE table_name_42 (lane INTEGER, rank VARCHAR, nationality VARCHAR)
SELECT country FROM table_name_9 WHERE lane = 5 AND name = "abubaker kaki khamis"
What country had the runner abubaker kaki khamis in lane 5?
CREATE TABLE table_name_9 (country VARCHAR, lane VARCHAR, name VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_14 WHERE player = "mitch fadden"
What College/junior/club team (league) did mitch fadden play for?
CREATE TABLE table_name_14 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT nir_number FROM table_name_87 WHERE type = "tso (ex-br class 488 unit 488305)" AND br_number_s_ = "6082 / 72605"
Which NIR number is for the tso (ex-br class 488 unit 488305) type that has a 6082 / 72605 BR number?
CREATE TABLE table_name_87 (nir_number VARCHAR, type VARCHAR, br_number_s_ VARCHAR)
SELECT SUM(tied) FROM table_name_41 WHERE independent = "old dominion" AND years > 4
What is the total number of tied games when Old Dominion is the independent and the years is more than 4?
CREATE TABLE table_name_41 (tied INTEGER, independent VARCHAR, years VARCHAR)
SELECT COUNT(party) FROM table_1342013_31 WHERE result = "Resigned when appointed judge Democratic hold"
What number of party had a candidate resigned when appointed judge democratic hold?
CREATE TABLE table_1342013_31 (party VARCHAR, result VARCHAR)
SELECT border FROM table_name_86 WHERE background_colour = "yellow" AND shape = "triangular"
Which sign had a yellow background and a triangular shape?
CREATE TABLE table_name_86 (border VARCHAR, background_colour VARCHAR, shape VARCHAR)
SELECT location FROM table_16275828_4 WHERE track_name = "Farmer City Speedway"
What location is farmer city speedway?
CREATE TABLE table_16275828_4 (location VARCHAR, track_name VARCHAR)
SELECT position FROM table_10966926_2 WHERE player_name = "Colt Brennan"
Which position does Colt Brennan play?
CREATE TABLE table_10966926_2 (position VARCHAR, player_name VARCHAR)
SELECT finish FROM table_name_89 WHERE year = 1992
What was the finish for 1992?
CREATE TABLE table_name_89 (finish VARCHAR, year VARCHAR)
SELECT date FROM table_name_67 WHERE course = "la granja de san ildefonso to alto de navacerrada"
What is the date for the La Granja de San Ildefonso to Alto de Navacerrada course?
CREATE TABLE table_name_67 (date VARCHAR, course VARCHAR)
SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id JOIN products AS t3 ON t2.product_id = t3.product_id ORDER BY t3.product_price LIMIT 1
Find the last name of the staff member who processed the complaint of the cheapest product.
CREATE TABLE products (product_id VARCHAR, product_price VARCHAR); CREATE TABLE complaints (staff_id VARCHAR, product_id VARCHAR); CREATE TABLE staff (last_name VARCHAR, staff_id VARCHAR)
SELECT tournament FROM table_name_30 WHERE margin_of_victory = "6 strokes"
What is Tournament, when Margin is Victory of 6 Strokes?
CREATE TABLE table_name_30 (tournament VARCHAR, margin_of_victory VARCHAR)
SELECT MIN(draw) FROM table_name_94 WHERE rank = 4
What is the lowest draw with rank 4?
CREATE TABLE table_name_94 (draw INTEGER, rank VARCHAR)
SELECT no_in_season FROM table_2156758_4 WHERE written_by = "Chris Mitchell and Erik Wiese"
What is the number in season for the episode written by Chris Mitchell and Erik Wiese?
CREATE TABLE table_2156758_4 (no_in_season VARCHAR, written_by VARCHAR)
SELECT home_team AS score FROM table_name_70 WHERE away_team = "hawthorn"
What is the Home team score when away team is hawthorn?
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)