answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT track AS time FROM table_name_80 WHERE disc > 2 AND track < 22 AND english_title = "younger girl"
Which Track time has a Disc larger than 2, a Track smaller than 22, and an English title of younger girl?
CREATE TABLE table_name_80 (track VARCHAR, english_title VARCHAR, disc VARCHAR)
SELECT tournament FROM table_name_73 WHERE career_sr = "atp masters series"
What is Tournament, when Career SR is "ATP Masters Series"?
CREATE TABLE table_name_73 (tournament VARCHAR, career_sr VARCHAR)
SELECT winning_driver FROM table_name_10 WHERE most_laps_led = "dario franchitti" AND pole_position = "hélio castroneves"
Who is the Winning Driver, when Most Laps Led is Dario Franchitti, and when Pole Position is Hélio Castroneves?
CREATE TABLE table_name_10 (winning_driver VARCHAR, most_laps_led VARCHAR, pole_position VARCHAR)
SELECT AVG(population) FROM table_name_56 WHERE country = "spain" AND urban_area = "valencia"
what is the population of Valencia, Spain?
CREATE TABLE table_name_56 (population INTEGER, country VARCHAR, urban_area VARCHAR)
SELECT 0 AS _100km_h__62mph_ FROM table_name_26 WHERE model = "slk200k" AND top_speed = "236km/h (147mph)"
How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)?
CREATE TABLE table_name_26 (model VARCHAR, top_speed VARCHAR)
SELECT civilian_deaths FROM table_name_95 WHERE total_casualties = "1,130"
How many civilians died in the conflict that had a total of 1,130 casualties?
CREATE TABLE table_name_95 (civilian_deaths VARCHAR, total_casualties VARCHAR)
SELECT james_e_holmes FROM table_25330991_3 WHERE reidsville = "Erselle Young"
Name the james e. holmes for erselle young
CREATE TABLE table_25330991_3 (james_e_holmes VARCHAR, reidsville VARCHAR)
SELECT weeks_on_top FROM table_name_48 WHERE artist = "omc"
How many weeks on top was OMC?
CREATE TABLE table_name_48 (weeks_on_top VARCHAR, artist VARCHAR)
SELECT COUNT(high_assists) FROM table_19778010_5 WHERE high_rebounds = "Sales (10)"
How many different players did the high assists in games where the high rebounds were done by Sales (10)?
CREATE TABLE table_19778010_5 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT rider FROM table_name_92 WHERE time = "1:06.02.0"
Which Rider has a 1:06.02.0 Time?
CREATE TABLE table_name_92 (rider VARCHAR, time VARCHAR)
SELECT directed_by FROM table_name_10 WHERE original_airdate = "february 25, 2001"
Who directed the episode that originally aired on February 25, 2001?
CREATE TABLE table_name_10 (directed_by VARCHAR, original_airdate VARCHAR)
SELECT MAX(silver) FROM table_name_43 WHERE nation = "south korea" AND gold > 2
HOW MANY SILVER METALS DOES SOUTH KOREA HAVE WITH 2 GOLD METALS?
CREATE TABLE table_name_43 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT runner_s__up FROM table_name_58 WHERE margin_of_victory = "2 strokes"
For the tournament ending with a margin of victory of 2 strokes, who was the runner(s)-up?
CREATE TABLE table_name_58 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT AVG(crowd) FROM table_name_86 WHERE venue = "arden street oval"
How many attended the game at Arden Street Oval?
CREATE TABLE table_name_86 (crowd INTEGER, venue VARCHAR)
SELECT director FROM table_name_23 WHERE original_title = "la ronde"
what is the director of la ronde
CREATE TABLE table_name_23 (director VARCHAR, original_title VARCHAR)
SELECT T1.department_name, T2.city, T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id
display the department name, city, and state province for each department.
CREATE TABLE locations (city VARCHAR, state_province VARCHAR, location_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, location_id VARCHAR)
SELECT competition_name FROM table_name_42 WHERE age_groups = "17 or younger" AND sport = "athletics"
what is the competition name when the age group is 17 or younger for athletics?
CREATE TABLE table_name_42 (competition_name VARCHAR, age_groups VARCHAR, sport VARCHAR)
SELECT date FROM table_name_49 WHERE venue = "centurion park"
When was there a match in Centurion Park?
CREATE TABLE table_name_49 (date VARCHAR, venue VARCHAR)
SELECT AVG(laps) FROM table_name_51 WHERE grid = 6
Tell me the average Laps for grid of 6
CREATE TABLE table_name_51 (laps INTEGER, grid VARCHAR)
SELECT winner FROM table_28853064_15 WHERE mountains_classification = "Oscar Solis" AND team_classification = "EPM-UNE"
Who were the winners if the Mountain Classification award was given to Oscar Solis and Team Classification was given to EPM-Une?
CREATE TABLE table_28853064_15 (winner VARCHAR, mountains_classification VARCHAR, team_classification VARCHAR)
SELECT winner FROM table_name_82 WHERE stage = "ss14"
Name the winner for ss14
CREATE TABLE table_name_82 (winner VARCHAR, stage VARCHAR)
SELECT margin_of_victory FROM table_name_10 WHERE date = "aug 24, 1986"
What was Juli's winning margin on Aug 24, 1986?
CREATE TABLE table_name_10 (margin_of_victory VARCHAR, date VARCHAR)
SELECT game FROM table_name_60 WHERE team = "waterford" AND début > 1995
What is the name of the game whose team is Waterford and debuted later than 1995?
CREATE TABLE table_name_60 (game VARCHAR, team VARCHAR, début VARCHAR)
SELECT COUNT(laps) FROM table_name_85 WHERE time_retired = "+7.213" AND grid > 7
How many laps were completed in the time of +7.213 with a grid number larger than 7?
CREATE TABLE table_name_85 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT proto_oceanic FROM table_name_85 WHERE proto_polynesian = "*lima"
Which Proto-Oceanic has a Proto-Polynesian of *lima?
CREATE TABLE table_name_85 (proto_oceanic VARCHAR, proto_polynesian VARCHAR)
SELECT AVG(rank) FROM table_name_38 WHERE time = "1:42.054"
What was the rank for the finish time of 1:42.054?
CREATE TABLE table_name_38 (rank INTEGER, time VARCHAR)
SELECT nationality FROM table_name_53 WHERE position = "guard" AND school_club_team = "florida international"
What is the nationality of the guard who played for Florida International?
CREATE TABLE table_name_53 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT date FROM table_name_71 WHERE where_sunk = "east china sea" AND ship_type = "hell ship"
What is the date that a hell ship sunk in the East China Sea?
CREATE TABLE table_name_71 (date VARCHAR, where_sunk VARCHAR, ship_type VARCHAR)
SELECT weight_division FROM table_name_55 WHERE method = "tko (strikes)"
What was the weight division for the fight that ended in a TKO (strikes)?
CREATE TABLE table_name_55 (weight_division VARCHAR, method VARCHAR)
SELECT visitor FROM table_name_71 WHERE record = "14-10"
Who is the visitor with a 14-10 record?
CREATE TABLE table_name_71 (visitor VARCHAR, record VARCHAR)
SELECT AVG(draw) FROM table_name_74 WHERE artist = "maggie toal"
What was the draw of Maggie Toal?
CREATE TABLE table_name_74 (draw INTEGER, artist VARCHAR)
SELECT region FROM table_name_30 WHERE venue = "william r. johnson coliseum"
What region is William R. Johnson Coliseum in?
CREATE TABLE table_name_30 (region VARCHAR, venue VARCHAR)
SELECT T1.role_description, T2.role_code, COUNT(*) FROM ROLES AS T1 JOIN Employees AS T2 ON T1.role_code = T2.role_code GROUP BY T2.role_code
How many employees does each role have? List role description, id and number of employees.
CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR); CREATE TABLE Employees (role_code VARCHAR)
SELECT cast FROM table_2570269_2 WHERE episode_title = "Pressures"
If the episode title is Pressures, what are the names of the cast?
CREATE TABLE table_2570269_2 (cast VARCHAR, episode_title VARCHAR)
SELECT tie_no FROM table_name_83 WHERE home_team = "chelsea"
What is home team Chelsea's Tie no?
CREATE TABLE table_name_83 (tie_no VARCHAR, home_team VARCHAR)
SELECT performer_s_ FROM table_name_20 WHERE composer_s_ = "mariah carey and walter afanasieff"
Who sang the song composed by Mariah Carey and Walter Afanasieff?
CREATE TABLE table_name_20 (performer_s_ VARCHAR, composer_s_ VARCHAR)
SELECT date_founded__founder FROM table_242785_3 WHERE emblem = "Hercules"
What is the date founded/founder when the emblem was Hercules?
CREATE TABLE table_242785_3 (date_founded__founder VARCHAR, emblem VARCHAR)
SELECT qual_1 FROM table_name_91 WHERE team = "team player's" AND best = "58.405"
Which Qual 1 has a Team of team player's, and a Best of 58.405?
CREATE TABLE table_name_91 (qual_1 VARCHAR, team VARCHAR, best VARCHAR)
SELECT COUNT(attendance) FROM table_name_74 WHERE record = "16–14"
When the team had their record of 16–14, what was the total attendance?
CREATE TABLE table_name_74 (attendance VARCHAR, record VARCHAR)
SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id) > 1
Show the authors who have submissions to more than one workshop.
CREATE TABLE submission (Author VARCHAR, Submission_ID VARCHAR); CREATE TABLE acceptance (Submission_ID VARCHAR, workshop_id VARCHAR)
SELECT COUNT(model___computer_name) FROM table_27765443_2 WHERE cpu_type = "AMD Opteron dual-core 2.6GHz"
Name the total number of model for amd opteron dual-core 2.6ghz
CREATE TABLE table_27765443_2 (model___computer_name VARCHAR, cpu_type VARCHAR)
SELECT MIN(tries_for) FROM table_16770037_3
What is the smallest number of tries for in a game?
CREATE TABLE table_16770037_3 (tries_for INTEGER)
SELECT station FROM table_1353096_2 WHERE city_of_license_market = "Fort Collins, Colorado"
Which station has a license in Fort Collins, Colorado?
CREATE TABLE table_1353096_2 (station VARCHAR, city_of_license_market VARCHAR)
SELECT class FROM table_name_61 WHERE part_2 = "*hēt"
What was the class when part 2 was *hēt?
CREATE TABLE table_name_61 (class VARCHAR, part_2 VARCHAR)
SELECT COUNT(attendance) FROM table_17972193_1 WHERE date = "October 27"
How many total numbers of attendance are there during the game in October 27?
CREATE TABLE table_17972193_1 (attendance VARCHAR, date VARCHAR)
SELECT theme FROM table_26250145_1 WHERE original_artist = "Alicia Keys"
What is the theme for the original artist Alicia Keys?
CREATE TABLE table_26250145_1 (theme VARCHAR, original_artist VARCHAR)
SELECT MIN(runs) FROM table_28846752_4 WHERE highest_score = "228*"
How many runs are there when the highest score is 228*?
CREATE TABLE table_28846752_4 (runs INTEGER, highest_score VARCHAR)
SELECT campus FROM table_name_12 WHERE year_opened = "1970"
What campus opened in 1970?
CREATE TABLE table_name_12 (campus VARCHAR, year_opened VARCHAR)
SELECT MAX(podiums) FROM table_name_78 WHERE race = 14
During race 14, what's the podiums?
CREATE TABLE table_name_78 (podiums INTEGER, race VARCHAR)
SELECT COUNT(reason_for_change) FROM table_18563954_3 WHERE state__class_ = "Connecticut (3)"
How many different reasons are there for the change in Connecticut (3)?
CREATE TABLE table_18563954_3 (reason_for_change VARCHAR, state__class_ VARCHAR)
SELECT result FROM table_name_36 WHERE attendance = "51,100"
What was the final score (result) for the game where 51,100 attended?
CREATE TABLE table_name_36 (result VARCHAR, attendance VARCHAR)
SELECT previous_club FROM table_27998152_1 WHERE name = "Ben Williams"
for the ben williams name what was the previous club
CREATE TABLE table_27998152_1 (previous_club VARCHAR, name VARCHAR)
SELECT opposing_team FROM table_name_48 WHERE against < 42 AND status = "tour match" AND venue = "rugby park, gisborne"
Which opposing team had an Against score less than 42 and a Tour Match status in Rugby Park, Gisborne?
CREATE TABLE table_name_48 (opposing_team VARCHAR, venue VARCHAR, against VARCHAR, status VARCHAR)
SELECT horsepower FROM table_name_19 WHERE compression_ratio = "9.00:1" AND carburetor = "2-barrel" AND engine = "302-2v windsor v8"
Name the horsepwer for compression ratio of 9.00:1 and carburetor of 2-barrel and engine 302-2v windsor v8
CREATE TABLE table_name_19 (horsepower VARCHAR, engine VARCHAR, compression_ratio VARCHAR, carburetor VARCHAR)
SELECT category FROM table_name_6 WHERE nominee = "brian d'arcy james" AND result = "nominated"
What category was Brian D'arcy James nominated for?
CREATE TABLE table_name_6 (category VARCHAR, nominee VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_33 WHERE score = "† 4–4 †"
How many were in attendance when the score was † 4–4 †?
CREATE TABLE table_name_33 (attendance VARCHAR, score VARCHAR)
SELECT 意義_meaning FROM table_1912713_2 WHERE 性情_personality = "Gentle"
What is the meaning of a gentle personality?
CREATE TABLE table_1912713_2 (意義_meaning VARCHAR, 性情_personality VARCHAR)
SELECT home FROM table_name_87 WHERE visitor = "chicago black hawks" AND score = "2–3"
Which home team had a visitor of Chicago Black Hawks with a score of 2–3?
CREATE TABLE table_name_87 (home VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT home FROM table_name_64 WHERE visitor = "clippers"
Who was the home team that the Clippers played?
CREATE TABLE table_name_64 (home VARCHAR, visitor VARCHAR)
SELECT displacement_ & _configuration FROM table_name_68 WHERE car_model = "panamera 4s"
What displacement & configuration does the car model Panamera 4s have?
CREATE TABLE table_name_68 (displacement_ VARCHAR, _configuration VARCHAR, car_model VARCHAR)
SELECT location FROM table_name_96 WHERE time = "0:31"
In which location did the fight last just 0:31?
CREATE TABLE table_name_96 (location VARCHAR, time VARCHAR)
SELECT team FROM table_15420044_1 WHERE against = 10
Which teams had 10 goals scored against them
CREATE TABLE table_15420044_1 (team VARCHAR, against VARCHAR)
SELECT name FROM table_name_1 WHERE left_office = "june 2011"
Who left office in June 2011?
CREATE TABLE table_name_1 (name VARCHAR, left_office VARCHAR)
SELECT venue FROM table_name_68 WHERE date = "2004-07-24"
Which Venue is on 2004-07-24?
CREATE TABLE table_name_68 (venue VARCHAR, date VARCHAR)
SELECT T2.party_name, COUNT(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id
Show party names and the number of events for each party.
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE party_events (party_id VARCHAR)
SELECT away_team AS score FROM table_name_17 WHERE home_team = "collingwood"
What was the away team's score when Collingwood was the home team?
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(*) FROM ship
How many ships are there?
CREATE TABLE ship (Id VARCHAR)
SELECT AVG(crowd) FROM table_name_8 WHERE home_team = "hawthorn"
What is the average crowd size for games with hawthorn as the home side?
CREATE TABLE table_name_8 (crowd INTEGER, home_team VARCHAR)
SELECT november_3 FROM table_25284864_3 WHERE january_15_16 = "141"
What is the November 3 result when the result for January 15-16 is 141?
CREATE TABLE table_25284864_3 (november_3 VARCHAR, january_15_16 VARCHAR)
SELECT COUNT(b_winning_car) FROM table_27965906_2 WHERE ss_winning_car = "Bobby Archer, Tommy Archer"
Name the total number of b winning car and bobby archer, tommy archer
CREATE TABLE table_27965906_2 (b_winning_car VARCHAR, ss_winning_car VARCHAR)
SELECT chromosomal_location FROM table_29871617_1 WHERE name = "IL-36β"
Where is il-36β located?
CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, name VARCHAR)
SELECT date FROM table_name_81 WHERE winning_drivers = "louis chiron"
What date was the race won by Louis Chiron?
CREATE TABLE table_name_81 (date VARCHAR, winning_drivers VARCHAR)
SELECT co_drivers FROM table_name_41 WHERE pos = "dnf" AND class = "gt1"
Who was the co-driver in the DNF position in the GT1 class?
CREATE TABLE table_name_41 (co_drivers VARCHAR, pos VARCHAR, class VARCHAR)
SELECT MAX(no_in_season) FROM table_13336122_7 WHERE us_viewers__million_ = "0.57"
What's the season number of the episode watched by 0.57 million US viewers?
CREATE TABLE table_13336122_7 (no_in_season INTEGER, us_viewers__million_ VARCHAR)
SELECT score FROM table_15869204_7 WHERE team = "San Antonio"
What was the score when they played against San Antonio?
CREATE TABLE table_15869204_7 (score VARCHAR, team VARCHAR)
SELECT up_down FROM table_2472711_32 WHERE venue = "Subiaco Oval"
What is the up/down associated with the Subiaco Oval?
CREATE TABLE table_2472711_32 (up_down VARCHAR, venue VARCHAR)
SELECT first_performance FROM table_name_72 WHERE style = "ballet" AND status = "final cast" AND name = "peter mazurowski"
when was the first performance for the ballet with peter mazurowski in the final cast?
CREATE TABLE table_name_72 (first_performance VARCHAR, name VARCHAR, style VARCHAR, status VARCHAR)
SELECT incumbent FROM table_1342331_5 WHERE candidates = "Ben Cravens (D) Unopposed"
who is the the incumbent with candidates being ben cravens (d) unopposed
CREATE TABLE table_1342331_5 (incumbent VARCHAR, candidates VARCHAR)
SELECT host_city FROM table_name_35 WHERE games = "vii"
Can you tell me the Host City that has the Games of vii?
CREATE TABLE table_name_35 (host_city VARCHAR, games VARCHAR)
SELECT nickname FROM table_1974545_2 WHERE institution = "Westfield State University"
What's the nickname of Westfield State University's students?
CREATE TABLE table_1974545_2 (nickname VARCHAR, institution VARCHAR)
SELECT time FROM table_name_39 WHERE jockey = "isaac murphy" AND winner = "kingman"
Which time contains the jockery of isaac murphy as well as the winner of kingman?
CREATE TABLE table_name_39 (time VARCHAR, jockey VARCHAR, winner VARCHAR)
SELECT position FROM table_name_97 WHERE round > 6 AND player = "neil pilon"
Which Position has a Round larger than 6, and a Player of neil pilon?
CREATE TABLE table_name_97 (position VARCHAR, round VARCHAR, player VARCHAR)
SELECT COUNT(ties) FROM table_14389782_2 WHERE games_started = 36
How many ties were there for game 36 started?
CREATE TABLE table_14389782_2 (ties VARCHAR, games_started VARCHAR)
SELECT english_title FROM table_name_93 WHERE year > 1981 AND country = "argentina"
What is the English title for years after 1981 originating from Argentina?
CREATE TABLE table_name_93 (english_title VARCHAR, year VARCHAR, country VARCHAR)
SELECT MAX(first_elected) FROM table_name_40 WHERE results = "lost re-election democratic gain" AND incumbent = "john hostettler"
What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain?
CREATE TABLE table_name_40 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)
SELECT T2.concert_name, T2.theme, COUNT(*) FROM singer_in_concert AS T1 JOIN concert AS T2 ON T1.concert_id = T2.concert_id GROUP BY T2.concert_id
Show the name and theme for all concerts and the number of singers in each concert.
CREATE TABLE singer_in_concert (concert_id VARCHAR); CREATE TABLE concert (concert_name VARCHAR, theme VARCHAR, concert_id VARCHAR)
SELECT man_of_the_match FROM table_19576091_1 WHERE result = "Rockets won by 9 wickets"
Who was the man of the match when the Rockets won by 9 wickets?
CREATE TABLE table_19576091_1 (man_of_the_match VARCHAR, result VARCHAR)
SELECT COUNT(us_viewers__millions_) FROM table_26914076_3 WHERE directed_by = "Rob Bailey"
How many entries are there for u.s. viewers (millions) for the episode directed by rob bailey?
CREATE TABLE table_26914076_3 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT MIN(against) FROM table_name_55 WHERE date = "18/02/1989"
What is the smallest Against with a Date of 18/02/1989?
CREATE TABLE table_name_55 (against INTEGER, date VARCHAR)
SELECT "built" FROM table_name_41 WHERE status = "built" AND height = "42 m."
What is the year built of the home with a built status and a 42 m. height?
CREATE TABLE table_name_41 (status VARCHAR, height VARCHAR)
SELECT COUNT(wins) FROM table_23239946_3 WHERE driver = "Andrew Ranger"
How many wins did Andrew Ranger have?
CREATE TABLE table_23239946_3 (wins VARCHAR, driver VARCHAR)
SELECT rank_in_english FROM table_1015521_2 WHERE commonwealth_equivalent = "Group Captain"
Give me a list of all spanish officer titles that could receive recognition as group captain in english
CREATE TABLE table_1015521_2 (rank_in_english VARCHAR, commonwealth_equivalent VARCHAR)
SELECT position FROM table_name_40 WHERE venue = "helsinki, finland"
Which position has a venue of Helsinki, Finland?
CREATE TABLE table_name_40 (position VARCHAR, venue VARCHAR)
SELECT COUNT(month_held) FROM table_26166836_3 WHERE road_race = "Paris 20K"
How many times a year is the Paris 20k road race held?
CREATE TABLE table_26166836_3 (month_held VARCHAR, road_race 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 SUM(year) FROM table_name_22 WHERE opponent = "caroline garcia"
what year was the opponent caroline garcia?
CREATE TABLE table_name_22 (year INTEGER, opponent VARCHAR)
SELECT series_ep FROM table_name_60 WHERE episode > 262 AND segment_a = "aluminium s canoe"
What is the series episode number that is larger than 262 and has a Segment A entry of Aluminium s canoe?
CREATE TABLE table_name_60 (series_ep VARCHAR, episode VARCHAR, segment_a VARCHAR)
SELECT opponent FROM table_name_89 WHERE score = "15.4.94"
Which opponent has a Score of 15.4.94?
CREATE TABLE table_name_89 (opponent VARCHAR, score VARCHAR)
SELECT poles FROM table_29434211_1 WHERE series = "European F3 Open"
How many poles does the European F3 Open series have?
CREATE TABLE table_29434211_1 (poles VARCHAR, series VARCHAR)
SELECT away_team FROM table_name_88 WHERE home_team = "collingwood"
When collingwood played as the home team who was the away team?
CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR)