answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT tenure FROM table_name_23 WHERE name = "gary david saunders"
What is Gary David Saunders' Tenure?
CREATE TABLE table_name_23 (tenure VARCHAR, name VARCHAR)
SELECT game_site FROM table_name_1 WHERE date = "october 17, 1999"
Which Game Site has a Date of october 17, 1999?
CREATE TABLE table_name_1 (game_site VARCHAR, date VARCHAR)
SELECT oricon_albums_chart FROM table_23180638_1 WHERE debut_sales__copies_ = 101976
Which charts had debut sales of 101976?
CREATE TABLE table_23180638_1 (oricon_albums_chart VARCHAR, debut_sales__copies_ VARCHAR)
SELECT junior_marquee_player FROM table_name_22 WHERE captain = "harry kewell"
What Junior Marquee team is Harry Kewell of?
CREATE TABLE table_name_22 (junior_marquee_player VARCHAR, captain VARCHAR)
SELECT SUM(grid) FROM table_name_96 WHERE manufacturer = "aprilia" AND rider = "sandro cortese"
Can you tell me the sum of Grid that has the Manufacturer of aprilia, and the sandro cortese?
CREATE TABLE table_name_96 (grid INTEGER, manufacturer VARCHAR, rider VARCHAR)
SELECT total_time FROM table_name_21 WHERE bike__40km_ = "58:20"
For the triathlon with a bike (40km) of 58:20 what is the total time?
CREATE TABLE table_name_21 (total_time VARCHAR, bike__40km_ VARCHAR)
SELECT MIN(goals) FROM table_name_4 WHERE player = "noel carroll"
Which Goals have a Player of noel carroll?
CREATE TABLE table_name_4 (goals INTEGER, player VARCHAR)
SELECT producer FROM table_name_32 WHERE director = "bona fajardo"
What is Director Bona Fajardo's Producer?
CREATE TABLE table_name_32 (producer VARCHAR, director VARCHAR)
SELECT barrel_twist FROM table_12834315_8 WHERE barrel_profile = "SFW"
What is the value of barrel twist when the barrel profile is SFW?
CREATE TABLE table_12834315_8 (barrel_twist VARCHAR, barrel_profile VARCHAR)
SELECT status FROM table_name_18 WHERE against > 16 AND opposing_teams = "france"
What is the status of the game against France with more than 16 against?
CREATE TABLE table_name_18 (status VARCHAR, against VARCHAR, opposing_teams VARCHAR)
SELECT call_sign FROM table_name_7 WHERE owner = "astral media"
What is the call sign for the radio owned by astral media?
CREATE TABLE table_name_7 (call_sign VARCHAR, owner VARCHAR)
SELECT city FROM table_28281704_1 WHERE stadium = "Los Angeles stadium"
Name the city for los angeles stadium
CREATE TABLE table_28281704_1 (city VARCHAR, stadium VARCHAR)
SELECT date FROM table_27733258_7 WHERE game = 29
what date was game 29?
CREATE TABLE table_27733258_7 (date VARCHAR, game VARCHAR)
SELECT original_air_date FROM table_29584044_1 WHERE no_in_series = 31
What is the original air date of the episode that was number 31 in the series?
CREATE TABLE table_29584044_1 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT points FROM table_17941032_3 WHERE tries_for = "49"
Name the points when tries for is 49
CREATE TABLE table_17941032_3 (points VARCHAR, tries_for VARCHAR)
SELECT viewers__in_millions_ FROM table_23255941_1 WHERE directed_by = "Christine Moore"
How many millions of viewers watched the episode directed by Christine Moore?
CREATE TABLE table_23255941_1 (viewers__in_millions_ VARCHAR, directed_by VARCHAR)
SELECT T1.organisation_id, COUNT(*) FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1
List the organisation id with the maximum outcome count, and the count.
CREATE TABLE Project_outcomes (project_id VARCHAR); CREATE TABLE Projects (organisation_id VARCHAR, project_id VARCHAR)
SELECT SUM(points) FROM table_name_40 WHERE team = "bultaco" AND rank = "6th"
How many points did she have with team bultaco, ranked 6th?
CREATE TABLE table_name_40 (points INTEGER, team VARCHAR, rank VARCHAR)
SELECT year FROM table_name_39 WHERE outcome = "runner-up" AND opponent = "filippo volandri"
What year was the match against filippo volandri where xavier malisse was runner-up?
CREATE TABLE table_name_39 (year VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT model_number FROM table_name_32 WHERE order_part_number = "tmdml44bkx5ld"
Which model number has an order part number of TMDML44BKX5LD?
CREATE TABLE table_name_32 (model_number VARCHAR, order_part_number VARCHAR)
SELECT AVG(goals) FROM table_name_81 WHERE team = "kairat" AND season = "2002" AND apps > 29
What is the average Goals for team Kairat, in the 2002 season with more than 29 apps?
CREATE TABLE table_name_81 (goals INTEGER, apps VARCHAR, team VARCHAR, season VARCHAR)
SELECT name FROM captain ORDER BY age DESC
Sort all captain names by their ages from old to young.
CREATE TABLE captain (name VARCHAR, age VARCHAR)
SELECT venue FROM table_name_82 WHERE date = "14 november 1998"
What was the venue on 14 november 1998?
CREATE TABLE table_name_82 (venue VARCHAR, date VARCHAR)
SELECT type FROM table_name_50 WHERE works_number = "unknown"
What is Type, when Works Number is "unknown"?
CREATE TABLE table_name_50 (type VARCHAR, works_number VARCHAR)
SELECT COUNT(first_elected) FROM table_1342218_24 WHERE incumbent = "William M. Colmer"
How many times was william m. colmer winstead first elected?
CREATE TABLE table_1342218_24 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(matches) FROM table_name_88 WHERE strike_rate < 152.3 AND balls = 395
Can you tell me the total number of Matched that has the Strike Rate smallet than 152.3, and the Balls of 395?
CREATE TABLE table_name_88 (matches VARCHAR, strike_rate VARCHAR, balls VARCHAR)
SELECT manufacturer FROM table_name_47 WHERE grid < 9 AND time = "+22.517"
Which Manufacturer has a Grid smaller than 9, and a Time of +22.517?
CREATE TABLE table_name_47 (manufacturer VARCHAR, grid VARCHAR, time VARCHAR)
SELECT player FROM table_name_54 WHERE position = "guard-forward"
Who was the Player that had the Position, guard-forward?
CREATE TABLE table_name_54 (player VARCHAR, position VARCHAR)
SELECT surface FROM table_name_61 WHERE tournament = "pune, india"
What Surface has a Tournament of pune, india?
CREATE TABLE table_name_61 (surface VARCHAR, tournament VARCHAR)
SELECT team FROM table_name_64 WHERE average < 1.12 AND goalkeeper = "carlos sánchez"
What team has Carlos Sánchez as a goalkeeper and an average below 1.12?
CREATE TABLE table_name_64 (team VARCHAR, average VARCHAR, goalkeeper VARCHAR)
SELECT winning_driver FROM table_name_8 WHERE circuit = "sachsenring"
Who was the winning driver in the Sachsenring circuit?
CREATE TABLE table_name_8 (winning_driver VARCHAR, circuit VARCHAR)
SELECT MIN(_number) FROM table_25737761_4 WHERE writer = "Tony Basgallop"
What episode number of the season did Tony Basgallop write?
CREATE TABLE table_25737761_4 (_number INTEGER, writer VARCHAR)
SELECT ihsaa_football_class FROM table_name_79 WHERE ihsaa_class = "aaa" AND location = "nashville"
Which IHSAA Football Class has a IHSAA Class of aaa, and a Location of nashville?
CREATE TABLE table_name_79 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, location VARCHAR)
SELECT high_assists FROM table_name_44 WHERE date = "november 25"
Can you tell me the High assists that has the Date of november 25?
CREATE TABLE table_name_44 (high_assists VARCHAR, date VARCHAR)
SELECT qual_2 FROM table_name_49 WHERE qual_1 = "1:16.841"
What is the qual 2 when the qual 1 is 1:16.841?
CREATE TABLE table_name_49 (qual_2 VARCHAR, qual_1 VARCHAR)
SELECT opponent FROM table_name_52 WHERE attendance = "62,170"
What is Opponent, when Attendance is 62,170?
CREATE TABLE table_name_52 (opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(_percentage_same_sex_marriages) FROM table_19614212_1 WHERE marriages_between_men = 923
How many % same-sex marriages are marriages between men for 923?
CREATE TABLE table_19614212_1 (_percentage_same_sex_marriages VARCHAR, marriages_between_men VARCHAR)
SELECT COUNT(cuts_made) FROM table_name_44 WHERE events > 3 AND top_25 < 2
What is the total number of cuts made for events played more than 3 times and under 2 top-25s?
CREATE TABLE table_name_44 (cuts_made VARCHAR, events VARCHAR, top_25 VARCHAR)
SELECT DISTINCT customer_details FROM Customers
What are all the distinct details of the customers?
CREATE TABLE Customers (customer_details VARCHAR)
SELECT COUNT(first_elected) FROM table_1341423_32 WHERE incumbent = "John McHugh"
Name the first election for john mchugh
CREATE TABLE table_1341423_32 (first_elected VARCHAR, incumbent VARCHAR)
SELECT name FROM building WHERE NOT building_id IN (SELECT building_id FROM institution)
Show the name of buildings that do not have any institution.
CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE institution (name VARCHAR, building_id VARCHAR)
SELECT COUNT(episode) FROM table_29574579_1 WHERE directed_by = "Jamie Payne"
How many episodes are directed by Jamie Payne?
CREATE TABLE table_29574579_1 (episode VARCHAR, directed_by VARCHAR)
SELECT result FROM table_2668243_17 WHERE candidates = "James Lent (J) 52.3% Silas Wood (AJ) 47.7%"
Name the result for james lent (j) 52.3% silas wood (aj) 47.7%
CREATE TABLE table_2668243_17 (result VARCHAR, candidates VARCHAR)
SELECT record FROM table_name_77 WHERE date = "1/17/1980"
What is the record on 1/17/1980?
CREATE TABLE table_name_77 (record VARCHAR, date VARCHAR)
SELECT week_6 FROM table_name_60 WHERE week_3 = "kashmera rakhi" AND week_1 = "amit bobby"
Who did the housemate that nominated Kashmera Rakhi in week 3 and Amit Bobby in week 1 nominate in week 6?
CREATE TABLE table_name_60 (week_6 VARCHAR, week_3 VARCHAR, week_1 VARCHAR)
SELECT strongs__number FROM table_1242447_1 WHERE english_spelling = "Jehojakin"
What is the strongs # of the english spelling word jehojakin?
CREATE TABLE table_1242447_1 (strongs__number VARCHAR, english_spelling VARCHAR)
SELECT victory_margin__in_lengths_ FROM table_name_74 WHERE finish = "1st" AND jockey = "kent desormeaux" AND time = "1:35.66"
What was the victory margin for a finish of 1st with a rider of Kent Desormeaux, with a time of 1:35.66?
CREATE TABLE table_name_74 (victory_margin__in_lengths_ VARCHAR, time VARCHAR, finish VARCHAR, jockey VARCHAR)
SELECT SUM(pos) FROM table_name_67 WHERE matches > 5
Matches larger than 5 is the sum of what position?
CREATE TABLE table_name_67 (pos INTEGER, matches INTEGER)
SELECT name FROM table_name_61 WHERE prize = "$2,434,061"
Which event had a prize of $2,434,061?
CREATE TABLE table_name_61 (name VARCHAR, prize VARCHAR)
SELECT away FROM table_name_99 WHERE season = "2007–08"
Which Away has a Season of 2007–08?
CREATE TABLE table_name_99 (away VARCHAR, season VARCHAR)
SELECT MIN(grid) FROM table_name_21 WHERE laps > 7 AND driver = "rubens barrichello"
what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello?
CREATE TABLE table_name_21 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT record FROM table_name_59 WHERE home = "montreal maroons"
What was the record at the home of the Montreal Maroons
CREATE TABLE table_name_59 (record VARCHAR, home VARCHAR)
SELECT area_coordinator FROM table_2402209_1 WHERE population__2010_ = 1715
What's the area coordinator for the municipality with 1715 people living in it in 2010?
CREATE TABLE table_2402209_1 (area_coordinator VARCHAR, population__2010_ VARCHAR)
SELECT AVG(pick) FROM table_name_22 WHERE school_club_team = "alabama" AND round < 9
What's the Pick average that has a School/Club Team of Alabama, with a Round that's smaller than 9?
CREATE TABLE table_name_22 (pick INTEGER, school_club_team VARCHAR, round VARCHAR)
SELECT COUNT(*) FROM Reservations WHERE FirstName = "ROY" AND LastName = "SWEAZY"
How many times does ROY SWEAZY has reserved a room.
CREATE TABLE Reservations (FirstName VARCHAR, LastName VARCHAR)
SELECT date FROM table_name_26 WHERE score_in_final = "4–6, 1–6" AND partner = "steffi graf"
What is the Date of the match with Partner Steffi Graf with a Score in Final of 4–6, 1–6?
CREATE TABLE table_name_26 (date VARCHAR, score_in_final VARCHAR, partner VARCHAR)
SELECT name_of_the_song FROM table_name_82 WHERE kind_of_the_song = "opening theme" AND drama = "revolving doors of vengeance"
What is the name of the song that is part of the opening theme and has a drama of the revolving doors of vengeance?
CREATE TABLE table_name_82 (name_of_the_song VARCHAR, kind_of_the_song VARCHAR, drama VARCHAR)
SELECT result FROM table_name_46 WHERE location = "riverfront stadium" AND opponent = "miami dolphins"
What was the result of the game against the Miami Dolphins held at the Riverfront Stadium?
CREATE TABLE table_name_46 (result VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT final_date FROM table_name_75 WHERE housemates = 16
What final date had 16 housemates?
CREATE TABLE table_name_75 (final_date VARCHAR, housemates VARCHAR)
SELECT title FROM table_27115960_1 WHERE no_in_series = 9
Season 9 all the titles were no. in series.
CREATE TABLE table_27115960_1 (title VARCHAR, no_in_series VARCHAR)
SELECT MAX(population_millions) FROM table_name_55 WHERE influence = 1.02
What is the highest population in the millions that has an influence of 1.02?
CREATE TABLE table_name_55 (population_millions INTEGER, influence VARCHAR)
SELECT COUNT(cap_s_) FROM table_28286776_50 WHERE goal_s_ = 1 AND player = "Tommy Smith Category:Articles with hCards"
When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there?
CREATE TABLE table_28286776_50 (cap_s_ VARCHAR, goal_s_ VARCHAR, player VARCHAR)
SELECT COUNT(value__) AS $m_ FROM table_name_54 WHERE country = "spain" AND rank = 19 AND debt_as__percentageof_value > 159
What was the total amount of Value ($M), when the Country was Spain, the Rank was 19, and the Debt as % of value was larger than 159?
CREATE TABLE table_name_54 (value__ VARCHAR, debt_as__percentageof_value VARCHAR, country VARCHAR, rank VARCHAR)
SELECT MIN(score) FROM table_name_75 WHERE year = 1868
Which Score is the lowest one that has a Year of 1868?
CREATE TABLE table_name_75 (score INTEGER, year VARCHAR)
SELECT runner_up FROM table_name_68 WHERE location = "hossegor"
Who was the Runner-up in Hossegor?
CREATE TABLE table_name_68 (runner_up VARCHAR, location VARCHAR)
SELECT semifinalists FROM table_29302781_12 WHERE runner_up = "Pat Du Pré"
Who were the semifinalists when the runner-up was Pat Du Pré?
CREATE TABLE table_29302781_12 (semifinalists VARCHAR, runner_up VARCHAR)
SELECT tie_no FROM table_name_62 WHERE away_team = "watford"
What was the tie no when Watford was the away team?
CREATE TABLE table_name_62 (tie_no VARCHAR, away_team VARCHAR)
SELECT AVG(year) FROM table_name_61 WHERE points = 142
What is the average year having 142 points?
CREATE TABLE table_name_61 (year INTEGER, points VARCHAR)
SELECT employee_id, MAX(end_date) FROM job_history GROUP BY employee_id
display the employee ID for each employee and the date on which he ended his previous job.
CREATE TABLE job_history (employee_id VARCHAR, end_date INTEGER)
SELECT AVG(capacity__mw_) FROM table_name_84 WHERE wind_farm = "gortahile" AND turbines > 8
What is the average capacity for the farm at Gortahile having more than 8 turbines?
CREATE TABLE table_name_84 (capacity__mw_ INTEGER, wind_farm VARCHAR, turbines VARCHAR)
SELECT AVG(year) FROM table_name_67 WHERE notes = "bbc radio 4" AND director = "peter kavanagh"
Notes of bbc radio 4, and a Director of peter kavanagh includes which average year?
CREATE TABLE table_name_67 (year INTEGER, notes VARCHAR, director VARCHAR)
SELECT 1 AS st_leg FROM table_name_78 WHERE team_2 = "11 oktomvri"
What 1st leg has 11 oktomvri as team 2?
CREATE TABLE table_name_78 (team_2 VARCHAR)
SELECT opponents FROM table_name_22 WHERE venue = "ullevi"
Who was the opponent at Ullevi?
CREATE TABLE table_name_22 (opponents VARCHAR, venue VARCHAR)
SELECT captain FROM table_18752986_1 WHERE location = "Caversham"
For location Caversham, what is the name of the captain?
CREATE TABLE table_18752986_1 (captain VARCHAR, location VARCHAR)
SELECT AVG(height__cm_) FROM table_name_66 WHERE weight__kg_ < 91 AND position = "d" AND birthdate = "july 4, 1975"
What is the average Height when the weight is less than 91 and the position is d, and a Birthdate of july 4, 1975?
CREATE TABLE table_name_66 (height__cm_ INTEGER, birthdate VARCHAR, weight__kg_ VARCHAR, position VARCHAR)
SELECT points FROM table_name_66 WHERE skipper = "james allen"
What points has james allen as the skipper?
CREATE TABLE table_name_66 (points VARCHAR, skipper VARCHAR)
SELECT AVG(silver) FROM table_name_87 WHERE rank = 5 AND bronze < 1
What is the average Silver, when Rank is 5, and when Bronze is less than 1?
CREATE TABLE table_name_87 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT success_rate FROM table_name_52 WHERE year = "2012"
What is the success rate for the year 2012?
CREATE TABLE table_name_52 (success_rate VARCHAR, year VARCHAR)
SELECT partner FROM table_name_74 WHERE outcome = "runner-up" AND surface = "clay" AND opponents = "marco chiudinelli michael lammer"
Who was the partner on the game which took place on a clay surface with opponents of marco chiudinelli michael lammer and a runner-up result?
CREATE TABLE table_name_74 (partner VARCHAR, opponents VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT dates_administered FROM table_21535453_1 WHERE terry_mcauliffe = "19%"
What was the date when Terry McAuliffe won 19%?
CREATE TABLE table_21535453_1 (dates_administered VARCHAR, terry_mcauliffe VARCHAR)
SELECT COUNT(total_games) FROM table_name_26 WHERE loss > 18 AND league = "total" AND draw > 317
What is the total number of games with more than 18 loses, a Total League, and more than 317 draws?
CREATE TABLE table_name_26 (total_games VARCHAR, draw VARCHAR, loss VARCHAR, league VARCHAR)
SELECT 2 AS nd_leg FROM table_name_29 WHERE year = 2004
What was the 2nd leg for 2004?
CREATE TABLE table_name_29 (year VARCHAR)
SELECT crowd FROM table_name_62 WHERE away_team = "north melbourne"
How large was the crowd when North Melbourne played as the away team?
CREATE TABLE table_name_62 (crowd VARCHAR, away_team VARCHAR)
SELECT mountain_peak FROM table_name_29 WHERE mountain_range = "spanish peaks"
Which mountain peak has spanish peaks?
CREATE TABLE table_name_29 (mountain_peak VARCHAR, mountain_range VARCHAR)
SELECT viewers__millions_ FROM table_27847088_1 WHERE series_no = 45
How many were the viewers (in millions) of the series no. 45?
CREATE TABLE table_27847088_1 (viewers__millions_ VARCHAR, series_no VARCHAR)
SELECT name FROM table_name_50 WHERE area = "kennedy bay"
Which name has an Area of kennedy bay?
CREATE TABLE table_name_50 (name VARCHAR, area VARCHAR)
SELECT Name, LOCATION FROM wrestler
What are the names and location of the wrestlers?
CREATE TABLE wrestler (Name VARCHAR, LOCATION VARCHAR)
SELECT COUNT(title) FROM table_26808178_1 WHERE series__number = 4
How many episodes is episode number 4 in the series?
CREATE TABLE table_26808178_1 (title VARCHAR, series__number VARCHAR)
SELECT average_attendance FROM stadium WHERE capacity_percentage > 100
What is the average attendance of stadiums with capacity percentage higher than 100%?
CREATE TABLE stadium (average_attendance VARCHAR, capacity_percentage INTEGER)
SELECT major_version FROM table_24257833_4 WHERE webkit_version = "528.17"
What was the major version when the webkit version was 528.17?
CREATE TABLE table_24257833_4 (major_version VARCHAR, webkit_version VARCHAR)
SELECT teams FROM table_name_80 WHERE season = "1954-55"
Which team had a season 1954-55?
CREATE TABLE table_name_80 (teams VARCHAR, season VARCHAR)
SELECT MAX(juries) FROM table_27994983_8 WHERE artist = "Brolle"
How many juries are there for Brolle?
CREATE TABLE table_27994983_8 (juries INTEGER, artist VARCHAR)
SELECT Name FROM ARTIST WHERE Name LIKE "%a%"
Find the names of all artists that have "a" in their names.
CREATE TABLE ARTIST (Name VARCHAR)
SELECT SUM(position) FROM table_name_32 WHERE played > 9
Which Position has a Played larger than 9?
CREATE TABLE table_name_32 (position INTEGER, played INTEGER)
SELECT COUNT(year) FROM table_name_59 WHERE total_for_year < 105 OFFSET 005
How many years in all was less than 105,005 the total for the year?
CREATE TABLE table_name_59 (year VARCHAR, total_for_year INTEGER)
SELECT loss FROM table_name_63 WHERE score = "2-8"
When did the Brewers lose 2-8?
CREATE TABLE table_name_63 (loss VARCHAR, score VARCHAR)
SELECT fate FROM table_1220125_4 WHERE commissioned = "11 April 1944"
What is the fate for 11 april 1944?
CREATE TABLE table_1220125_4 (fate VARCHAR, commissioned VARCHAR)
SELECT peak_population__year_ FROM table_name_34 WHERE city = "scranton"
what is the peak population (year) for scranton?
CREATE TABLE table_name_34 (peak_population__year_ VARCHAR, city VARCHAR)
SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY COUNT(*) DESC LIMIT 1
Find the county where produces the most number of wines with score higher than 90.
CREATE TABLE WINE (Appelation VARCHAR, Score INTEGER); CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR)
SELECT COUNT(max_fps) FROM table_name_5 WHERE mpix > 8.4 AND frame_size = "4k 16:9"
What is the max fps of a camera with mpix larger than 8.4 and frame size of 4k 16:9?
CREATE TABLE table_name_5 (max_fps VARCHAR, mpix VARCHAR, frame_size VARCHAR)