answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(year) FROM table_name_38 WHERE league = "usisl pro league"
How many years was there a team that was part of the usisl pro league?
CREATE TABLE table_name_38 (year VARCHAR, league VARCHAR)
SELECT MAX(no) FROM table_15621965_7 WHERE player = "Chris Gatling"
What number identifies Chris Gatling?
CREATE TABLE table_15621965_7 (no INTEGER, player VARCHAR)
SELECT manager FROM table_25527255_2 WHERE team = "FK Andijan"
Who is the manager of FK Andijan?
CREATE TABLE table_25527255_2 (manager VARCHAR, team VARCHAR)
SELECT venue FROM table_name_7 WHERE competition = "world race walking cup" AND position = "3rd"
In which venue did he place 3rd in the World Race Walking Cup?
CREATE TABLE table_name_7 (venue VARCHAR, competition VARCHAR, position VARCHAR)
SELECT score FROM table_name_35 WHERE date = "2008-06-28"
What is the Score with a Date that is 2008-06-28?
CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR)
SELECT venue FROM table_name_83 WHERE tournament = "mediterranean games"
Where was the mediterranean games held?
CREATE TABLE table_name_83 (venue VARCHAR, tournament VARCHAR)
SELECT SUM(upper_index_kcal__nm_3) FROM table_name_1 WHERE lower_index_mj__nm_3 > 47.91 AND fuel_gas = "propylene" AND upper_index_mj__nm_3 > 77.04
What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 larger than 47.91, for propylene, and an Upper index MJ/ Nm 3 larger than 77.04?
CREATE TABLE table_name_1 (upper_index_kcal__nm_3 INTEGER, upper_index_mj__nm_3 VARCHAR, lower_index_mj__nm_3 VARCHAR, fuel_gas VARCHAR)
SELECT MAX(rank) FROM table_name_70 WHERE earnings__$__ < 395 OFFSET 386
Who is the highest ranked player that has earnings below 395,386?
CREATE TABLE table_name_70 (rank INTEGER, earnings__$__ INTEGER)
SELECT games FROM table_name_57 WHERE name = "terence morris"
How many Games for Terence Morris?
CREATE TABLE table_name_57 (games VARCHAR, name VARCHAR)
SELECT Name FROM ship WHERE NOT Ship_ID IN (SELECT Ship_ID FROM mission)
List the name of ships that are not involved in any mission
CREATE TABLE mission (Name VARCHAR, Ship_ID VARCHAR); CREATE TABLE ship (Name VARCHAR, Ship_ID VARCHAR)
SELECT season FROM table_name_68 WHERE regionalliga_süd = "stuttgarter kickers"
Which season had a Regionalliga Sud of Stuttgarter Kickers?
CREATE TABLE table_name_68 (season VARCHAR, regionalliga_süd VARCHAR)
SELECT original_air_date FROM table_26748314_1 WHERE no_in_season = 7
What is every original air date for the number in season of 7?
CREATE TABLE table_26748314_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT title FROM course WHERE NOT course_id IN (SELECT course_id FROM prereq)
Find the name of the courses that do not have any prerequisite?
CREATE TABLE prereq (title VARCHAR, course_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR)
SELECT record FROM table_20928682_1 WHERE hurricanes_points = 24
What was the record after the game in which the Hurricanes scored 24 points?
CREATE TABLE table_20928682_1 (record VARCHAR, hurricanes_points VARCHAR)
SELECT COUNT(gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_) FROM table_30133_3 WHERE 2012 = 23113
How many GDPs as of 2012 after PPP values are associated with a 2012 value of 23113?
CREATE TABLE table_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)
SELECT MIN(game) FROM table_27712702_11 WHERE record = "46–24"
what was the game number where the record was 46–24?
CREATE TABLE table_27712702_11 (game INTEGER, record VARCHAR)
SELECT team__number1 FROM table_name_20 WHERE team__number2 = "galatasaray cc i̇stanbul"
Who was Team #1 when Team #2 was galatasaray cc i̇stanbul?
CREATE TABLE table_name_20 (team__number1 VARCHAR, team__number2 VARCHAR)
SELECT date FROM table_name_31 WHERE runner_up = "shaun murphy"
When was the match that had Shaun Murphy as runner-up?
CREATE TABLE table_name_31 (date VARCHAR, runner_up VARCHAR)
SELECT venue FROM table_name_85 WHERE city = "manchester" AND year = 2003
Which venue had a city of Manchester in 2003?
CREATE TABLE table_name_85 (venue VARCHAR, city VARCHAR, year VARCHAR)
SELECT MIN(enrollment) FROM table_1969577_3
What's the minimal enrollment of any of the schools?
CREATE TABLE table_1969577_3 (enrollment INTEGER)
SELECT surface FROM table_name_39 WHERE opponents = "daniel nestor sandon stolle"
What is Surface, when Opponents is "Daniel Nestor Sandon Stolle"?
CREATE TABLE table_name_39 (surface VARCHAR, opponents VARCHAR)
SELECT high_hill_zone FROM table_name_87 WHERE mid_hill_zone = "slightly warm temperature"
Which mid-hill zone has a slightly warm temperature?
CREATE TABLE table_name_87 (high_hill_zone VARCHAR, mid_hill_zone VARCHAR)
SELECT driver FROM table_name_41 WHERE grid < 19 AND laps > 59 AND time_retired = "+0.294"
Tell me the driver for grid less than 19 and Laps more than 59 with time/retired of +0.294
CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT character FROM table_25173505_13 WHERE special_edition = "Koichi Sakaguchi"
who is the character where the special edition is koichi sakaguchi?
CREATE TABLE table_25173505_13 (character VARCHAR, special_edition VARCHAR)
SELECT actor FROM table_name_21 WHERE duration = "20 years" AND soap_opera = "home and away"
Which actor played on Home and Away for 20 years?
CREATE TABLE table_name_21 (actor VARCHAR, duration VARCHAR, soap_opera VARCHAR)
SELECT date FROM table_name_98 WHERE score = "5–2" AND loss = "lilly (9–9)"
What date was the game with a score of 5–2, and a Loss of lilly (9–9)?
CREATE TABLE table_name_98 (date VARCHAR, score VARCHAR, loss VARCHAR)
SELECT date FROM table_name_74 WHERE home = "cleveland" AND record = "20-8"
What is the date of the Cleveland home game with a 20-8 record?
CREATE TABLE table_name_74 (date VARCHAR, home VARCHAR, record VARCHAR)
SELECT COUNT(directed_by) FROM table_2430014_8 WHERE uk_ratings__bbc2_rank_ = "2.27m (5)"
How many directors worked on the episode with 2.27m (5) is the ratings?
CREATE TABLE table_2430014_8 (directed_by VARCHAR, uk_ratings__bbc2_rank_ VARCHAR)
SELECT format FROM table_name_58 WHERE frequency = "fm 94.5"
what is the format when the frequency is fm 94.5?
CREATE TABLE table_name_58 (format VARCHAR, frequency VARCHAR)
SELECT COUNT(status) FROM table_1341522_38 WHERE first_elected = 1968
how many status with first elected being 1968
CREATE TABLE table_1341522_38 (status VARCHAR, first_elected VARCHAR)
SELECT date FROM table_name_83 WHERE surface = "hard" AND tournament = "usa f5, brownsville"
Name the date with a hard surface and tournament of usa f5, brownsville
CREATE TABLE table_name_83 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT SUM(goals) FROM table_name_31 WHERE matches < 29
What is the sum of Goals, when Matches is less than 29?
CREATE TABLE table_name_31 (goals INTEGER, matches INTEGER)
SELECT laid_down FROM table_name_33 WHERE name = "kaki"
What is the laid down date of Kaki?
CREATE TABLE table_name_33 (laid_down VARCHAR, name VARCHAR)
SELECT date FROM table_name_64 WHERE record = "3-3"
Name the date for record 3-3
CREATE TABLE table_name_64 (date VARCHAR, record VARCHAR)
SELECT COUNT(*) FROM Other_Available_Features
How many available features are there in total?
CREATE TABLE Other_Available_Features (Id VARCHAR)
SELECT date FROM table_name_6 WHERE venue = "windy hill"
On what date was a game played at Windy Hill?
CREATE TABLE table_name_6 (date VARCHAR, venue VARCHAR)
SELECT status FROM table_name_33 WHERE date = "10/05/1975"
What is Status, when Date is 10/05/1975?
CREATE TABLE table_name_33 (status VARCHAR, date VARCHAR)
SELECT COUNT(rank) FROM table_name_38 WHERE silver > 2 AND bronze < 2
How many teams won more than 2 silver medals and fewer than 2 Bronze medals?
CREATE TABLE table_name_38 (rank VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT 2002 AS _2003_season FROM table_name_20 WHERE city = "aveiro"
What place is listed in the 2002-2003 season for the City of Aveiro?
CREATE TABLE table_name_20 (city VARCHAR)
SELECT rank FROM table_name_87 WHERE name = "pieter de korver"
What was the rank of the event won by Pieter de Korver?
CREATE TABLE table_name_87 (rank VARCHAR, name VARCHAR)
SELECT drawn FROM table_name_86 WHERE lost = "3" AND points = "88"
Name the drawn with lost of 3 and points of 88
CREATE TABLE table_name_86 (drawn VARCHAR, lost VARCHAR, points VARCHAR)
SELECT score FROM table_name_47 WHERE venue = "gelora sriwijaya stadium"
What was the Score in Gelora Sriwijaya Stadium?
CREATE TABLE table_name_47 (score VARCHAR, venue VARCHAR)
SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY COUNT(T2.decor) LIMIT 1
What kind of decor has the least number of reservations?
CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (decor VARCHAR, RoomId VARCHAR)
SELECT MIN(games_played) FROM table_27816332_2 WHERE total_points = 6
Name the least games played for 6 points
CREATE TABLE table_27816332_2 (games_played INTEGER, total_points VARCHAR)
SELECT MIN(highest) FROM table_11206787_5 WHERE team = "Ayr United"
What is the highest of ayr united?
CREATE TABLE table_11206787_5 (highest INTEGER, team VARCHAR)
SELECT written_by FROM table_26409328_1 WHERE directed_by = "Joe Daniello" AND production_code = "6AJN05"
who wrote the episode having joe daniello as director with production code 6ajn05?
CREATE TABLE table_26409328_1 (written_by VARCHAR, directed_by VARCHAR, production_code VARCHAR)
SELECT venue FROM table_name_19 WHERE opponent = "collingwood"
Name the venue with opponent of collingwood
CREATE TABLE table_name_19 (venue VARCHAR, opponent VARCHAR)
SELECT barony FROM table_30120619_1 WHERE area__acres__ = 150
What is the barony of the townland whose area is 150 acres?
CREATE TABLE table_30120619_1 (barony VARCHAR, area__acres__ VARCHAR)
SELECT tournament FROM table_name_29 WHERE runner_s__up = "bubba watson"
For what tournament was Bubba Watson the runner-up?
CREATE TABLE table_name_29 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT record FROM table_name_15 WHERE event = "3000 m"
What is the Record of the 3000 M?
CREATE TABLE table_name_15 (record VARCHAR, event VARCHAR)
SELECT titles FROM table_12262182_2 WHERE date = "1997-04-12"
What titles were fought for on 1997-04-12?
CREATE TABLE table_12262182_2 (titles VARCHAR, date VARCHAR)
SELECT date FROM table_name_99 WHERE label = "4ad" AND format = "cd (reissue)"
What date had a 4ad label and a CD (reissue) format?
CREATE TABLE table_name_99 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE miss_universe_philippines = "Nina Ricci Alagao"
How many winners of Binibining Pilipinas-International when Nina Ricci Alagao?
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR)
SELECT eliminated_by FROM table_name_49 WHERE wrestler = "kurt angle"
Who Eliminated Kurt Angle?
CREATE TABLE table_name_49 (eliminated_by VARCHAR, wrestler VARCHAR)
SELECT COUNT(race_number) FROM table_25594888_1 WHERE yacht = "Loki"
How many races was Loki in?
CREATE TABLE table_25594888_1 (race_number VARCHAR, yacht VARCHAR)
SELECT winner FROM table_name_53 WHERE year < 1935 AND result = "56-0"
Who was the winner when the result was 56-0 before 1935?
CREATE TABLE table_name_53 (winner VARCHAR, year VARCHAR, result VARCHAR)
SELECT MIN(division) FROM table_21602734_1
What is the lowest division number?
CREATE TABLE table_21602734_1 (division INTEGER)
SELECT boys_doubles FROM table_14319023_2 WHERE girls_doubles = "Ayu Pratiwi Anggi Widia"
When the girls doubles is ayu pratiwi anggi widia what is the boys doubles?
CREATE TABLE table_14319023_2 (boys_doubles VARCHAR, girls_doubles VARCHAR)
SELECT date_successor_seated FROM table_225093_4 WHERE district = "Massachusetts 2nd"
What is the date successor seated where Massachusetts 2nd is the district?
CREATE TABLE table_225093_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT tries_against FROM table_name_35 WHERE club = "llanishen rfc"
What was the tries again llanishen rfc?
CREATE TABLE table_name_35 (tries_against VARCHAR, club VARCHAR)
SELECT MAX(q1_order) FROM table_1706942_1 WHERE driver = "Felipe Massa"
What is the Q1 order for Felipe Massa?
CREATE TABLE table_1706942_1 (q1_order INTEGER, driver VARCHAR)
SELECT country FROM table_name_20 WHERE to_par = "−2"
Which Country has a To par of −2? Question 2
CREATE TABLE table_name_20 (country VARCHAR, to_par VARCHAR)
SELECT MIN(game) FROM table_name_44 WHERE record = "16-7-2"
What is the smallest game number with a record of 16-7-2?
CREATE TABLE table_name_44 (game INTEGER, record VARCHAR)
SELECT MAX(grid) FROM table_name_44 WHERE laps > 22
What is the maximum grid when the laps were greater than 22?
CREATE TABLE table_name_44 (grid INTEGER, laps INTEGER)
SELECT _percentage_of_seats FROM table_name_92 WHERE difference = "0.19"
What is the % of seats where the difference is 0.19?
CREATE TABLE table_name_92 (_percentage_of_seats VARCHAR, difference VARCHAR)
SELECT conventional_plans FROM table_name_14 WHERE pos_plans = "21%"
Which conventional plan has a POS plan of 21%?
CREATE TABLE table_name_14 (conventional_plans VARCHAR, pos_plans VARCHAR)
SELECT team FROM table_name_55 WHERE qual_2 = "1:34.578"
What team had 1:34.578 in Qual 2?
CREATE TABLE table_name_55 (team VARCHAR, qual_2 VARCHAR)
SELECT won FROM table_13399573_4 WHERE tries_against = "47"
In the 2008/2009 season one team had 47 tries against, how many games did they win that year?
CREATE TABLE table_13399573_4 (won VARCHAR, tries_against VARCHAR)
SELECT giant_slalom FROM table_name_14 WHERE combined = "1" AND country = "united states" AND victories > 11
Can you tell me the Giant Slalom that has the Combined of 1, and the Country of united states, and the Victories larger than 11?
CREATE TABLE table_name_14 (giant_slalom VARCHAR, victories VARCHAR, combined VARCHAR, country VARCHAR)
SELECT T1.title, T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title
list in alphabetic order all course names and their instructors' names in year 2008.
CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE teaches (course_id VARCHAR, id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)
SELECT rank__week_ FROM table_23177573_1 WHERE written_by = "Thomas L. Moran" AND directed_by = "Andrew Bernstein"
What was the week ranking of the episode written by Thomas L. Moran and directed by Andrew Bernstein?
CREATE TABLE table_23177573_1 (rank__week_ VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT no FROM table_11545282_10 WHERE school_club_team = "Ohio"
What number does the player from Ohio play with?
CREATE TABLE table_11545282_10 (no VARCHAR, school_club_team VARCHAR)
SELECT 2001 FROM table_name_4 WHERE product = "grain"
What was the amount of grain in 2001?
CREATE TABLE table_name_4 (product VARCHAR)
SELECT centerfold_model FROM table_name_32 WHERE date = "5-95"
Who was the Centerfold Model on 5-95?
CREATE TABLE table_name_32 (centerfold_model VARCHAR, date VARCHAR)
SELECT score FROM table_name_76 WHERE date = "june 4, 2008"
What is the score of the match on June 4, 2008?
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
SELECT MAX(games) FROM table_name_27 WHERE goals_against < 14 AND wins > 1 AND draws < 2 AND goals_for = 3
what's the number of games with a Goals Against smaller than 14, and a Wins larger than 1, and a Draws smaller than 2, and a Goals For of 3?
CREATE TABLE table_name_27 (games INTEGER, goals_for VARCHAR, draws VARCHAR, goals_against VARCHAR, wins VARCHAR)
SELECT episode_title FROM table_24425976_2 WHERE production_code = "107"
What is the name of the episode with a production code of 107?
CREATE TABLE table_24425976_2 (episode_title VARCHAR, production_code VARCHAR)
SELECT played FROM table_name_37 WHERE losing_bonus = "3" AND points_against = "426"
Name the played with losing bonus of 3 and points against of 426
CREATE TABLE table_name_37 (played VARCHAR, losing_bonus VARCHAR, points_against VARCHAR)
SELECT date FROM table_name_34 WHERE race = "italian grand prix"
Name the date of the italian grand prix
CREATE TABLE table_name_34 (date VARCHAR, race VARCHAR)
SELECT COUNT(total__number) FROM table_27155243_3 WHERE directed_by = "Sheri Elwood"
How many different episode numbers are there for the episodes directed by Sheri Elwood?
CREATE TABLE table_27155243_3 (total__number VARCHAR, directed_by VARCHAR)
SELECT season FROM table_name_33 WHERE away = "2-2" AND home = "1-0"
In which season was the Away record 2-2 and At Home record 1-0?
CREATE TABLE table_name_33 (season VARCHAR, away VARCHAR, home VARCHAR)
SELECT MAX(lost) FROM table_name_93 WHERE drawn < 4 AND played < 9
Which Lost is the highest one that has a Drawn smaller than 4, and a Played smaller than 9?
CREATE TABLE table_name_93 (lost INTEGER, drawn VARCHAR, played VARCHAR)
SELECT SUM(release_date) FROM table_name_63 WHERE sampling_rate = "12-bit 40khz"
Around what time frame release a Sampling Rate of 12-bit 40khz?
CREATE TABLE table_name_63 (release_date INTEGER, sampling_rate VARCHAR)
SELECT name FROM table_name_90 WHERE round > 10 AND circuit = "silverstone"
Who won Silverstone in a round after 10?
CREATE TABLE table_name_90 (name VARCHAR, round VARCHAR, circuit VARCHAR)
SELECT MIN(against) FROM table_name_51 WHERE venue = "stade colombes, paris"
What is the lowest against for games played in the stade colombes, paris venue?
CREATE TABLE table_name_51 (against INTEGER, venue VARCHAR)
SELECT result FROM table_22032599_1 WHERE film_title_used_in_nomination = "City of the Sun"
What was the result for City of the Sun?
CREATE TABLE table_22032599_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT location FROM table_name_36 WHERE year > 1974 AND date = "september 19"
what is the location when the year is after 1974 and the date is september 19?
CREATE TABLE table_name_36 (location VARCHAR, year VARCHAR, date VARCHAR)
SELECT SUM(time) FROM table_name_70 WHERE lane > 6 AND nationality = "canada" AND react < 0.151
What is the sum of time with a lane larger than 6, a nationality of canada, and the react smaller than 0.151?
CREATE TABLE table_name_70 (time INTEGER, react VARCHAR, lane VARCHAR, nationality VARCHAR)
SELECT T1.first_name, T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'
What is the first name and job id for all employees in the Finance department?
CREATE TABLE departments (department_id VARCHAR, department_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, job_id VARCHAR, department_id VARCHAR)
SELECT written_by FROM table_29273182_1 WHERE production_code = "IP03012"
Who wrote the episode with ip03012 as the production code?
CREATE TABLE table_29273182_1 (written_by VARCHAR, production_code VARCHAR)
SELECT date FROM table_2446333_2 WHERE circuit = "Eastern Creek Raceway"
Name the date for eastern creek raceway
CREATE TABLE table_2446333_2 (date VARCHAR, circuit VARCHAR)
SELECT driver FROM table_name_14 WHERE chassis___engine = "porsche 956 gti"
Who is the driver of the chassis-engine porsche 956 gti?
CREATE TABLE table_name_14 (driver VARCHAR, chassis___engine VARCHAR)
SELECT SUM(drawn) FROM table_name_33 WHERE lost = 4
What is the whole of Drawn that has a Lost of 4?
CREATE TABLE table_name_33 (drawn INTEGER, lost VARCHAR)
SELECT left_office FROM table_name_58 WHERE years_in_office = "2" AND death = "october 23, 1887"
On what date did the person leave office who died on October 23, 1887 and who served 2 years?
CREATE TABLE table_name_58 (left_office VARCHAR, years_in_office VARCHAR, death VARCHAR)
SELECT winner FROM table_name_65 WHERE third_place = "goran ivanišević"
What is the name of the winner when Goran Ivanišević was in third place?
CREATE TABLE table_name_65 (winner VARCHAR, third_place VARCHAR)
SELECT club FROM table_27771406_1 WHERE tests = 2
The player for what club had 2 tests?
CREATE TABLE table_27771406_1 (club VARCHAR, tests VARCHAR)
SELECT COUNT(college) FROM table_10975034_4 WHERE position = "DB"
How many colleges have a DB position?
CREATE TABLE table_10975034_4 (college VARCHAR, position VARCHAR)
SELECT date FROM table_name_2 WHERE game = 35
Which date was game 35 on?
CREATE TABLE table_name_2 (date VARCHAR, game VARCHAR)
SELECT qual_1 FROM table_name_94 WHERE qual_2 = "no time" AND best = "1:16.776"
What is the qual 1 when the qual 2 has no time and the best is 1:16.776?
CREATE TABLE table_name_94 (qual_1 VARCHAR, qual_2 VARCHAR, best VARCHAR)
SELECT score FROM table_name_85 WHERE opponent_in_the_final = "michaela pochabová"
What was the score versus Michaela Pochabová?
CREATE TABLE table_name_85 (score VARCHAR, opponent_in_the_final VARCHAR)