answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT opponent FROM table_22862203_2 WHERE record = "11-2"
Who were the opponents when the record was 11-2?
CREATE TABLE table_22862203_2 (opponent VARCHAR, record VARCHAR)
SELECT home_team FROM table_name_27 WHERE away_team = "liverpool"
Which home team played in the matchup with an away team of Liverpool?
CREATE TABLE table_name_27 (home_team VARCHAR, away_team VARCHAR)
SELECT opponent FROM table_name_69 WHERE championship = "pétange"
What is Opponent, when Championship is Pétange?
CREATE TABLE table_name_69 (opponent VARCHAR, championship VARCHAR)
SELECT MIN(round) FROM table_name_46 WHERE method = "ko" AND date = "1958"
Which Round has a Method of ko, and a Date of 1958?
CREATE TABLE table_name_46 (round INTEGER, method VARCHAR, date VARCHAR)
SELECT partner FROM table_name_8 WHERE date = "may 2, 1993"
Name the partner for may 2, 1993
CREATE TABLE table_name_8 (partner VARCHAR, date VARCHAR)
SELECT player FROM table_name_4 WHERE round < 3 AND position = "running back"
What is the name of a running back in a round before round 3?
CREATE TABLE table_name_4 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT score FROM table_name_7 WHERE place = "t6" AND player = "ed furgol"
What score did Ed Furgol get to come in at T6?
CREATE TABLE table_name_7 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT home_team AS score FROM table_name_51 WHERE venue = "punt road oval"
What was the home team's score at the game held at Punt Road Oval?
CREATE TABLE table_name_51 (home_team VARCHAR, venue VARCHAR)
SELECT genre FROM table_name_93 WHERE station = "fly fm"
Which genre is the fly fm station?
CREATE TABLE table_name_93 (genre VARCHAR, station VARCHAR)
SELECT year_born FROM table_12962773_16 WHERE player = "Robert Skibniewski"
What year was Robert Skibniewski born?
CREATE TABLE table_12962773_16 (year_born VARCHAR, player VARCHAR)
SELECT service FROM table_name_65 WHERE age_at_first_step = "37y 8m 4d"
The astronaut who was 37y 8m 4d when making a first step on the moon was in which service?
CREATE TABLE table_name_65 (service VARCHAR, age_at_first_step VARCHAR)
SELECT birth_date FROM table_name_3 WHERE weight__kg_ = "100" AND world_rank = "2"
what is the birth date when the weight (kg) is 100 and the world rank is 2?
CREATE TABLE table_name_3 (birth_date VARCHAR, weight__kg_ VARCHAR, world_rank VARCHAR)
SELECT purse__$__ FROM table_11622896_1 WHERE location = "New York"
What is the purse value for the New York location?
CREATE TABLE table_11622896_1 (purse__$__ VARCHAR, location VARCHAR)
SELECT MAX(effic) FROM table_name_56 WHERE avg_g < 305.6 AND gp_gs = "13-13"
Which Effic is the highest one that has an Avg/G smaller than 305.6, and a GP-GS of 13-13?
CREATE TABLE table_name_56 (effic INTEGER, avg_g VARCHAR, gp_gs VARCHAR)
SELECT h___a FROM table_name_46 WHERE date = "5 august 1990"
What is the H/A on 5 August 1990?
CREATE TABLE table_name_46 (h___a VARCHAR, date VARCHAR)
SELECT attendance FROM table_299271_2 WHERE competition = "UEFA Champions League"
How many people attended the uefa champions league competition?
CREATE TABLE table_299271_2 (attendance VARCHAR, competition VARCHAR)
SELECT COUNT(no_result) FROM table_name_21 WHERE wins < 6
How many total No Results are recorded for less than 6 wins?
CREATE TABLE table_name_21 (no_result VARCHAR, wins INTEGER)
SELECT secretary FROM table_name_12 WHERE social_ao = "lieke de boer"
What Secretary has a Social AO of lieke de boer?
CREATE TABLE table_name_12 (secretary VARCHAR, social_ao VARCHAR)
SELECT MAX(points) FROM table_name_95 WHERE drawn = 1 AND played > 14
Which Points have Drawn of 1, and a Played larger than 14?
CREATE TABLE table_name_95 (points INTEGER, drawn VARCHAR, played VARCHAR)
SELECT record FROM table_name_40 WHERE home = "chicago"
what game was in chicago
CREATE TABLE table_name_40 (record VARCHAR, home VARCHAR)
SELECT winner FROM table_name_54 WHERE stage = "ss5"
What was the Winner of the SS5 Stage?
CREATE TABLE table_name_54 (winner VARCHAR, stage VARCHAR)
SELECT score FROM table_name_33 WHERE player = "tom gillis"
What is Tom Gillis' score?
CREATE TABLE table_name_33 (score VARCHAR, player VARCHAR)
SELECT visitor FROM table_name_6 WHERE date = "march 26"
Who visited on march 26?
CREATE TABLE table_name_6 (visitor VARCHAR, date VARCHAR)
SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121
Find the id of courses which are registered or attended by student whose id is 121?
CREATE TABLE student_course_attendance (course_id VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR)
SELECT uk_chart FROM table_name_84 WHERE artist = "scott fitzgerald"
Where did Scott Fitzgerald rank on the UK charts?
CREATE TABLE table_name_84 (uk_chart VARCHAR, artist VARCHAR)
SELECT rank FROM table_24765815_2 WHERE competition = "UEFA Euro 2012 qualifying Group A"
What is the ranking of the UEFA Euro 2012 qualifying Group A competition?
CREATE TABLE table_24765815_2 (rank VARCHAR, competition VARCHAR)
SELECT SUM(municipal_code) FROM table_name_35 WHERE party = "frp" AND area = 100
What's the Municipal code of the FRP Party with an area of 100?
CREATE TABLE table_name_35 (municipal_code INTEGER, party VARCHAR, area VARCHAR)
SELECT segment_d FROM table_name_33 WHERE episode > 16 AND segment_c = "laser eye surgery"
What segment d is associated with an episode number above 16 and a segment c of laser eye surgery?
CREATE TABLE table_name_33 (segment_d VARCHAR, episode VARCHAR, segment_c VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_94 WHERE position = "left wing" AND player = "yanick dupre"
In what League is Left Wing Yanick Dupre?
CREATE TABLE table_name_94 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR)
SELECT high_points FROM table_name_35 WHERE date = "january 20"
What is the High points with a Date that is january 20?
CREATE TABLE table_name_35 (high_points VARCHAR, date VARCHAR)
SELECT vehicle FROM table_name_8 WHERE class = "cm14"
Which vehicle had a class of CM14?
CREATE TABLE table_name_8 (vehicle VARCHAR, class VARCHAR)
SELECT player FROM table_name_6 WHERE debut_year > 1930 AND goals < 95 AND years_at_club = "1938" AND games = 6
WhichPlayer has a Debut year larger than 1930, and Goals smaller than 95, and Years at club of 1938, and Games of 6?
CREATE TABLE table_name_6 (player VARCHAR, games VARCHAR, years_at_club VARCHAR, debut_year VARCHAR, goals VARCHAR)
SELECT actor FROM table_11210576_4 WHERE character = "Judge Joseph Ratner"
what's the actor with character being judge joseph ratner
CREATE TABLE table_11210576_4 (actor VARCHAR, character VARCHAR)
SELECT MAX(profits__billion_) AS $_ FROM table_name_14 WHERE company = "walmart"
Name the highest Profits (billion $) which has a Company of walmart?
CREATE TABLE table_name_14 (profits__billion_ INTEGER, company VARCHAR)
SELECT SUM(avg_finish) FROM table_name_91 WHERE year = 2007 AND starts < 1
in 2007, what is the avg finish that had a start less than 1?
CREATE TABLE table_name_91 (avg_finish INTEGER, year VARCHAR, starts VARCHAR)
SELECT year_s__won FROM table_name_21 WHERE country = "united states" AND to_par = "+4"
What is the Year(s) won from the United States as country with a To Par of +4?
CREATE TABLE table_name_21 (year_s__won VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT record FROM table_17102076_10 WHERE date = "April 1"
Name the record for april 1
CREATE TABLE table_17102076_10 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_24 WHERE week = 2
For the game that was played on week 2, what is the record?
CREATE TABLE table_name_24 (record VARCHAR, week VARCHAR)
SELECT score FROM table_name_78 WHERE decision = "niittymaki" AND visitor = "calgary"
What was the score when Calgary was visiting team and Niittymaki had the decision?
CREATE TABLE table_name_78 (score VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT COUNT(result) FROM table_14951643_1 WHERE opponent = "Cleveland Browns"
how many result with opponent being cleveland browns
CREATE TABLE table_14951643_1 (result VARCHAR, opponent VARCHAR)
SELECT college FROM table_15582870_1 WHERE weight = 207
Which college did the player weighing 207 pounds attend?
CREATE TABLE table_15582870_1 (college VARCHAR, weight VARCHAR)
SELECT 2010 FROM table_name_20 WHERE code__iata_icao_ = "cra/lrcv"
What is the average in 2010 of the team with a code of (IATA/ICAO) or cra/lrcv?
CREATE TABLE table_name_20 (code__iata_icao_ VARCHAR)
SELECT release_date FROM table_20174050_1 WHERE target__number = "069 69"
When was the audio book with target number 069 69 released?
CREATE TABLE table_20174050_1 (release_date VARCHAR, target__number VARCHAR)
SELECT score FROM table_2127933_3 WHERE opponents = "Irving Wright Hazel Hotchkiss Wightman"
What were the scores for matches with irving wright hazel hotchkiss wightman?
CREATE TABLE table_2127933_3 (score VARCHAR, opponents VARCHAR)
SELECT COUNT(director) FROM table_17919342_1 WHERE original_title = "The Moises Padilla Story"
How many directors were there for the film with the original title of The Moises Padilla Story?
CREATE TABLE table_17919342_1 (director VARCHAR, original_title VARCHAR)
SELECT status FROM table_22481967_1 WHERE operator = "Toronto Transit Commission"
List the status for the operator Toronto transit commission.
CREATE TABLE table_22481967_1 (status VARCHAR, operator VARCHAR)
SELECT COUNT(clairon) FROM table_29728787_1 WHERE label = "Deutsche Grammophon"
When deutsche grammophon is the label how many clairons are there?
CREATE TABLE table_29728787_1 (clairon VARCHAR, label VARCHAR)
SELECT director FROM Movie WHERE title = 'Avatar'
Who is the director of movie Avatar?
CREATE TABLE Movie (director VARCHAR, title VARCHAR)
SELECT notes FROM table_name_31 WHERE shirt_printing = "pavv" AND year > 2007
What are the notes for the shirt that said Pavv after 2007?
CREATE TABLE table_name_31 (notes VARCHAR, shirt_printing VARCHAR, year VARCHAR)
SELECT date FROM table_name_96 WHERE score = "1-12"
What was the date of the Mariners game that had a score of 1-12?
CREATE TABLE table_name_96 (date VARCHAR, score VARCHAR)
SELECT years_for_rockets FROM table_name_80 WHERE no_s_ = "6"
Which years did the Rockets number 6 play?
CREATE TABLE table_name_80 (years_for_rockets VARCHAR, no_s_ VARCHAR)
SELECT height FROM table_name_11 WHERE player = "nerlens noel"
How tall is nerlens noel?
CREATE TABLE table_name_11 (height VARCHAR, player VARCHAR)
SELECT college FROM table_name_29 WHERE cfl_team = "calgary stampeders"
Which college did the Calgary Stampeders recruit from?
CREATE TABLE table_name_29 (college VARCHAR, cfl_team VARCHAR)
SELECT us_viewers__in_millions_ FROM table_23958944_6 WHERE production_number = 520
Name the viewers for 520
CREATE TABLE table_23958944_6 (us_viewers__in_millions_ VARCHAR, production_number VARCHAR)
SELECT high_assists FROM table_name_53 WHERE game = 72
Who has the highest assists in game 72?
CREATE TABLE table_name_53 (high_assists VARCHAR, game VARCHAR)
SELECT name FROM table_name_87 WHERE replacement = "michael skibbe"
What is the name of the manager who was replaced by michael skibbe?
CREATE TABLE table_name_87 (name VARCHAR, replacement VARCHAR)
SELECT score FROM table_name_55 WHERE opponent = "flavia pennetta"
What is the Score with an Opponent that is flavia pennetta?
CREATE TABLE table_name_55 (score VARCHAR, opponent VARCHAR)
SELECT T3.Party_Theme, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID
Show the themes of parties and the names of the party hosts.
CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_Theme VARCHAR, Party_ID VARCHAR)
SELECT AVG(bronze) FROM table_name_86 WHERE gold > 2 AND total < 14 AND silver = 4
What is the bronze with more than 2 gold and less than 14 total and 4 silver?
CREATE TABLE table_name_86 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT romaji_title FROM table_name_79 WHERE tv_station = "tbs" AND japanese_title = "around40〜注文の多いオンナたち〜"
What is the Romanji title for around40〜注文の多いオンナたち〜 on TBS?
CREATE TABLE table_name_79 (romaji_title VARCHAR, tv_station VARCHAR, japanese_title VARCHAR)
SELECT COUNT(regular_season) FROM table_2361788_1 WHERE year = 2007
Name the number of regular season for 2007
CREATE TABLE table_2361788_1 (regular_season VARCHAR, year VARCHAR)
SELECT COUNT(name) FROM table_24055352_1 WHERE hometown = "Los Angeles"
How many players came from Los Angeles?
CREATE TABLE table_24055352_1 (name VARCHAR, hometown VARCHAR)
SELECT total_apps FROM table_name_55 WHERE league_cup_apps = "0 (1)" AND position = "df"
What is the Total Apps when League Cup Apps is 0 (1), and position is df?
CREATE TABLE table_name_55 (total_apps VARCHAR, league_cup_apps VARCHAR, position VARCHAR)
SELECT college_junior_club_team FROM table_name_13 WHERE round = 6
Which College/Junior/Club team has a Round of 6?
CREATE TABLE table_name_13 (college_junior_club_team VARCHAR, round VARCHAR)
SELECT 2002 FROM table_27146868_1 WHERE 2009 = "54.0"
What is 2002 when 2009 is 54.0?
CREATE TABLE table_27146868_1 (Id VARCHAR)
SELECT champions FROM table_21632864_1 WHERE third_place = "Ehime Shimanami"
who got the first position when Ehime Shimanami got the third position?
CREATE TABLE table_21632864_1 (champions VARCHAR, third_place VARCHAR)
SELECT SUM(year) FROM table_name_22 WHERE opponent = "caroline garcia"
what year was the opponent caroline garcia?
CREATE TABLE table_name_22 (year INTEGER, opponent VARCHAR)
SELECT AVG(gold) FROM table_name_53 WHERE total > 32 AND silver > 128
What is the gold medal count for the country with a total greater than 32 and more than 128 silvers?
CREATE TABLE table_name_53 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT conditions_of_access FROM table_25965003_3 WHERE access_using_a_croatian_identity_card = "Yes" AND length_of_stay_permitted = "Freedom of movement"
What are the conditions of access where access using a Croatian identity card is yes and the length of stay permitted is freedom of movement?
CREATE TABLE table_25965003_3 (conditions_of_access VARCHAR, access_using_a_croatian_identity_card VARCHAR, length_of_stay_permitted VARCHAR)
SELECT races FROM table_name_51 WHERE top_5 > 2 AND avg_start = 6.5
What is the number of races having top 5s over 2 and average starts of 6.5?
CREATE TABLE table_name_51 (races VARCHAR, top_5 VARCHAR, avg_start VARCHAR)
SELECT cyrillic_code FROM table_name_68 WHERE latin_2_letter_code = "cu"
What is the Cyrillic code with a cu Latin 2-letter code?
CREATE TABLE table_name_68 (cyrillic_code VARCHAR, latin_2_letter_code VARCHAR)
SELECT set_4 FROM table_name_10 WHERE set_5 = "na" AND set_3 = "19-25"
What is Set 4, when Set 5 is NA, and when Set 3 is 19-25?
CREATE TABLE table_name_10 (set_4 VARCHAR, set_5 VARCHAR, set_3 VARCHAR)
SELECT production_code FROM table_2701851_5 WHERE written_by = "Kat Likkel & Denise Downer"
What is the production code for the episode written by Kat Likkel & Denise Downer?
CREATE TABLE table_2701851_5 (production_code VARCHAR, written_by VARCHAR)
SELECT AVG(chapter) FROM table_name_48 WHERE articles < 15
Can you tell me the average Chapter that has Articles smaller than 15?
CREATE TABLE table_name_48 (chapter INTEGER, articles INTEGER)
SELECT title FROM table_23399481_4 WHERE us_viewers__in_millions_ = "1.10"
What are the titles of the episodes which had 1.10 million U.S. viewers?
CREATE TABLE table_23399481_4 (title VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT years_in_toronto FROM table_name_33 WHERE player = "hakeem olajuwon"
What year(s) did Hakeem Olajuwon play Center for Toronto?
CREATE TABLE table_name_33 (years_in_toronto VARCHAR, player VARCHAR)
SELECT MAX(points) FROM table_name_18 WHERE wins = 0 AND rank > 6 AND manufacturer = "kawasaki" AND rider = "massimo broccoli"
Wins of 0, and a Rank larger than 6, and a Manufacturer of kawasaki, and a Rider of massimo broccoli involved what highest points?
CREATE TABLE table_name_18 (points INTEGER, rider VARCHAR, manufacturer VARCHAR, wins VARCHAR, rank VARCHAR)
SELECT 2007 FROM table_name_81 WHERE 2003 = "1r"
Which 2007 has a 2003 of 1r?
CREATE TABLE table_name_81 (Id VARCHAR)
SELECT loss FROM table_name_65 WHERE attendance = "15,298"
What was the loss details for the team with an attendance of 15,298?
CREATE TABLE table_name_65 (loss VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_90 WHERE round = "rd 26, 2001"
What was the score of the game that had a round of Rd 26, 2001?
CREATE TABLE table_name_90 (score VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_93 WHERE aces < 50 AND event = "2001 davis cup"
At the 2001 Davis Cup, what Opponent had less than 50 Aces?
CREATE TABLE table_name_93 (opponent VARCHAR, aces VARCHAR, event VARCHAR)
SELECT place FROM table_name_37 WHERE player = "claude harmon"
What is Claude Harmon's Place?
CREATE TABLE table_name_37 (place VARCHAR, player VARCHAR)
SELECT COUNT(round) FROM table_name_4 WHERE position = "wide receiver" AND overall > 145
What is the total round for a wide receiver with an overall of more than 145?
CREATE TABLE table_name_4 (round VARCHAR, position VARCHAR, overall VARCHAR)
SELECT AVG(starts) FROM table_name_34 WHERE wins > 0 AND position = "32nd"
What is the average start with wins larger than 0 and 32nd position?
CREATE TABLE table_name_34 (starts INTEGER, wins VARCHAR, position VARCHAR)
SELECT district FROM table_2668169_2 WHERE incumbent = "Luther Reily"
Which district does the incumbent Luther Reily represent?
CREATE TABLE table_2668169_2 (district VARCHAR, incumbent VARCHAR)
SELECT opponent FROM table_name_11 WHERE attendance = 526
What team did the Flames play against when 526 people attended the game?
CREATE TABLE table_name_11 (opponent VARCHAR, attendance VARCHAR)
SELECT 2007 AS _08_season FROM table_name_33 WHERE city = "ferrara"
What was the result of the 2007-08 season for the city of Ferrara?
CREATE TABLE table_name_33 (city VARCHAR)
SELECT week_14_nov_24 FROM table_name_44 WHERE week_11_nov_3 = "usc (6-2)"
What is Week 14 Nov 24, that has Week 11 Nov 3 of USC (6-2)?
CREATE TABLE table_name_44 (week_14_nov_24 VARCHAR, week_11_nov_3 VARCHAR)
SELECT team FROM table_name_85 WHERE round < 9 AND pole_position = "takashi kogure"
Before round 9, when Takashi Kogure held pole position, who was the team?
CREATE TABLE table_name_85 (team VARCHAR, round VARCHAR, pole_position VARCHAR)
SELECT away_team AS score FROM table_name_85 WHERE home_team = "carlton"
What away team score has carlton home team?
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
SELECT location_attendance FROM table_17104539_12 WHERE game = 32
What was the location and where did the team play game number 32?
CREATE TABLE table_17104539_12 (location_attendance VARCHAR, game VARCHAR)
SELECT date FROM table_name_7 WHERE opponents = "nottingham forest" AND h___a = "a"
What date was the opponent Nottingham Forest, and the H/A was A?
CREATE TABLE table_name_7 (date VARCHAR, opponents VARCHAR, h___a VARCHAR)
SELECT episode_title FROM table_2570269_3 WHERE original_air_date__uk_ = "13 August 1981"
What is the title of the episode that aired on 13 august 1981?
CREATE TABLE table_2570269_3 (episode_title VARCHAR, original_air_date__uk_ VARCHAR)
SELECT MAX(touchdowns) FROM table_14342592_8 WHERE player = "Norcross"
Name the most touchdowns for norcross
CREATE TABLE table_14342592_8 (touchdowns INTEGER, player VARCHAR)
SELECT entities FROM table_19001916_2 WHERE supply_point = "Itaipu"
What are the electric companies drawing power from Itaipu?
CREATE TABLE table_19001916_2 (entities VARCHAR, supply_point VARCHAR)
SELECT score FROM table_name_56 WHERE result = "7-0"
What score has 7-0 as the result?
CREATE TABLE table_name_56 (score VARCHAR, result VARCHAR)
SELECT MIN(bronze) FROM table_name_84 WHERE nation = "panama" AND total > 8
Tell me the lowest bronze for panama and total larger than 8
CREATE TABLE table_name_84 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT name, salary FROM Employee WHERE eid = 242518965
What is the name and salary for employee with id 242518965?
CREATE TABLE Employee (name VARCHAR, salary VARCHAR, eid VARCHAR)
SELECT SUM(year) FROM table_name_79 WHERE index = "happy planet index"
What year is the happy planet index?
CREATE TABLE table_name_79 (year INTEGER, index VARCHAR)
SELECT candidates FROM table_1342218_17 WHERE district = "Kentucky 4"
Who were the candidates in the Kentucky 4 voting district?
CREATE TABLE table_1342218_17 (candidates VARCHAR, district VARCHAR)