answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(weight) FROM table_22496344_1 WHERE _number = 20
What is the weight when 20 is the number?
CREATE TABLE table_22496344_1 (weight INTEGER, _number VARCHAR)
SELECT episode FROM table_23575917_4 WHERE first_broadcast = "3 September 2010"
What is the episode number that was first broadcast on 3 September 2010?
CREATE TABLE table_23575917_4 (episode VARCHAR, first_broadcast VARCHAR)
SELECT date FROM table_name_88 WHERE record = "30-31"
On what day was the record 30-31?
CREATE TABLE table_name_88 (date VARCHAR, record VARCHAR)
SELECT result FROM table_1341395_33 WHERE district = "New York 16"
what are all the result for New York 16 district
CREATE TABLE table_1341395_33 (result VARCHAR, district VARCHAR)
SELECT writer FROM table_12148018_2 WHERE viewers = "5.16m"
who is the writer where viewers is 5.16m
CREATE TABLE table_12148018_2 (writer VARCHAR, viewers VARCHAR)
SELECT arena FROM table_name_43 WHERE runner_up = "north dakota"
In what arena was the North Dakota the runner-up?
CREATE TABLE table_name_43 (arena VARCHAR, runner_up VARCHAR)
SELECT MIN(us_cham_rank) FROM table_name_94 WHERE next_highest_spender = "national assn of realtors" AND year < 2012
Which US Cham Rank is the lowest one that has a Next Highest Spender of national assn of realtors, and a Year smaller than 2012?
CREATE TABLE table_name_94 (us_cham_rank INTEGER, next_highest_spender VARCHAR, year VARCHAR)
SELECT growth_rate_1991_01 FROM table_19589113_5 WHERE sex_ratio_‡_2001 = 937
What is every growth rate in 1991-2001 when sex ratio in 2001 is 937?
CREATE TABLE table_19589113_5 (growth_rate_1991_01 VARCHAR, sex_ratio_‡_2001 VARCHAR)
SELECT percent_for FROM table_120778_1 WHERE jurisdiction = "Manitoba"
What is the percent for in manitoba?
CREATE TABLE table_120778_1 (percent_for VARCHAR, jurisdiction VARCHAR)
SELECT AVG(week) FROM table_name_30 WHERE opponent = "seattle seahawks"
What is the Week of the game against Seattle Seahawks?
CREATE TABLE table_name_30 (week INTEGER, opponent VARCHAR)
SELECT competition FROM table_name_25 WHERE date = "may 5, 2001"
What competition has may 5, 2001 as the date?
CREATE TABLE table_name_25 (competition VARCHAR, date VARCHAR)
SELECT method FROM table_name_4 WHERE opponent = "chalid arrab"
What is Method, when Opponent is "Chalid Arrab"?
CREATE TABLE table_name_4 (method VARCHAR, opponent VARCHAR)
SELECT venue FROM table_name_26 WHERE opposing_teams = "argentina" AND status = "test match"
What is the venue where Argentina was the opposing team in a test match?
CREATE TABLE table_name_26 (venue VARCHAR, opposing_teams VARCHAR, status VARCHAR)
SELECT spoofed_title FROM table_name_43 WHERE issue > 509 AND actual_title = "parks and recreation"
What is the spoofed title for Parks and Recreation with an issue larger than 509?
CREATE TABLE table_name_43 (spoofed_title VARCHAR, issue VARCHAR, actual_title VARCHAR)
SELECT venue FROM table_name_82 WHERE city = "manchester" AND year < 2003
Which venue had a city of Manchester before 2003?
CREATE TABLE table_name_82 (venue VARCHAR, city VARCHAR, year VARCHAR)
SELECT series_ep FROM table_name_22 WHERE segment_d = "fluorescent tubes"
What is the series episode number with a segment of D, and having fluorescent tubes?
CREATE TABLE table_name_22 (series_ep VARCHAR, segment_d VARCHAR)
SELECT date FROM table_name_92 WHERE score = "96-89"
What is the date of the game that ended with a score of 96-89?
CREATE TABLE table_name_92 (date VARCHAR, score VARCHAR)
SELECT class FROM table_name_36 WHERE year = 1968
Which class has a Year of 1968?
CREATE TABLE table_name_36 (class VARCHAR, year VARCHAR)
SELECT released FROM table_name_64 WHERE dvd_name = "escape to river cottage"
What was escape to river cottage released?
CREATE TABLE table_name_64 (released VARCHAR, dvd_name VARCHAR)
SELECT SUM(founded) FROM table_name_18 WHERE stadium = "hiram bithorn stadium" AND club = "atlético de san juan fc"
What year was the team Club of atlético de san juan fc who plays at hiram bithorn stadium founded.
CREATE TABLE table_name_18 (founded INTEGER, stadium VARCHAR, club VARCHAR)
SELECT pregame_host FROM table_name_67 WHERE play_by_play = "jp dellacamera" AND year < 2009 AND color_commentator_s_ = "ty keough"
What is the name of the pregame host when the Play-by-play was by JP Dellacamera, earlier than 2009, and Color commentator(s) was Ty Keough?
CREATE TABLE table_name_67 (pregame_host VARCHAR, color_commentator_s_ VARCHAR, play_by_play VARCHAR, year VARCHAR)
SELECT maximum_elevation FROM table_24285393_1 WHERE country_or_region = "Netherlands"
What is the maximum elevation in netherlands?
CREATE TABLE table_24285393_1 (maximum_elevation VARCHAR, country_or_region VARCHAR)
SELECT attenmdance FROM table_name_8 WHERE stadium = "war memorial stadium"
What was the attendance at war memorial stadium?
CREATE TABLE table_name_8 (attenmdance VARCHAR, stadium VARCHAR)
SELECT record FROM table_name_59 WHERE visitor = "los angeles kings" AND date = "april 22"
On April 22 when the Los Angeles Kings where visitors what was the record?
CREATE TABLE table_name_59 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT operating_systems FROM table_15038373_1 WHERE software = "SBaGen"
What are all the operating systems for sbagen?
CREATE TABLE table_15038373_1 (operating_systems VARCHAR, software VARCHAR)
SELECT play FROM table_name_59 WHERE base = "athens" AND company = "dance theatre roes"
What is the Athens Base play with Dance Theatre Roes Company?
CREATE TABLE table_name_59 (play VARCHAR, base VARCHAR, company VARCHAR)
SELECT city_code FROM Student WHERE LName = "Kim"
Which city does the student whose last name is "Kim" live in?
CREATE TABLE Student (city_code VARCHAR, LName VARCHAR)
SELECT AVG(points) FROM table_name_10 WHERE year = 1964
How many points did he average in 1964?
CREATE TABLE table_name_10 (points INTEGER, year VARCHAR)
SELECT SUM(bronze) FROM table_name_91 WHERE total > 27
What is the sum of Bronze when the total is more than 27?
CREATE TABLE table_name_91 (bronze INTEGER, total INTEGER)
SELECT AVG(facility_id) FROM table_name_64 WHERE call_sign = "wnpr"
WHich Facility ID has a Call sign of wnpr?
CREATE TABLE table_name_64 (facility_id INTEGER, call_sign VARCHAR)
SELECT delivery FROM table_name_80 WHERE name = "quince"
Which Delivery has a Name of quince?
CREATE TABLE table_name_80 (delivery VARCHAR, name VARCHAR)
SELECT SUM(T1.crs_credit), T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code = T2.crs_code GROUP BY T1.dept_code
Find the total credits of all classes offered by each department.
CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (dept_code VARCHAR, crs_credit INTEGER, crs_code VARCHAR)
SELECT location_attendance FROM table_27756474_13 WHERE date = "May 13"
Where was the game played and what was the attendance on May 13?
CREATE TABLE table_27756474_13 (location_attendance VARCHAR, date VARCHAR)
SELECT venue FROM table_17120964_8 WHERE man_of_the_match = "Vaclav Zavoral"
What is the venue of the game with Man of the Match Vaclav Zavoral?
CREATE TABLE table_17120964_8 (venue VARCHAR, man_of_the_match VARCHAR)
SELECT home FROM table_name_74 WHERE leading_scorer = "manu ginóbili (34)"
Who was the home team of the game with manu ginóbili (34) as the leading scorer?
CREATE TABLE table_name_74 (home VARCHAR, leading_scorer VARCHAR)
SELECT DISTINCT payment_type_code FROM payments
What are all the distinct payment types?
CREATE TABLE payments (payment_type_code VARCHAR)
SELECT AVG(height__cm_) FROM table_name_21 WHERE weight__kg_ > 84 AND birthdate = "june 24, 1964"
What is the height of the player born on June 24, 1964, with a weight over 84 kg?
CREATE TABLE table_name_21 (height__cm_ INTEGER, weight__kg_ VARCHAR, birthdate VARCHAR)
SELECT season__number FROM table_23287683_1 WHERE production_code = "5M21"
List all season numbers with production codes of 5m21.
CREATE TABLE table_23287683_1 (season__number VARCHAR, production_code VARCHAR)
SELECT transfer_window FROM table_name_40 WHERE moving_from = "barueri"
What is the transfer window of the player moving from barueri?
CREATE TABLE table_name_40 (transfer_window VARCHAR, moving_from VARCHAR)
SELECT height_metres___ft FROM table_name_89 WHERE floors = "05.0 n/a"
Name the Height metres / ft of Floors of 05.0 n/a?
CREATE TABLE table_name_89 (height_metres___ft VARCHAR, floors VARCHAR)
SELECT SUM(tries) FROM table_name_33 WHERE goals > 0
How many tries have goals greater than 0?
CREATE TABLE table_name_33 (tries INTEGER, goals INTEGER)
SELECT clay FROM table_name_36 WHERE record = "2–0" AND hard = "1–0"
Which clay has a Record of 2–0, and a Hard 1–0?
CREATE TABLE table_name_36 (clay VARCHAR, record VARCHAR, hard VARCHAR)
SELECT COUNT(points) FROM table_name_72 WHERE drawn = 7 AND team = "corinthians" AND played > 18
How many Points have Drawn of 7, and a Team of corinthians, and a Played larger than 18?
CREATE TABLE table_name_72 (points VARCHAR, played VARCHAR, drawn VARCHAR, team VARCHAR)
SELECT high_points FROM table_23285761_8 WHERE location_attendance = "Pepsi Center 19,155"
Name the high points for pepsi center 19,155
CREATE TABLE table_23285761_8 (high_points VARCHAR, location_attendance VARCHAR)
SELECT away_team FROM table_name_36 WHERE venue = "lake oval"
Who was the away team at Lake Oval?
CREATE TABLE table_name_36 (away_team VARCHAR, venue VARCHAR)
SELECT Tourist_Details FROM VISITORS
Show details of all visitors.
CREATE TABLE VISITORS (Tourist_Details VARCHAR)
SELECT city FROM table_10601843_2 WHERE capacity = 41903
Which city has a capacity of 41903?
CREATE TABLE table_10601843_2 (city VARCHAR, capacity VARCHAR)
SELECT COUNT(game) FROM table_name_34 WHERE record = "11-17-7"
What is the total number of Game, when Record is "11-17-7"?
CREATE TABLE table_name_34 (game VARCHAR, record VARCHAR)
SELECT state FROM table_name_36 WHERE charter_range = "1906-1991"
What state had an active chapter from 1906-1991?
CREATE TABLE table_name_36 (state VARCHAR, charter_range VARCHAR)
SELECT episode FROM table_name_52 WHERE result = "nominated" AND nominee_s_ = "walon green, joe sachs"
For what episode was the nominee (s) Walon Green, Joe Sachs nominated as a result?
CREATE TABLE table_name_52 (episode VARCHAR, result VARCHAR, nominee_s_ VARCHAR)
SELECT high_assists FROM table_27700530_11 WHERE team = "Houston"
Who had highest assists at the game against Houston?
CREATE TABLE table_27700530_11 (high_assists VARCHAR, team VARCHAR)
SELECT original_title FROM table_17641206_4 WHERE viewership = "5.04 million"
What was the title of the episode with 5.04 million viewers?
CREATE TABLE table_17641206_4 (original_title VARCHAR, viewership VARCHAR)
SELECT fname, major FROM Student WHERE NOT StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Soy")
Find the first name and major of the students who are not allegry to soy.
CREATE TABLE Has_allergy (fname VARCHAR, major VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Student (fname VARCHAR, major VARCHAR, StuID VARCHAR, Allergy VARCHAR)
SELECT date FROM table_name_97 WHERE away_team = "fitzroy"
If fitzroy is the Away team, what Date did they play?
CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR)
SELECT AVG(losses) FROM table_name_58 WHERE draws > 6 AND played > 38
Name the average losses for draws larger than 6 and played more than 38
CREATE TABLE table_name_58 (losses INTEGER, draws VARCHAR, played VARCHAR)
SELECT location FROM table_22670216_1 WHERE winning_driver = "Bill Vukovich II"
What is the location is the winning driver is Bill Vukovich II?
CREATE TABLE table_22670216_1 (location VARCHAR, winning_driver VARCHAR)
SELECT partner FROM table_name_23 WHERE surface = "hard" AND date = "18 april 2011"
What is the name of a partner that played on a hard surface on 18 April 2011?
CREATE TABLE table_name_23 (partner VARCHAR, surface VARCHAR, date VARCHAR)
SELECT rowers FROM table_name_31 WHERE time = "6:39.49"
Who are the Rowers with a Time of 6:39.49?
CREATE TABLE table_name_31 (rowers VARCHAR, time VARCHAR)
SELECT MAX(transit_passengers) FROM table_13836704_8 WHERE freight__metric_tonnes_ = 171078
Name the transit passengers for 171078
CREATE TABLE table_13836704_8 (transit_passengers INTEGER, freight__metric_tonnes_ VARCHAR)
SELECT COUNT(rank) FROM table_23759976_1 WHERE building_[a_] = "Cathay Pacific Plaza 2"
How many different ranks does the Cathay Pacific Plaza 2 have?
CREATE TABLE table_23759976_1 (rank VARCHAR, building_ VARCHAR, a_ VARCHAR)
SELECT player FROM table_name_89 WHERE draft = 1994 AND pick > 8 AND round = "10" AND nationality = "canada"
Which Player has a Draft of 1994, a Pick larger than 8, a Round of 10, and a Nationality of canada?
CREATE TABLE table_name_89 (player VARCHAR, nationality VARCHAR, round VARCHAR, draft VARCHAR, pick VARCHAR)
SELECT opponents FROM table_27611593_5 WHERE partner = "Vania King"
Who were Petrova's opponents with Vania King?
CREATE TABLE table_27611593_5 (opponents VARCHAR, partner VARCHAR)
SELECT venue FROM table_name_63 WHERE notes = "2:38:44"
What venue featured a notes of 2:38:44?
CREATE TABLE table_name_63 (venue VARCHAR, notes VARCHAR)
SELECT AVG(goals_for) FROM table_name_99 WHERE goal_difference = 8 AND losses < 12
What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12?
CREATE TABLE table_name_99 (goals_for INTEGER, goal_difference VARCHAR, losses VARCHAR)
SELECT opponent FROM table_name_92 WHERE february > 2 AND game < 55
What team was the opponent when February shows more than 2, with a game number less than 55?
CREATE TABLE table_name_92 (opponent VARCHAR, february VARCHAR, game VARCHAR)
SELECT block_a FROM table_name_14 WHERE el_nosawa_mendoza = "kondo (7:08)"
What is the Block A value for an El NOSAWA Mendoza value of kondo (7:08)?
CREATE TABLE table_name_14 (block_a VARCHAR, el_nosawa_mendoza VARCHAR)
SELECT position FROM table_10650711_1 WHERE player = "Anthony Blaylock"
what's the position where player is anthony blaylock
CREATE TABLE table_10650711_1 (position VARCHAR, player VARCHAR)
SELECT replaced_by FROM table_name_97 WHERE team = "port vale"
who is the replacement when the team is port vale?
CREATE TABLE table_name_97 (replaced_by VARCHAR, team VARCHAR)
SELECT order__number FROM table_15796054_3 WHERE original_artist = "The Beatles" AND result = "Safe"
Name the order number for the beatles and result is safe
CREATE TABLE table_15796054_3 (order__number VARCHAR, original_artist VARCHAR, result VARCHAR)
SELECT country FROM table_name_72 WHERE score = 66 - 69 = 135
What Country Scored 66-69=135?
CREATE TABLE table_name_72 (country VARCHAR, score VARCHAR)
SELECT course FROM table_name_34 WHERE jockey = "fergal lynch" AND odds = "5/1"
What course did Fergal Lynch end up with 5/1 odds?
CREATE TABLE table_name_34 (course VARCHAR, jockey VARCHAR, odds VARCHAR)
SELECT outgoing_manager FROM table_name_57 WHERE date_of_appointment = "19 february"
I want the outgoing manager for 19 february
CREATE TABLE table_name_57 (outgoing_manager VARCHAR, date_of_appointment VARCHAR)
SELECT COUNT(opponents) FROM table_name_16 WHERE raiders_points = 42 AND attendance < 52 OFFSET 505
What is the total number of Opponents, when Raiders Points is "42", when Attendance is less than 52,505?
CREATE TABLE table_name_16 (opponents VARCHAR, raiders_points VARCHAR, attendance VARCHAR)
SELECT school FROM table_name_92 WHERE position = "p" AND player = "jeff urban"
What school had Jeff Urban playing at the p position?
CREATE TABLE table_name_92 (school VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = "£10,300"
How many play-off legs were won when the prize money was £10,300?
CREATE TABLE table_24334163_1 (Winners VARCHAR, total_money_won VARCHAR)
SELECT COUNT(significant_relationship) FROM table_1058787_1 WHERE virtues = "Will"
How many significant relationships list Will as a virtue?
CREATE TABLE table_1058787_1 (significant_relationship VARCHAR, virtues VARCHAR)
SELECT COUNT(date) FROM table_25938117_1 WHERE tournament = "Toshiba Classic"
Name the total number of dates for toshiba classic
CREATE TABLE table_25938117_1 (date VARCHAR, tournament VARCHAR)
SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32
What are the songs in volumes associated with the artist aged 32 or older?
CREATE TABLE volume (Song VARCHAR, Artist_ID VARCHAR); CREATE TABLE artist (Artist_ID VARCHAR, age VARCHAR)
SELECT ramtha FROM table_26173063_2 WHERE jeel = "1-0" AND hussein = "1-0"
What is ramtha when jeel is 1-0 and hussein is 1-0?
CREATE TABLE table_26173063_2 (ramtha VARCHAR, jeel VARCHAR, hussein VARCHAR)
SELECT athlete FROM table_name_87 WHERE gold < 7 AND total = 14
What athlete has less than 7 gold and 14 total medals?
CREATE TABLE table_name_87 (athlete VARCHAR, gold VARCHAR, total VARCHAR)
SELECT home_team AS score FROM table_name_9 WHERE home_team = "geelong"
What was Geelong's score when they were the home team?
CREATE TABLE table_name_9 (home_team VARCHAR)
SELECT winning_constructor FROM table_name_79 WHERE winning_driver = "riccardo patrese"
Who is the winner constructor with driver riccardo patrese?
CREATE TABLE table_name_79 (winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT type FROM table_2562113_1 WHERE institution = "San Diego Christian College"
What type of institution is San Diego Christian college?
CREATE TABLE table_2562113_1 (type VARCHAR, institution VARCHAR)
SELECT song_title FROM table_name_84 WHERE movie = "amma cheppindi"
What was the name of the song in Amma Cheppindi?
CREATE TABLE table_name_84 (song_title VARCHAR, movie VARCHAR)
SELECT opponent FROM table_name_38 WHERE record = "10-13"
Who was the opponent that led to a 10-13 record?
CREATE TABLE table_name_38 (opponent VARCHAR, record VARCHAR)
SELECT position FROM table_name_24 WHERE round > 5 AND player = "matthew tassone"
Who position did matthew tassone who was drafted after round 5 play?
CREATE TABLE table_name_24 (position VARCHAR, round VARCHAR, player VARCHAR)
SELECT total FROM table_16779068_5 WHERE one_hand_clean_ & _jerk = "87.5" AND snatch = "87.5"
Name the total with one hand clean and jerk is 87.5 and snatch is 87.5
CREATE TABLE table_16779068_5 (total VARCHAR, snatch VARCHAR, one_hand_clean_ VARCHAR, _jerk VARCHAR)
SELECT home_team AS score FROM table_name_31 WHERE home_team = "essendon"
What was the score for the Essendon home team?
CREATE TABLE table_name_31 (home_team VARCHAR)
SELECT results FROM table_name_79 WHERE first_elected = 1996
What are the results of the incumbent who was first elected in 1996?
CREATE TABLE table_name_79 (results VARCHAR, first_elected VARCHAR)
SELECT won FROM table_1676073_13 WHERE points_for = "565"
How many wins does the club with 565 points for have?
CREATE TABLE table_1676073_13 (won VARCHAR, points_for VARCHAR)
SELECT MAX(Ends) AS lost FROM table_17012578_37
What is the highest number of ends lost?
CREATE TABLE table_17012578_37 (Ends INTEGER)
SELECT skip FROM table_name_6 WHERE nation = "germany"
What was the Skip for Germany?
CREATE TABLE table_name_6 (skip VARCHAR, nation VARCHAR)
SELECT COUNT(no_in_series) FROM table_2791668_1 WHERE production_code = 16016
how many episodes in the series had as a production code 16016?
CREATE TABLE table_2791668_1 (no_in_series VARCHAR, production_code VARCHAR)
SELECT MIN(place) FROM table_name_10 WHERE draw = 6 AND goals_conceded = 18 AND goals_scored > 26
What is the lowest place with more than 26 goals scored, 18 goals conceded, and a draw entry of 6?
CREATE TABLE table_name_10 (place INTEGER, goals_scored VARCHAR, draw VARCHAR, goals_conceded VARCHAR)
SELECT class FROM table_name_77 WHERE laps < 336 AND year = 2004
What class had fewer than 336 laps in 2004?
CREATE TABLE table_name_77 (class VARCHAR, laps VARCHAR, year VARCHAR)
SELECT engine FROM table_name_1 WHERE rounds = "5-6"
What's the engine used for rounds 5-6?
CREATE TABLE table_name_1 (engine VARCHAR, rounds VARCHAR)
SELECT role FROM table_name_80 WHERE leading_lady = "verna hillie"
What role did John Wayne play with Verna Hillie as the leading lady?
CREATE TABLE table_name_80 (role VARCHAR, leading_lady VARCHAR)
SELECT MIN(year_acquired) FROM table_1397655_1 WHERE station = "CITV"
how many is the minimum for citv
CREATE TABLE table_1397655_1 (year_acquired INTEGER, station VARCHAR)
SELECT ga FROM table_name_33 WHERE losses = "2" AND team = "scotland"
What's the G.A. when there were 2 losses and Scotland played?
CREATE TABLE table_name_33 (ga VARCHAR, losses VARCHAR, team VARCHAR)
SELECT rd FROM table_14016079_1 WHERE circuit = "Queensland Raceway"
What round was held at the Queensland Raceway?
CREATE TABLE table_14016079_1 (rd VARCHAR, circuit VARCHAR)