answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT years FROM table_name_82 WHERE rank < 10 AND matches > 271 AND goals = 152
What years played did the player with a rank under 10, more than 271 matches, and 152 goals have?
CREATE TABLE table_name_82 (years VARCHAR, goals VARCHAR, rank VARCHAR, matches VARCHAR)
SELECT nationality FROM table_name_12 WHERE games = "1999 fort-de-france" AND event = "triple jump"
What is the Nationality of the athlete in 1999 Fort-de-France in the Triple Jump?
CREATE TABLE table_name_12 (nationality VARCHAR, games VARCHAR, event VARCHAR)
SELECT MIN(age), AVG(age), MAX(age) FROM Student
Show the minimum, average, and maximum age of all students.
CREATE TABLE Student (age INTEGER)
SELECT grand_cru FROM table_name_33 WHERE wine_style = "red wine" AND village = "gevrey-chambertin"
What is the Grand Cru with a Wine Style of Red Wine and Village of Gevrey-Chambertin?
CREATE TABLE table_name_33 (grand_cru VARCHAR, wine_style VARCHAR, village VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_81 WHERE actor_actress = "emma thompson" AND category = "best supporting actress"
What was the film title that emma thompson was the actress nominated for best supporting actress?
CREATE TABLE table_name_81 (film_title_used_in_nomination VARCHAR, actor_actress VARCHAR, category VARCHAR)
SELECT 1 AS st_leg FROM table_name_88 WHERE team_2 = "concepto egile"
What was the 1st leg for Team 2 Concepto Egile?
CREATE TABLE table_name_88 (team_2 VARCHAR)
SELECT date FROM table_name_39 WHERE opponent_in_the_final = "iva majoli"
Which date had the final opponent of Iva Majoli?
CREATE TABLE table_name_39 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT school_club_team FROM table_10015132_1 WHERE years_in_toronto = "2012-present"
What school did the player that has been in Toronto from 2012-present come from?
CREATE TABLE table_10015132_1 (school_club_team VARCHAR, years_in_toronto VARCHAR)
SELECT name FROM airport WHERE name LIKE '%international%'
Which of the airport names contains the word 'international'?
CREATE TABLE airport (name VARCHAR)
SELECT tie_no FROM table_name_28 WHERE away_team = "southport"
What is the tie no that has southport as the away team?
CREATE TABLE table_name_28 (tie_no VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_20 WHERE away_team = "kidderminster harriers"
What is the Home team of the Kidderminster Harriers Away game?
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(erp_w) FROM table_name_70 WHERE city_of_license = "beardstown, illinois" AND frequency_mhz > 93.5
What is the average value of ERP W in Beardstown, Illinois for a frequency greater than 93.5?
CREATE TABLE table_name_70 (erp_w INTEGER, city_of_license VARCHAR, frequency_mhz VARCHAR)
SELECT score FROM table_name_98 WHERE date = "16 december 1978" AND tie_no = "9"
What is the score for the date of 16 december 1978, with a tie no of 9?
CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT res FROM table_name_69 WHERE event = "ufc 85"
What was the result fot the UFC 85 event?
CREATE TABLE table_name_69 (res VARCHAR, event VARCHAR)
SELECT appointed_elected FROM table_name_91 WHERE name = "chief justice mark cady"
What is the year when chief justice Mark Cady was appointed/elected?
CREATE TABLE table_name_91 (appointed_elected VARCHAR, name VARCHAR)
SELECT road_team FROM table_name_24 WHERE game = "game 2"
what team played in game 2
CREATE TABLE table_name_24 (road_team VARCHAR, game VARCHAR)
SELECT MAX(draws) FROM table_name_89 WHERE goals_against > 56 AND wins > 14
Name the most draws when goals against is more than 56 and wins is more than 14
CREATE TABLE table_name_89 (draws INTEGER, goals_against VARCHAR, wins VARCHAR)
SELECT finished FROM table_14345690_4 WHERE exited = "Day 13"
Name the finished for exited day 13
CREATE TABLE table_14345690_4 (finished VARCHAR, exited VARCHAR)
SELECT constructor FROM table_1140117_5 WHERE circuit = "Silverstone"
What is the constructor for the Silverstone circuit?
CREATE TABLE table_1140117_5 (constructor VARCHAR, circuit VARCHAR)
SELECT MAX(number) FROM table_name_30 WHERE cars_per_set < 9
What is the largest number of cars per set that is less than 9?
CREATE TABLE table_name_30 (number INTEGER, cars_per_set INTEGER)
SELECT away_team FROM table_name_51 WHERE venue = "lake oval"
What team played at lake oval while away?
CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR)
SELECT 1 AS st_leg FROM table_name_53 WHERE team__number1 = "csu sibiu"
What is the 1st leg when team number 1 is CSU SIBIU?
CREATE TABLE table_name_53 (team__number1 VARCHAR)
SELECT drawn FROM table_15352382_1 WHERE team = "Corinthians"
How many drawn does the team Corinthians have?
CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR)
SELECT T2.course_name FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T1.personal_name = "Julio"
Find the names of courses taught by the tutor who has personal name "Julio".
CREATE TABLE Course_Authors_and_Tutors (author_id VARCHAR, personal_name VARCHAR); CREATE TABLE Courses (course_name VARCHAR, author_id VARCHAR)
SELECT network FROM table_name_90 WHERE lap_by_lap = "bill weber"
Which Network has Bill Weber for the Lap-by-lap?
CREATE TABLE table_name_90 (network VARCHAR, lap_by_lap VARCHAR)
SELECT winning_driver FROM table_name_30 WHERE winning_team = "penske racing" AND pole_position = "rick mears"
Who is the winning driver of Penske Racing, and what was Rick Mears' pole position?
CREATE TABLE table_name_30 (winning_driver VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT part_number_s_ FROM table_name_20 WHERE frequency = "2.4 ghz"
What part number(s) has a frequency of 2.4 ghz?
CREATE TABLE table_name_20 (part_number_s_ VARCHAR, frequency VARCHAR)
SELECT status FROM table_27615896_20 WHERE points = 3041
What's the status of the player with 3041 points?
CREATE TABLE table_27615896_20 (status VARCHAR, points VARCHAR)
SELECT ravg FROM table_name_93 WHERE ratt = "3"
What is the RAvg when the ratt is 3?
CREATE TABLE table_name_93 (ravg VARCHAR, ratt VARCHAR)
SELECT original_title FROM table_name_1 WHERE film_title_used_in_nomination = "brecha en el silencio"
What's the original title of the nomination title, "brecha en el silencio"?
CREATE TABLE table_name_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(player) FROM table_28498999_6 WHERE points = 3015
what is the number of people where the pieces is 3015
CREATE TABLE table_28498999_6 (player VARCHAR, points VARCHAR)
SELECT year FROM table_name_65 WHERE finish = "12"
What year had the Finish of 12?
CREATE TABLE table_name_65 (year VARCHAR, finish VARCHAR)
SELECT high_rebounds FROM table_name_52 WHERE team = "chicago"
Who had the most rebounds in the game against Chicago?
CREATE TABLE table_name_52 (high_rebounds VARCHAR, team VARCHAR)
SELECT COUNT(draws) FROM table_14889048_1 WHERE conceded = 25
Name the number of draws for when conceded is 25
CREATE TABLE table_14889048_1 (draws VARCHAR, conceded VARCHAR)
SELECT AVG(gold) FROM table_name_13 WHERE rank = "17" AND silver > 4
What is the average number of golds for teams in rank 17 with more than 4 silver?
CREATE TABLE table_name_13 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT driver FROM table_name_98 WHERE date = "october 6"
Who is the Driver, when the Date is October 6?
CREATE TABLE table_name_98 (driver VARCHAR, date VARCHAR)
SELECT MAX(silver) FROM table_name_61 WHERE gold = 3 AND bronze < 5
What is the high silver total for nations with 3 golds and under 5 bronzes?
CREATE TABLE table_name_61 (silver INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT artist FROM table_name_82 WHERE actual_title = "game of thrones"
Game of Thrones was done by which artist?
CREATE TABLE table_name_82 (artist VARCHAR, actual_title VARCHAR)
SELECT time FROM table_name_95 WHERE release_date = "6/6/77" AND song_title = "way down"
Tell me the time for 6/6/77 release date and song title of way down
CREATE TABLE table_name_95 (time VARCHAR, release_date VARCHAR, song_title VARCHAR)
SELECT COUNT(podiums) FROM table_name_31 WHERE position = "2nd" AND wins < 6 AND poles > 0
What is the total number of Podiums, when Position is "2nd", when Wins is less than 6, and when Poles is greater than 0?
CREATE TABLE table_name_31 (podiums VARCHAR, poles VARCHAR, position VARCHAR, wins VARCHAR)
SELECT home_team FROM table_name_95 WHERE score = "0-1"
What is the home team of the game that ended with a score of 0-1?
CREATE TABLE table_name_95 (home_team VARCHAR, score VARCHAR)
SELECT fee FROM table_27998152_1 WHERE previous_club = "Ankaragücü"
what is the fee for ankaragücü previous club
CREATE TABLE table_27998152_1 (fee VARCHAR, previous_club VARCHAR)
SELECT COUNT(DISTINCT transaction_type) FROM Financial_Transactions
Show the number of transaction types.
CREATE TABLE Financial_Transactions (transaction_type VARCHAR)
SELECT score FROM table_name_81 WHERE home = "vancouver" AND date = "february 16"
What score has vancouver as the home, and february 16 as the date?
CREATE TABLE table_name_81 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT county FROM table_22815568_6 WHERE poverty_rate = "12.9%"
If the poverty rate is 12.9%, what is the county?
CREATE TABLE table_22815568_6 (county VARCHAR, poverty_rate VARCHAR)
SELECT authors FROM table_name_16 WHERE unit = "vyazniki assemblage" AND name = "malasaurus"
Who are the authors for the malasaurus of the vyazniki assemblage?
CREATE TABLE table_name_16 (authors VARCHAR, unit VARCHAR, name VARCHAR)
SELECT COUNT(title) FROM table_25716401_1 WHERE written_by = "Tom Scharpling"
How many titles are there for the episode written by Tom Scharpling?
CREATE TABLE table_25716401_1 (title VARCHAR, written_by VARCHAR)
SELECT opponent FROM table_name_82 WHERE week = "7"
Who was the opponent on week 7?
CREATE TABLE table_name_82 (opponent VARCHAR, week VARCHAR)
SELECT season FROM table_name_54 WHERE lead = "john shuster" AND third = "shawn rojeski"
what is the season when the lead is john shuster and third is shawn rojeski?
CREATE TABLE table_name_54 (season VARCHAR, lead VARCHAR, third VARCHAR)
SELECT circuit FROM table_19598014_2 WHERE challenge_winning_team = "#47 Orbit Racing"
Name the circuit for #47 orbit racing
CREATE TABLE table_19598014_2 (circuit VARCHAR, challenge_winning_team VARCHAR)
SELECT term_start FROM table_name_94 WHERE party = "meretz"
What's the term start date for Meretz?
CREATE TABLE table_name_94 (term_start VARCHAR, party VARCHAR)
SELECT title FROM table_27332038_1 WHERE production_code = "2ARG09"
what is the title of the episode with production code "2arg09"?
CREATE TABLE table_27332038_1 (title VARCHAR, production_code VARCHAR)
SELECT MAX(enrollment) FROM table_16168849_1 WHERE institution = "St. Andrews University"
Name the maximum enrollment for st. andrews university
CREATE TABLE table_16168849_1 (enrollment INTEGER, institution VARCHAR)
SELECT SUM(crowd) FROM table_name_71 WHERE venue = "vfl park"
How many people attended the game at VFL Park?
CREATE TABLE table_name_71 (crowd INTEGER, venue VARCHAR)
SELECT location FROM table_name_94 WHERE capacity > 52 OFFSET 000
Which location has a capacity larger than 52,000?
CREATE TABLE table_name_94 (location VARCHAR, capacity INTEGER)
SELECT dimensions FROM table_name_96 WHERE output = "180w"
What are the dimensions of the amp with a 180W output?
CREATE TABLE table_name_96 (dimensions VARCHAR, output VARCHAR)
SELECT COUNT(driver) FROM table_17304308_1 WHERE fin_pos = 19
Name the number of driver for fin pos of 19
CREATE TABLE table_17304308_1 (driver VARCHAR, fin_pos VARCHAR)
SELECT away_team FROM table_name_55 WHERE tie_no = "20"
Who were the away team in tie number 20?
CREATE TABLE table_name_55 (away_team VARCHAR, tie_no VARCHAR)
SELECT team FROM table_name_80 WHERE high_points = "rashard lewis , mickaël piétrus (17)"
What is Team, when High Points is "Rashard Lewis , Mickaël Piétrus (17)"?
CREATE TABLE table_name_80 (team VARCHAR, high_points VARCHAR)
SELECT fastest_lap FROM table_name_8 WHERE winning_team = "team brm" AND race = 1 AND pole_position = "leanne tander" AND circuit = "phillip island"
What is Fastest Lap, when Winning Team is Team BRM, when Race is 1, when Pole Position is Leanne Tander, and when Circuit is Phillip Island?
CREATE TABLE table_name_8 (fastest_lap VARCHAR, circuit VARCHAR, pole_position VARCHAR, winning_team VARCHAR, race VARCHAR)
SELECT former_local_authority FROM table_name_96 WHERE name = "ecclesfield"
What is the Former local authority for Ecclesfield?
CREATE TABLE table_name_96 (former_local_authority VARCHAR, name VARCHAR)
SELECT AVG(military_deaths) FROM table_name_22 WHERE civilian_deaths__including_foreigners_ < 38 AND military_and_or_civilian_wounded = "33"
What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?
CREATE TABLE table_name_22 (military_deaths INTEGER, civilian_deaths__including_foreigners_ VARCHAR, military_and_or_civilian_wounded VARCHAR)
SELECT circuit FROM table_18303274_1 WHERE fastest_lap = "Luis Salom"
Luis Salom had the fastest lap on which circuits?
CREATE TABLE table_18303274_1 (circuit VARCHAR, fastest_lap VARCHAR)
SELECT theme FROM table_25468520_1 WHERE printing_process = "Litho in 3 cols and intaglio"
What is the theme when the printing process is litho in 3 cols and intaglio?
CREATE TABLE table_25468520_1 (theme VARCHAR, printing_process VARCHAR)
SELECT opponent FROM table_name_95 WHERE record = "22-13"
Who was the opponent at the game when the record was 22-13?
CREATE TABLE table_name_95 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(year) FROM table_name_94 WHERE producer = "star cinema" AND director = "rory quintos" AND title = "kay tagal kang hinintay"
How many years was Kay Tagal Kang Hinintay directed by Rory Quintos and produced by Star Cinema?
CREATE TABLE table_name_94 (year VARCHAR, title VARCHAR, producer VARCHAR, director VARCHAR)
SELECT opponent FROM table_name_58 WHERE time = "1:16"
Who is the opponent with a time of 1:16?
CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR)
SELECT SUM(T1.lesson_time) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin"
How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?
CREATE TABLE Lessons (lesson_time INTEGER, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT record FROM table_name_18 WHERE home = "st. louis"
What is the record of the team with a St. Louis home?
CREATE TABLE table_name_18 (record VARCHAR, home VARCHAR)
SELECT outcome FROM table_name_66 WHERE partner = "mark dickson" AND opponents_in_the_final = "hans gildemeister belus prajoux"
Which outcome has a partner named Mark Dickson, with the opponents of Hans Gildemeister Belus Prajoux?
CREATE TABLE table_name_66 (outcome VARCHAR, partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT COUNT(wickets) FROM table_name_8 WHERE average = 26.13
What is the total number of Wickets with a 26.13 average?
CREATE TABLE table_name_8 (wickets VARCHAR, average VARCHAR)
SELECT cmdexe___commandcom FROM table_14465871_1 WHERE unix_shell = "echo"
What are all values of CMD.EXE / COMMAND.COM for the unix shell echo?
CREATE TABLE table_14465871_1 (cmdexe___commandcom VARCHAR, unix_shell VARCHAR)
SELECT role_code, COUNT(*) FROM Employees GROUP BY role_code
Show all role codes and the number of employees in each role.
CREATE TABLE Employees (role_code VARCHAR)
SELECT MAX(appearances) FROM table_24807406_1 WHERE starts = 18
What is the appearance maximum if the starts is 18?
CREATE TABLE table_24807406_1 (appearances INTEGER, starts VARCHAR)
SELECT opponents FROM table_name_84 WHERE surface = "hard" AND outcome = "runner-up"
Who were the opponents in the match that was played on a hard court and had a runner-up outcome?
CREATE TABLE table_name_84 (opponents VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT result FROM table_name_80 WHERE date = "december 2"
What was the final game result that was played on December 2?
CREATE TABLE table_name_80 (result VARCHAR, date VARCHAR)
SELECT COUNT(pick) FROM table_name_1 WHERE round > 1 AND player = "jim stack"
What is the total number of Pick, when Round is greater than 1, and when Player is "Jim Stack"?
CREATE TABLE table_name_1 (pick VARCHAR, round VARCHAR, player VARCHAR)
SELECT COUNT(rank) FROM table_name_85 WHERE goals = 158 AND matches > 362
What is the Rank of the player with 158 Goals in more than 362 Matches?
CREATE TABLE table_name_85 (rank VARCHAR, goals VARCHAR, matches VARCHAR)
SELECT drawn FROM table_14058433_4 WHERE points_for = "350"
what's the drawn with points for being 350
CREATE TABLE table_14058433_4 (drawn VARCHAR, points_for VARCHAR)
SELECT name, dates_active, number_deaths FROM storm WHERE number_deaths >= 1
List name, dates active, and number of deaths for all storms with at least 1 death.
CREATE TABLE storm (name VARCHAR, dates_active VARCHAR, number_deaths VARCHAR)
SELECT tie_no FROM table_name_8 WHERE away_team = "east thurrock united"
What was the Tie no when the away team was east thurrock united?
CREATE TABLE table_name_8 (tie_no VARCHAR, away_team VARCHAR)
SELECT population FROM table_name_68 WHERE member_countries = "existing members (1973)"
What is the Population of the nation that has a Member countries consisting of existing members (1973)?
CREATE TABLE table_name_68 (population VARCHAR, member_countries VARCHAR)
SELECT episode FROM table_name_99 WHERE entrepreneur_s_ = "luke booth and christopher eves"
What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part?
CREATE TABLE table_name_99 (episode VARCHAR, entrepreneur_s_ VARCHAR)
SELECT COUNT(norwegian_americans__2009_) FROM table_name_72 WHERE norwegian_americans__2000_ = 109 OFFSET 744
How many Norwegian Americans have Norwegian Americans (2000) of 109,744?
CREATE TABLE table_name_72 (norwegian_americans__2009_ VARCHAR, norwegian_americans__2000_ VARCHAR)
SELECT sets FROM table_name_95 WHERE nadal = 13 AND federer = 6
What were the sets when Federer had 6 and a nadal of 13?
CREATE TABLE table_name_95 (sets VARCHAR, nadal VARCHAR, federer VARCHAR)
SELECT COUNT(college) FROM table_14655985_1 WHERE player = "Rich Voltzke"
how many college with player being rich voltzke
CREATE TABLE table_14655985_1 (college VARCHAR, player VARCHAR)
SELECT venue FROM table_name_22 WHERE competition = "european championships" AND position = "7th"
Which Venue has a Competition of european championships, and a Position of 7th?
CREATE TABLE table_name_22 (venue VARCHAR, competition VARCHAR, position VARCHAR)
SELECT COUNT(color) FROM table_175442_1 WHERE scientific_name = "Furcifer pardalis"
Name the number of color for furcifer pardalis
CREATE TABLE table_175442_1 (color VARCHAR, scientific_name VARCHAR)
SELECT MAX(goals) FROM table_name_18 WHERE years = "1922–1935"
What was the highest number of goals for 1922–1935?
CREATE TABLE table_name_18 (goals INTEGER, years VARCHAR)
SELECT MIN(season_no) FROM table_29154676_1 WHERE us_viewers__millions_ = "3.91"
What is the last episode in the season that had 3.91 million viewers in the US?
CREATE TABLE table_29154676_1 (season_no INTEGER, us_viewers__millions_ VARCHAR)
SELECT version FROM table_28540539_2 WHERE release = "1.0.12"
What's the version of the 1.0.12 release?
CREATE TABLE table_28540539_2 (version VARCHAR, release VARCHAR)
SELECT years_in_assembly FROM table_name_54 WHERE residence = "san francisco"
What were the San Francisco resident's years in assembly?
CREATE TABLE table_name_54 (years_in_assembly VARCHAR, residence VARCHAR)
SELECT headquarters FROM table_name_26 WHERE company = "getinge group"
Where is the headquarters of the getinge group located?
CREATE TABLE table_name_26 (headquarters VARCHAR, company VARCHAR)
SELECT candidates FROM table_1434788_5 WHERE incumbent = "John Beatty"
Who were the candidates in the election where John Beatty was the incumbent?
CREATE TABLE table_1434788_5 (candidates VARCHAR, incumbent VARCHAR)
SELECT MIN(gore__number) FROM table_23014476_1 WHERE others__number = "6.6%"
Name the gore number for others # 6.6%
CREATE TABLE table_23014476_1 (gore__number INTEGER, others__number VARCHAR)
SELECT artist FROM table_name_20 WHERE issue_price = "$1,541.95"
Which Artist has an Issue Price of $1,541.95?
CREATE TABLE table_name_20 (artist VARCHAR, issue_price VARCHAR)
SELECT gore__number FROM table_23014476_1 WHERE others__percentage = "5.3%"
Name the gore number for others % being 5.3%
CREATE TABLE table_23014476_1 (gore__number VARCHAR, others__percentage VARCHAR)
SELECT COUNT(viewers) FROM table_24399615_4 WHERE bbc_three_weekly_ranking = "1"
How many items are listed under viewers column when the bbd three weekly ranking was 1?
CREATE TABLE table_24399615_4 (viewers VARCHAR, bbc_three_weekly_ranking VARCHAR)
SELECT denomination FROM table_name_5 WHERE location = "mt lawley"
What denomination is mt lawley?
CREATE TABLE table_name_5 (denomination VARCHAR, location VARCHAR)
SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId
Find the names of artists that do not have any albums.
CREATE TABLE ARTIST (Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR); CREATE TABLE ARTIST (Name VARCHAR, ArtistId VARCHAR)