answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT club FROM table_name_67 WHERE points = "56"
What club had 56 points?
CREATE TABLE table_name_67 (club VARCHAR, points VARCHAR)
SELECT original_air_date FROM table_23225927_1 WHERE no_in_season = 22
If the number in the season is 22, what is the original air date?
CREATE TABLE table_23225927_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT opponent FROM table_name_2 WHERE week > 15
Who did the Jets play in their post-week 15 game?
CREATE TABLE table_name_2 (opponent VARCHAR, week INTEGER)
SELECT time FROM table_name_95 WHERE away = "central blues"
What is Time, when Away is Central Blues?
CREATE TABLE table_name_95 (time VARCHAR, away VARCHAR)
SELECT house FROM table_name_24 WHERE abbr = "d"
Which house has an abbreviation of D?
CREATE TABLE table_name_24 (house VARCHAR, abbr VARCHAR)
SELECT country FROM table_name_99 WHERE score = 69 - 71 - 66 = 206
What is the Country of the Player with a Score of 69-71-66=206?
CREATE TABLE table_name_99 (country VARCHAR, score VARCHAR)
SELECT SUM(top_5) FROM table_name_68 WHERE tournament = "totals" AND events > 86
What is the sum of Top-5, when Tournament is Totals, and when Events is greater than 86?
CREATE TABLE table_name_68 (top_5 INTEGER, tournament VARCHAR, events VARCHAR)
SELECT venue FROM table_name_27 WHERE position = "17th"
What is the venue when the result was position of 17th?
CREATE TABLE table_name_27 (venue VARCHAR, position VARCHAR)
SELECT AVG(area__km_2__) FROM table_name_38 WHERE name = "stellenbosch" AND population__2011_ > 155 OFFSET 733
For Stellenbosch, which has a population larger than 155,733, what is the average area?
CREATE TABLE table_name_38 (area__km_2__ INTEGER, name VARCHAR, population__2011_ VARCHAR)
SELECT country FROM table_name_45 WHERE player = "dave barr"
What country has Dave Barr as a player?
CREATE TABLE table_name_45 (country VARCHAR, player VARCHAR)
SELECT MAX(lost) FROM table_name_81 WHERE draw = 0 AND team = "gwardia katowice" AND points < 12
What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice?
CREATE TABLE table_name_81 (lost INTEGER, points VARCHAR, draw VARCHAR, team VARCHAR)
SELECT grid FROM table_name_79 WHERE driver = "jenson button"
What was the grid of Jenson Button?
CREATE TABLE table_name_79 (grid VARCHAR, driver VARCHAR)
SELECT location FROM table_name_81 WHERE year > 1993 AND killed = "100.9"
What location has a killed of 100.9, and a year later than 1993?
CREATE TABLE table_name_81 (location VARCHAR, year VARCHAR, killed VARCHAR)
SELECT mountains_classification FROM table_29077342_19 WHERE team_classification = "Rabobank" AND general_classification = "Damiano Cunego"
Name the mountains classification for rabobank and damiano cunego
CREATE TABLE table_29077342_19 (mountains_classification VARCHAR, team_classification VARCHAR, general_classification VARCHAR)
SELECT d_46 FROM table_name_34 WHERE d_43 = "majority→"
Name the D 46 which has a D 43 of majority→
CREATE TABLE table_name_34 (d_46 VARCHAR, d_43 VARCHAR)
SELECT line FROM table_name_95 WHERE colour = "green"
Which line was green?
CREATE TABLE table_name_95 (line VARCHAR, colour VARCHAR)
SELECT 1 AS st_member FROM table_name_23 WHERE election = "1895"
Which 1st Member has an Election of 1895?
CREATE TABLE table_name_23 (election VARCHAR)
SELECT result_f_a FROM table_name_55 WHERE league_position = "1st" AND date = "21 february 2009"
What was the Result F–A on 21 February 2009, when the league position was 1st?
CREATE TABLE table_name_55 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR)
SELECT nationality FROM table_name_94 WHERE player = "shaun sabol"
What is the nationality of Shaun Sabol?
CREATE TABLE table_name_94 (nationality VARCHAR, player VARCHAR)
SELECT County_name FROM county ORDER BY Population LIMIT 3
Show the 3 counties with the smallest population.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
SELECT MAX(points) FROM table_27539272_5
what is the maximum number of points?
CREATE TABLE table_27539272_5 (points INTEGER)
SELECT MAX(poles) FROM table_1012730_1 WHERE avg_finish = "19.1"
How many poles had an average finish of 19.1?
CREATE TABLE table_1012730_1 (poles INTEGER, avg_finish VARCHAR)
SELECT SUM(copa_del_rey) FROM table_name_80 WHERE la_liga < 0
Which Copa del Rey has a La Liga smaller than 0?
CREATE TABLE table_name_80 (copa_del_rey INTEGER, la_liga INTEGER)
SELECT date FROM table_1140119_5 WHERE circuit = "Silverstone"
What date was the Silverstone circuit driven?
CREATE TABLE table_1140119_5 (date VARCHAR, circuit VARCHAR)
SELECT catalog FROM table_name_31 WHERE label = "alfa records" AND date = "november 21, 1980"
What Catalog has a label of Alfa records and a date of November 21, 1980?
CREATE TABLE table_name_31 (catalog VARCHAR, label VARCHAR, date VARCHAR)
SELECT MIN(season) FROM table_20026849_1 WHERE winner = "Ashutosh Kaushik"
What season was won by Ashutosh Kaushik?
CREATE TABLE table_20026849_1 (season INTEGER, winner VARCHAR)
SELECT partner FROM table_28979895_4 WHERE score = "w/o"
Name the parter for w/o
CREATE TABLE table_28979895_4 (partner VARCHAR, score VARCHAR)
SELECT place FROM table_name_15 WHERE weapon = "35mm fire" AND date = "27 may 1982"
What is Place, when Weapon is "35mm fire", and when Date is "27 May 1982"?
CREATE TABLE table_name_15 (place VARCHAR, weapon VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_26 WHERE week = 3
How many people attended the game on week 3?
CREATE TABLE table_name_26 (attendance INTEGER, week VARCHAR)
SELECT director FROM Movie GROUP BY director HAVING COUNT(*) = 1
What are the names of the directors who made exactly one movie?
CREATE TABLE Movie (director VARCHAR)
SELECT location FROM table_name_56 WHERE opponent = "hiroyuki abe"
What location had the opponent Hiroyuki Abe?
CREATE TABLE table_name_56 (location VARCHAR, opponent VARCHAR)
SELECT us_viewers__millions_ FROM table_27462177_1 WHERE written_by = "Jack Sanderson"
How many millions of US viewers watched the episode written by Jack Sanderson?
CREATE TABLE table_27462177_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT AVG(crowd) FROM table_name_17 WHERE away_team = "north melbourne"
What was the Average crowd when the away team was north melbourne?
CREATE TABLE table_name_17 (crowd INTEGER, away_team VARCHAR)
SELECT stadium FROM table_name_81 WHERE team = "čakovec"
what is the stadium for čakovec?
CREATE TABLE table_name_81 (stadium VARCHAR, team VARCHAR)
SELECT engine FROM table_name_51 WHERE points = 6 AND chassis = "march 88c"
Which engine scored 6 points and used the march 88c chassis?
CREATE TABLE table_name_51 (engine VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT MIN(first_elected) FROM table_1342256_11 WHERE incumbent = "Stephen Pace"
What year was Stephen Pace elected?
CREATE TABLE table_1342256_11 (first_elected INTEGER, incumbent VARCHAR)
SELECT team FROM table_27312918_5 WHERE game = 4
What was the team the Suns played against in game number 4?
CREATE TABLE table_27312918_5 (team VARCHAR, game VARCHAR)
SELECT venue FROM table_name_47 WHERE date = "11 october 2008"
In which venue did the competition on 11 October 2008 take place?
CREATE TABLE table_name_47 (venue VARCHAR, date VARCHAR)
SELECT record FROM table_name_52 WHERE score = "78-59"
What was the record during the game with a score of 78-59?
CREATE TABLE table_name_52 (record VARCHAR, score VARCHAR)
SELECT country FROM table_name_38 WHERE to_par < 7 AND total = 148
Which Country has a To par smaller than 7, and a Total of 148?
CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, total VARCHAR)
SELECT directed_by FROM table_27969432_2 WHERE written_by = "Karina Csolty"
Who directed the episode written by karina csolty
CREATE TABLE table_27969432_2 (directed_by VARCHAR, written_by VARCHAR)
SELECT record FROM table_name_3 WHERE game = 11
what team has a score of 11
CREATE TABLE table_name_3 (record VARCHAR, game VARCHAR)
SELECT date FROM table_17058116_6 WHERE team = "Charlotte"
What day did the team play charlotte?
CREATE TABLE table_17058116_6 (date VARCHAR, team VARCHAR)
SELECT MAX(attendance) FROM table_17360840_9 WHERE opponent = "Ottawa Senators" AND record = "24-35-17"
What was the attendance when the opposing team was the Ottawa Senators and the record was 24-35-17?
CREATE TABLE table_17360840_9 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT winning_driver FROM table_1140117_5 WHERE circuit = "Goodwood"
Who was the winning driver for the goodwood circuit?
CREATE TABLE table_1140117_5 (winning_driver VARCHAR, circuit VARCHAR)
SELECT T1.rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank
Show all the faculty ranks and the number of students advised by each rank.
CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (rank VARCHAR, FacID VARCHAR)
SELECT AVG(week) FROM table_name_41 WHERE date = "november 29, 1970" AND attendance < 31 OFFSET 427
Who was the opponent on the date of November 29, 1970 and the attendance was less than 31,427?
CREATE TABLE table_name_41 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_24 WHERE away_team = "bournemouth"
On what date was the away team Bournemouth?
CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR)
SELECT electrics FROM table_name_28 WHERE engine = "175cc, bhp (kw)" AND model_name = "d10 sports & bushman"
Which Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports & bushman?
CREATE TABLE table_name_28 (electrics VARCHAR, engine VARCHAR, model_name VARCHAR)
SELECT entrant FROM table_name_23 WHERE year < 1965 AND points > 0 AND chassis = "lotus 25"
Which entrant before 1965 scored more than 0 point with the lotus 25 chassis?
CREATE TABLE table_name_23 (entrant VARCHAR, chassis VARCHAR, year VARCHAR, points VARCHAR)
SELECT away_team FROM table_name_61 WHERE home_team = "melbourne"
What away team did Melbourne play as the home team?
CREATE TABLE table_name_61 (away_team VARCHAR, home_team VARCHAR)
SELECT school FROM table_name_17 WHERE colors = "navy blue orange"
What School has Colors of navy blue orange?
CREATE TABLE table_name_17 (school VARCHAR, colors VARCHAR)
SELECT method FROM table_name_58 WHERE weight_class = "welterweight" AND card = "preliminary"
Which method was used in the welterweight class with a preliminary card?
CREATE TABLE table_name_58 (method VARCHAR, weight_class VARCHAR, card VARCHAR)
SELECT sn_sb___percentage_ FROM table_name_4 WHERE liquid_at__°c_ = "258"
What is the Sn/Sb percentage that is liquid at 258 degrees C?
CREATE TABLE table_name_4 (sn_sb___percentage_ VARCHAR, liquid_at__°c_ VARCHAR)
SELECT away_team FROM table_name_80 WHERE round < 3 AND home_team = "queensland roar"
Who was the away team when Queensland Roar was the home team in the round less than 3?
CREATE TABLE table_name_80 (away_team VARCHAR, round VARCHAR, home_team VARCHAR)
SELECT COUNT(attendance) FROM table_name_75 WHERE week < 1
What is the attendance before week 1?
CREATE TABLE table_name_75 (attendance VARCHAR, week INTEGER)
SELECT run_2 FROM table_name_84 WHERE run_1 = "2:09.09"
What is Run 2, when Run 1 is 2:09.09?
CREATE TABLE table_name_84 (run_2 VARCHAR, run_1 VARCHAR)
SELECT season FROM table_237757_10 WHERE low_team = "Chicago Sting"
What was the season when the low team is chicago sting?
CREATE TABLE table_237757_10 (season VARCHAR, low_team VARCHAR)
SELECT yarn_type__us_ FROM table_20297668_1 WHERE standard_yarn_weight_system = "3 or Light"
Name the yarn type for standard yarn weight system for 3 or light
CREATE TABLE table_20297668_1 (yarn_type__us_ VARCHAR, standard_yarn_weight_system VARCHAR)
SELECT election FROM table_name_40 WHERE second_member = "charles robert colvile" AND first_party = "conservative" AND first_member = "william mundy"
Which election has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?
CREATE TABLE table_name_40 (election VARCHAR, first_member VARCHAR, second_member VARCHAR, first_party VARCHAR)
SELECT features FROM table_name_18 WHERE datacenter = "yes"
Which Features have Yes listed under Datacenter?
CREATE TABLE table_name_18 (features VARCHAR, datacenter VARCHAR)
SELECT event FROM table_name_88 WHERE time = "5:00" AND record = "10-4"
What event did Tim hague have a fight that had a time of 5:00 and a record of 10-4?
CREATE TABLE table_name_88 (event VARCHAR, time VARCHAR, record VARCHAR)
SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION <> 'United States'
In which year are there festivals both inside the 'United States' and outside the 'United States'?
CREATE TABLE festival_detail (YEAR VARCHAR, LOCATION VARCHAR)
SELECT decision FROM table_name_83 WHERE date = "january 12"
Which team won the game on January 12?
CREATE TABLE table_name_83 (decision VARCHAR, date VARCHAR)
SELECT theme, YEAR FROM exhibition WHERE ticket_price < 15
Show theme and year for all exhibitions with ticket prices lower than 15.
CREATE TABLE exhibition (theme VARCHAR, YEAR VARCHAR, ticket_price INTEGER)
SELECT record FROM table_name_23 WHERE high_rebounds = "marc gasol (8)"
what is the record when marc gasol (8) had the high rebounds?
CREATE TABLE table_name_23 (record VARCHAR, high_rebounds VARCHAR)
SELECT opponent FROM table_name_71 WHERE loss = "weaver (1-2)"
Who was the opponent at the game with a loss of Weaver (1-2)?
CREATE TABLE table_name_71 (opponent VARCHAR, loss VARCHAR)
SELECT AVG(decile) FROM table_name_74 WHERE name = "francis douglas memorial college"
What is the avererage decile of Francis Douglas Memorial College?
CREATE TABLE table_name_74 (decile INTEGER, name VARCHAR)
SELECT SUM(year) FROM table_name_12 WHERE points = 4 AND chassis = "ensign n180b"
How many years was ensign n180b a Chassis with 4 points?
CREATE TABLE table_name_12 (year INTEGER, points VARCHAR, chassis VARCHAR)
SELECT stage AS winner FROM table_name_38 WHERE start_of_stage = "cauterets"
Who was the stage winner when the start of stage is Cauterets?
CREATE TABLE table_name_38 (stage VARCHAR, start_of_stage VARCHAR)
SELECT score FROM table_name_64 WHERE date = "23 november 2003"
What was the score of the competition on 23 November 2003?
CREATE TABLE table_name_64 (score VARCHAR, date VARCHAR)
SELECT COUNT(gdp_millions_of_usd__2009_) FROM table_1496582_1 WHERE country___territory = "Indonesia"
What was the GDP (in millions USD) of Indonesia in 2009?
CREATE TABLE table_1496582_1 (gdp_millions_of_usd__2009_ VARCHAR, country___territory VARCHAR)
SELECT iucn FROM table_name_96 WHERE est = 1998 AND reserve = "gales point"
What is the IUCN for the gales point reserve when the Est. is 1998?
CREATE TABLE table_name_96 (iucn VARCHAR, est VARCHAR, reserve VARCHAR)
SELECT losing_bonus FROM table_name_32 WHERE points = "0"
If the points were 0, what was the losing bonus?
CREATE TABLE table_name_32 (losing_bonus VARCHAR, points VARCHAR)
SELECT points_difference FROM table_name_29 WHERE points = 14
I want the points difference for points of 14
CREATE TABLE table_name_29 (points_difference VARCHAR, points VARCHAR)
SELECT club_province FROM table_name_41 WHERE player = "david penalva"
Which Club/province has a Player of david penalva?
CREATE TABLE table_name_41 (club_province VARCHAR, player VARCHAR)
SELECT MAX(lane) FROM table_name_67 WHERE nationality = "malta"
What is the highest Lane used by a racer from Malta?
CREATE TABLE table_name_67 (lane INTEGER, nationality VARCHAR)
SELECT english_country_name FROM table_name_59 WHERE english_capital_name = "ramallah"
What is the English name of the country that has Ramallah as its capital?
CREATE TABLE table_name_59 (english_country_name VARCHAR, english_capital_name VARCHAR)
SELECT coach FROM table_name_8 WHERE details = "2010 gold coast titans season"
Who is the coach of the 2010 Gold Coast Titans season?
CREATE TABLE table_name_8 (coach VARCHAR, details VARCHAR)
SELECT MAX(gold) FROM table_name_96 WHERE rank < 6 AND silver = 1 AND total > 4
What is the most gold medals that a team ranked higher than 6, have 1 silver medal, and more than 4 total medals have?
CREATE TABLE table_name_96 (gold INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR)
SELECT treasurer FROM table_18052353_4 WHERE year = "2008"
Who was treasurer in 2008?
CREATE TABLE table_18052353_4 (treasurer VARCHAR, year VARCHAR)
SELECT SUM(roll) FROM table_name_63 WHERE area = "raetihi" AND name = "orautoha school" AND decile < 8
What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8?
CREATE TABLE table_name_63 (roll INTEGER, decile VARCHAR, area VARCHAR, name VARCHAR)
SELECT built FROM table_1886270_1 WHERE withdrawn = "2/1939"
When 2/1939 is the withdrawn when was it built?
CREATE TABLE table_1886270_1 (built VARCHAR, withdrawn VARCHAR)
SELECT team_1 FROM table_name_19 WHERE team_2 = "hankook verdes"
Which team 1 had a Team 2 of hankook verdes?
CREATE TABLE table_name_19 (team_1 VARCHAR, team_2 VARCHAR)
SELECT player FROM table_name_78 WHERE place = "2"
What Player has a Place of 2?
CREATE TABLE table_name_78 (player VARCHAR, place VARCHAR)
SELECT outcome FROM table_name_90 WHERE score = "3–6 2–6"
Which Outcome has a Score of 3–6 2–6?
CREATE TABLE table_name_90 (outcome VARCHAR, score VARCHAR)
SELECT name FROM Person WHERE age < 30
Who is the person whose age is below 30?
CREATE TABLE Person (name VARCHAR, age INTEGER)
SELECT team FROM table_1405704_1 WHERE chassis = "McLaren" AND engine = "Offenhauser"
What team has a vehicle with an Offenhauser engine and a McLaren chassis?
CREATE TABLE table_1405704_1 (team VARCHAR, chassis VARCHAR, engine VARCHAR)
SELECT tv_time FROM table_name_63 WHERE date = "december 26, 1999"
Which TV Time has a Date of december 26, 1999?
CREATE TABLE table_name_63 (tv_time VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_48 WHERE visitor = "philadelphia" AND date = "may 20"
How many Attendances that has a Visitor of philadelphia on may 20?
CREATE TABLE table_name_48 (attendance INTEGER, visitor VARCHAR, date VARCHAR)
SELECT team FROM table_name_29 WHERE high_assists = "alvin williams (6)"
What is the team when alvin williams (6) has the high assists?
CREATE TABLE table_name_29 (team VARCHAR, high_assists VARCHAR)
SELECT written_by FROM table_29391888_1 WHERE directed_by = "Kevin Inch"
Who wrote the episode that was directed by Kevin Inch?
CREATE TABLE table_29391888_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT chassis FROM table_name_14 WHERE tyre = "b" AND engine_† = "ferrari 050 ferrari 051" AND driver = "rubens barrichello"
what is the chassis when the tyre is b, the engine is ferrari 050 ferrari 051 and the driver is rubens barrichello?
CREATE TABLE table_name_14 (chassis VARCHAR, driver VARCHAR, tyre VARCHAR, engine_† VARCHAR)
SELECT division_two FROM table_name_26 WHERE premier_division = "leominster town"
Which Division Two team were champions as the same time the Premier Division Leominster town team were champs?
CREATE TABLE table_name_26 (division_two VARCHAR, premier_division VARCHAR)
SELECT MIN(play_offs) FROM table_name_48 WHERE league = 4 AND fa_cup > 1
What's the lowest Play-offs with a League of 4 and FA Cup larger than 1?
CREATE TABLE table_name_48 (play_offs INTEGER, league VARCHAR, fa_cup VARCHAR)
SELECT brand_name FROM table_24018112_1 WHERE model__list_ = "i7-8xx"
What brand is model I7-8xx?
CREATE TABLE table_24018112_1 (brand_name VARCHAR, model__list_ VARCHAR)
SELECT record FROM table_11959669_6 WHERE high_assists = "Pierce (6)"
What is the record where high assists is pierce (6)?
CREATE TABLE table_11959669_6 (record VARCHAR, high_assists VARCHAR)
SELECT date FROM table_name_14 WHERE home_team = "tranmere rovers"
Name the Home team of tranmere rovers?
CREATE TABLE table_name_14 (date VARCHAR, home_team VARCHAR)
SELECT position FROM table_name_9 WHERE round > 6 AND overall = 191
WHAT IS THE POSITION WITH A ROUND LARGER THAN 6, AND OVERALL OF 191?
CREATE TABLE table_name_9 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT MIN(total) FROM table_name_42 WHERE gold = 11 AND bronze > 2
What is the smallest total that has 11 golds and bronzes over 2?
CREATE TABLE table_name_42 (total INTEGER, gold VARCHAR, bronze VARCHAR)