answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(written_by) FROM table_25740548_2 WHERE production_code = "CA106"
How many episodes with the production code CA106 are there?
CREATE TABLE table_25740548_2 (written_by VARCHAR, production_code VARCHAR)
SELECT COUNT(starts) FROM table_1637041_2 WHERE year = 2003
How many instances do you see the year 2003?
CREATE TABLE table_1637041_2 (starts VARCHAR, year VARCHAR)
SELECT percentage__2006_ FROM table_189893_1 WHERE mother_tongue = "Polish"
What is every value for percentage(2006) with a Polish mother tongue?
CREATE TABLE table_189893_1 (percentage__2006_ VARCHAR, mother_tongue VARCHAR)
SELECT laid_down FROM table_name_90 WHERE commissioned = "11 november 1989"
What is Laid Down, when Commissioned is "11 November 1989"?
CREATE TABLE table_name_90 (laid_down VARCHAR, commissioned VARCHAR)
SELECT COUNT(country) FROM table_15887683_16 WHERE content = "arte"
How many countries have content of arte?
CREATE TABLE table_15887683_16 (country VARCHAR, content VARCHAR)
SELECT COUNT(total) FROM table_name_12 WHERE nation = "netherlands" AND silver > 0
What is the total number for a total when the nation is netherlands and silver is larger than 0?
CREATE TABLE table_name_12 (total VARCHAR, nation VARCHAR, silver VARCHAR)
SELECT name FROM table_name_57 WHERE marriage = "disputed"
Who had a disputed marriage?
CREATE TABLE table_name_57 (name VARCHAR, marriage VARCHAR)
SELECT location_attendance FROM table_name_80 WHERE team = "l.a. lakers"
For the game played against the L.A. Lakers, where was the match played and what was the attendance level?
CREATE TABLE table_name_80 (location_attendance VARCHAR, team VARCHAR)
SELECT MIN(goals_against) FROM table_name_38 WHERE played > 34
What is the lowest Goals Agains, when Played is greater than 34?
CREATE TABLE table_name_38 (goals_against INTEGER, played INTEGER)
SELECT position FROM table_name_92 WHERE college_junior_club_team = "brandon wheat kings (wchl)"
What is the Position for the brandon wheat kings (wchl)?
CREATE TABLE table_name_92 (position VARCHAR, college_junior_club_team VARCHAR)
SELECT date FROM table_name_69 WHERE home_team = "wrexham"
What date has wrexham as the home team?
CREATE TABLE table_name_69 (date VARCHAR, home_team VARCHAR)
SELECT SUM(round) FROM table_name_11 WHERE college = "tennessee" AND overall > 153 AND pick < 14
What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14?
CREATE TABLE table_name_11 (round INTEGER, pick VARCHAR, college VARCHAR, overall VARCHAR)
SELECT MIN(all_amendments_sponsored) FROM table_name_52 WHERE bills_originally_cosponsored = 150 AND all_bills_cosponsored > 247
What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 bills cosponsored?
CREATE TABLE table_name_52 (all_amendments_sponsored INTEGER, bills_originally_cosponsored VARCHAR, all_bills_cosponsored VARCHAR)
SELECT COUNT(location) FROM table_19283806_4 WHERE median_household_income__2011_ = "$71,479"
How many locations have a median household income in 2011 of $71,479?
CREATE TABLE table_19283806_4 (location VARCHAR, median_household_income__2011_ VARCHAR)
SELECT constructor FROM table_name_77 WHERE grid < 15 AND laps = 77 AND time_retired = "+ 0.771"
Who constructed the car with a grid under 15, 77 laps, and a Time/Retired of + 0.771?
CREATE TABLE table_name_77 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT hometown FROM table_name_54 WHERE college = "washington"
What is the hometown for the player that went to the college of washington
CREATE TABLE table_name_54 (hometown VARCHAR, college VARCHAR)
SELECT AVG(year) FROM table_name_73 WHERE chassis = "veritas rs" AND points > 0
What is the average Year with a Veritas rs chassis and more than 0 points?
CREATE TABLE table_name_73 (year INTEGER, chassis VARCHAR, points VARCHAR)
SELECT outcome FROM table_name_39 WHERE score = "6–4, 6–1"
What is the outcome of the match with a score of 6–4, 6–1?
CREATE TABLE table_name_39 (outcome VARCHAR, score VARCHAR)
SELECT MIN(week) FROM table_name_31 WHERE opponent = "new orleans saints"
What was the earliest week when the New Orleans Saints were the opponents?
CREATE TABLE table_name_31 (week INTEGER, opponent VARCHAR)
SELECT country FROM table_name_29 WHERE score = 70 - 68 - 71 - 71 = 280
Which country scored 70-68-71-71=280?
CREATE TABLE table_name_29 (country VARCHAR, score VARCHAR)
SELECT first_name, middle_name, last_name FROM Students ORDER BY date_first_registered LIMIT 1
Who is the first student to register? List the first name, middle name and last name.
CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, date_first_registered VARCHAR)
SELECT MIN(matches) FROM table_15829930_5 WHERE year = 2008
Name the least matches for year 2008
CREATE TABLE table_15829930_5 (matches INTEGER, year VARCHAR)
SELECT team_2 FROM table_name_88 WHERE team_1 = "us gorée"
What is the team 2 with a team 1 us gorée?
CREATE TABLE table_name_88 (team_2 VARCHAR, team_1 VARCHAR)
SELECT MIN(attendance) FROM table_name_58 WHERE time = "3:31" AND game < 7
What was the lowest attendance for the game that had a time of 3:31 and was before game 7?
CREATE TABLE table_name_58 (attendance INTEGER, time VARCHAR, game VARCHAR)
SELECT MIN(pick__number) FROM table_name_16 WHERE college = "byu"
What is BYU's lowest pick?
CREATE TABLE table_name_16 (pick__number INTEGER, college VARCHAR)
SELECT athletes FROM table_name_62 WHERE rank < 5 AND country = "china"
Which athlete is ranked below 5 and is from China?
CREATE TABLE table_name_62 (athletes VARCHAR, rank VARCHAR, country VARCHAR)
SELECT airdate FROM table_15739098_1 WHERE director = "George Spenton-Foster"
What is the airdate when the director is george spenton-foster
CREATE TABLE table_15739098_1 (airdate VARCHAR, director VARCHAR)
SELECT player FROM table_24912693_4 WHERE blocks = 17
Which player has 17 blocks?
CREATE TABLE table_24912693_4 (player VARCHAR, blocks VARCHAR)
SELECT high_points FROM table_27703902_9 WHERE game = 81
Who had the high points in game is 81?
CREATE TABLE table_27703902_9 (high_points VARCHAR, game VARCHAR)
SELECT album FROM table_name_25 WHERE certification = "3x platinum" AND peak_position = 6
What album had a peak position of 6 and a certification of 3x platinum?
CREATE TABLE table_name_25 (album VARCHAR, certification VARCHAR, peak_position VARCHAR)
SELECT rank FROM table_name_50 WHERE studio = "walt disney pictures"
What is the ranking of the movie made at Walt Disney Pictures?
CREATE TABLE table_name_50 (rank VARCHAR, studio VARCHAR)
SELECT to_par FROM table_28498999_3 WHERE after = 33
What is the to par when the after is 33?
CREATE TABLE table_28498999_3 (to_par VARCHAR, after VARCHAR)
SELECT season FROM table_name_52 WHERE ufl_cup = "tbd"
Which Season has a UFL Cup of tbd?
CREATE TABLE table_name_52 (season VARCHAR, ufl_cup VARCHAR)
SELECT director FROM table_name_65 WHERE result = "nominee" AND year__ceremony_ = "1969 (42nd)"
What is Director, when Result is nominee, and when Year (Ceremony) is 1969 (42nd)?
CREATE TABLE table_name_65 (director VARCHAR, result VARCHAR, year__ceremony_ VARCHAR)
SELECT SUM(attendance) FROM table_name_99 WHERE date = "may 28"
What is the total audience on may 28?
CREATE TABLE table_name_99 (attendance INTEGER, date VARCHAR)
SELECT built_year FROM ship GROUP BY built_year ORDER BY COUNT(*) DESC LIMIT 1
In which year were most of ships built?
CREATE TABLE ship (built_year VARCHAR)
SELECT away_team AS score FROM table_16387953_1 WHERE ground = "Football Park"
What was the away team's score at the venue football park?
CREATE TABLE table_16387953_1 (away_team VARCHAR, ground VARCHAR)
SELECT runner_up FROM table_28601467_1 WHERE winner = "Ireland 59 points"
What is the runner-up record where winner record is Ireland 59 points?
CREATE TABLE table_28601467_1 (runner_up VARCHAR, winner VARCHAR)
SELECT title FROM table_228973_3 WHERE no_in_series = 31
what is the name of the episode whose number of the series episode was 31?
CREATE TABLE table_228973_3 (title VARCHAR, no_in_series VARCHAR)
SELECT ensemble FROM table_name_21 WHERE silver_medals > 1
Name the ensemble with silver medals more than 1
CREATE TABLE table_name_21 (ensemble VARCHAR, silver_medals INTEGER)
SELECT place FROM table_name_84 WHERE player = "fred couples"
What place did Fred Couples finish in?
CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR)
SELECT tie_no FROM table_name_96 WHERE home_team = "gillingham"
What is Tie no, when Home Team is "Gillingham"?
CREATE TABLE table_name_96 (tie_no VARCHAR, home_team VARCHAR)
SELECT name FROM table_name_54 WHERE position = "g" AND weight__lbs_ = 190
What is the Name when the position is g, and weight is 190 pounds?
CREATE TABLE table_name_54 (name VARCHAR, position VARCHAR, weight__lbs_ VARCHAR)
SELECT MIN(finish) FROM table_name_69 WHERE year > 1972 AND manufacturer = "pontiac"
What is the smallest finish time for a race after 1972 with a car manufactured by pontiac?
CREATE TABLE table_name_69 (finish INTEGER, year VARCHAR, manufacturer VARCHAR)
SELECT country FROM table_name_17 WHERE year = 2011
Which county has 2011 as the year?
CREATE TABLE table_name_17 (country VARCHAR, year VARCHAR)
SELECT tv_season FROM table_299121_2 WHERE season = "1st"
What TV season was the 1st season?
CREATE TABLE table_299121_2 (tv_season VARCHAR, season VARCHAR)
SELECT MAX(rank) FROM table_name_4 WHERE name = "jimmy jones" AND matches < 285
What was Jimmy Jones' rank when the matches were smaller than 285?
CREATE TABLE table_name_4 (rank INTEGER, name VARCHAR, matches VARCHAR)
SELECT COUNT(round) FROM table_25459168_2 WHERE fastest_lap = "João Victor Horto"
How many rounds did João Victor Horto achieved the fastest lap?
CREATE TABLE table_25459168_2 (round VARCHAR, fastest_lap VARCHAR)
SELECT league FROM table_name_31 WHERE playoffs = "lost semifinal"
Which league had a playoffs result of a lost semifinal?
CREATE TABLE table_name_31 (league VARCHAR, playoffs VARCHAR)
SELECT loss FROM table_name_65 WHERE date = "may 26"
Who lost the game on May 26?
CREATE TABLE table_name_65 (loss VARCHAR, date VARCHAR)
SELECT home_captain FROM table_name_53 WHERE venue = "melbourne cricket ground"
Which Home captain has a Venue of melbourne cricket ground?
CREATE TABLE table_name_53 (home_captain VARCHAR, venue VARCHAR)
SELECT method FROM table_name_88 WHERE venue = "club med sandpiper"
What method did the match at Club Med Sandpiper have?
CREATE TABLE table_name_88 (method VARCHAR, venue VARCHAR)
SELECT COUNT(year) FROM table_229059_2 WHERE champion = "Pat Bradley"
In how many years did Pat Bradley became the champion?
CREATE TABLE table_229059_2 (year VARCHAR, champion VARCHAR)
SELECT winner FROM table_name_6 WHERE date = "15 december 1957"
Who was the winner on 15 December 1957?
CREATE TABLE table_name_6 (winner VARCHAR, date VARCHAR)
SELECT SUM(year) FROM table_name_77 WHERE type = "informal" AND location = "justus lipsius building, brussels" AND date = "23 may"
What is the sum of Year with a Type of informal, and a Location with justus lipsius building, brussels, and a Date with 23 may?
CREATE TABLE table_name_77 (year INTEGER, date VARCHAR, type VARCHAR, location VARCHAR)
SELECT cell_mobile_number FROM Students WHERE first_name = 'Timmothy' AND last_name = 'Ward'
What is the phone number of the man with the first name Timmothy and the last name Ward?
CREATE TABLE Students (cell_mobile_number VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT afl_team FROM table_12165999_1 WHERE player = "Bob Johnson"
Bob Johnson plays for which AFL team?
CREATE TABLE table_12165999_1 (afl_team VARCHAR, player VARCHAR)
SELECT year_location FROM table_28138035_35 WHERE mens_singles = "Liu Guozheng"
In what year and location did Liu Guozheng win the Mens Singles?
CREATE TABLE table_28138035_35 (year_location VARCHAR, mens_singles VARCHAR)
SELECT COUNT(name_of_bowl) FROM table_2517159_1 WHERE last_appearance = "2006 Season"
Name the name of bowl for 2006 season
CREATE TABLE table_2517159_1 (name_of_bowl VARCHAR, last_appearance VARCHAR)
SELECT time FROM table_name_2 WHERE nfl_recap = "recap" AND result = "w 22–16"
What was the time of the game that had an NFL recap and a result of W 22–16?
CREATE TABLE table_name_2 (time VARCHAR, nfl_recap VARCHAR, result VARCHAR)
SELECT COUNT(*), city FROM employees WHERE title = 'IT Staff' GROUP BY city
Find the number of employees whose title is IT Staff from each city?
CREATE TABLE employees (city VARCHAR, title VARCHAR)
SELECT score FROM table_name_98 WHERE date = "january 3, 2005"
What score has january 3, 2005 as the date?
CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR)
SELECT conference AS Tournament FROM table_24248450_3 WHERE conference = "Big Sky conference"
What is the tournament called for the Big Sky Conference?
CREATE TABLE table_24248450_3 (conference VARCHAR)
SELECT AVG(attendance) FROM table_name_49 WHERE arena = "joe louis arena"
What is the Attendance at Joe Louis Arena?
CREATE TABLE table_name_49 (attendance INTEGER, arena VARCHAR)
SELECT SUM(average_attendance) FROM table_name_11 WHERE games = 1311
What was the total number of average attendance for games of 1311?
CREATE TABLE table_name_11 (average_attendance INTEGER, games VARCHAR)
SELECT date FROM table_name_9 WHERE sub_total = "9:30"
On which day were the subtotal hours 9:30?
CREATE TABLE table_name_9 (date VARCHAR, sub_total VARCHAR)
SELECT conference AS Tournament FROM table_22779004_1 WHERE regular_season_winner = "Idaho State"
Who won the tournament when Idaho State won the regular season?
CREATE TABLE table_22779004_1 (conference VARCHAR, regular_season_winner VARCHAR)
SELECT bubbles FROM table_name_58 WHERE cancelable = "yes" AND attribute = "onpointerdown"
Which bubble have a cancelable of yes and an attribute of onpointerdown?
CREATE TABLE table_name_58 (bubbles VARCHAR, cancelable VARCHAR, attribute VARCHAR)
SELECT away_team AS score FROM table_name_28 WHERE home_team = "richmond"
What was the score against home team, Richmond?
CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR)
SELECT years FROM table_name_83 WHERE nationality = "united states" AND position = "pg / sg"
What is Years, when Nationality is United States, and when Position is PG / SG?
CREATE TABLE table_name_83 (years VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT SUM(pick__number) FROM table_name_40 WHERE player = "kenny arena"
Tell me the sum of pick number for kenny arena
CREATE TABLE table_name_40 (pick__number INTEGER, player VARCHAR)
SELECT swimsuit FROM table_11884814_3 WHERE interview = "9.74"
What is the swimsuit score when the interview was 9.74?
CREATE TABLE table_11884814_3 (swimsuit VARCHAR, interview VARCHAR)
SELECT date FROM table_name_64 WHERE region = "new zealand" AND catalog = "cy-24623"
On what date was the catalog cy-24623 for New Zealand?
CREATE TABLE table_name_64 (date VARCHAR, region VARCHAR, catalog VARCHAR)
SELECT home_team FROM table_24949975_1 WHERE season = "2013" AND result = "0–0"
Who was the home team for the 2013 season and the result was 0–0?
CREATE TABLE table_24949975_1 (home_team VARCHAR, season VARCHAR, result VARCHAR)
SELECT _percentage_chg_2009_10 FROM table_18047346_4 WHERE passengers = "15,505,566"
If the amount of passengers is 15,505,566, what is the %/chg. for 2009/10?
CREATE TABLE table_18047346_4 (_percentage_chg_2009_10 VARCHAR, passengers VARCHAR)
SELECT participants_recipients FROM table_29644931_1 WHERE film_festival = "61st Berlin International film_festival"
Which films participated in the 61st Berlin international film festival?
CREATE TABLE table_29644931_1 (participants_recipients VARCHAR, film_festival VARCHAR)
SELECT MIN(code) FROM table_name_92 WHERE most_spoken_language = "xhosa" AND place = "addo elephant national park" AND area__km_2__ < 1.08
What's the lowest Code that's got a Most Spoke Language of Xhosa, a Place of Addo Elephant National Park, and an Area (KM 2) that's smaller than 1.08?
CREATE TABLE table_name_92 (code INTEGER, area__km_2__ VARCHAR, most_spoken_language VARCHAR, place VARCHAR)
SELECT round FROM table_name_70 WHERE opponent = "emanuel newton"
What is the round of the match with Emanuel Newton as the opponent?
CREATE TABLE table_name_70 (round VARCHAR, opponent VARCHAR)
SELECT COUNT(points) FROM table_14460085_3 WHERE team = "San Lorenzo"
How many points total for san lorenzo?
CREATE TABLE table_14460085_3 (points VARCHAR, team VARCHAR)
SELECT altitude__km_ FROM table_148578_1 WHERE explosion = "Hardtack Teak"
What was the altitude of the explosion Hardtack Teak?
CREATE TABLE table_148578_1 (altitude__km_ VARCHAR, explosion VARCHAR)
SELECT COUNT(production_code) FROM table_20613292_1 WHERE directed_by = "Dominic Polcino"
How many different production codes does the episode directed by Dominic Polcino have?
CREATE TABLE table_20613292_1 (production_code VARCHAR, directed_by VARCHAR)
SELECT ground FROM table_name_88 WHERE home_team = "adelaide"
What is the ground of the game where the home team was Adelaide?
CREATE TABLE table_name_88 (ground VARCHAR, home_team VARCHAR)
SELECT syrian_christians FROM table_23214055_2 WHERE district = "Kollam"
Name the syrian christians for kollam
CREATE TABLE table_23214055_2 (syrian_christians VARCHAR, district VARCHAR)
SELECT country FROM table_name_41 WHERE rank = 4
What country is ranked number 4?
CREATE TABLE table_name_41 (country VARCHAR, rank VARCHAR)
SELECT COUNT(*) FROM scientists WHERE NOT ssn IN (SELECT scientist FROM AssignedTo)
Find the number of scientists who are not assigned to any project.
CREATE TABLE AssignedTo (ssn VARCHAR, scientist VARCHAR); CREATE TABLE scientists (ssn VARCHAR, scientist VARCHAR)
SELECT home_team FROM table_name_22 WHERE venue = "vfl park"
Who was the home team at VFL Park?
CREATE TABLE table_name_22 (home_team VARCHAR, venue VARCHAR)
SELECT 2012 FROM table_name_22 WHERE 2008 = "479"
What is the 2012 value with 479 in 2008?
CREATE TABLE table_name_22 (Id VARCHAR)
SELECT order_and_title FROM table_name_6 WHERE nationality = "roman" AND elector = "matteo orsini rosso"
What is the Order and Title with a Nationality with roman, and an Elector with matteo orsini rosso?
CREATE TABLE table_name_6 (order_and_title VARCHAR, nationality VARCHAR, elector VARCHAR)
SELECT leader_at_the_summit FROM table_name_78 WHERE stage > 14 AND category = 1 AND start = "saint-girons" AND finish = "cauterets"
Who was the leader at the summit when the stage was larger than 14, the category was 1, the start was Saint-Girons, and the finish was Cauterets?
CREATE TABLE table_name_78 (leader_at_the_summit VARCHAR, finish VARCHAR, start VARCHAR, stage VARCHAR, category VARCHAR)
SELECT title FROM table_12226390_6 WHERE production_code = 136
What's the title of the episode with a production code 136?
CREATE TABLE table_12226390_6 (title VARCHAR, production_code VARCHAR)
SELECT surface FROM table_name_16 WHERE score = "7-5, 5-7, 6-3"
Which Surface has a score of 7-5, 5-7, 6-3?
CREATE TABLE table_name_16 (surface VARCHAR, score VARCHAR)
SELECT 2010 FROM table_name_86 WHERE 2009 = "0 / 4"
Which 2010 has a 2009 of 0 / 4?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT phonetic FROM table_name_88 WHERE standard_thai = "ผ่า"
What is the phonetic when the standard thai is ผ่า?
CREATE TABLE table_name_88 (phonetic VARCHAR, standard_thai VARCHAR)
SELECT sort_restore FROM table_name_64 WHERE deaths = "71"
What is the sort value that had deaths of 71?
CREATE TABLE table_name_64 (sort_restore VARCHAR, deaths VARCHAR)
SELECT country FROM table_name_4 WHERE score < 70 AND place = "t3" AND player = "andrés romero"
Which Country has a Score smaller than 70, and a Place of t3, and a Player of andrés romero?
CREATE TABLE table_name_4 (country VARCHAR, player VARCHAR, score VARCHAR, place VARCHAR)
SELECT MAX(total_region) FROM table_12570207_1 WHERE fitzroy = 8047
what is the maximum total region with fitzroy being 8047
CREATE TABLE table_12570207_1 (total_region INTEGER, fitzroy VARCHAR)
SELECT runner_up FROM table_name_26 WHERE year = 1999
Who won the runner-up in 1999?
CREATE TABLE table_name_26 (runner_up VARCHAR, year VARCHAR)
SELECT hometown FROM table_name_83 WHERE sport = "basketball" AND winner = "dwight howard"
What is Hometown, when Sport is "Basketball", and when Winner is "Dwight Howard"?
CREATE TABLE table_name_83 (hometown VARCHAR, sport VARCHAR, winner VARCHAR)
SELECT SUM(points) FROM table_name_56 WHERE team_chassis = "alfa romeo 184t"
What is the total number of points team Alfa Romeo 184T won?
CREATE TABLE table_name_56 (points INTEGER, team_chassis VARCHAR)
SELECT party FROM table_name_12 WHERE years_in_senate = "—" AND years_in_assembly = "2012–present"
Which Party has Years in Senate of —, and Years in Assembly of 2012–present?
CREATE TABLE table_name_12 (party VARCHAR, years_in_senate VARCHAR, years_in_assembly VARCHAR)