question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many clubs had 29 points?
CREATE TABLE table_18018248_2 (club VARCHAR, points VARCHAR)
SELECT COUNT(club) FROM table_18018248_2 WHERE points = 29
What role did John Wayne play in The Lawless Frontier, with Sheila Terry as the leading lady?
CREATE TABLE table_name_42 (role VARCHAR, leading_lady VARCHAR, title VARCHAR)
SELECT role FROM table_name_42 WHERE leading_lady = "sheila terry" AND title = "the lawless frontier"
What is the average year in which the finish position was 13th?
CREATE TABLE table_name_30 (year INTEGER, position VARCHAR)
SELECT AVG(year) FROM table_name_30 WHERE position = "13th"
What is the Total of Set 2 of 21:12?
CREATE TABLE table_name_58 (total VARCHAR, set_2 VARCHAR)
SELECT total FROM table_name_58 WHERE set_2 = "21:12"
Which years have a Name of ladbrooks school?
CREATE TABLE table_name_97 (years VARCHAR, name VARCHAR)
SELECT years FROM table_name_97 WHERE name = "ladbrooks school"
What was the place for the tango dance when the points was jury of 24 (7,5,6,6)?
CREATE TABLE table_name_29 (place VARCHAR, dance VARCHAR, points_jury VARCHAR)
SELECT place FROM table_name_29 WHERE dance = "tango" AND points_jury = "24 (7,5,6,6)"
What is the total number of averages with an interview of 8.75 when the evening gown number was bigger than 8.75?
CREATE TABLE table_name_62 (average INTEGER, interview VARCHAR, evening_gown VARCHAR)
SELECT SUM(average) FROM table_name_62 WHERE interview = 8.75 AND evening_gown > 8.75
Which Catalog was formated as a CD under the label Alfa Records?
CREATE TABLE table_name_9 (catalog VARCHAR, label VARCHAR, format VARCHAR)
SELECT catalog FROM table_name_9 WHERE label = "alfa records" AND format = "cd"
When there was a draw, what was the time?
CREATE TABLE table_name_43 (time VARCHAR, res VARCHAR)
SELECT time FROM table_name_43 WHERE res = "draw"
What company was Constructor when there were 16 laps and grid was 9?
CREATE TABLE table_name_47 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_47 WHERE laps = 16 AND grid = 9
What is the nationality of the player from round 7?
CREATE TABLE table_name_14 (nationality VARCHAR, round VARCHAR)
SELECT nationality FROM table_name_14 WHERE round = 7
In what Season were then less than 3 Races with less than 1 Win?
CREATE TABLE table_name_51 (season INTEGER, races VARCHAR, wins VARCHAR)
SELECT AVG(season) FROM table_name_51 WHERE races < 3 AND wins < 1
What is the name of the player with a To par of –4?
CREATE TABLE table_name_41 (player VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_41 WHERE to_par = "–4"
what is the diameter (km) of longitude 170.1e
CREATE TABLE table_16799784_7 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT diameter__km_ FROM table_16799784_7 WHERE longitude = "170.1E"
Which team plays home at Princes Park?
CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_45 WHERE venue = "princes park"
Which tournament had a 2R categorization in 2009 and SF in 2010?
CREATE TABLE table_name_83 (tournament VARCHAR)
SELECT tournament FROM table_name_83 WHERE 2009 = "2r" AND 2010 = "sf"
Who is the player with a pick less than 234 and a quarterback position?
CREATE TABLE table_name_55 (player VARCHAR, pick VARCHAR, position VARCHAR)
SELECT player FROM table_name_55 WHERE pick < 234 AND position = "quarterback"
Mike Crowley plays defense for league?
CREATE TABLE table_name_86 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_86 WHERE position = "defense" AND player = "mike crowley"
Which template type code is used by most number of documents?
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)
SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1
What was the game when the record was 31-15?
CREATE TABLE table_name_80 (game VARCHAR, record VARCHAR)
SELECT game FROM table_name_80 WHERE record = "31-15"
What is Bandwidth Included, when Internet Plan is "8mb"?
CREATE TABLE table_name_85 (bandwidth_included VARCHAR, internet_plan VARCHAR)
SELECT bandwidth_included FROM table_name_85 WHERE internet_plan = "8mb"
How many points did the ESC Riverrats Geretsried, who lost more than 3 games, score?
CREATE TABLE table_name_17 (points INTEGER, lost VARCHAR, name VARCHAR)
SELECT SUM(points) FROM table_name_17 WHERE lost > 3 AND name = "esc riverrats geretsried"
Which is the earliest year that had mixed doubles for wang wei lu ying?
CREATE TABLE table_name_40 (year INTEGER, mixed_doubles VARCHAR)
SELECT MIN(year) FROM table_name_40 WHERE mixed_doubles = "wang wei lu ying"
What is the traditional Chinese name for the record titled Sunrise?
CREATE TABLE table_name_36 (chinese__traditional_ VARCHAR, english_title VARCHAR)
SELECT chinese__traditional_ FROM table_name_36 WHERE english_title = "sunrise"
Class of 500cc, and a Wins smaller than 0 had what average year?
CREATE TABLE table_name_75 (year INTEGER, class VARCHAR, wins VARCHAR)
SELECT AVG(year) FROM table_name_75 WHERE class = "500cc" AND wins < 0
What is the M1A1 when the M60A3 was T (Short Tons)?
CREATE TABLE table_name_8 (m1a1_abrams VARCHAR, m60a3_patton VARCHAR)
SELECT m1a1_abrams FROM table_name_8 WHERE m60a3_patton = "t (short tons)"
Find the total amount of products ordered before 2018-03-17 07:13:53.
CREATE TABLE customer_orders (order_id VARCHAR, order_date INTEGER); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR)
SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_date < "2018-03-17 07:13:53"
What is the total number of Against that were played in the H Venue on 26 february 1949?
CREATE TABLE table_name_59 (against VARCHAR, venue VARCHAR, date VARCHAR)
SELECT COUNT(against) FROM table_name_59 WHERE venue = "h" AND date = "26 february 1949"
Where is the Hometown that the person who attended Camarillo High School is from?
CREATE TABLE table_name_40 (hometown VARCHAR, school VARCHAR)
SELECT hometown FROM table_name_40 WHERE school = "camarillo high school"
How many districts have W. Arthur Winstead as elected official?
CREATE TABLE table_1341930_24 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1341930_24 WHERE incumbent = "W. Arthur Winstead"
What genre was Music in the Air?
CREATE TABLE table_name_7 (genre VARCHAR, title VARCHAR)
SELECT genre FROM table_name_7 WHERE title = "music in the air"
Name the viewers for production code being 3x6706
CREATE TABLE table_22347090_5 (us_viewers__million_ VARCHAR, production_code VARCHAR)
SELECT us_viewers__million_ FROM table_22347090_5 WHERE production_code = "3X6706"
What is the Malayalam word for punarvasu ಪುನರ್ವಸು in Kannada?
CREATE TABLE table_1408397_3 (malayalam_മലയാളം VARCHAR, kannada_ಕನ್ನಡ VARCHAR)
SELECT malayalam_മലയാളം FROM table_1408397_3 WHERE kannada_ಕನ್ನಡ = "Punarvasu ಪುನರ್ವಸು"
Which Date has a Visitor of edmonton?
CREATE TABLE table_name_24 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_24 WHERE visitor = "edmonton"
When was the score 1–0, and the result 4–0?
CREATE TABLE table_name_67 (date VARCHAR, score VARCHAR, result VARCHAR)
SELECT date FROM table_name_67 WHERE score = "1–0" AND result = "4–0"
What is the rank where the area is Los Angeles?
CREATE TABLE table_1131183_2 (rank___wjc__ VARCHAR, metro_area VARCHAR)
SELECT rank___wjc__ FROM table_1131183_2 WHERE metro_area = "Los Angeles"
What is the order number that has top 20 (10 women) as the week number?
CREATE TABLE table_name_16 (order__number VARCHAR, week__number VARCHAR)
SELECT order__number FROM table_name_16 WHERE week__number = "top 20 (10 women)"
What is the method of the match after round 1 in the k-1 andy memorial 2001 japan gp final?
CREATE TABLE table_name_82 (method VARCHAR, round VARCHAR, event VARCHAR)
SELECT method FROM table_name_82 WHERE round > 1 AND event = "k-1 andy memorial 2001 japan gp final"
What is Stopping Pattern, when Platform is 4?
CREATE TABLE table_name_92 (stopping_pattern VARCHAR, platform VARCHAR)
SELECT stopping_pattern FROM table_name_92 WHERE platform = "4"
What is Points, when Series is Queensland Formula Ford Championship, and when Position is 1st?
CREATE TABLE table_name_40 (points VARCHAR, series VARCHAR, position VARCHAR)
SELECT points FROM table_name_40 WHERE series = "queensland formula ford championship" AND position = "1st"
What is the Player with a Pick that is 6?
CREATE TABLE table_name_15 (player VARCHAR, pick VARCHAR)
SELECT player FROM table_name_15 WHERE pick = 6
Tell me the winning driver for pau grand prix
CREATE TABLE table_name_1 (winning_driver VARCHAR, name VARCHAR)
SELECT winning_driver FROM table_name_1 WHERE name = "pau grand prix"
What is the first year where the assassination attempt was at Martyrs' Mausoleum, Rangoon, Burma?
CREATE TABLE table_251272_4 (year INTEGER, location VARCHAR)
SELECT MIN(year) FROM table_251272_4 WHERE location = "Martyrs' Mausoleum, Rangoon, Burma"
How many teams got pick number 130?
CREATE TABLE table_2679061_7 (college_junior_club_team VARCHAR, pick__number VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2679061_7 WHERE pick__number = 130
Show countries where a singer above age 40 and a singer below 30 are from.
CREATE TABLE singer (country VARCHAR, age INTEGER)
SELECT country FROM singer WHERE age > 40 INTERSECT SELECT country FROM singer WHERE age < 30
What is the original title for the winner and nominees 'Secrets & Lies'?
CREATE TABLE table_name_25 (original_title VARCHAR, winner_and_nominees VARCHAR)
SELECT original_title FROM table_name_25 WHERE winner_and_nominees = "secrets & lies"
What is the title of the episode written by daniel sackheim?
CREATE TABLE table_2618061_1 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_2618061_1 WHERE directed_by = "Daniel Sackheim"
What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?
CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)
SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000
What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event?
CREATE TABLE table_name_98 (year INTEGER, venue VARCHAR, event VARCHAR)
SELECT MIN(year) FROM table_name_98 WHERE venue = "berlin, germany" AND event = "100 m hurdles"
Which team is ranked 3rd in 2008?
CREATE TABLE table_name_66 (team VARCHAR, rank VARCHAR, year VARCHAR)
SELECT team FROM table_name_66 WHERE rank = "3rd" AND year = 2008
How many viewers saw the episode written by kevin biegel & bill lawrence?
CREATE TABLE table_27987623_1 (us_viewers__in_million_ VARCHAR, written_by VARCHAR)
SELECT us_viewers__in_million_ FROM table_27987623_1 WHERE written_by = "Kevin Biegel & Bill Lawrence"
What is the score of the event with a competition type of friendly and a result of 4-5?
CREATE TABLE table_name_94 (score VARCHAR, competition VARCHAR, result VARCHAR)
SELECT score FROM table_name_94 WHERE competition = "friendly" AND result = "4-5"
Name the date for l 28–15
CREATE TABLE table_24138601_2 (date VARCHAR, final_score VARCHAR)
SELECT date FROM table_24138601_2 WHERE final_score = "L 28–15"
What is the score with lost as the result?
CREATE TABLE table_name_80 (score VARCHAR, result VARCHAR)
SELECT score FROM table_name_80 WHERE result = "lost"
What is the regulated retail price for the tariff code ff0 prs?
CREATE TABLE table_10408617_5 (bts_retail_price__regulated_ VARCHAR, tariff_code VARCHAR)
SELECT bts_retail_price__regulated_ FROM table_10408617_5 WHERE tariff_code = "ff0 PRS"
When the school picking is utah state for the position of linebacker, what's the sum of those rounds?
CREATE TABLE table_name_51 (round INTEGER, position VARCHAR, school VARCHAR)
SELECT SUM(round) FROM table_name_51 WHERE position = "linebacker" AND school = "utah state"
What is the highest number of maidens when the bowling best was 1/13?
CREATE TABLE table_15893020_2 (maidens INTEGER, best_bowling VARCHAR)
SELECT MAX(maidens) FROM table_15893020_2 WHERE best_bowling = "1/13"
What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv?
CREATE TABLE table_name_63 (country_name VARCHAR, numeric_code VARCHAR, latin_3_letter_code VARCHAR)
SELECT country_name FROM table_name_63 WHERE numeric_code < 246 AND latin_3_letter_code = "slv"
How many time was the distance Abu Dhabi?
CREATE TABLE table_26894949_2 (sanya VARCHAR, distance VARCHAR)
SELECT COUNT(sanya) FROM table_26894949_2 WHERE distance = "abu_dhabi"
What team was the away team for the game with 916 in attendance?
CREATE TABLE table_name_45 (away VARCHAR, attendance VARCHAR)
SELECT away FROM table_name_45 WHERE attendance = 916
What make of car did Brian Vickers drive?
CREATE TABLE table_name_32 (make VARCHAR, driver VARCHAR)
SELECT make FROM table_name_32 WHERE driver = "brian vickers"
What was the score on June 12?
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_76 WHERE date = "june 12"
What is the greatest Wins with Losses larger than 1?
CREATE TABLE table_name_48 (wins INTEGER, losses INTEGER)
SELECT MAX(wins) FROM table_name_48 WHERE losses > 1
Who held the same position in 2014 that Garion Weller held in 2014?
CREATE TABLE table_name_82 (Id VARCHAR)
SELECT 2014 FROM table_name_82 WHERE 2012 = "garion weller"
How many peak positions were there on the weekly charts?
CREATE TABLE table_23180638_1 (peak_position VARCHAR, oricon_albums_chart VARCHAR)
SELECT COUNT(peak_position) FROM table_23180638_1 WHERE oricon_albums_chart = "Weekly Charts"
What is the score with a time at 18:00 and a score for set 3 of 13–25?
CREATE TABLE table_name_12 (score VARCHAR, time VARCHAR, set_3 VARCHAR)
SELECT score FROM table_name_12 WHERE time = "18:00" AND set_3 = "13–25"
What position(s) does the player drafted #34 play?
CREATE TABLE table_14650373_1 (position VARCHAR, pick__number VARCHAR)
SELECT position FROM table_14650373_1 WHERE pick__number = 34
How many previous years did Maebashi Ikuei high school have a total number of 1 participation?
CREATE TABLE table_2518850_4 (year_of_previous_participation VARCHAR, total_number_of_participation VARCHAR, high_school_name VARCHAR)
SELECT COUNT(year_of_previous_participation) FROM table_2518850_4 WHERE total_number_of_participation = 1 AND high_school_name = "Maebashi Ikuei"
What date was fitzroy the away team?
CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_65 WHERE away_team = "fitzroy"
What country were the athletes where ranked smaller than 5 with notes listed as fb?
CREATE TABLE table_name_67 (country VARCHAR, rank VARCHAR, notes VARCHAR)
SELECT country FROM table_name_67 WHERE rank < 5 AND notes = "fb"
Which party is Ettore Romoli from?
CREATE TABLE table_name_99 (party VARCHAR, mayor VARCHAR)
SELECT party FROM table_name_99 WHERE mayor = "ettore romoli"
what's the points with driver  rusty wallace
CREATE TABLE table_10160447_1 (points VARCHAR, driver VARCHAR)
SELECT points FROM table_10160447_1 WHERE driver = "Rusty Wallace"
How many professors who are from either Accounting or Biology department?
CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (dept_code VARCHAR)
SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'
Find the highest rank of losers in all matches.
CREATE TABLE matches (loser_rank INTEGER)
SELECT MIN(loser_rank) FROM matches
When carlton was the home team what was the lowest crowd turnout?
CREATE TABLE table_name_72 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_72 WHERE home_team = "carlton"
Who are the reporters for the year of 1984?
CREATE TABLE table_22514845_4 (reporters VARCHAR, year VARCHAR)
SELECT reporters FROM table_22514845_4 WHERE year = 1984
What was the date of appointment for the manager of the 23rd team?
CREATE TABLE table_18795125_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)
SELECT date_of_appointment FROM table_18795125_6 WHERE position_in_table = "23rd"
Name the driver/passenger for 30
CREATE TABLE table_17176509_4 (driver___passenger VARCHAR, position VARCHAR)
SELECT COUNT(driver___passenger) FROM table_17176509_4 WHERE position = 30
Which Venue resulted in AUS by 229 runs?
CREATE TABLE table_name_80 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_80 WHERE result = "aus by 229 runs"
What is the to par of the player from Argentina with a t8 place?
CREATE TABLE table_name_5 (to_par VARCHAR, place VARCHAR, country VARCHAR)
SELECT to_par FROM table_name_5 WHERE place = "t8" AND country = "argentina"
Which Record has a Score of w 107–102 (ot)?
CREATE TABLE table_name_3 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_3 WHERE score = "w 107–102 (ot)"
With events less than 0, what is the fewest Top-5?
CREATE TABLE table_name_12 (top_5 INTEGER, events INTEGER)
SELECT MIN(top_5) FROM table_name_12 WHERE events < 0
What kind of League has a Venue of billesley common?
CREATE TABLE table_name_48 (league VARCHAR, venue VARCHAR)
SELECT league FROM table_name_48 WHERE venue = "billesley common"
Name the league for strikeouts being 451
CREATE TABLE table_242813_2 (league VARCHAR, strikeouts VARCHAR)
SELECT league FROM table_242813_2 WHERE strikeouts = 451
Where did Obama get 37.1%?
CREATE TABLE table_20453681_1 (county VARCHAR, obama_percentage VARCHAR)
SELECT county FROM table_20453681_1 WHERE obama_percentage = "37.1%"
What was the home team with a 4-6-0 record?
CREATE TABLE table_name_13 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_13 WHERE record = "4-6-0"
What is the date when Aston Villa is the away team?
CREATE TABLE table_name_98 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_98 WHERE away_team = "aston villa"
Name the score for game 5
CREATE TABLE table_27539272_4 (score VARCHAR, game VARCHAR)
SELECT score FROM table_27539272_4 WHERE game = 5
Which Played has a Goal Difference larger than 24?
CREATE TABLE table_name_35 (played INTEGER, goal_difference INTEGER)
SELECT AVG(played) FROM table_name_35 WHERE goal_difference > 24
Which Precincts has a County of passaic?
CREATE TABLE table_name_86 (precincts VARCHAR, county VARCHAR)
SELECT precincts FROM table_name_86 WHERE county = "passaic"
What is the Rank that has a Season of 1995/96?
CREATE TABLE table_name_77 (rank VARCHAR, season VARCHAR)
SELECT rank FROM table_name_77 WHERE season = "1995/96"
What nation had a ship named Roma?
CREATE TABLE table_name_24 (nat VARCHAR, name VARCHAR)
SELECT nat FROM table_name_24 WHERE name = "roma"
Which Career Games has a Date and Opponent of 12/15/92 vs. uw–milwaukee?
CREATE TABLE table_name_58 (career_games VARCHAR, date_and_opponent VARCHAR)
SELECT career_games FROM table_name_58 WHERE date_and_opponent = "12/15/92 vs. uw–milwaukee"
What is the singular if the plural is xweer(a)du?
CREATE TABLE table_name_19 (singular VARCHAR, plural VARCHAR)
SELECT singular FROM table_name_19 WHERE plural = "xweer(a)du"
What is the new classification for La Mirada, California?
CREATE TABLE table_name_69 (new_classification VARCHAR, location VARCHAR)
SELECT new_classification FROM table_name_69 WHERE location = "la mirada, california"
What was the average when the strike rate is 75.78?
CREATE TABLE table_26041144_10 (average VARCHAR, strike_rate VARCHAR)
SELECT average FROM table_26041144_10 WHERE strike_rate = "75.78"
What is the number of Year with a Result of champions, and Matches larger than 5?
CREATE TABLE table_name_34 (year VARCHAR, result VARCHAR, matches VARCHAR)
SELECT COUNT(year) FROM table_name_34 WHERE result = "champions" AND matches > 5
Name the team for season 2010
CREATE TABLE table_24466191_1 (team VARCHAR, season VARCHAR)
SELECT team FROM table_24466191_1 WHERE season = 2010
Who scored 18-19?
CREATE TABLE table_name_69 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_69 WHERE score = "18-19"
Which date has time (GMT) of 23:34?
CREATE TABLE table_name_45 (date VARCHAR, time___gmt__ VARCHAR)
SELECT date FROM table_name_45 WHERE time___gmt__ = "23:34"