question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
When 169.182 is the average speed miles per hour what is the chassis?
CREATE TABLE table_1771753_3 (chassis VARCHAR, average_speed__mph_ VARCHAR)
SELECT chassis FROM table_1771753_3 WHERE average_speed__mph_ = "169.182"
What is the number of podiums associated with 4 wins?
CREATE TABLE table_name_89 (podiums VARCHAR, wins VARCHAR)
SELECT podiums FROM table_name_89 WHERE wins = "4"
what is the highest finishes when the points is less than 337, the stage wins is 2 and the wins is more than 0?
CREATE TABLE table_name_48 (finishes INTEGER, wins VARCHAR, points VARCHAR, stage_wins VARCHAR)
SELECT MAX(finishes) FROM table_name_48 WHERE points < 337 AND stage_wins = 2 AND wins > 0
What is the lowest rank for an album after 1999 and an Accolade of the 100 greatest indie rock albums of all time?
CREATE TABLE table_name_67 (rank INTEGER, year VARCHAR, accolade VARCHAR)
SELECT MIN(rank) FROM table_name_67 WHERE year > 1999 AND accolade = "the 100 greatest indie rock albums of all time"
What is the name of the race on 16 september?
CREATE TABLE table_name_29 (race_name VARCHAR, date VARCHAR)
SELECT race_name FROM table_name_29 WHERE date = "16 september"
Which Score has a Visitor of atlanta?
CREATE TABLE table_name_72 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_72 WHERE visitor = "atlanta"
What is the source on 6 September?
CREATE TABLE table_name_27 (source VARCHAR, date VARCHAR)
SELECT source FROM table_name_27 WHERE date = "6 september"
Which score has a Decision of johnson?
CREATE TABLE table_name_29 (score VARCHAR, decision VARCHAR)
SELECT score FROM table_name_29 WHERE decision = "johnson"
How many different items appear in the high points column when the location attendance was US Airways Center 18,422?
CREATE TABLE table_17288825_10 (high_points VARCHAR, location_attendance VARCHAR)
SELECT COUNT(high_points) FROM table_17288825_10 WHERE location_attendance = "US Airways Center 18,422"
The league of 400 (21) has what years listed?
CREATE TABLE table_name_87 (years VARCHAR, league VARCHAR)
SELECT years FROM table_name_87 WHERE league = "400 (21)"
What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926?
CREATE TABLE table_name_51 (built VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, br_sr_no VARCHAR)
SELECT COUNT(built) FROM table_name_51 WHERE withdrawn = 1967 AND br_sr_no = "w27" AND to_iow < 1926
What is the total number of bronze when the total is less than 1?
CREATE TABLE table_name_51 (bronze INTEGER, total INTEGER)
SELECT SUM(bronze) FROM table_name_51 WHERE total < 1
How many distinct students have been in detention?
CREATE TABLE Students_in_Detention (student_id VARCHAR)
SELECT COUNT(DISTINCT student_id) FROM Students_in_Detention
What is the to par for the player with fewer than 148 total points?
CREATE TABLE table_name_53 (to_par INTEGER, total INTEGER)
SELECT SUM(to_par) FROM table_name_53 WHERE total < 148
What was the manner of departure for the outgoing manager, miguel brindisi?
CREATE TABLE table_name_24 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT manner_of_departure FROM table_name_24 WHERE outgoing_manager = "miguel brindisi"
What length was won by Roger McCluskey?
CREATE TABLE table_22669816_1 (length VARCHAR, winning_driver VARCHAR)
SELECT length FROM table_22669816_1 WHERE winning_driver = "Roger McCluskey"
What are the different pilot names who had piloted a flight in the country 'United States' or in the airport named 'Billund Airport'?
CREATE TABLE airport (id VARCHAR, country VARCHAR, name VARCHAR); CREATE TABLE flight (pilot VARCHAR, airport_id VARCHAR)
SELECT DISTINCT T2.pilot FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id WHERE T1.country = 'United States' OR T1.name = 'Billund Airport'
What was the latest year placement for Taboo with a score smaller than 96.125?
CREATE TABLE table_name_50 (year INTEGER, program_title VARCHAR, score VARCHAR)
SELECT MAX(year) FROM table_name_50 WHERE program_title = "taboo" AND score < 96.125
Who is the music by for episode the Elbow Room?
CREATE TABLE table_191105_4 (music_by VARCHAR, episode_title VARCHAR)
SELECT music_by FROM table_191105_4 WHERE episode_title = "Elbow Room"
When did the Roy Hibbert (27) did the high points?
CREATE TABLE table_27756164_2 (date VARCHAR, high_points VARCHAR)
SELECT date FROM table_27756164_2 WHERE high_points = "Roy Hibbert (27)"
What is the Score when the opponent in the final is alicia pillay on a hard surface?
CREATE TABLE table_name_73 (score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_73 WHERE surface = "hard" AND opponent_in_the_final = "alicia pillay"
Which driver had 248 laps?
CREATE TABLE table_name_9 (driver VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_9 WHERE laps = 248
What is the record of the game on May 30?
CREATE TABLE table_name_36 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_36 WHERE date = "may 30"
The U.S. airdate of 4 april 2008 had a production code of what?
CREATE TABLE table_10935205_1 (production_code INTEGER, us_airdate VARCHAR)
SELECT MAX(production_code) FROM table_10935205_1 WHERE us_airdate = "4 April 2008"
What branch was involved when the term began in January 3, 1985?
CREATE TABLE table_197446_1 (branch VARCHAR, term_began VARCHAR)
SELECT branch FROM table_197446_1 WHERE term_began = "January 3, 1985"
What's the highest game found when the record is 2-1?
CREATE TABLE table_name_10 (game INTEGER, record VARCHAR)
SELECT MAX(game) FROM table_name_10 WHERE record = "2-1"
Which Tournament has a Date of jul 14, 2013?
CREATE TABLE table_name_6 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_6 WHERE date = "jul 14, 2013"
Who is team c when dhez javier is team e?
CREATE TABLE table_name_44 (team_c VARCHAR, team_e VARCHAR)
SELECT team_c FROM table_name_44 WHERE team_e = "dhez javier"
When was the coin with the mass of 3.7 g first minted?
CREATE TABLE table_1307572_1 (first_minting VARCHAR, mass VARCHAR)
SELECT first_minting FROM table_1307572_1 WHERE mass = "3.7 g"
what is the runner-up for the intercontinental cup
CREATE TABLE table_name_67 (intercontinental_cup_1998 VARCHAR, copa_mercosur_1998 VARCHAR)
SELECT intercontinental_cup_1998 FROM table_name_67 WHERE copa_mercosur_1998 = "runner-up"
What was the number of high assists for game 1?
CREATE TABLE table_name_94 (high_assists VARCHAR, game VARCHAR)
SELECT high_assists FROM table_name_94 WHERE game = 1
Show the number of all customers without an account.
CREATE TABLE Customers (customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR)
SELECT COUNT(*) FROM Customers WHERE NOT customer_id IN (SELECT customer_id FROM Accounts)
What is Rank, when Headquarters is United Kingdom, and when Sales (billion $) is 370.9?
CREATE TABLE table_name_14 (rank VARCHAR, headquarters VARCHAR, sales__billion_$_ VARCHAR)
SELECT rank FROM table_name_14 WHERE headquarters = "united kingdom" AND sales__billion_$_ = 370.9
after december 29 what is the score?
CREATE TABLE table_name_50 (score VARCHAR, december INTEGER)
SELECT score FROM table_name_50 WHERE december > 29
Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.
CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR, basePrice VARCHAR, maxOccupancy VARCHAR)
SELECT roomName, RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2
How many assets does each third party company supply? List the count and the company id.
CREATE TABLE Assets (supplier_company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR)
SELECT COUNT(*), T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id
What was the F/Laps when the Wins were 0 and the Position was 4th?
CREATE TABLE table_name_97 (f_laps VARCHAR, wins VARCHAR, position VARCHAR)
SELECT f_laps FROM table_name_97 WHERE wins = "0" AND position = "4th"
What is the lowest year that has chester-le-street as the city, with 345 runs as the score?
CREATE TABLE table_name_49 (year INTEGER, city VARCHAR, score VARCHAR)
SELECT MIN(year) FROM table_name_49 WHERE city = "chester-le-street" AND score = "345 runs"
What is 2009, when Year is "Highest Mean Annual Temperature"?
CREATE TABLE table_name_31 (year VARCHAR)
SELECT 2009 FROM table_name_31 WHERE year = "highest mean annual temperature"
Where was the argentine grand prix?
CREATE TABLE table_name_42 (location VARCHAR, race VARCHAR)
SELECT location FROM table_name_42 WHERE race = "argentine grand prix"
Who was the opponent on November 26, 1989?
CREATE TABLE table_name_86 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_86 WHERE date = "november 26, 1989"
what is the average points when position is more than 5 and played is less than 10?
CREATE TABLE table_name_55 (points INTEGER, position VARCHAR, played VARCHAR)
SELECT AVG(points) FROM table_name_55 WHERE position > 5 AND played < 10
Who was the Ole Miss player associated with Chuck Dicus?
CREATE TABLE table_name_65 (ole_miss VARCHAR, arkansas VARCHAR)
SELECT ole_miss FROM table_name_65 WHERE arkansas = "chuck dicus"
What country has the most height in the northwestern peak of rysy?
CREATE TABLE table_24285393_1 (country_or_region VARCHAR, highest_point VARCHAR)
SELECT country_or_region FROM table_24285393_1 WHERE highest_point = "Northwestern peak of Rysy"
Who was Director John Ramster's Composer?
CREATE TABLE table_name_3 (composer VARCHAR, director VARCHAR)
SELECT composer FROM table_name_3 WHERE director = "john ramster"
What is Rochester, when Syracuse is Cardiff Dark Gray Shale, and when Albany is (Mt. Marion Fm.)?
CREATE TABLE table_name_39 (rochester VARCHAR, syracuse VARCHAR, albany VARCHAR)
SELECT rochester FROM table_name_39 WHERE syracuse = "cardiff dark gray shale" AND albany = "(mt. marion fm.)"
Which Date has an Against smaller than 21, and a Status of second test?
CREATE TABLE table_name_37 (date VARCHAR, against VARCHAR, status VARCHAR)
SELECT date FROM table_name_37 WHERE against < 21 AND status = "second test"
How many league cups associated with under 10 championships and a total of under 3?
CREATE TABLE table_name_36 (league_cup INTEGER, championship VARCHAR, total VARCHAR)
SELECT SUM(league_cup) FROM table_name_36 WHERE championship < 10 AND total < 3
what was the win for the 6 matches?
CREATE TABLE table_name_17 (wins VARCHAR, matches VARCHAR)
SELECT wins FROM table_name_17 WHERE matches = "6"
Name the candidates for new york 21
CREATE TABLE table_2668243_17 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_2668243_17 WHERE district = "New York 21"
What is the party of Joseph Vance?
CREATE TABLE table_2668243_19 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_2668243_19 WHERE incumbent = "Joseph Vance"
Which league's playoffs was national semi-finals?
CREATE TABLE table_name_51 (league VARCHAR, playoffs VARCHAR)
SELECT league FROM table_name_51 WHERE playoffs = "national semi-finals"
What is the Akira when Tiger Mask IV is Akira (10:05)?
CREATE TABLE table_name_94 (akira VARCHAR, tiger_mask_iv VARCHAR)
SELECT akira FROM table_name_94 WHERE tiger_mask_iv = "akira (10:05)"
What is the least top division titles?
CREATE TABLE table_11250_4 (top_division_titles INTEGER)
SELECT MIN(top_division_titles) FROM table_11250_4
Which pick was from Lamar High School?
CREATE TABLE table_name_15 (pick VARCHAR, school VARCHAR)
SELECT pick FROM table_name_15 WHERE school = "lamar high school"
What is the lowest number of seats of the 1992 election?
CREATE TABLE table_name_86 (seats INTEGER, election VARCHAR)
SELECT MIN(seats) FROM table_name_86 WHERE election = 1992
How many laps did Jo Bonnier driver when the grid number was smaller than 11?
CREATE TABLE table_name_6 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_6 WHERE driver = "jo bonnier" AND grid < 11
What is the smallest track number?
CREATE TABLE table_11839306_2 (track INTEGER)
SELECT MIN(track) FROM table_11839306_2
Name the original air date for 7 1-07
CREATE TABLE table_24222929_4 (original_airdate VARCHAR, episode_number_production_number VARCHAR)
SELECT original_airdate FROM table_24222929_4 WHERE episode_number_production_number = "7 1-07"
What is the maximum administrative population of the city with Chinese translation 昆明?
CREATE TABLE table_16489766_2 (administrative_population__2010_ INTEGER, chinese VARCHAR)
SELECT MAX(administrative_population__2010_) FROM table_16489766_2 WHERE chinese = "昆明"
What was the venue for the dates 1,2,3,4,6,7 jan 1908?
CREATE TABLE table_name_64 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_64 WHERE date = "1,2,3,4,6,7 jan 1908"
What was the No. 8 name when Chloe was No. 9 and Abigail was No. 7?
CREATE TABLE table_name_64 (no_8 VARCHAR, no_9 VARCHAR, no_7 VARCHAR)
SELECT no_8 FROM table_name_64 WHERE no_9 = "chloe" AND no_7 = "abigail"
Which League that has a Open Cup of 1st round, and a Year of 2009?
CREATE TABLE table_name_99 (league VARCHAR, open_cup VARCHAR, year VARCHAR)
SELECT league FROM table_name_99 WHERE open_cup = "1st round" AND year = 2009
who is the home team when the away team is rivercity rage?
CREATE TABLE table_name_91 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_91 WHERE away_team = "rivercity rage"
What MLS team picked Babayele Sodade?
CREATE TABLE table_29836557_2 (mls_team VARCHAR, player VARCHAR)
SELECT mls_team FROM table_29836557_2 WHERE player = "Babayele Sodade"
Find the number of distinct amenities.
CREATE TABLE dorm_amenity (Id VARCHAR)
SELECT COUNT(*) FROM dorm_amenity
What was the manner of leaving the team for the manager of Gostaresh Foolad?
CREATE TABLE table_22297140_3 (manner_of_departure VARCHAR, team VARCHAR)
SELECT manner_of_departure FROM table_22297140_3 WHERE team = "Gostaresh Foolad"
What was the sum of the ranks for Japan who had less than 5 bronze medals and more than 3 silvers?
CREATE TABLE table_name_84 (rank INTEGER, silver VARCHAR, bronze VARCHAR, country VARCHAR)
SELECT SUM(rank) FROM table_name_84 WHERE bronze < 5 AND country = "japan" AND silver > 3
How many different players did the most high assists on the March 4 game?
CREATE TABLE table_23286223_8 (high_assists VARCHAR, date VARCHAR)
SELECT COUNT(high_assists) FROM table_23286223_8 WHERE date = "March 4"
What day did Patrick Tambay have the fastest lap?
CREATE TABLE table_name_35 (date VARCHAR, fastest_lap VARCHAR)
SELECT date FROM table_name_35 WHERE fastest_lap = "patrick tambay"
What was the score when the series was 3-2?
CREATE TABLE table_name_7 (score VARCHAR, series VARCHAR)
SELECT score FROM table_name_7 WHERE series = "3-2"
Name the Result on october 15, 1995?
CREATE TABLE table_name_71 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_71 WHERE date = "october 15, 1995"
What was South Melbourne's away team score?
CREATE TABLE table_name_7 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_7 WHERE away_team = "south melbourne"
What record company did pianist Solomon Cutner record for?
CREATE TABLE table_name_51 (record_company VARCHAR, pianist VARCHAR)
SELECT record_company FROM table_name_51 WHERE pianist = "solomon cutner"
WHAT IS THE HIGHEST POINTS FOR LOS ANGELES?
CREATE TABLE table_name_89 (high_points VARCHAR, opponent VARCHAR)
SELECT high_points FROM table_name_89 WHERE opponent = "los angeles"
What is the 2003 value with 1r in 2009 at the Australian Open?
CREATE TABLE table_name_16 (tournament VARCHAR)
SELECT 2003 FROM table_name_16 WHERE 2009 = "1r" AND tournament = "australian open"
What is the score for interview when the preliminaries score is 8.425?
CREATE TABLE table_12094300_1 (interview VARCHAR, preliminaries VARCHAR)
SELECT interview FROM table_12094300_1 WHERE preliminaries = "8.425"
On what date did Detroit play at home?
CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_25 WHERE home = "detroit"
When has a Source of rasmussen reports?
CREATE TABLE table_name_39 (date VARCHAR, source VARCHAR)
SELECT date FROM table_name_39 WHERE source = "rasmussen reports"
Which goverment had a party of yisrael beiteinu?
CREATE TABLE table_name_60 (governments VARCHAR, party VARCHAR)
SELECT governments FROM table_name_60 WHERE party = "yisrael beiteinu"
What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7?
CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT MAX(total) FROM table_name_87 WHERE bronze = 1 AND rank = "7" AND gold > 0
What is Country of Origin, when Year of Intro is 1977?
CREATE TABLE table_name_10 (country_of_origin VARCHAR, year_of_intro VARCHAR)
SELECT country_of_origin FROM table_name_10 WHERE year_of_intro = 1977
Whice race ended with a DNF?
CREATE TABLE table_name_98 (race VARCHAR, position VARCHAR)
SELECT race FROM table_name_98 WHERE position = "dnf"
What was the Attendance during the Home game where St. Johnstone was the Opponent?
CREATE TABLE table_name_80 (attendance VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT COUNT(attendance) FROM table_name_80 WHERE opponent = "st. johnstone" AND venue = "home"
What location did the episode that aired originally on August 26, 2009 take place at?
CREATE TABLE table_24798489_2 (location VARCHAR, original_airdate VARCHAR)
SELECT location FROM table_24798489_2 WHERE original_airdate = "August 26, 2009"
Find the policy type used by more than 4 customers.
CREATE TABLE available_policies (policy_type_code VARCHAR)
SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING COUNT(*) > 4
WHAT COUNTRY HAS A PLAYER NAMED JACK NICKLAUS?
CREATE TABLE table_name_25 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_25 WHERE player = "jack nicklaus"
How many users are logged in?
CREATE TABLE users (user_login VARCHAR)
SELECT COUNT(*) FROM users WHERE user_login = 1
Name the last title for club of quilmes
CREATE TABLE table_name_36 (last_title VARCHAR, club VARCHAR)
SELECT last_title FROM table_name_36 WHERE club = "quilmes"
What is the total round of the rb player from Purdue with a pick less than 3?
CREATE TABLE table_name_76 (round VARCHAR, pick VARCHAR, position VARCHAR, college VARCHAR)
SELECT COUNT(round) FROM table_name_76 WHERE position = "rb" AND college = "purdue" AND pick < 3
What was the record at WEC 24?
CREATE TABLE table_name_43 (record VARCHAR, event VARCHAR)
SELECT record FROM table_name_43 WHERE event = "wec 24"
Which Population is the highest one that has a Density (inhabitants/km 2) larger than 2805.8, and a Rank of 1st, and an Altitude (mslm) smaller than 122?
CREATE TABLE table_name_99 (population INTEGER, altitude__mslm_ VARCHAR, density__inhabitants_km_2__ VARCHAR, rank VARCHAR)
SELECT MAX(population) FROM table_name_99 WHERE density__inhabitants_km_2__ > 2805.8 AND rank = "1st" AND altitude__mslm_ < 122
What is 2003 when 1999 is 2.1?
CREATE TABLE table_27146868_1 (Id VARCHAR)
SELECT 2003 FROM table_27146868_1 WHERE 1999 = "2.1"
What is the lowest heat number for a swimmer with a time of 2:34.94?
CREATE TABLE table_name_5 (heat INTEGER, time VARCHAR)
SELECT MIN(heat) FROM table_name_5 WHERE time = "2:34.94"
What was the Original Canadian air-date for the episode directed by mark rydell?
CREATE TABLE table_name_25 (original_canadian_air_date VARCHAR, director VARCHAR)
SELECT original_canadian_air_date FROM table_name_25 WHERE director = "mark rydell"
Which settlement has the cyrillic and other name of локве (romanian: locve)?
CREATE TABLE table_2562572_44 (settlement VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT settlement FROM table_2562572_44 WHERE cyrillic_name_other_names = "Локве (Romanian: Locve)"
In which period did Stanislav Chistov get a penalty?
CREATE TABLE table_name_9 (period VARCHAR, player VARCHAR)
SELECT period FROM table_name_9 WHERE player = "stanislav chistov"
Who used Gordini Straight-6 in 1956?
CREATE TABLE table_name_93 (entrant VARCHAR, engine VARCHAR, year VARCHAR)
SELECT entrant FROM table_name_93 WHERE engine = "gordini straight-6" AND year = 1956
How many rounds have a Grand Prix of german gp?
CREATE TABLE table_name_26 (round INTEGER, grand_prix VARCHAR)
SELECT SUM(round) FROM table_name_26 WHERE grand_prix = "german gp"
How many points did the opponent score on Sept. 14?
CREATE TABLE table_16677887_2 (opponents INTEGER, date VARCHAR)
SELECT MAX(opponents) FROM table_16677887_2 WHERE date = "Sept. 14"