answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT first_appearance FROM table_name_60 WHERE year = 1966 AND name = "x-2-y"
What first appeared in 1966 in the comic X-2-Y?
CREATE TABLE table_name_60 (first_appearance VARCHAR, year VARCHAR, name VARCHAR)
SELECT location_attendance FROM table_name_1 WHERE date = "december 14"
Where is the location of attendance for the Date of december 14?
CREATE TABLE table_name_1 (location_attendance VARCHAR, date VARCHAR)
SELECT position FROM table_274117_5 WHERE player = "Bob Lilly"
What position was Bob Lilly?
CREATE TABLE table_274117_5 (position VARCHAR, player VARCHAR)
SELECT SUM(total) FROM table_name_46 WHERE rank = "2"
What is the sum of Total when rank is 2?
CREATE TABLE table_name_46 (total INTEGER, rank VARCHAR)
SELECT total_votes FROM table_name_27 WHERE members = "holly scouler"
What were Holly Scouler's total votes?
CREATE TABLE table_name_27 (total_votes VARCHAR, members VARCHAR)
SELECT document_type_code FROM Ref_document_types WHERE document_type_name = "Paper"
What is the document type code for document type "Paper"?
CREATE TABLE Ref_document_types (document_type_code VARCHAR, document_type_name VARCHAR)
SELECT callback_venue FROM table_27455867_1 WHERE episode_air_date = "January 20, 2011"
What was the callback venue for the audition city in the episode aired on January 20, 2011?
CREATE TABLE table_27455867_1 (callback_venue VARCHAR, episode_air_date VARCHAR)
SELECT COUNT(match) FROM table_name_20 WHERE result = "0:5 (0:3)"
What is the match number that had a result of 0:5 (0:3)?
CREATE TABLE table_name_20 (match VARCHAR, result VARCHAR)
SELECT MIN(opponents) FROM table_16028459_2 WHERE opponent = "Baltimore Colts"
What is the minimum number of points given up to the Baltimore Colts
CREATE TABLE table_16028459_2 (opponents INTEGER, opponent VARCHAR)
SELECT competition FROM table_name_45 WHERE venue = "estadio alfonso lastras, san luis potosí, mexico" AND goal > 15
Which Competition has a Venue of estadio alfonso lastras, san luis potosí, mexico, and a Goal larger than 15?
CREATE TABLE table_name_45 (competition VARCHAR, venue VARCHAR, goal VARCHAR)
SELECT SUM(played) FROM table_name_12 WHERE team = "vasco da gama" AND against < 12
What is the sum of games Played by the Team Vasco Da Gama, with fewer than 12 Against?
CREATE TABLE table_name_12 (played INTEGER, team VARCHAR, against VARCHAR)
SELECT name FROM Companies WHERE Headquarters <> 'USA'
What are the names of companies whose headquarters are not "USA"?
CREATE TABLE Companies (name VARCHAR, Headquarters VARCHAR)
SELECT opponent FROM table_name_64 WHERE score = "2–6"
Which Opponent has a Score of 2–6?
CREATE TABLE table_name_64 (opponent VARCHAR, score VARCHAR)
SELECT graded_hammer__non_gh3_ FROM table_name_44 WHERE model = "cvp501"
Which Graded Hammer (Non GH3) has a Model of cvp501?
CREATE TABLE table_name_44 (graded_hammer__non_gh3_ VARCHAR, model VARCHAR)
SELECT surface FROM table_23258574_2 WHERE championship = "Wimbledon" AND year = 1974
What was the surface during wimbledon in 1974?
CREATE TABLE table_23258574_2 (surface VARCHAR, championship VARCHAR, year VARCHAR)
SELECT club FROM table_name_1 WHERE round = "group stage round 1 and 5"
Which club had round of group stage round 1 and 5?
CREATE TABLE table_name_1 (club VARCHAR, round VARCHAR)
SELECT MAX(drawn) FROM table_17357929_1 WHERE goals_for = 72
How many games drawn for the team that had 72 goals for?
CREATE TABLE table_17357929_1 (drawn INTEGER, goals_for VARCHAR)
SELECT SUM(total) FROM table_name_26 WHERE bronze = 7 AND gold > 18
What is the total number of medals won by nations that had 7 bronze medals and more than 18 gold medals?
CREATE TABLE table_name_26 (total INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code ORDER BY COUNT(*) LIMIT 1
Which school has the smallest amount of professors?
CREATE TABLE department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE professor (dept_code VARCHAR)
SELECT COUNT(year) FROM table_name_42 WHERE location = "forest hills" AND runner_up = "john mcenroe" AND score = "6–3, 6–3"
How many years had a location at Forest Hills and a score of 6–3, 6–3 for John McEnroe?
CREATE TABLE table_name_42 (year VARCHAR, score VARCHAR, location VARCHAR, runner_up VARCHAR)
SELECT MIN(span_of_years_led) FROM table_23408094_14 WHERE tournament_at_which_lead_began = "Australian Championships"
Of the players whose lead began at the australian championships, what was the shortest span of years led?
CREATE TABLE table_23408094_14 (span_of_years_led INTEGER, tournament_at_which_lead_began VARCHAR)
SELECT SUM(draws) FROM table_name_15 WHERE wins < 3 AND byes > 2
Can you tell me the sum of Draws that had the Wins smaller than 3, and the Byes larger than 2?
CREATE TABLE table_name_15 (draws INTEGER, wins VARCHAR, byes VARCHAR)
SELECT SUM(league_goals) FROM table_name_51 WHERE fa_cup_goals > 0
what is the sum of league goals when the fa cup goals is more than 0?
CREATE TABLE table_name_51 (league_goals INTEGER, fa_cup_goals INTEGER)
SELECT COUNT(population__2011_) FROM table_2562572_53 WHERE cyrillic_name = "Сурдук"
What was the population of сурдук in 2011?
CREATE TABLE table_2562572_53 (population__2011_ VARCHAR, cyrillic_name VARCHAR)
SELECT AVG(rank) FROM table_name_79 WHERE status = "proposed" AND floors = 80 AND name = "celestia spaces 4"
What rank has a status of proposed, with 80 floors for Celestia Spaces 4?
CREATE TABLE table_name_79 (rank INTEGER, name VARCHAR, status VARCHAR, floors VARCHAR)
SELECT away_team AS score FROM table_name_6 WHERE home_team = "geelong"
When the home team was geelong, what did the away team score?
CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR)
SELECT round FROM table_name_65 WHERE college = "villanova"
College of villanova has what round?
CREATE TABLE table_name_65 (round VARCHAR, college VARCHAR)
SELECT COUNT(placings) FROM table_name_1 WHERE points < 330.84 AND name = "silvo svajger"
How many Placings have Points smaller than 330.84, and a Name of silvo svajger?
CREATE TABLE table_name_1 (placings VARCHAR, points VARCHAR, name VARCHAR)
SELECT bonus_points FROM table_name_38 WHERE club = "stade français"
What number of bonus points did Stade Français?
CREATE TABLE table_name_38 (bonus_points VARCHAR, club VARCHAR)
SELECT nationality FROM table_name_55 WHERE nhl_team = "montreal canadiens" AND pick__number = "25"
Which nationality do the Montreal Canadiens belong to with a pick# of 25?
CREATE TABLE table_name_55 (nationality VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)
SELECT COUNT(score) FROM table_13619053_4 WHERE record = "1-3"
How many games did the team play when they were 1-3?
CREATE TABLE table_13619053_4 (score VARCHAR, record VARCHAR)
SELECT duration FROM table_name_93 WHERE character = "bartha zsolt"
What is the duration of the character Bartha Zsolt?
CREATE TABLE table_name_93 (duration VARCHAR, character VARCHAR)
SELECT gloss FROM table_name_22 WHERE virtue = "diligence"
What is the Diligence Virtues Gloss?
CREATE TABLE table_name_22 (gloss VARCHAR, virtue VARCHAR)
SELECT AVG(points) FROM table_name_31 WHERE played > 20
What points average has a played greater than 20?
CREATE TABLE table_name_31 (points INTEGER, played INTEGER)
SELECT COUNT(position) FROM table_10015132_9 WHERE years_in_toronto = "2006-07"
What are the total number of positions on the Toronto team in 2006-07?
CREATE TABLE table_10015132_9 (position VARCHAR, years_in_toronto VARCHAR)
SELECT no FROM table_29085880_1 WHERE us_viewers__million_ = "1.312"
Which episode number saw 1.312 million U.S. Wviewers?
CREATE TABLE table_29085880_1 (no VARCHAR, us_viewers__million_ VARCHAR)
SELECT score_in_final FROM table_2362606_1 WHERE year = 1988
What was the score in the final in 1988?
CREATE TABLE table_2362606_1 (score_in_final VARCHAR, year VARCHAR)
SELECT transfer_window FROM table_name_8 WHERE name = "larsson"
What is the transfer window for larsson?
CREATE TABLE table_name_8 (transfer_window VARCHAR, name VARCHAR)
SELECT country FROM table_name_34 WHERE engine_make_capacity = "čz 171cc"
In what country was the car with the čz 171cc engine?
CREATE TABLE table_name_34 (country VARCHAR, engine_make_capacity VARCHAR)
SELECT result FROM table_name_9 WHERE date = "november 7, 1999"
What was the result of the game on November 7, 1999?
CREATE TABLE table_name_9 (result VARCHAR, date VARCHAR)
SELECT report FROM table_name_48 WHERE home_team = "geelong"
what report was in geelong
CREATE TABLE table_name_48 (report VARCHAR, home_team VARCHAR)
SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID WHERE T2.Num_of_shops > 50
Show the names of phones that are on market with number of shops greater than 50.
CREATE TABLE market (Market_ID VARCHAR, Num_of_shops INTEGER); CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Market_ID VARCHAR, Phone_ID VARCHAR)
SELECT production_cost FROM table_name_63 WHERE producer = "raintree pictures"
What is the production cost when the producer is raintree pictures?
CREATE TABLE table_name_63 (production_cost VARCHAR, producer VARCHAR)
SELECT manager FROM table_name_14 WHERE team = "manchester city"
Which manager has Manchester City as the team?
CREATE TABLE table_name_14 (manager VARCHAR, team VARCHAR)
SELECT literate_persons___percentage_ FROM table_14598_9 WHERE females___percentage_ = "73.17"
What is the percentage of all the literate people where females are 73.17?
CREATE TABLE table_14598_9 (literate_persons___percentage_ VARCHAR, females___percentage_ VARCHAR)
SELECT rnd FROM table_12146068_2 WHERE gt1_winning_team = "Doc Bundy Andy Wallace"
What is the rnd for gt1 winning team for doc bundy andy wallace?
CREATE TABLE table_12146068_2 (rnd VARCHAR, gt1_winning_team VARCHAR)
SELECT road_numbers FROM table_name_33 WHERE build_year = "1943" AND railroad__quantity_ = "clinchfield railroad (12 new, 6 secondhand)"
what is the road numbers when the build year is 1943, the railroad (quantity) is clinchfield railroad (12 new, 6 secondhand)?
CREATE TABLE table_name_33 (road_numbers VARCHAR, build_year VARCHAR, railroad__quantity_ VARCHAR)
SELECT COUNT(texture___gt__s_) FROM table_26860595_2 WHERE tdp__watts__gpu_only = "18"
How many texture (gt/s) the card has if the tdp (watts) GPU only is 18?
CREATE TABLE table_26860595_2 (texture___gt__s_ VARCHAR, tdp__watts__gpu_only VARCHAR)
SELECT MIN(attendance) FROM table_name_53 WHERE record = "52-37"
Name the least attendance for 52-37 record
CREATE TABLE table_name_53 (attendance INTEGER, record VARCHAR)
SELECT pregame_analysts FROM table_17516922_1 WHERE sideline_reporters = "Rob Stone and Monica Gonzalez" AND network = "TSN2"
What pregame analyst(s) had rob stone and monica gonzalez as sideline reporters and were on tsn2?
CREATE TABLE table_17516922_1 (pregame_analysts VARCHAR, sideline_reporters VARCHAR, network VARCHAR)
SELECT overall FROM table_name_65 WHERE round < 2
Which Overall has a Round smaller than 2?
CREATE TABLE table_name_65 (overall VARCHAR, round INTEGER)
SELECT away_team FROM table_name_67 WHERE home_team = "footscray"
Who is the away team that played home team Footscray?
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
SELECT country FROM table_2764267_2 WHERE currency = "Yen"
Name the country that has the yen
CREATE TABLE table_2764267_2 (country VARCHAR, currency VARCHAR)
SELECT drawn FROM table_13564637_4 WHERE club = "Tylorstown RFC"
How many total games drawn for club tylorstown rfc?
CREATE TABLE table_13564637_4 (drawn VARCHAR, club VARCHAR)
SELECT COUNT(verb_meaning) FROM table_1745843_7 WHERE part_4 = "gegeven"
How many different meanings does the verb with part 4 gegeven have?
CREATE TABLE table_1745843_7 (verb_meaning VARCHAR, part_4 VARCHAR)
SELECT SUM(year) FROM table_name_40 WHERE weight__kg_ = "857"
What is the sum total of all the years with a bell that weighed 857 kilograms?
CREATE TABLE table_name_40 (year INTEGER, weight__kg_ VARCHAR)
SELECT mls_cup_runner_up FROM table_11148572_1 WHERE season = 2000
Which shield winner has the mls cup runner up and the season is 2000?
CREATE TABLE table_11148572_1 (mls_cup_runner_up VARCHAR, season VARCHAR)
SELECT AVG(year) FROM table_name_8 WHERE runners_up = "australia" AND venue = "victoria golf club"
What is the average Year when Australia was the runner-up at victoria golf club?
CREATE TABLE table_name_8 (year INTEGER, runners_up VARCHAR, venue VARCHAR)
SELECT males FROM table_name_22 WHERE language = "polish"
What males speak Polish?
CREATE TABLE table_name_22 (males VARCHAR, language VARCHAR)
SELECT country FROM table_26166836_1 WHERE road_race = "Xiamen International Marathon"
In which country was the xiamen international marathon?
CREATE TABLE table_26166836_1 (country VARCHAR, road_race VARCHAR)
SELECT poles FROM table_name_57 WHERE racing_team = "status grand prix"
How many poles does status grand prix have?
CREATE TABLE table_name_57 (poles VARCHAR, racing_team VARCHAR)
SELECT transcription FROM table_name_11 WHERE english_name = "march"
What is the transcription for the English word March?
CREATE TABLE table_name_11 (transcription VARCHAR, english_name VARCHAR)
SELECT written_by FROM table_20098479_1 WHERE no_in_series = 48
Who wrote episode number 48
CREATE TABLE table_20098479_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT COUNT(blackberry_os) FROM table_14260687_3 WHERE other = "0.1" AND quarter = "2012 Q2"
During the quarter of 2012 Q2, how many millions of Blackberry OS phones where shipped when 0.1 million others were shipped?
CREATE TABLE table_14260687_3 (blackberry_os VARCHAR, other VARCHAR, quarter VARCHAR)
SELECT date_made FROM table_name_99 WHERE fleet_numbers = "4"
What is the date made that has an associated fleet number of 4?
CREATE TABLE table_name_99 (date_made VARCHAR, fleet_numbers VARCHAR)
SELECT COUNT(date) FROM table_12206918_2 WHERE opponent = "Pernell Whitaker"
How many times was pernell whitaker an opponent?
CREATE TABLE table_12206918_2 (date VARCHAR, opponent VARCHAR)
SELECT COUNT(year_of_issue) FROM table_name_52 WHERE issue_price = "$19.95"
How many years was the issue price $19.95?
CREATE TABLE table_name_52 (year_of_issue VARCHAR, issue_price VARCHAR)
SELECT try_bonus FROM table_name_83 WHERE drawn = "0" AND points_for = "427"
What try bonus drew 0 and scored 427 points for?
CREATE TABLE table_name_83 (try_bonus VARCHAR, drawn VARCHAR, points_for VARCHAR)
SELECT sunday_surya__the_sun_ FROM table_name_29 WHERE monday_soma__the_moon_ = "सोमवार somavār" AND tuesday_mangala__mars_ = "मंगलवार mangalavār"
What is the result on Sunday that's सोमवार somavār on Monday and मंगलवार mangalavār on Tuesday?
CREATE TABLE table_name_29 (sunday_surya__the_sun_ VARCHAR, monday_soma__the_moon_ VARCHAR, tuesday_mangala__mars_ VARCHAR)
SELECT feathered__fxx_ FROM table_name_37 WHERE duration = "11 min, 34 sec"
When the duration was 11 min, 34 sec, what was the feathered (Fxx)?
CREATE TABLE table_name_37 (feathered__fxx_ VARCHAR, duration VARCHAR)
SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 8
What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?
CREATE TABLE table_name_68 (lane INTEGER, time VARCHAR, rank VARCHAR)
SELECT 2003 FROM table_name_99 WHERE 2013 = "1r" AND 2007 = "2r"
Which 2003 has a 2013 of 1r, and a 2007 of 2r?
CREATE TABLE table_name_99 (Id VARCHAR)
SELECT took_office FROM table_name_90 WHERE left_office = "2003"
The deputy that left office in 2003 took office in which year?
CREATE TABLE table_name_90 (took_office VARCHAR, left_office VARCHAR)
SELECT category FROM table_name_54 WHERE result = "nominated" AND nominee = "gene barry"
Which category was Gene Barry nominated in?
CREATE TABLE table_name_54 (category VARCHAR, result VARCHAR, nominee VARCHAR)
SELECT COUNT(pictorials) FROM table_1566848_7 WHERE centerfold_model = "Rebekka Armstrong"
Who were all the pictorials when the centerfold model was Rebekka Armstrong?
CREATE TABLE table_1566848_7 (pictorials VARCHAR, centerfold_model VARCHAR)
SELECT SUM(draws) FROM table_name_82 WHERE position < 17 AND wins < 11
Name the sum of draws when the position is less than 17 and wins is less than 11
CREATE TABLE table_name_82 (draws INTEGER, position VARCHAR, wins VARCHAR)
SELECT COUNT(matches) FROM table_16570286_2 WHERE player = "Arthur Morris"
How many numbers were recorded under matches with Arthur Morris?
CREATE TABLE table_16570286_2 (matches VARCHAR, player VARCHAR)
SELECT registrations FROM table_name_67 WHERE district = "cambridge"
What is the registration of the station at Cambridge?
CREATE TABLE table_name_67 (registrations VARCHAR, district VARCHAR)
SELECT to_par FROM table_name_55 WHERE player = "tommy bolt"
What is To Par, when Player is "Tommy Bolt"?
CREATE TABLE table_name_55 (to_par VARCHAR, player VARCHAR)
SELECT position FROM table_name_31 WHERE cfl_team = "saskatchewan roughriders (via toronto)"
What position did the player from the saskatchewan roughriders (via toronto) play?
CREATE TABLE table_name_31 (position VARCHAR, cfl_team VARCHAR)
SELECT player FROM table_name_72 WHERE score = 74 - 74 - 73 - 70 = 291
Which player has a score of 74-74-73-70=291?
CREATE TABLE table_name_72 (player VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_41 WHERE date = "october 17, 2004"
What was the attendance of the game on October 17, 2004?
CREATE TABLE table_name_41 (attendance VARCHAR, date VARCHAR)
SELECT tot_officers FROM table_23508196_2 WHERE tot_enlisted = 329640
How many tot officers were there on the date when the number of tot enlisted was 329640?
CREATE TABLE table_23508196_2 (tot_officers VARCHAR, tot_enlisted VARCHAR)
SELECT roomName, bedType FROM Rooms WHERE decor = "traditional"
List the type of bed and name of all traditional rooms.
CREATE TABLE Rooms (roomName VARCHAR, bedType VARCHAR, decor VARCHAR)
SELECT COUNT(bronze) FROM table_name_8 WHERE gold > 9
How many bronze medals for the nation with over 9 golds?
CREATE TABLE table_name_8 (bronze VARCHAR, gold INTEGER)
SELECT competition FROM table_name_64 WHERE score = "58-4"
Which competition ended with a score of 58-4?
CREATE TABLE table_name_64 (competition VARCHAR, score VARCHAR)
SELECT location FROM table_name_96 WHERE classification = "t12"
What is the location of Classification of T12?
CREATE TABLE table_name_96 (location VARCHAR, classification VARCHAR)
SELECT COUNT(to_par) FROM table_name_16 WHERE total = 163
What is the total to par with a total of 163?
CREATE TABLE table_name_16 (to_par VARCHAR, total VARCHAR)
SELECT home_team AS score FROM table_name_83 WHERE home_team = "richmond"
What was the score when Richmond payed as the home team?
CREATE TABLE table_name_83 (home_team VARCHAR)
SELECT MAX(pick__number) FROM table_name_81 WHERE round < 2
Which of the highest pick numbers had a round of less than 2?
CREATE TABLE table_name_81 (pick__number INTEGER, round INTEGER)
SELECT AVG(attendance) FROM table_name_71 WHERE venue = "candlestick park" AND date = "december 27"
What is the average Attendance, when Venue is "Candlestick Park", and when Date is "December 27"?
CREATE TABLE table_name_71 (attendance INTEGER, venue VARCHAR, date VARCHAR)
SELECT date FROM table_23286223_5 WHERE high_assists = "Deron Williams (13)"
When was the game in which Deron Williams (13) did the high assists played?
CREATE TABLE table_23286223_5 (date VARCHAR, high_assists VARCHAR)
SELECT date FROM table_name_93 WHERE venue = "a" AND result = "3–0"
On what date was the venue A with a result of 3–0?
CREATE TABLE table_name_93 (date VARCHAR, venue VARCHAR, result VARCHAR)
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Final_Table_Made
List the names of poker players ordered by the final tables made in ascending order.
CREATE TABLE poker_player (People_ID VARCHAR, Final_Table_Made VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT giro_di_lombardia FROM table_name_22 WHERE tour_of_flanders = "tom boonen ( bel )" AND paris_roubaix = "fabian cancellara ( sui )"
what kind of Giro di Lombardiahas a Tour of Flanders of tom boonen ( bel ), and a Paris–Roubaix of fabian cancellara ( sui )?
CREATE TABLE table_name_22 (giro_di_lombardia VARCHAR, tour_of_flanders VARCHAR, paris_roubaix VARCHAR)
SELECT score FROM table_11961582_4 WHERE date = "December 8"
What was the score of the game played on December 8?
CREATE TABLE table_11961582_4 (score VARCHAR, date VARCHAR)
SELECT district FROM table_1341663_10 WHERE result = "Re-elected" AND incumbent = "Richard Kelly"
what is the district where the result is re-elected and the incumbent is richard kelly?
CREATE TABLE table_1341663_10 (district VARCHAR, result VARCHAR, incumbent VARCHAR)
SELECT partner FROM table_name_91 WHERE date = "february 23, 1997"
What was the Partner on February 23, 1997?
CREATE TABLE table_name_91 (partner VARCHAR, date VARCHAR)
SELECT career_sr FROM table_name_21 WHERE tournament = "wimbledon"
What is the career SR for the tournament of wimbledon?
CREATE TABLE table_name_21 (career_sr VARCHAR, tournament VARCHAR)
SELECT laps FROM table_name_34 WHERE manufacturer = "honda" AND grid = "9"
What was the amount of laps for the vehicle manufactured by honda with a grid of 9?
CREATE TABLE table_name_34 (laps VARCHAR, manufacturer VARCHAR, grid VARCHAR)