answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT driver_s_ FROM table_name_18 WHERE crew_chief = "gary ritter"
Who is the driver that has a crew chief Gary Ritter?
CREATE TABLE table_name_18 (driver_s_ VARCHAR, crew_chief VARCHAR)
SELECT original_airdate FROM table_name_73 WHERE nightly_rank = "#6" AND viewers__millions_ = 1.246
Original airdate for #6 with 1.246 viewers?
CREATE TABLE table_name_73 (original_airdate VARCHAR, nightly_rank VARCHAR, viewers__millions_ VARCHAR)
SELECT Rank IN Respective AS divisions FROM table_name_60 WHERE capacity = "4100"
What Rank in Respective Divisions has a capacity of 4100?
CREATE TABLE table_name_60 (Rank VARCHAR, capacity VARCHAR)
SELECT opponents FROM table_name_9 WHERE round = "round 5"
Name the opponents for round of round 5
CREATE TABLE table_name_9 (opponents VARCHAR, round VARCHAR)
SELECT DISTINCT product_details FROM products
What are the details of all products?
CREATE TABLE products (product_details VARCHAR)
SELECT COUNT(total) FROM table_name_64 WHERE concacaf = 0 AND mls_cup < 6
How many Totals have a CONCACAF of 0, and an MLS Cup smaller than 6?
CREATE TABLE table_name_64 (total VARCHAR, concacaf VARCHAR, mls_cup VARCHAR)
SELECT class AS pos FROM table_name_53 WHERE year > 2002
For a year that is later than 2002 what is the class position?
CREATE TABLE table_name_53 (class VARCHAR, year INTEGER)
SELECT AVG(area__km²_) FROM table_name_30 WHERE excised_from = "shire of cook" AND population < 463 AND name_of_community = "wujal wujal (bloomfield river)"
What is the average Area (km²) that shows Excised from shire of cook and a Population smaller than 463 for the community of wujal wujal (bloomfield river)?
CREATE TABLE table_name_30 (area__km²_ INTEGER, name_of_community VARCHAR, excised_from VARCHAR, population VARCHAR)
SELECT 1989 AS _90 FROM table_17968274_2 WHERE team = "Vélez Sársfield"
How many games were played by the Vélez Sársfield team from 1989-90?
CREATE TABLE table_17968274_2 (team VARCHAR)
SELECT surface FROM table_name_44 WHERE tournament = "great britain f16"
What was the playing surface for the Tournament of Great Britain F16?
CREATE TABLE table_name_44 (surface VARCHAR, tournament 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 player FROM table_2850912_7 WHERE college_junior_club_team = "New Westminster Bruins (WHL)"
What is the name of the player when the college/junior/club team is new westminster bruins (whl)?
CREATE TABLE table_2850912_7 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT date FROM table_name_53 WHERE arena = "joe louis arena"
What date has joe louis arena as the arena?
CREATE TABLE table_name_53 (date VARCHAR, arena VARCHAR)
SELECT driver FROM table_name_66 WHERE total_time = "16:58"
What driver had a total time of 16:58?
CREATE TABLE table_name_66 (driver VARCHAR, total_time VARCHAR)
SELECT T1.stu_fname, T1.stu_lname, T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code
Find names of all students who took some course and the course description.
CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_num VARCHAR)
SELECT director FROM table_18335117_3 WHERE no_in_series = 1
When 1 is the number in series who is the director?
CREATE TABLE table_18335117_3 (director VARCHAR, no_in_series VARCHAR)
SELECT club FROM table_name_97 WHERE player = "hristo stoitchkov"
What club wast he player hristo stoitchkov from?
CREATE TABLE table_name_97 (club VARCHAR, player VARCHAR)
SELECT MAX(week) FROM table_name_54 WHERE opponent = "kansas city chiefs" AND attendance > 26 OFFSET 469
What is the highest Week when the opponent was kansas city chiefs, with more than 26,469 in attendance?
CREATE TABLE table_name_54 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
SELECT away_team FROM table_16387653_1 WHERE home_team = "Carlton"
Who was the away team playing at Carlton?
CREATE TABLE table_16387653_1 (away_team VARCHAR, home_team VARCHAR)
SELECT club FROM table_2454589_1 WHERE home_city = "Quevedo"
Name the club for quevedo
CREATE TABLE table_2454589_1 (club VARCHAR, home_city VARCHAR)
SELECT current_club FROM table_12962773_5 WHERE player = "Felipe Reyes"
what's the current club with player being felipe reyes
CREATE TABLE table_12962773_5 (current_club VARCHAR, player VARCHAR)
SELECT COUNT(year) FROM table_name_77 WHERE location = "sopot" AND score = "2–6, 6–2, 6–3"
In what Year was the match at Sopot with a Score of 2–6, 6–2, 6–3?
CREATE TABLE table_name_77 (year VARCHAR, location VARCHAR, score VARCHAR)
SELECT MAX(winners) FROM table_12303563_2
how many maximum winners
CREATE TABLE table_12303563_2 (winners INTEGER)
SELECT MIN(vol__number) FROM table_name_5 WHERE publication_date = "november 2004"
What's the Lowest Volume Number that was published November 2004?
CREATE TABLE table_name_5 (vol__number INTEGER, publication_date VARCHAR)
SELECT MAX(pick__number) FROM table_29626583_1 WHERE mls_team = "Chivas USA"
how many pick# does the chivas usa mls team have
CREATE TABLE table_29626583_1 (pick__number INTEGER, mls_team VARCHAR)
SELECT AVG(hexadecimal) FROM table_name_62 WHERE decimal < 53 AND octal < 61 AND glyph > 0
What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0?
CREATE TABLE table_name_62 (hexadecimal INTEGER, glyph VARCHAR, decimal VARCHAR, octal VARCHAR)
SELECT MAX(finish) FROM table_name_17 WHERE manufacturer = "dodge" AND start < 9 AND year < 2008
Before 2008, if the Manufacturer is dodge and the start is under 9, what's the highest finish time?
CREATE TABLE table_name_17 (finish INTEGER, year VARCHAR, manufacturer VARCHAR, start VARCHAR)
SELECT MAX(kerry_number) FROM table_1733457_1 WHERE others_number = 47
Name the maximum kerry # for where others is 47
CREATE TABLE table_1733457_1 (kerry_number INTEGER, others_number VARCHAR)
SELECT written_by FROM table_19068566_1 WHERE production_code = "3T7458"
When 3t7458 is the production code who are the writers?
CREATE TABLE table_19068566_1 (written_by VARCHAR, production_code VARCHAR)
SELECT opponent FROM table_name_76 WHERE save = "||33,723||93–64"
Who was the opponent in the game with save ||33,723||93–64?
CREATE TABLE table_name_76 (opponent VARCHAR, save VARCHAR)
SELECT game FROM table_13762472_7 WHERE record = "40-20"
How many games had the team played after they were 40-20?
CREATE TABLE table_13762472_7 (game VARCHAR, record VARCHAR)
SELECT SUM(byes) FROM table_name_13 WHERE against < 737
How many byes were then when there were less than 737 against?
CREATE TABLE table_name_13 (byes INTEGER, against INTEGER)
SELECT aspect FROM table_name_12 WHERE programming = "saigon network television"
What Aspect has a Programming of Saigon Network Television?
CREATE TABLE table_name_12 (aspect VARCHAR, programming VARCHAR)
SELECT group FROM table_name_70 WHERE name = "espn international sports"
What is the group of ESPN International Sports?
CREATE TABLE table_name_70 (group VARCHAR, name VARCHAR)
SELECT parentheses FROM table_name_91 WHERE dots = "0.\dot{6}"
What is the value for parentheses with a dots value of 0.\dot{6}?
CREATE TABLE table_name_91 (parentheses VARCHAR, dots VARCHAR)
SELECT high_points FROM table_name_81 WHERE game = 3
What is High Points, when Game is "3"?
CREATE TABLE table_name_81 (high_points VARCHAR, game VARCHAR)
SELECT assets__billion_$_ FROM table_1682026_2 WHERE company = "Wells Fargo"
What are Wells Fargo's assets?
CREATE TABLE table_1682026_2 (assets__billion_$_ VARCHAR, company VARCHAR)
SELECT date FROM table_name_85 WHERE label = "total holocaust records" AND format = "ed remaster cassette"
Which date has Total Holocaust records in the ed Remaster cassette format?
CREATE TABLE table_name_85 (date VARCHAR, label VARCHAR, format VARCHAR)
SELECT language FROM table_name_11 WHERE category = "best actor" AND original_title = "pelle erobreren"
What language was the film Pelle Erobreren, which received the best actor nomination, in?
CREATE TABLE table_name_11 (language VARCHAR, category VARCHAR, original_title VARCHAR)
SELECT high_assists FROM table_11960944_4 WHERE date = "December 12"
Who had the high assists on the date December 12?
CREATE TABLE table_11960944_4 (high_assists VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_23 WHERE winner = "thomas enqvist"
Which tournament did Thomas Enqvist win?
CREATE TABLE table_name_23 (tournament VARCHAR, winner VARCHAR)
SELECT SUM(grid) FROM table_name_62 WHERE team = "rusport" AND laps > 221
Which Grid has a Team of rusport, and Laps larger than 221?
CREATE TABLE table_name_62 (grid INTEGER, team VARCHAR, laps VARCHAR)
SELECT SUM(graduated) FROM table_name_94 WHERE player = "omar gonzalez"
What year did Omar Gonzalez graduate?
CREATE TABLE table_name_94 (graduated INTEGER, player VARCHAR)
SELECT match_report FROM table_name_29 WHERE opponents = "stirling albion" AND venue = "forthbank stadium"
What is the match report for the game played at forthbank stadium against stirling albion?
CREATE TABLE table_name_29 (match_report VARCHAR, opponents VARCHAR, venue VARCHAR)
SELECT COUNT(date) FROM table_2266762_1 WHERE average_speed__mph_ = "91.033"
On how many dates was the average speed of the race 91.033 MPH?
CREATE TABLE table_2266762_1 (date VARCHAR, average_speed__mph_ VARCHAR)
SELECT score FROM table_name_9 WHERE opponent = "@ new york knicks"
What is Score, when Opponent is "@ New York Knicks"?
CREATE TABLE table_name_9 (score VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_53 WHERE date = "november 1, 1992"
What is the result on November 1, 1992?
CREATE TABLE table_name_53 (result VARCHAR, date VARCHAR)
SELECT MAX(silver) FROM table_name_43 WHERE rank = "5" AND total > 6
What is the most number of silvers for teams in rank 5 with more than 6 total medals?
CREATE TABLE table_name_43 (silver INTEGER, rank VARCHAR, total VARCHAR)
SELECT SUM(poles) FROM table_name_35 WHERE podiums = 0 AND races = 17
What is the sum of Poles, when Podiums is 0, and when Races is 17?
CREATE TABLE table_name_35 (poles INTEGER, podiums VARCHAR, races VARCHAR)
SELECT MIN(events) FROM table_24108789_6 WHERE _number = 7
Name the least events for number 7
CREATE TABLE table_24108789_6 (events INTEGER, _number VARCHAR)
SELECT diameter__km_ FROM table_name_66 WHERE diameter__mi_ = "8mi" AND gill = "e"
What shows for the Diameter (km) when the Diameter (mi) is 8mi, and a Gill is e?
CREATE TABLE table_name_66 (diameter__km_ VARCHAR, diameter__mi_ VARCHAR, gill VARCHAR)
SELECT COUNT(code) FROM table_name_41 WHERE population > 87 OFFSET 585
What is the total code number for places with a population greater than 87,585?
CREATE TABLE table_name_41 (code VARCHAR, population INTEGER)
SELECT years_in_office FROM table_name_23 WHERE assumed_office = "october 4, 1886"
How many years in office were served by the person who assumed the office on October 4, 1886?
CREATE TABLE table_name_23 (years_in_office VARCHAR, assumed_office VARCHAR)
SELECT air_date FROM table_name_33 WHERE episode_number = 5
What was the air date of episode 5?
CREATE TABLE table_name_33 (air_date VARCHAR, episode_number VARCHAR)
SELECT MIN(laps) FROM table_name_6 WHERE qual = "145.926"
What is the lowest lap with a 145.926 qual?
CREATE TABLE table_name_6 (laps INTEGER, qual VARCHAR)
SELECT years_of_operation FROM table_13150274_1 WHERE area_of_operation = "Field 103"
When was the operation in Field 103 executed?
CREATE TABLE table_13150274_1 (years_of_operation VARCHAR, area_of_operation VARCHAR)
SELECT COUNT(area_km_2) FROM table_name_66 WHERE census_ranking = "3,129 of 5,008" AND population > 460
What is the total area with the Census Ranking of 3,129 of 5,008, and a Population larger than 460?
CREATE TABLE table_name_66 (area_km_2 VARCHAR, census_ranking VARCHAR, population VARCHAR)
SELECT antonio_thomas FROM table_name_24 WHERE hikaru_sato = "tanaka (8:09)"
Name the antonio thomas for Hikaru Sato of tanaka (8:09)
CREATE TABLE table_name_24 (antonio_thomas VARCHAR, hikaru_sato VARCHAR)
SELECT directed_by FROM table_25740548_4 WHERE production_code = "CA311"
Who directed the episode with production code ca311?
CREATE TABLE table_25740548_4 (directed_by VARCHAR, production_code VARCHAR)
SELECT first_elected FROM table_name_7 WHERE member = "h.b. higgins"
When was H.B. Higgins first elected?
CREATE TABLE table_name_7 (first_elected VARCHAR, member VARCHAR)
SELECT commissioned_or_completed_ * _ FROM table_name_60 WHERE ship = "manhattan"
What date was the ship named Manhattan completed?
CREATE TABLE table_name_60 (commissioned_or_completed_ VARCHAR, _ VARCHAR, ship VARCHAR)
SELECT country FROM table_name_38 WHERE to_par = "+1" AND score = 75 - 69 - 73 = 217
What is the Country of the Player with a To par of +1 and a Score of 75-69-73=217?
CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT finish FROM table_name_73 WHERE start < 25
What finish has a start smaller than 25?
CREATE TABLE table_name_73 (finish VARCHAR, start INTEGER)
SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T1.name
Find the number of scientists involved for each project name.
CREATE TABLE assignedto (project VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR)
SELECT athlete FROM table_name_68 WHERE 220 = "o" AND 225 = "o" AND nationality = "germany"
Which athlete from Germany has 2.20 of O and a 2.25 of O?
CREATE TABLE table_name_68 (athlete VARCHAR, nationality VARCHAR)
SELECT trainer FROM table_name_3 WHERE winner = "mckaymackenna"
Who was the trainer when Mckaymackenna won?
CREATE TABLE table_name_3 (trainer VARCHAR, winner VARCHAR)
SELECT version FROM table_name_64 WHERE year < 2001 AND length = "7:42"
What is the Version before 2001 with a Length of 7:42?
CREATE TABLE table_name_64 (version VARCHAR, year VARCHAR, length VARCHAR)
SELECT COUNT(_percentage_same_sex_marriages) FROM table_19614212_1 WHERE year = "2008"
How many % same-sex marriages are there for the year 2008?
CREATE TABLE table_19614212_1 (_percentage_same_sex_marriages VARCHAR, year VARCHAR)
SELECT AVG(top_10) FROM table_name_57 WHERE cuts_made = 10 AND top_25 > 6
Name the average top-10 for cuts made of 10 and top-25 more than 6
CREATE TABLE table_name_57 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
SELECT MIN(poles) FROM table_2182573_2 WHERE year = 1996
How many poles were there in 1996?
CREATE TABLE table_2182573_2 (poles INTEGER, year VARCHAR)
SELECT opponent FROM table_name_83 WHERE record = "3-0"
Which opponent has a record of 3-0?
CREATE TABLE table_name_83 (opponent VARCHAR, record VARCHAR)
SELECT MAX(year) FROM table_name_72 WHERE nation_represented = "philippines"
What is the latest result where a person from the Philippines won?
CREATE TABLE table_name_72 (year INTEGER, nation_represented VARCHAR)
SELECT format FROM table_name_94 WHERE call_sign = "cite-fm-1"
What is the format for the one which has a call sign of cite-fm-1?
CREATE TABLE table_name_94 (format VARCHAR, call_sign VARCHAR)
SELECT date FROM table_name_79 WHERE competition = "friendly" AND venue = "pretoria, south africa"
What date has friendly as the competition, with pretoria, South Africa as the venue?
CREATE TABLE table_name_79 (date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT MAX(laps) FROM table_name_49 WHERE points < 5 AND team = "garry rogers motorsport" AND grid < 23
What is the highest number of laps when there are less than 5 points for team garry rogers motorsport and the grid number is under 23?
CREATE TABLE table_name_49 (laps INTEGER, grid VARCHAR, points VARCHAR, team VARCHAR)
SELECT venue FROM table_name_40 WHERE result = "lost"
What is the Venue with a Result that is lost?
CREATE TABLE table_name_40 (venue VARCHAR, result VARCHAR)
SELECT MIN(attendance) FROM table_name_27 WHERE visitor = "colorado" AND date = "may 30"
What is the lowest number of people attending the game on May 30 with Colorado as the visitors?
CREATE TABLE table_name_27 (attendance INTEGER, visitor VARCHAR, date VARCHAR)
SELECT games FROM table_name_3 WHERE team = "efes pilsen"
How many Games for the player with Rebounds from Efes Pilsen?
CREATE TABLE table_name_3 (games VARCHAR, team VARCHAR)
SELECT games FROM table_name_39 WHERE player = "roger merrett"
What is the number of games for Roger Merrett?
CREATE TABLE table_name_39 (games VARCHAR, player VARCHAR)
SELECT game_site FROM table_name_90 WHERE week = 12
Where did the Oakland Raiders play in week 12 of their 1976 season?
CREATE TABLE table_name_90 (game_site VARCHAR, week VARCHAR)
SELECT location FROM table_name_83 WHERE score = "269 (–19)" AND tournament = "tallahassee open"
What is the location of the tallahassee open, with a Score of 269 (–19)?
CREATE TABLE table_name_83 (location VARCHAR, score VARCHAR, tournament VARCHAR)
SELECT MIN(matches) FROM table_26041144_11
What is the lowest number of matches for a record holder?
CREATE TABLE table_26041144_11 (matches INTEGER)
SELECT COUNT(events) FROM table_name_80 WHERE top_10 > 6 AND top_5 < 8
How many Events have a Top-10 larger than 6, and a Top-5 smaller than 8?
CREATE TABLE table_name_80 (events VARCHAR, top_10 VARCHAR, top_5 VARCHAR)
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Mar < T2.Dec EXCEPT SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city
Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.
CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Mar INTEGER, Dec VARCHAR)
SELECT report FROM table_2266230_1 WHERE year = "2003"
Name the report for 2003
CREATE TABLE table_2266230_1 (report VARCHAR, year VARCHAR)
SELECT club FROM table_name_63 WHERE points_against = "431"
What is the club had 431 points against them?
CREATE TABLE table_name_63 (club VARCHAR, points_against VARCHAR)
SELECT date FROM table_name_50 WHERE venue = "vfl park"
On what date was the venue VFL Park?
CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR)
SELECT local_location FROM table_name_47 WHERE resident_country = "senegal" AND mission = "mali"
What is the local location that has senegal as the resident county, and a mission of mali?
CREATE TABLE table_name_47 (local_location VARCHAR, resident_country VARCHAR, mission VARCHAR)
SELECT MIN(round) FROM table_name_26 WHERE position = "ls"
What is the lowest round that a pick had a position of ls?
CREATE TABLE table_name_26 (round INTEGER, position VARCHAR)
SELECT neville FROM table_name_62 WHERE novick = "23%"
Which Neville has a Novick of 23%?
CREATE TABLE table_name_62 (neville VARCHAR, novick VARCHAR)
SELECT AVG(fylde) FROM table_name_57 WHERE burnley < 0
What is the average rating for a Flyde that has a Burnley less than 0?
CREATE TABLE table_name_57 (fylde INTEGER, burnley INTEGER)
SELECT SUM(podiums) FROM table_name_18 WHERE class = "250cc" AND f_laps = 0
How many Podiums have a Class of 250cc, and an F laps of 0?
CREATE TABLE table_name_18 (podiums INTEGER, class VARCHAR, f_laps VARCHAR)
SELECT title FROM Movie WHERE NOT mID IN (SELECT mID FROM Rating)
Find the titles of all movies that have no ratings.
CREATE TABLE Rating (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)
SELECT penalty FROM table_name_13 WHERE average > 9.662 AND total > 9.706
What was the penalty for the gymnast with average above 9.662 and total is more than 9.706?
CREATE TABLE table_name_13 (penalty VARCHAR, average VARCHAR, total VARCHAR)
SELECT MIN(game) FROM table_name_99 WHERE location = "td waterhouse centre"
What is the earliest game played at the TD Waterhouse Centre?
CREATE TABLE table_name_99 (game INTEGER, location VARCHAR)
SELECT name FROM table_name_79 WHERE points = 1344
Who had 1344 points?
CREATE TABLE table_name_79 (name VARCHAR, points VARCHAR)
SELECT unemployment_rate FROM table_22815568_12 WHERE county = "Botetourt"
Name the unemployment rate for botetourt
CREATE TABLE table_22815568_12 (unemployment_rate VARCHAR, county VARCHAR)
SELECT composer FROM table_name_8 WHERE duration = "3:31"
What composer has a duration time of 3:31?
CREATE TABLE table_name_8 (composer VARCHAR, duration VARCHAR)
SELECT country FROM table_name_41 WHERE builder = "royal dockyard" AND ship = "pegasus"
What country was the Pegasus, build by Royal Dockyard, from?
CREATE TABLE table_name_41 (country VARCHAR, builder VARCHAR, ship VARCHAR)
SELECT MAX(week) FROM table_name_91 WHERE date = "november 18, 1951"
What was the latest week that had a game on November 18, 1951?
CREATE TABLE table_name_91 (week INTEGER, date VARCHAR)