answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT home_team AS score FROM table_name_7 WHERE venue = "victoria park"
What is the home team score when they played at Victoria Park?
CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR)
SELECT MIN(bills_first_downs) FROM table_16028459_2 WHERE opponents = 6
How many first downs did the bills have when their opponent had 6
CREATE TABLE table_16028459_2 (bills_first_downs INTEGER, opponents VARCHAR)
SELECT tie_no FROM table_name_26 WHERE score = "2–2"
What is the Tie No with a Score of 2–2?
CREATE TABLE table_name_26 (tie_no VARCHAR, score VARCHAR)
SELECT winning_score FROM table_name_5 WHERE runner_s__up = "greg norman"
What was the winning score for runnerup Greg Norman
CREATE TABLE table_name_5 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT current_club FROM table_name_36 WHERE year_born > 1983 AND height < 2.12 AND position = "forward"
What is the current club of the Forward who was born after 1983 and who has a height under 2.12?
CREATE TABLE table_name_36 (current_club VARCHAR, position VARCHAR, year_born VARCHAR, height VARCHAR)
SELECT position_in_table FROM table_26593762_3 WHERE outgoing_manager = "Brian Laws"
What was the table position for the team whose outgoing manager was Brian Laws?
CREATE TABLE table_26593762_3 (position_in_table VARCHAR, outgoing_manager VARCHAR)
SELECT name FROM table_name_77 WHERE cerclis_id = "prd980512362"
What is the name of the site with a CERCLIS ID of prd980512362?
CREATE TABLE table_name_77 (name VARCHAR, cerclis_id VARCHAR)
SELECT MIN(attendance) FROM table_name_13 WHERE score = "5-7"
When the Brewers score was 5-7, what was the lowest attendance?
CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR)
SELECT party FROM table_1341738_36 WHERE first_elected = 1954
What was the party of the first elected candidate in 1954?
CREATE TABLE table_1341738_36 (party VARCHAR, first_elected VARCHAR)
SELECT date FROM table_name_66 WHERE location_attendance = "verizon center 7,587"
Which Date has a Location/Attendance of verizon center 7,587?
CREATE TABLE table_name_66 (date VARCHAR, location_attendance VARCHAR)
SELECT fleet_number_s_ FROM table_name_98 WHERE wheel_arrangement = "2-6-0" AND class = "z"
What is Fleet Number(s), when Wheel Arrangement is "2-6-0", and when Class is "Z"?
CREATE TABLE table_name_98 (fleet_number_s_ VARCHAR, wheel_arrangement VARCHAR, class VARCHAR)
SELECT COUNT(*) FROM company
How many gas companies are there?
CREATE TABLE company (Id VARCHAR)
SELECT COUNT(points_for) FROM table_25229283_4 WHERE percentage___percentage_ = "94.29"
How many data are on points for if the percentage is 94.29?
CREATE TABLE table_25229283_4 (points_for VARCHAR, percentage___percentage_ VARCHAR)
SELECT home_team FROM table_name_65 WHERE date = "wednesday, 25 february 1998"
Which Home team is on Wednesday, 25 february 1998?
CREATE TABLE table_name_65 (home_team VARCHAR, date VARCHAR)
SELECT score_[c_] FROM table_name_76 WHERE winner = "alianza lima" AND season = 1965
What is the score of the event that Alianza Lima won in 1965?
CREATE TABLE table_name_76 (score_ VARCHAR, c_ VARCHAR, winner VARCHAR, season VARCHAR)
SELECT where_built FROM table_name_79 WHERE year_built < 1858
Where was something built earlier than 1858?
CREATE TABLE table_name_79 (where_built VARCHAR, year_built INTEGER)
SELECT single FROM table_name_17 WHERE artist = "cap d"
What single was written by the artist cap D?
CREATE TABLE table_name_17 (single VARCHAR, artist VARCHAR)
SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = "stanley.monahan@example.org"
Find id of the candidate whose email is stanley.monahan@example.org?
CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (person_id VARCHAR, email_address VARCHAR)
SELECT MIN(points) FROM table_name_62 WHERE draw = 6 AND rank > 10
What is the lowest points with 6 draws and lower than rank 10?
CREATE TABLE table_name_62 (points INTEGER, draw VARCHAR, rank VARCHAR)
SELECT club FROM table_name_18 WHERE losing_bonus = "1"
Which Club has 1 Losing bonus?
CREATE TABLE table_name_18 (club VARCHAR, losing_bonus VARCHAR)
SELECT MIN(points) FROM table_name_15 WHERE year = 1981
What is the smallest number of points for a 1981 team?
CREATE TABLE table_name_15 (points INTEGER, year VARCHAR)
SELECT model FROM table_26040604_1 WHERE launch = "September 3, 2010"
What model has a launch of September 3, 2010?
CREATE TABLE table_26040604_1 (model VARCHAR, launch VARCHAR)
SELECT term_of_office FROM table_name_1 WHERE member = "noel beaton"
What was the term of office for noel beaton?
CREATE TABLE table_name_1 (term_of_office VARCHAR, member VARCHAR)
SELECT high_rebounds FROM table_11961582_10 WHERE high_assists = "J. Johnson (7)"
Who had the high rebounds when the high assists were from J. Johnson (7)?
CREATE TABLE table_11961582_10 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT AVG(year) FROM table_name_11 WHERE finish = "lost 2001 alcs" AND percentage > 0.716
What is the average Year for the Finish of lost 2001 alcs and the Percentage is over 0.716?
CREATE TABLE table_name_11 (year INTEGER, finish VARCHAR, percentage VARCHAR)
SELECT SUM(events) FROM table_name_25 WHERE country = "south africa"
How many events are in South Africa?
CREATE TABLE table_name_25 (events INTEGER, country VARCHAR)
SELECT kilometers FROM table_name_87 WHERE station_code = "kuda"
What's the Kilometers listed that also has the Station Code of Kuda?
CREATE TABLE table_name_87 (kilometers VARCHAR, station_code VARCHAR)
SELECT home_leg FROM table_2214582_3 WHERE opponents = "FC Schalke 04"
What was the home leg score against fc schalke 04?
CREATE TABLE table_2214582_3 (home_leg VARCHAR, opponents VARCHAR)
SELECT MAX(attendance) FROM table_name_75 WHERE date = "october 11"
Name the most attendance for october 11
CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR)
SELECT date FROM table_name_18 WHERE loss = "bush (1–5)"
What was the date of the game with a loss of Bush (1–5)?
CREATE TABLE table_name_18 (date VARCHAR, loss VARCHAR)
SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1
Show the names of customers who have the most mailshots.
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR)
SELECT AVG(age), MAX(age), sex FROM student GROUP BY sex
Find the average and oldest age for students with different sex.
CREATE TABLE student (sex VARCHAR, age INTEGER)
SELECT 2007 AS _08 FROM table_name_74 WHERE event = "colonial square"
What is the 2007-08 result when the event was Colonial Square?
CREATE TABLE table_name_74 (event VARCHAR)
SELECT laps FROM table_name_17 WHERE grid > 11 AND bike = "honda cbr1000rr" AND time = "+42.633"
How many laps did the rider with a grid larger than 11, a Honda cbr1000rr bike, and a time of +42.633?
CREATE TABLE table_name_17 (laps VARCHAR, time VARCHAR, grid VARCHAR, bike VARCHAR)
SELECT town FROM table_name_82 WHERE stops = "15" AND kind = "nb"
What town has 15 stops and a NB kind?
CREATE TABLE table_name_82 (town VARCHAR, stops VARCHAR, kind VARCHAR)
SELECT year FROM table_29753553_1 WHERE sar_no = 874
For what year is the SAR no. 874?
CREATE TABLE table_29753553_1 (year VARCHAR, sar_no VARCHAR)
SELECT COUNT(to_par) FROM table_name_17 WHERE total = 157
How many strokes off par was the player who scored 157?
CREATE TABLE table_name_17 (to_par VARCHAR, total VARCHAR)
SELECT open_date, COUNT(*) FROM church GROUP BY open_date
Show all opening years and the number of churches that opened in that year.
CREATE TABLE church (open_date VARCHAR)
SELECT champion FROM table_29295463_9 WHERE runner_up = "Scott Davis Chris Dunk"
Who was the champion in the tournament where Scott Davis Chris Dunk was the runner up?
CREATE TABLE table_29295463_9 (champion VARCHAR, runner_up VARCHAR)
SELECT COUNT(grid) FROM table_name_24 WHERE time_retired = "+27.347"
Which grid has a time/retired of +27.347?
CREATE TABLE table_name_24 (grid VARCHAR, time_retired VARCHAR)
SELECT total FROM table_name_80 WHERE set_3 = "25–14"
What was the total when the set 3 was 25–14?
CREATE TABLE table_name_80 (total VARCHAR, set_3 VARCHAR)
SELECT date FROM table_26842217_6 WHERE visiting_team = "South Florida"
List all dates where South Florida was a visiting team.
CREATE TABLE table_26842217_6 (date VARCHAR, visiting_team VARCHAR)
SELECT COUNT(trainer) FROM table_13498403_1 WHERE jockey = "N Rawiller"
how many people work with N Rawiller
CREATE TABLE table_13498403_1 (trainer VARCHAR, jockey VARCHAR)
SELECT 1992 FROM table_name_50 WHERE 1995 = "atp masters series"
What 1992 has atp masters series for the 1995?
CREATE TABLE table_name_50 (Id VARCHAR)
SELECT location FROM table_name_49 WHERE date = "1916"
Where was the disaster located that took place on 1916?
CREATE TABLE table_name_49 (location VARCHAR, date VARCHAR)
SELECT res FROM table_name_97 WHERE event = "pfc: put up or shut up"
What is the result for pfc: put up or shut up?
CREATE TABLE table_name_97 (res VARCHAR, event VARCHAR)
SELECT result FROM table_name_11 WHERE date = "august 27, 1980"
What is the result when the date is August 27, 1980?
CREATE TABLE table_name_11 (result VARCHAR, date VARCHAR)
SELECT region FROM table_1585609_2 WHERE prefecture = "Iwate"
Name the region for iwate
CREATE TABLE table_1585609_2 (region VARCHAR, prefecture VARCHAR)
SELECT loss FROM table_name_21 WHERE attendance = "29,704"
What was the loss of the game attended by 29,704?
CREATE TABLE table_name_21 (loss VARCHAR, attendance VARCHAR)
SELECT MIN(debut_year) FROM table_name_10 WHERE player = "mark eaves"
What is the debut year of Mark Eaves?
CREATE TABLE table_name_10 (debut_year INTEGER, player VARCHAR)
SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id = T2.document_id JOIN Ref_locations AS T3 ON T2.location_code = T3.location_code WHERE T1.document_name = "Robin CV"
Show the location name for document "Robin CV".
CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR); CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (document_id VARCHAR, location_code VARCHAR)
SELECT driver FROM table_name_82 WHERE points < 36 AND team = "greenfield mowers racing"
Which driver for Greenfield Mowers Racing has fewer than 36 points?
CREATE TABLE table_name_82 (driver VARCHAR, points VARCHAR, team VARCHAR)
SELECT written_by FROM table_25750635_2 WHERE production_code = "E4515"
Who wrote the episode with e4515 as the production code?
CREATE TABLE table_25750635_2 (written_by VARCHAR, production_code VARCHAR)
SELECT final_round FROM table_name_1 WHERE year = "1975"
In 1975, what was the final round?
CREATE TABLE table_name_1 (final_round VARCHAR, year VARCHAR)
SELECT game FROM table_name_66 WHERE year = 2001
What game was in 2001?
CREATE TABLE table_name_66 (game VARCHAR, year VARCHAR)
SELECT COUNT(yr_plyf) FROM table_name_56 WHERE g_plyf < 0
What is the total number of yr plyf with a G plyf less than 0?
CREATE TABLE table_name_56 (yr_plyf VARCHAR, g_plyf INTEGER)
SELECT opponent FROM table_name_73 WHERE outcome = "runner-up" AND surface = "clay"
Who did Thomaz Bellucci play against when he became runner-up on a clay surface?
CREATE TABLE table_name_73 (opponent VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT MIN(weeks_at__number1) FROM table_27441210_5 WHERE year = 1988
Name the least weeks at number 1 for 1988
CREATE TABLE table_27441210_5 (weeks_at__number1 INTEGER, year VARCHAR)
SELECT skip__club_ FROM table_29546030_2 WHERE pa = 28
Which skip (club) had 28 PA?
CREATE TABLE table_29546030_2 (skip__club_ VARCHAR, pa VARCHAR)
SELECT MAX(wkts) FROM table_name_21 WHERE runs < 26 AND player = "james hopes" AND ovrs > 2
What is the highest wkts for james hopes who had less than 26 runs and more than 2 ovrs?
CREATE TABLE table_name_21 (wkts INTEGER, ovrs VARCHAR, runs VARCHAR, player VARCHAR)
SELECT high_rebounds FROM table_27723526_17 WHERE date = "June 9"
What is the high rebound for June 9?
CREATE TABLE table_27723526_17 (high_rebounds VARCHAR, date VARCHAR)
SELECT MAX(clock_rate__mhz_) FROM table_name_75 WHERE bandwidth__mb_s_ < 4800 AND bus_width__bits_ < 16
Bandwidth (MB/s) smaller than 4800, and a Bus width (bits) smaller than 16 has what highest Clock rate (MHz)?
CREATE TABLE table_name_75 (clock_rate__mhz_ INTEGER, bandwidth__mb_s_ VARCHAR, bus_width__bits_ VARCHAR)
SELECT COUNT(*) FROM member
How many members are there?
CREATE TABLE member (Id VARCHAR)
SELECT venue FROM table_1670921_1 WHERE batting_partners = "Mahela Jayawardene and Prasanna Jayawardene"
What is the venue for batting partners Mahela Jayawardene and Prasanna Jayawardene
CREATE TABLE table_1670921_1 (venue VARCHAR, batting_partners VARCHAR)
SELECT enrollment FROM table_16381914_1 WHERE founded = 1846
What was the enrollment of the school founded in 1846?
CREATE TABLE table_16381914_1 (enrollment VARCHAR, founded VARCHAR)
SELECT date FROM table_name_69 WHERE record = "39–54"
On what date was the record 39–54?
CREATE TABLE table_name_69 (date VARCHAR, record VARCHAR)
SELECT save FROM table_name_67 WHERE score = "7-6"
What is the save of the game with a 7-6 score?
CREATE TABLE table_name_67 (save VARCHAR, score VARCHAR)
SELECT largest_city FROM table_17416221_1 WHERE population__2013_ = 6620100
what is the largest city where the population is 6620100?
CREATE TABLE table_17416221_1 (largest_city VARCHAR, population__2013_ VARCHAR)
SELECT engine FROM table_name_23 WHERE rank = "3rd" AND points = 513
Which engine is used when there is a 3rd place rank and 513 points?
CREATE TABLE table_name_23 (engine VARCHAR, rank VARCHAR, points VARCHAR)
SELECT COUNT(round) FROM table_name_66 WHERE position = "offensive tackle"
How many rounds were there an offensive tackle position?
CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR)
SELECT COUNT(crowd) FROM table_name_96 WHERE away_team = "fitzroy"
What is the crowd size of the game when Fitzroy is the away team?
CREATE TABLE table_name_96 (crowd VARCHAR, away_team VARCHAR)
SELECT record FROM table_name_15 WHERE event = "3000 m"
What is the Record of the 3000 M?
CREATE TABLE table_name_15 (record VARCHAR, event VARCHAR)
SELECT canadian_championship FROM table_name_6 WHERE concacaf_champions_league = "semifinals"
What Canadian Championship had CONCACAF Champions League of semifinals?
CREATE TABLE table_name_6 (canadian_championship VARCHAR, concacaf_champions_league VARCHAR)
SELECT february FROM table_name_91 WHERE game = 40
Which February has a Game of 40?
CREATE TABLE table_name_91 (february VARCHAR, game VARCHAR)
SELECT MAX(year) FROM table_2190919_1 WHERE avg_start = "8.5"
What is the most recent year where the average start is 8.5?
CREATE TABLE table_2190919_1 (year INTEGER, avg_start VARCHAR)
SELECT challenge_loser FROM table_name_81 WHERE challenge_winner = "roseny"
Which challenge loser has a Challenge Winner of roseny?
CREATE TABLE table_name_81 (challenge_loser VARCHAR, challenge_winner VARCHAR)
SELECT result FROM table_name_23 WHERE score = "1–1"
Which result has a Score of 1–1?
CREATE TABLE table_name_23 (result VARCHAR, score VARCHAR)
SELECT sanskrit AS gloss FROM table_186462_1 WHERE western_name = "Sagittarius"
When Sagittarius is the wester name what is the sanskrit gloss?
CREATE TABLE table_186462_1 (sanskrit VARCHAR, western_name VARCHAR)
SELECT country FROM table_name_91 WHERE place = "4"
What is the country that placed 4?
CREATE TABLE table_name_91 (country VARCHAR, place VARCHAR)
SELECT AVG(rank) FROM table_name_86 WHERE bronze > 1
Name the average rank for when bronze is more than 1
CREATE TABLE table_name_86 (rank INTEGER, bronze INTEGER)
SELECT airdate FROM table_25721_3 WHERE dave_ja_vu_viewers = 106000
What was the airdate of the episode with 106000 dave ja vu viewers?
CREATE TABLE table_25721_3 (airdate VARCHAR, dave_ja_vu_viewers VARCHAR)
SELECT COUNT(average) FROM table_12094609_1 WHERE evening_gown = "8.988"
what is the total number of average where evening gown is 8.988
CREATE TABLE table_12094609_1 (average VARCHAR, evening_gown VARCHAR)
SELECT title FROM table_2618142_1 WHERE directed_by = "Ed Sherin"
name the title of the episode that ed sherin directed.
CREATE TABLE table_2618142_1 (title VARCHAR, directed_by VARCHAR)
SELECT college FROM table_name_11 WHERE round > 1 AND pick > 163
What is College, when Round is greater than 1, and when Pick is greater than 163?
CREATE TABLE table_name_11 (college VARCHAR, round VARCHAR, pick VARCHAR)
SELECT COUNT(germans) FROM table_2374338_2 WHERE slovaks = "0.11%"
How many values for Germans occurs when value for Slovaks is 0.11%?
CREATE TABLE table_2374338_2 (germans VARCHAR, slovaks VARCHAR)
SELECT MIN(wins) FROM table_name_99 WHERE season < 1920 AND losses < 14
Which Wins is the lowest one that has a Season smaller than 1920, and Losses smaller than 14?
CREATE TABLE table_name_99 (wins INTEGER, season VARCHAR, losses VARCHAR)
SELECT africa FROM table_19017269_5 WHERE oceania = "67 (0.6%)"
what will be the population of Africa when Oceania is 67 (0.6%)
CREATE TABLE table_19017269_5 (africa VARCHAR, oceania VARCHAR)
SELECT bullet_diameter FROM table_name_32 WHERE neck_diameter = "12.17 (.479)"
Which Bullet diameter has a Neck diameter of 12.17 (.479)?
CREATE TABLE table_name_32 (bullet_diameter VARCHAR, neck_diameter VARCHAR)
SELECT COUNT(bronze) FROM table_name_75 WHERE silver > 0 AND gold > 3 AND rank = "1"
What is the total number of Bronze, when Silver is greater than 0, when Gold is greater than 3, and when Rank is 1?
CREATE TABLE table_name_75 (bronze VARCHAR, rank VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT team FROM table_name_39 WHERE laps = 64 AND points = 13
Which team had 64 laps and 13 points?
CREATE TABLE table_name_39 (team VARCHAR, laps VARCHAR, points VARCHAR)
SELECT team FROM table_name_48 WHERE stadium = "stadion maksimir"
What is the team at Stadion Maksimir?
CREATE TABLE table_name_48 (team VARCHAR, stadium VARCHAR)
SELECT catalogue FROM table_name_34 WHERE date = "october 15, 2004"
What is the catalogue on october 15, 2004?
CREATE TABLE table_name_34 (catalogue VARCHAR, date VARCHAR)
SELECT away_team AS score FROM table_name_22 WHERE venue = "kardinia park"
at kardinia park, what was the away team's score?
CREATE TABLE table_name_22 (away_team VARCHAR, venue VARCHAR)
SELECT candidates FROM table_1342233_42 WHERE district = "Tennessee 9"
Who was the candidate in the election in the Tennessee 9 district?
CREATE TABLE table_1342233_42 (candidates VARCHAR, district VARCHAR)
SELECT MAX(num_of_shops), AVG(Num_of_Factories) FROM manufacturer WHERE open_year < 1990
what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.
CREATE TABLE manufacturer (num_of_shops INTEGER, Num_of_Factories INTEGER, open_year INTEGER)
SELECT score FROM table_name_8 WHERE visitor = "buffalo" AND date = "april 27"
Tell me the score on april 27 with visitor of buffalo
CREATE TABLE table_name_8 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_1 WHERE opponent = "boston patriots" AND week > 14
What is the Attendance for Opponent Boston Patriots and Week is greater than 14?
CREATE TABLE table_name_1 (attendance VARCHAR, opponent VARCHAR, week VARCHAR)
SELECT COUNT(total) FROM table_name_43 WHERE mls_cup = 4 AND us_open_cup > 1
What is the total where there are 4 MLS Cups and more US Open Cups than 1?
CREATE TABLE table_name_43 (total VARCHAR, mls_cup VARCHAR, us_open_cup VARCHAR)
SELECT home_team FROM table_name_19 WHERE tie_no = "11"
What is the Home team of Tie no 11?
CREATE TABLE table_name_19 (home_team VARCHAR, tie_no VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_16 WHERE to_par > 12
Which average money has a To par larger than 12?
CREATE TABLE table_name_16 (money___ INTEGER, to_par INTEGER)