answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT status FROM table_name_39 WHERE opposing_teams = "u.s.a."
Who won the event against U.S.A.?
CREATE TABLE table_name_39 (status VARCHAR, opposing_teams VARCHAR)
SELECT team FROM table_name_61 WHERE game > 55 AND date = "february 24"
Who was the Team that was played against on February 24 and a game after game 55?
CREATE TABLE table_name_61 (team VARCHAR, game VARCHAR, date VARCHAR)
SELECT premiere FROM table_name_86 WHERE channel = "tvb jade"
When was the premiere on the TVB Jade Channel?
CREATE TABLE table_name_86 (premiere VARCHAR, channel VARCHAR)
SELECT MAX(cuts_made) FROM table_name_54 WHERE top_25 = 4
Which tournament has the highest number of cuts while also having 4 top 25 appearances?
CREATE TABLE table_name_54 (cuts_made INTEGER, top_25 VARCHAR)
SELECT SUM(silver) FROM table_name_62 WHERE gold = 20
How many silver medals did the country that won 20 gold medals win in the 1955 Pan American Games?
CREATE TABLE table_name_62 (silver INTEGER, gold VARCHAR)
SELECT candidate FROM table_name_57 WHERE race = "state representative, hd18"
Who is the candidate in Race for State representative, hd18?
CREATE TABLE table_name_57 (candidate VARCHAR, race VARCHAR)
SELECT q1 + q2_time FROM table_name_51 WHERE q1_time = "1:14.819"
What is the Q1+Q2 time for the driver whose Q1 time was 1:14.819, ?
CREATE TABLE table_name_51 (q1 VARCHAR, q2_time VARCHAR, q1_time VARCHAR)
SELECT MAX(reset_points) FROM table_28498999_6 WHERE player = "Luke Donald"
what is the most number where the person is luke donald
CREATE TABLE table_28498999_6 (reset_points INTEGER, player VARCHAR)
SELECT writer_s_ FROM table_name_4 WHERE recipient = "red rose chain ltd"
Who is the writer for Red Rose Chain LTD?
CREATE TABLE table_name_4 (writer_s_ VARCHAR, recipient VARCHAR)
SELECT winning_driver FROM table_name_25 WHERE race = "dutch grand prix"
Who was the winning driver for the Dutch Grand Prix?
CREATE TABLE table_name_25 (winning_driver VARCHAR, race VARCHAR)
SELECT AVG(goals) FROM table_name_43 WHERE latest_cap = "april 24, 2013" AND caps > 97
How many goals are associated with over 97 caps and a Latest cap of april 24, 2013?
CREATE TABLE table_name_43 (goals INTEGER, latest_cap VARCHAR, caps VARCHAR)
SELECT upstream FROM table_17304621_14 WHERE price_tl = "39 TL"
What is the upstream speed of the network that costs 39 tl?
CREATE TABLE table_17304621_14 (upstream VARCHAR, price_tl VARCHAR)
SELECT AVG(year) FROM table_name_22 WHERE result = "24-14"
What year was the game that ended with a score of 24-14?
CREATE TABLE table_name_22 (year INTEGER, result VARCHAR)
SELECT MIN(drawn) FROM table_name_86 WHERE points = 2 AND lost < 6
What is the fewest drawn matches for teams with 2 points and fewer than 6 losses?
CREATE TABLE table_name_86 (drawn INTEGER, points VARCHAR, lost VARCHAR)
SELECT COUNT(director) FROM table_10470082_4 WHERE _number = 1
Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3?
CREATE TABLE table_10470082_4 (director VARCHAR, _number VARCHAR)
SELECT train_name FROM table_29301050_1 WHERE arrival_lonavla = "17:45"
which train name arrives in lonavla at 17:45
CREATE TABLE table_29301050_1 (train_name VARCHAR, arrival_lonavla VARCHAR)
SELECT player FROM table_11734041_11 WHERE no_s_ = "3"
Who is the player who's number is 3?
CREATE TABLE table_11734041_11 (player VARCHAR, no_s_ VARCHAR)
SELECT SUM(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Jose State University"
How many undergraduates are there in "San Jose State University" in year 2004?
CREATE TABLE discipline_enrollments (undergraduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)
SELECT written_by FROM table_name_12 WHERE directed_by = "dan lerner"
Who wrote the episode that was directed by dan lerner?
CREATE TABLE table_name_12 (written_by VARCHAR, directed_by VARCHAR)
SELECT date FROM table_name_76 WHERE result = "draw"
When did the draw happen?
CREATE TABLE table_name_76 (date VARCHAR, result VARCHAR)
SELECT status FROM table_name_70 WHERE opposing_teams = "wales"
What is the status of the Wales opposing team?
CREATE TABLE table_name_70 (status VARCHAR, opposing_teams VARCHAR)
SELECT AVG(wins) FROM table_name_18 WHERE years = "1881" AND pct > 0.75
Which Wins have Years of 1881, and a Pct larger than 0.75?
CREATE TABLE table_name_18 (wins INTEGER, years VARCHAR, pct VARCHAR)
SELECT season FROM table_20867295_2 WHERE winner = "Ajax" AND third_place = "Twente"
When twente came in third place and ajax was the winner what are the seasons?
CREATE TABLE table_20867295_2 (season VARCHAR, winner VARCHAR, third_place VARCHAR)
SELECT year FROM table_name_38 WHERE attendance = "90,000"
What year had an attendance of 90,000?
CREATE TABLE table_name_38 (year VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_97 WHERE home_team = "notts county"
What is the score for the home team Notts County?
CREATE TABLE table_name_97 (score VARCHAR, home_team VARCHAR)
SELECT position FROM table_name_15 WHERE hometown_school = "westlake, california"
What is Posititon, when Hometown/School is "Westlake, California"?
CREATE TABLE table_name_15 (position VARCHAR, hometown_school VARCHAR)
SELECT home FROM table_name_34 WHERE date = "march 12"
Where is the home on march 12?
CREATE TABLE table_name_34 (home VARCHAR, date VARCHAR)
SELECT DISTINCT Reign FROM wrestler WHERE LOCATION <> "Tokyo , Japan"
What are the distinct reigns of wrestlers whose location is not "Tokyo,Japan" ?
CREATE TABLE wrestler (Reign VARCHAR, LOCATION VARCHAR)
SELECT term_of_office FROM table_name_1 WHERE state = "nsw" AND member = "leonard reynolds"
What is the Term of office for Leonard Reynolds of NSW?
CREATE TABLE table_name_1 (term_of_office VARCHAR, state VARCHAR, member VARCHAR)
SELECT MIN(2 AS nd__m_) FROM table_name_5 WHERE name = "gregor schlierenzauer"
What is the 2nd (m) value for Gregor Schlierenzauer?
CREATE TABLE table_name_5 (name VARCHAR)
SELECT 1 AS st_round FROM table_name_90 WHERE team_1 = "angers sco (d1)"
Which first round has a first team of angers sco (d1)?
CREATE TABLE table_name_90 (team_1 VARCHAR)
SELECT COUNT(rank) FROM table_name_33 WHERE events > 23 AND prize_money__$__ > 823 OFFSET 783
What is the rank for the player with events greater than 23 and prize money in excess of $823,783?
CREATE TABLE table_name_33 (rank VARCHAR, events VARCHAR, prize_money__$__ VARCHAR)
SELECT 54 AS _holes FROM table_name_33 WHERE runner_s__up = "phil mickelson"
What is the round of 54 holes in which Phil Mickelson was the runner-up?
CREATE TABLE table_name_33 (runner_s__up VARCHAR)
SELECT opponent FROM table_name_54 WHERE attendance = "65,537"
Who did the cowboys play when 65,537 attended?
CREATE TABLE table_name_54 (opponent VARCHAR, attendance VARCHAR)
SELECT indians_admitted FROM table_1717824_3 WHERE year = 2001
How many Indians were admitted in 2001?
CREATE TABLE table_1717824_3 (indians_admitted VARCHAR, year VARCHAR)
SELECT score FROM table_name_55 WHERE country = "australia"
What is the score of Australia?
CREATE TABLE table_name_55 (score VARCHAR, country VARCHAR)
SELECT result FROM table_1342331_43 WHERE incumbent = "Richard M. Kleberg"
what happened during the election for Richard M. Kleberg?
CREATE TABLE table_1342331_43 (result VARCHAR, incumbent VARCHAR)
SELECT record FROM table_name_78 WHERE opponent = "yukiya naito"
Tell me the record for yukiya naito
CREATE TABLE table_name_78 (record VARCHAR, opponent VARCHAR)
SELECT MIN(obama_number) FROM table_20722805_1 WHERE obama_percentage = "32.12%"
How many votes did Obama have at 32.12%
CREATE TABLE table_20722805_1 (obama_number INTEGER, obama_percentage VARCHAR)
SELECT directed_by FROM table_23242968_1 WHERE written_by = "Jonathan Fener"
Who directed the episode that was written by Jonathan Fener?
CREATE TABLE table_23242968_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT COUNT(original_airdate) FROM table_12451376_2 WHERE production_code = 208
What is the number of the original airdate with the production code 208.
CREATE TABLE table_12451376_2 (original_airdate VARCHAR, production_code VARCHAR)
SELECT SUM(place) FROM table_name_71 WHERE points < 28 AND lost < 11 AND played < 18
What place is associated with under 28 points, under 11 games lost, and under 18 games played?
CREATE TABLE table_name_71 (place INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR)
SELECT MIN(fa_cup_goals) FROM table_27170987_5
What is the lowest number of fa cup goals by a player?
CREATE TABLE table_27170987_5 (fa_cup_goals INTEGER)
SELECT frequency__hz_ FROM table_261642_3 WHERE g__μs_km_ = "53.205"
what is the frequency (hz) when the g (μs/km) is 53.205?
CREATE TABLE table_261642_3 (frequency__hz_ VARCHAR, g__μs_km_ VARCHAR)
SELECT market_income_per_capita FROM table_22815568_2 WHERE poverty_rate = "9.4%"
What is the market income per capita of the county with the 9.4% poverty rate?
CREATE TABLE table_22815568_2 (market_income_per_capita VARCHAR, poverty_rate VARCHAR)
SELECT AVG(wins) FROM table_name_59 WHERE club = "barcelona atlètic" AND goals_for > 56
Which average wins have a Club of barcelona atlètic, and Goals for larger than 56?
CREATE TABLE table_name_59 (wins INTEGER, club VARCHAR, goals_for VARCHAR)
SELECT venue FROM table_name_29 WHERE competition = "2000 tiger cup" AND date = "november 10, 2000"
What venue did the 2000 tiger cup take place at on November 10, 2000?
CREATE TABLE table_name_29 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT date FROM table_name_94 WHERE surface = "clay"
On which date did the tournament final with the clay surface take place?
CREATE TABLE table_name_94 (date VARCHAR, surface VARCHAR)
SELECT military_and_or_civilian_wounded FROM table_name_39 WHERE civilian_deaths = "unknown" AND total_deaths__not_including_foreigners_ = "unknown"
How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?
CREATE TABLE table_name_39 (military_and_or_civilian_wounded VARCHAR, civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR)
SELECT pole_position FROM table_name_82 WHERE race_name = "2006 gehl championship finale"
What pole position did 2006 gehl championship finale have?
CREATE TABLE table_name_82 (pole_position VARCHAR, race_name VARCHAR)
SELECT home FROM table_name_1 WHERE visitor = "philadelphia" AND date = "december 4"
What home has Philadelphia as the visitor, and december 4 as the date?
CREATE TABLE table_name_1 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT location FROM table_name_7 WHERE time = "2:33"
Where was the fight located that lasted a time of 2:33?
CREATE TABLE table_name_7 (location VARCHAR, time VARCHAR)
SELECT rally_hq FROM table_name_9 WHERE round = 1
Where was the Rally HQ for Round 1?
CREATE TABLE table_name_9 (rally_hq VARCHAR, round VARCHAR)
SELECT COUNT(attendance) FROM table_23308178_9 WHERE record = "49-15-11"
How many times was there a record of 49-15-11?
CREATE TABLE table_23308178_9 (attendance VARCHAR, record VARCHAR)
SELECT english_name FROM table_1638437_2 WHERE simplified = "崖城镇"
Name the english name for 崖城镇
CREATE TABLE table_1638437_2 (english_name VARCHAR, simplified VARCHAR)
SELECT written_by FROM table_28037619_2 WHERE us_viewers__million_ = "6.05"
Who wrote the episode that had 6.05 million U.s. viewers?
CREATE TABLE table_28037619_2 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T1.rank = "Professor"
Show the ids of students whose advisors are professors.
CREATE TABLE Student (StuID VARCHAR, advisor VARCHAR); CREATE TABLE Faculty (FacID VARCHAR, rank VARCHAR)
SELECT MIN(overall) FROM table_name_30 WHERE position = "cornerback" AND pick__number < 16
Which cornerback has the lowest overall and a pick number smaller than 16?
CREATE TABLE table_name_30 (overall INTEGER, position VARCHAR, pick__number VARCHAR)
SELECT nation FROM table_name_3 WHERE gold = 29
Which nation won 29 gold medals?
CREATE TABLE table_name_3 (nation VARCHAR, gold VARCHAR)
SELECT winner FROM table_name_31 WHERE semi_finalists = "anke huber chanda rubin"
What is the Winner when anke huber chanda rubin was semi finalist?
CREATE TABLE table_name_31 (winner VARCHAR, semi_finalists VARCHAR)
SELECT try_bonus FROM table_14070062_4 WHERE points = "48"
how many extra points were there when the score was 48
CREATE TABLE table_14070062_4 (try_bonus VARCHAR, points VARCHAR)
SELECT location FROM table_name_70 WHERE game = 42
What is Location, when Game is 42?
CREATE TABLE table_name_70 (location VARCHAR, game VARCHAR)
SELECT safari FROM table_name_62 WHERE firefox = "31.27%"
What percentage of browsers were using Safari during the period in which 31.27% were using Firefox?
CREATE TABLE table_name_62 (safari VARCHAR, firefox VARCHAR)
SELECT label FROM table_name_86 WHERE date = "28 march 2007" AND catalog = "magik muzik cd 07"
Which label released the catalog Magik Muzik CD 07 on 28 March 2007?
CREATE TABLE table_name_86 (label VARCHAR, date VARCHAR, catalog VARCHAR)
SELECT city FROM table_name_32 WHERE floors = 35
In what city does the tallest building have 35 floors?
CREATE TABLE table_name_32 (city VARCHAR, floors VARCHAR)
SELECT AVG(GNP), SUM(population) FROM country WHERE GovernmentForm = "US Territory"
What is the average GNP and total population in all nations whose government is US territory?
CREATE TABLE country (GNP INTEGER, population INTEGER, GovernmentForm VARCHAR)
SELECT position FROM table_name_29 WHERE player = "gibril wilson"
Which Position has a Player of gibril wilson?
CREATE TABLE table_name_29 (position VARCHAR, player VARCHAR)
SELECT written_by FROM table_name_5 WHERE prod_code > 1.4 AND directed_by = "rick wallace"
Who wrote the episode with a production code greater than 1.4 direcyed by rick wallace?
CREATE TABLE table_name_5 (written_by VARCHAR, prod_code VARCHAR, directed_by VARCHAR)
SELECT week_2 FROM table_name_16 WHERE week_3 = "casey mae"
What Week 2 has a Week 3 of casey mae?
CREATE TABLE table_name_16 (week_2 VARCHAR, week_3 VARCHAR)
SELECT part_number_s_ FROM table_name_52 WHERE turbo = "9/11" AND frequency = "1.5 ghz"
what is the part number(s) when the turbo is 9/11 and the frequency is 1.5 ghz?
CREATE TABLE table_name_52 (part_number_s_ VARCHAR, turbo VARCHAR, frequency VARCHAR)
SELECT SUM(seats) FROM table_name_53 WHERE quantity > 45
How many seats have a quantity over 45?
CREATE TABLE table_name_53 (seats INTEGER, quantity INTEGER)
SELECT result FROM table_name_74 WHERE venue = "suwon world cup stadium , suwon , south korea" AND score = "3–0"
For the venue of suwon world cup stadium , suwon , south korea and a Score of 3–0 what is the result?
CREATE TABLE table_name_74 (result VARCHAR, venue VARCHAR, score VARCHAR)
SELECT player_name FROM table_10966926_2 WHERE college = "Michigan State"
Which player went to Michigan State?
CREATE TABLE table_10966926_2 (player_name VARCHAR, college VARCHAR)
SELECT season FROM table_name_47 WHERE position = "14th"
What season had a 14th position?
CREATE TABLE table_name_47 (season VARCHAR, position VARCHAR)
SELECT score FROM table_18183850_12 WHERE opponent_team = "Belgium"
What was the score when the opposing team was from Belgium?
CREATE TABLE table_18183850_12 (score VARCHAR, opponent_team VARCHAR)
SELECT home FROM table_name_41 WHERE date = "january 8"
Who was the home team on January 8?
CREATE TABLE table_name_41 (home VARCHAR, date VARCHAR)
SELECT year FROM table_name_9 WHERE driver = "e. meyer"
What year was E. Meyer the driver?
CREATE TABLE table_name_9 (year VARCHAR, driver VARCHAR)
SELECT nationality FROM table_name_80 WHERE time = "2:12.56"
What is the nationality of the athlete with a time of 2:12.56?
CREATE TABLE table_name_80 (nationality VARCHAR, time VARCHAR)
SELECT MAX(year) FROM table_name_77 WHERE bronze = "china"
What is the most recent year that China won a bronze?
CREATE TABLE table_name_77 (year INTEGER, bronze VARCHAR)
SELECT COUNT(*) FROM club
How many clubs are there?
CREATE TABLE club (Id VARCHAR)
SELECT dutch FROM table_name_48 WHERE crimean_gothic = "apel"
What's the Dutch word for Apel?
CREATE TABLE table_name_48 (dutch VARCHAR, crimean_gothic VARCHAR)
SELECT acquisition_via FROM table_name_79 WHERE position = "forward" AND school_club_team = "state"
Which acquisition via has a position of forward and is on the state school or club?
CREATE TABLE table_name_79 (acquisition_via VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT opponents_in_the_final FROM table_name_79 WHERE partner = "olga lugina"
Which Opponents in the final has a Partner of olga lugina?
CREATE TABLE table_name_79 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT event FROM table_name_4 WHERE total = "defending champion"
What event is defending champion the total?
CREATE TABLE table_name_4 (event VARCHAR, total VARCHAR)
SELECT date_of_birth__age_ FROM table_name_19 WHERE player = "nese malifa"
When was nese malifa born?
CREATE TABLE table_name_19 (date_of_birth__age_ VARCHAR, player VARCHAR)
SELECT AVG(attendance) FROM table_name_46 WHERE opponent = "@ philadelphia flyers" AND game < 42
What is the average Attendance, when Opponent is @ Philadelphia Flyers, and when Game is less than 42?
CREATE TABLE table_name_46 (attendance INTEGER, opponent VARCHAR, game VARCHAR)
SELECT DISTINCT POSITION FROM pilot WHERE Age > 30
List the distinct positions of pilots older than 30.
CREATE TABLE pilot (POSITION VARCHAR, Age INTEGER)
SELECT track FROM table_name_34 WHERE turns = "18"
Where is the track located with 18 turns?
CREATE TABLE table_name_34 (track VARCHAR, turns VARCHAR)
SELECT tues_25_aug FROM table_23465864_5 WHERE fri_28_aug = "23' 54.54 94.684mph"
What is every value on Tuesday August 25 if August Friday 28 is 23' 54.54 94.684mph?
CREATE TABLE table_23465864_5 (tues_25_aug VARCHAR, fri_28_aug VARCHAR)
SELECT date FROM table_name_25 WHERE home = "mavericks"
What was the date of the Mavericks home game?
CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR)
SELECT 2006 FROM table_name_83 WHERE 2011 = "0"
With a 2011 of 0 what was the 2006 result?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT speed FROM table_name_87 WHERE location = "coniston water" AND pilot_s_ = "malcolm campbell"
How fast was the speed during the record set at Coniston Water that was piloted by Malcolm Campbell?
CREATE TABLE table_name_87 (speed VARCHAR, location VARCHAR, pilot_s_ VARCHAR)
SELECT released_date FROM table_1616608_2 WHERE western_title = "Polarium"
What was the released date of Polarium?
CREATE TABLE table_1616608_2 (released_date VARCHAR, western_title VARCHAR)
SELECT MIN(year) FROM table_name_89 WHERE chassis = "jordan 193"
What was the first year to have a Chassis of Jordan 193?
CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR)
SELECT first_elected FROM table_1342338_3 WHERE result = "Lost renomination"
How many in lost renomination results were elected first?
CREATE TABLE table_1342338_3 (first_elected VARCHAR, result VARCHAR)
SELECT COUNT(percentage__2006_) FROM table_2328113_1 WHERE mother_tongue = "French"
How many percentages (2006) are there for the population whose mother tongue is French?
CREATE TABLE table_2328113_1 (percentage__2006_ VARCHAR, mother_tongue VARCHAR)
SELECT game FROM table_name_50 WHERE date = "april 27"
What was the game number that took place on April 27?
CREATE TABLE table_name_50 (game VARCHAR, date VARCHAR)
SELECT MIN(gold) FROM table_name_68 WHERE total < 3 AND silver > 1
what is the gold count with total less than 3 and more than 1 silver?
CREATE TABLE table_name_68 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT name FROM Employee WHERE salary > (SELECT AVG(salary) FROM Employee)
Show names for all employees with salary more than the average.
CREATE TABLE Employee (name VARCHAR, salary INTEGER)
SELECT kickoff_[a_] FROM table_name_60 WHERE week = "5"
What time was the kickoff on week 5?
CREATE TABLE table_name_60 (kickoff_ VARCHAR, a_ VARCHAR, week VARCHAR)