answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT award FROM table_name_54 WHERE category = "teen pick show: comedy"
Which award show nominated The Suite Life on Deck for the Teen Pick Show: Comedy category?
CREATE TABLE table_name_54 (award VARCHAR, category VARCHAR)
SELECT SUM(attendance) FROM table_name_42 WHERE opponent = "nationals" AND record = "68-51"
What is the attendance of the game that has the opponent of The Nationals with a record of 68-51?
CREATE TABLE table_name_42 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT MAX(floors) FROM table_name_52 WHERE street_address = "800 boylston street"
How many floors does the building on 800 Boylston Street have?
CREATE TABLE table_name_52 (floors INTEGER, street_address VARCHAR)
SELECT COUNT(pick) FROM table_name_36 WHERE team = "los angeles dodgers" AND position = "lhp" AND year < 1979
What is the total pick number of the los angeles dodgers, which has a lhp position before 1979?
CREATE TABLE table_name_36 (pick VARCHAR, year VARCHAR, team VARCHAR, position VARCHAR)
SELECT MAX(T2.Price) FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T1.Area = "Central Coast" AND T2.year < 2005
Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005.
CREATE TABLE APPELLATIONS (Appelation VARCHAR, Area VARCHAR); CREATE TABLE WINE (Price INTEGER, Appelation VARCHAR, year VARCHAR)
SELECT date FROM table_name_4 WHERE acts = "6 bands" AND year > 1981 AND event = "monsters of rock"
Tell me the date for acts of 6 bands and year larger than 1981 for monsters of rock
CREATE TABLE table_name_4 (date VARCHAR, event VARCHAR, acts VARCHAR, year VARCHAR)
SELECT MIN(rank) FROM table_name_25 WHERE jianshu < 9.66 AND athlete = "richard devine ( gbr )" AND total < 19.02
What is the lowest rank when Jianshu is smaller than 9.66, for Richard Devine ( gbr ), with a total smaller than 19.02?
CREATE TABLE table_name_25 (rank INTEGER, total VARCHAR, jianshu VARCHAR, athlete VARCHAR)
SELECT lineup FROM table_name_33 WHERE match = "2"
What was her place in the lineup on match 2?
CREATE TABLE table_name_33 (lineup VARCHAR, match VARCHAR)
SELECT MIN(nanquan) FROM table_name_27 WHERE nandao < 9.44 AND rank < 9 AND total > 18.68
Which Nanquan has a Nandao smaller than 9.44, and a Rank smaller than 9, and a Total larger than 18.68?
CREATE TABLE table_name_27 (nanquan INTEGER, total VARCHAR, nandao VARCHAR, rank VARCHAR)
SELECT transfer_window FROM table_name_85 WHERE country = "esp" AND type = "promoted" AND ends > 2010
What is the transfer window in esp with promoted type and more than 2010 ends?
CREATE TABLE table_name_85 (transfer_window VARCHAR, ends VARCHAR, country VARCHAR, type VARCHAR)
SELECT COUNT(san_jose_wins) FROM table_name_43 WHERE la_goals > 6 AND la_wins < 21
How many San Jose wins have an LA goals larger than 6, and an LA wins smaller than 21?
CREATE TABLE table_name_43 (san_jose_wins VARCHAR, la_goals VARCHAR, la_wins VARCHAR)
SELECT date FROM table_name_32 WHERE loss = "willis (0–1)"
What was the date of the game that had a loss of Willis (0–1)?
CREATE TABLE table_name_32 (date VARCHAR, loss VARCHAR)
SELECT unit FROM table_name_53 WHERE location = "china" AND authors = "zhou zhang"
What unit is located in China and has Zhou Zhang as an author?
CREATE TABLE table_name_53 (unit VARCHAR, location VARCHAR, authors VARCHAR)
SELECT series FROM table_25794532_1 WHERE points = "68"
Name the series for 68
CREATE TABLE table_25794532_1 (series VARCHAR, points VARCHAR)
SELECT d_42 FROM table_name_31 WHERE d_47 = "d 27"
What is the D42 associated with a D47 of d 27?
CREATE TABLE table_name_31 (d_42 VARCHAR, d_47 VARCHAR)
SELECT name FROM Person WHERE gender = 'male' AND age = (SELECT MIN(age) FROM person WHERE gender = 'male')
Who is the youngest male?
CREATE TABLE Person (name VARCHAR, gender VARCHAR, age INTEGER); CREATE TABLE person (name VARCHAR, gender VARCHAR, age INTEGER)
SELECT MAX(points) FROM table_name_43 WHERE team = "marlboro brm" AND chassis = "brm p180"
What are the highest points for the team of marlboro brm with brm p180 as the chassis?
CREATE TABLE table_name_43 (points INTEGER, team VARCHAR, chassis VARCHAR)
SELECT years_of_daylight_service FROM table_name_7 WHERE builder = "alco"
What is the year of daylight service when the builder was Alco?
CREATE TABLE table_name_7 (years_of_daylight_service VARCHAR, builder VARCHAR)
SELECT Num_of_Staff, Open_Year FROM museum WHERE name = 'Plaza Museum'
What are the opening year and staff number of the museum named Plaza Museum?
CREATE TABLE museum (Num_of_Staff VARCHAR, Open_Year VARCHAR, name VARCHAR)
SELECT driver_s_ FROM table_1266602_2 WHERE team = "Circle Sport"
Who drove for team Circle Sport?
CREATE TABLE table_1266602_2 (driver_s_ VARCHAR, team VARCHAR)
SELECT record FROM table_22847880_2 WHERE opponent = "Kentucky"
Name the record for kentucky
CREATE TABLE table_22847880_2 (record VARCHAR, opponent VARCHAR)
SELECT venue FROM table_name_45 WHERE home_team = "collingwood"
What is Collingwood's home venue?
CREATE TABLE table_name_45 (venue VARCHAR, home_team VARCHAR)
SELECT condition FROM table_name_14 WHERE partial_thromboplastin_time = "prolonged or unaffected"
Name the condition with partial thromboplastin time of prolonged or unaffected
CREATE TABLE table_name_14 (condition VARCHAR, partial_thromboplastin_time VARCHAR)
SELECT MAX(_percentage_similarity_to_c7orf38) FROM table_26957063_3 WHERE _percentage_identity_to_c7orf38 = 81
What is the % similarity to C7orf38 of the animal whose % identity to C7orf38 is 81?
CREATE TABLE table_26957063_3 (_percentage_similarity_to_c7orf38 INTEGER, _percentage_identity_to_c7orf38 VARCHAR)
SELECT place FROM table_name_67 WHERE to_par < 13 AND player = "jacky cupit"
What place did jacky cupit take when his To par was under 13?
CREATE TABLE table_name_67 (place VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT AVG(rank) FROM table_name_41 WHERE gold < 0
What's the rank average when the gold medals are less than 0?
CREATE TABLE table_name_41 (rank INTEGER, gold INTEGER)
SELECT to_par FROM table_name_45 WHERE player = "ben hogan"
What was Ben Hogan's par?
CREATE TABLE table_name_45 (to_par VARCHAR, player VARCHAR)
SELECT home_team FROM table_name_2 WHERE venue = "lake oval"
What team plays at home at Lake Oval?
CREATE TABLE table_name_2 (home_team VARCHAR, venue VARCHAR)
SELECT result FROM table_1341472_20 WHERE incumbent = "Richard Baker"
List all results in elections with Richard Baker as the incumbent.
CREATE TABLE table_1341472_20 (result VARCHAR, incumbent VARCHAR)
SELECT MIN(pts) FROM table_name_20 WHERE chassis = "jordan 192"
What is the lowest number of points for an entrant with a Jordan 192 chassis?
CREATE TABLE table_name_20 (pts INTEGER, chassis VARCHAR)
SELECT COUNT(*) FROM book_club
How many book clubs are there?
CREATE TABLE book_club (Id VARCHAR)
SELECT position FROM table_name_86 WHERE home_town = "temple hills, md"
What is the Position of the Player from Temple Hills, MD?
CREATE TABLE table_name_86 (position VARCHAR, home_town VARCHAR)
SELECT COUNT(directed_by) FROM table_19925114_1 WHERE no_in_series = 38
How many episodes had the series number of 38?
CREATE TABLE table_19925114_1 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT wind_farm FROM table_name_58 WHERE country = "usa" AND notes = "multiple farms"
Which wind farm is in the USA and is noted as having multiple farms?
CREATE TABLE table_name_58 (wind_farm VARCHAR, country VARCHAR, notes VARCHAR)
SELECT MIN(long) FROM table_name_81 WHERE name = "kass, rob" AND avg_g < -0.30000000000000004
What is the lowest Long, when Name is Kass, Rob, and when Avg/g is less than -0.30000000000000004?
CREATE TABLE table_name_81 (long INTEGER, name VARCHAR, avg_g VARCHAR)
SELECT location FROM table_28885977_1 WHERE stadium = "Moorabbin Oval"
What is the location of the Moorabbin Oval stadium?
CREATE TABLE table_28885977_1 (location VARCHAR, stadium VARCHAR)
SELECT circuit FROM table_name_68 WHERE date = "may 27" AND class = "gts-2"
On what circuit is there a class gts-2 race that takes place on May 27?
CREATE TABLE table_name_68 (circuit VARCHAR, date VARCHAR, class VARCHAR)
SELECT MAX(followers), SUM(followers) FROM user_profiles
Find the maximum and total number of followers of all users.
CREATE TABLE user_profiles (followers INTEGER)
SELECT COUNT(original_air_date) FROM table_29273115_1 WHERE written_by = "Charlie Day"
On how many different dates was the episode written by Charlie Day aired for the first time?
CREATE TABLE table_29273115_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT character FROM table_22460085_1 WHERE original_west_end_performer = "Richard Fleeshman"
What character did Richard Fleeshman portray?
CREATE TABLE table_22460085_1 (character VARCHAR, original_west_end_performer VARCHAR)
SELECT country FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "794(86%)"
What was the country in which the agricultural use (m 3 /p/yr)(in %) was 794(86%)?
CREATE TABLE table_15909409_2 (country VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)
SELECT stadium FROM table_15190346_2 WHERE bowl_game = "1994 Gator Bowl"
What stadium was the 1994 Gator Bowl in?
CREATE TABLE table_15190346_2 (stadium VARCHAR, bowl_game VARCHAR)
SELECT MIN(total) FROM table_name_21 WHERE snatch < 170 AND event = "56 kg" AND clean_ & _jerk < 145
What is the lowest total that had less than 170 snatches, 56 kg events and less than 145 clean & jerk?
CREATE TABLE table_name_21 (total INTEGER, snatch VARCHAR, event VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT COUNT(mccain_number) FROM table_20693870_1 WHERE obama_percentage = "27.2%"
How many numbers were recorded under McCain when Obama had 27.2% voters?
CREATE TABLE table_20693870_1 (mccain_number VARCHAR, obama_percentage VARCHAR)
SELECT SUM(total) FROM table_name_51 WHERE tour = 7 AND giro < 3
The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.
CREATE TABLE table_name_51 (total INTEGER, tour VARCHAR, giro VARCHAR)
SELECT episode FROM table_24725951_1 WHERE directed_and_produced_by = "Karen Selway"
List episode directed and produced by Karen Selway?
CREATE TABLE table_24725951_1 (episode VARCHAR, directed_and_produced_by VARCHAR)
SELECT arranger FROM table_name_29 WHERE title = "ana rouh"
Who is the arranger for Ana Rouh?
CREATE TABLE table_name_29 (arranger VARCHAR, title VARCHAR)
SELECT date FROM table_name_78 WHERE venue = "victoria park"
On what date was the match played in Victoria Park?
CREATE TABLE table_name_78 (date VARCHAR, venue VARCHAR)
SELECT record FROM table_name_65 WHERE team = "utah"
What was the record of Utah?
CREATE TABLE table_name_65 (record VARCHAR, team VARCHAR)
SELECT MAX(rank) FROM table_name_49 WHERE county = "offaly" AND player = "mark corrigan" AND total < 8
What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8?
CREATE TABLE table_name_49 (rank INTEGER, total VARCHAR, county VARCHAR, player VARCHAR)
SELECT COUNT(pf) FROM table_25714995_2 WHERE l = 3
How many pf catagories are listed for the skip that had 3 for l
CREATE TABLE table_25714995_2 (pf VARCHAR, l VARCHAR)
SELECT date FROM table_name_20 WHERE competition = "2002 african cup of nations"
The 2002 African Cup of Nations was held on what date?
CREATE TABLE table_name_20 (date VARCHAR, competition VARCHAR)
SELECT song_choice FROM table_21501511_1 WHERE week__number = "Top 13"
What was Lambert's song choice in the top 13?
CREATE TABLE table_21501511_1 (song_choice VARCHAR, week__number VARCHAR)
SELECT opponent FROM table_name_21 WHERE game > 1 AND record = "3-2-0"
Who is the opponent of Game 1 with a 3-2-0 record?
CREATE TABLE table_name_21 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT position FROM table_11677100_12 WHERE hometown = "Dallas, TX"
Which position did the player from the hometown of Dallas, TX play?
CREATE TABLE table_11677100_12 (position VARCHAR, hometown VARCHAR)
SELECT COUNT(year) FROM table_20142629_2 WHERE fairburn > 54.0
when fairburn is bigger than 54.0, how many years?
CREATE TABLE table_20142629_2 (year VARCHAR, fairburn INTEGER)
SELECT team FROM table_name_86 WHERE outcome = "behind" AND opponent = "brisbane bears"
Which team got a Behind outcome and had an opponent of Brisbane Bears?
CREATE TABLE table_name_86 (team VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT SUM(round) FROM table_name_41 WHERE player = "freddie mitchell"
What is the sum of rounds where freddie mitchell was picked?
CREATE TABLE table_name_41 (round INTEGER, player VARCHAR)
SELECT winning_team FROM table_name_99 WHERE usa_captain = "beth daniel"
When the USA's captain was Beth Daniel, who was the winning team?
CREATE TABLE table_name_99 (winning_team VARCHAR, usa_captain VARCHAR)
SELECT country FROM table_name_9 WHERE content = "tv locale"
What Country's Content is TV Locale?
CREATE TABLE table_name_9 (country VARCHAR, content VARCHAR)
SELECT opponent FROM table_name_82 WHERE score = "6–5 13"
Who is the opponent with a score of 6–5 13?
CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR)
SELECT COUNT(wins) FROM table_25352318_1 WHERE season = 2010 AND team = "ART Grand Prix"
When art grand prix is the team and 2010 is the season how many wins are there?
CREATE TABLE table_25352318_1 (wins VARCHAR, season VARCHAR, team VARCHAR)
SELECT location FROM table_name_52 WHERE type = "club trophy" AND years = "1867 only"
What is the location for the club trophy from the year 1867 only?
CREATE TABLE table_name_52 (location VARCHAR, type VARCHAR, years VARCHAR)
SELECT first_match FROM table_name_72 WHERE final_position___round = "third qualifying round"
Which first match had a final position/round in the third qualifying round?
CREATE TABLE table_name_72 (first_match VARCHAR, final_position___round VARCHAR)
SELECT character FROM table_name_93 WHERE duration = "13 years" AND actor = "vicky versavel"
What character did Vicky Versavel play for 13 years?
CREATE TABLE table_name_93 (character VARCHAR, duration VARCHAR, actor VARCHAR)
SELECT date FROM table_name_92 WHERE opponent = "diamondbacks" AND score = "2-7"
What day did the Diamondbacks go 2-7?
CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT club FROM table_27374004_2 WHERE shirt_sponsor = "e-lotto.be"
What is the club when the shirt sponsor is e-lotto.be?
CREATE TABLE table_27374004_2 (club VARCHAR, shirt_sponsor VARCHAR)
SELECT competition FROM table_20251343_4 WHERE head_to_head = "Australia 13, New Zealand 40, Drawn 3"
Name the competition for australia 13, new zealand 40, drawn 3
CREATE TABLE table_20251343_4 (competition VARCHAR, head_to_head VARCHAR)
SELECT game FROM table_name_33 WHERE home_team = "chicago bulls" AND result = "81-83 (3-2)"
Home Team of chicago bulls, and a Result of 81-83 (3-2) involved what game?
CREATE TABLE table_name_33 (game VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT MAX(wins) FROM table_name_27 WHERE league = "nfl" AND finish = "1st" AND losses > 6
What is the highest wins for the NFL with a finish of 1st, and more than 6 losses?
CREATE TABLE table_name_27 (wins INTEGER, losses VARCHAR, league VARCHAR, finish VARCHAR)
SELECT SUM(grid) FROM table_name_78 WHERE laps < 2
What is the total grid with laps less than 2?
CREATE TABLE table_name_78 (grid INTEGER, laps INTEGER)
SELECT country FROM table_name_21 WHERE year_s__won = "1988"
Can you tell me the Country that has the Year(s) Won of 1988?
CREATE TABLE table_name_21 (country VARCHAR, year_s__won VARCHAR)
SELECT date FROM table_name_22 WHERE type = "4-6-0" AND number > 11
Which Date has a Type of 4-6-0, and a Number larger than 11?
CREATE TABLE table_name_22 (date VARCHAR, type VARCHAR, number VARCHAR)
SELECT organized_by, name FROM church WHERE open_date BETWEEN 1830 AND 1840
Show the organizer and name for churches that opened between 1830 and 1840.
CREATE TABLE church (organized_by VARCHAR, name VARCHAR, open_date INTEGER)
SELECT MAX(year) FROM table_name_25 WHERE formula = "grand prix"
What is the highest year with a formula of Grand Prix?
CREATE TABLE table_name_25 (year INTEGER, formula VARCHAR)
SELECT MAX(killed) FROM table_name_48 WHERE incident_no = "14"
What is the highest number killed in incident #14?
CREATE TABLE table_name_48 (killed INTEGER, incident_no VARCHAR)
SELECT t2.team_name, t2.ACC_Regular_Season FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id ORDER BY t1.founded LIMIT 1
What is the team name and acc regular season score of the school that was founded for the longest time?
CREATE TABLE university (school_id VARCHAR, founded VARCHAR); CREATE TABLE basketball_match (team_name VARCHAR, ACC_Regular_Season VARCHAR, school_id VARCHAR)
SELECT package_option FROM table_name_53 WHERE content = "calcio"
What is the package/option for the calcio content?
CREATE TABLE table_name_53 (package_option VARCHAR, content VARCHAR)
SELECT team FROM table_name_44 WHERE school = "milford"
Name the team for school of milford
CREATE TABLE table_name_44 (team VARCHAR, school VARCHAR)
SELECT COUNT(date_of_successors_formal_installation) FROM table_225099_3 WHERE successor = "John W. Walker (DR)"
How many entries are shown for date of successors formal installation where successor is john w. walker (dr)?
CREATE TABLE table_225099_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR)
SELECT home_town FROM table_name_67 WHERE weight = 201
Which Home Town had the weight of 201?
CREATE TABLE table_name_67 (home_town VARCHAR, weight VARCHAR)
SELECT 1 AS st_leg FROM table_name_31 WHERE agg = "10-2"
What is the first leg with an agg of 10-2?
CREATE TABLE table_name_31 (agg VARCHAR)
SELECT college FROM table_name_57 WHERE position = "running back"
Position of running back involves which college?
CREATE TABLE table_name_57 (college VARCHAR, position VARCHAR)
SELECT venue FROM table_name_45 WHERE attendance > 50 OFFSET 715
What venue has more than 50,715 attending?
CREATE TABLE table_name_45 (venue VARCHAR, attendance INTEGER)
SELECT event FROM table_name_66 WHERE round < 2 AND location = "hong kong"
What event was in hong kong and went less than 2 rounds?
CREATE TABLE table_name_66 (event VARCHAR, round VARCHAR, location VARCHAR)
SELECT COUNT(attendance) FROM table_name_68 WHERE venue = "los angeles memorial coliseum"
What is the number in attendance at Los Angeles Memorial Coliseum?
CREATE TABLE table_name_68 (attendance VARCHAR, venue VARCHAR)
SELECT opponent FROM table_name_82 WHERE loss = "leonard (7–8)"
Who was the opponent at the game that had a loss of Leonard (7–8)?
CREATE TABLE table_name_82 (opponent VARCHAR, loss VARCHAR)
SELECT position FROM table_name_35 WHERE school = "warren central high school"
What was the position of the player that went to warren central high school?
CREATE TABLE table_name_35 (position VARCHAR, school VARCHAR)
SELECT matches FROM table_name_31 WHERE goals = 360
How many matches had 360 goals?
CREATE TABLE table_name_31 (matches VARCHAR, goals VARCHAR)
SELECT MAX(uefa_champions_league) FROM table_18254488_2
What is the highest amount of uefa champion leagues?
CREATE TABLE table_18254488_2 (uefa_champions_league INTEGER)
SELECT COUNT(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Dayana Robel"
How many policies are listed for the customer named "Dayana Robel"?
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR)
SELECT DISTINCT city FROM addresses
Show all distinct cities in the address record.
CREATE TABLE addresses (city VARCHAR)
SELECT result FROM table_26842217_12 WHERE broadcast = "Big East Network"
What was the result in the game broadcast on the Big East Network?
CREATE TABLE table_26842217_12 (result VARCHAR, broadcast VARCHAR)
SELECT outcome FROM table_name_81 WHERE score = "3–6, 6–3, 6–0"
What was the outcome of the game that had a score of 3–6, 6–3, 6–0?
CREATE TABLE table_name_81 (outcome VARCHAR, score VARCHAR)
SELECT location FROM table_name_57 WHERE year > 2002 AND gold = "kim hyun-soo"
What is the location of the Asian Games after 2002 when Kim Hyun-soo won the gold?
CREATE TABLE table_name_57 (location VARCHAR, year VARCHAR, gold VARCHAR)
SELECT country FROM table_name_69 WHERE transfer_window = "summer" AND moving_from = "belgrano"
What is the country of the player moving from belgrano with a summer transfer window?
CREATE TABLE table_name_69 (country VARCHAR, transfer_window VARCHAR, moving_from VARCHAR)
SELECT record FROM table_name_19 WHERE november < 10 AND game < 13
What is Record, when November is less than 10, and when Game is less than 13?
CREATE TABLE table_name_19 (record VARCHAR, november VARCHAR, game VARCHAR)
SELECT tie_no FROM table_name_28 WHERE home_team = "liverpool"
Liverpool as a home team as listed what in the Tie no column?
CREATE TABLE table_name_28 (tie_no VARCHAR, home_team VARCHAR)
SELECT aspect_ratio FROM table_1251878_3 WHERE width > 4096.0
What is the size when the frame is bigger than for 4096.0
CREATE TABLE table_1251878_3 (aspect_ratio VARCHAR, width INTEGER)
SELECT lead FROM table_name_40 WHERE season = "2009-10"
Which lead had a season of 2009-10?
CREATE TABLE table_name_40 (lead VARCHAR, season VARCHAR)