answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT released FROM table_name_75 WHERE model = "precision m60"
what is the release date of the model precision m60?
CREATE TABLE table_name_75 (released VARCHAR, model VARCHAR)
SELECT round FROM table_name_31 WHERE venue = "h" AND opponent = "derby county"
What is the round of the game at venue H and opponent of Derby County?
CREATE TABLE table_name_31 (round VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT original_title FROM table_name_55 WHERE country = "canada"
What is the Original title with a Country that is canada?
CREATE TABLE table_name_55 (original_title VARCHAR, country VARCHAR)
SELECT MAX(bronze_medals) FROM table_name_77 WHERE gold_medals < 0
What is the highest number of bronze medals received by an ensemble who received fewer than 0 gold medals?
CREATE TABLE table_name_77 (bronze_medals INTEGER, gold_medals INTEGER)
SELECT college_junior_club_team FROM table_1213511_5 WHERE player = "Mike McNiven"
where is team player mike mcniven played for?
CREATE TABLE table_1213511_5 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT position FROM table_name_62 WHERE season > 2004
What is the position in the 2004 season?
CREATE TABLE table_name_62 (position VARCHAR, season INTEGER)
SELECT MAX(bronze) FROM table_name_94 WHERE total = 9
what is the most bronze when the total is 9?
CREATE TABLE table_name_94 (bronze INTEGER, total VARCHAR)
SELECT notes FROM table_name_85 WHERE kit_supplier = "rapido" AND shirt_printing = "名品+1"
What are the notes for the shirt that says 名品+1 in the kit supplied by Rapido?
CREATE TABLE table_name_85 (notes VARCHAR, kit_supplier VARCHAR, shirt_printing VARCHAR)
SELECT opponent FROM table_name_33 WHERE attendance = "17,015"
Which opponent has an attendance of 17,015?
CREATE TABLE table_name_33 (opponent VARCHAR, attendance VARCHAR)
SELECT home_team AS score FROM table_name_43 WHERE home_team = "richmond"
What did Richmond score as the home team?
CREATE TABLE table_name_43 (home_team VARCHAR)
SELECT tebe_career FROM table_28730459_3 WHERE league_matches = 163
What are the years of TeBe career for the players whose league matches are exactly 163?
CREATE TABLE table_28730459_3 (tebe_career VARCHAR, league_matches VARCHAR)
SELECT title FROM table_name_86 WHERE release_date = "1938-12-17" AND production_num = "8610"
what is the title when the release date is 1938-12-17 and the production number is 8610?
CREATE TABLE table_name_86 (title VARCHAR, release_date VARCHAR, production_num VARCHAR)
SELECT title FROM table_28037619_2 WHERE written_by = "David Matthews"
What is the name of the episode written by David Matthews?
CREATE TABLE table_28037619_2 (title VARCHAR, written_by VARCHAR)
SELECT control FROM table_name_36 WHERE labour_party = "12 (+6)"
Who was in control the year that Labour Party won 12 (+6) seats?
CREATE TABLE table_name_36 (control VARCHAR, labour_party VARCHAR)
SELECT SUM(population_112008) FROM table_name_62 WHERE urban_area = "tønsberg" AND population_112006 > 45.447
Name the sum of population 1.1.2008 for tønsberg and population 1.1.2006 more than 45.447
CREATE TABLE table_name_62 (population_112008 INTEGER, urban_area VARCHAR, population_112006 VARCHAR)
SELECT screening_completed FROM table_name_22 WHERE screening_started = "23 january 2006"
Name the screening completed for screening started 23 january 2006
CREATE TABLE table_name_22 (screening_completed VARCHAR, screening_started VARCHAR)
SELECT SUM(bronze) FROM table_name_69 WHERE total < 2 AND silver > 0 AND gold < 0
Which Bronze has a Total smaller than 2, and a Silver larger than 0, and a Gold smaller than 0?
CREATE TABLE table_name_69 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR)
SELECT team_classification FROM table_name_13 WHERE points_classification = "josé maría jiménez" AND winner = "beat zberg"
What is the team classification with a winner of Beat Zberg, and a points classification of José María Jiménez.
CREATE TABLE table_name_13 (team_classification VARCHAR, points_classification VARCHAR, winner VARCHAR)
SELECT length FROM table_name_77 WHERE remarks = "replaced by bsi-35"
What is the length of the highway with remarks that it was replaced by bsi-35?
CREATE TABLE table_name_77 (length VARCHAR, remarks VARCHAR)
SELECT away_team AS score FROM table_name_99 WHERE home_team = "geelong"
What was the opponents score when Geelong played as home team?
CREATE TABLE table_name_99 (away_team VARCHAR, home_team VARCHAR)
SELECT MIN(khmer) FROM table_name_9 WHERE ala_lc = "kau sip" AND value < 90
What is smallest Khmer valued less than 90 have a kau sip ALA-LC?
CREATE TABLE table_name_9 (khmer INTEGER, ala_lc VARCHAR, value VARCHAR)
SELECT result FROM table_14951643_1 WHERE opponent = "at New England Patriots"
what's the result with opponent being at new england patriots
CREATE TABLE table_14951643_1 (result VARCHAR, opponent VARCHAR)
SELECT SUM(score) FROM table_name_18 WHERE player = "vijay singh"
What is Sum of Score, when Player is Vijay Singh?
CREATE TABLE table_name_18 (score INTEGER, player VARCHAR)
SELECT netflix FROM table_15187735_15 WHERE segment_d = "High-Performance Engines"
What is the netflix episode number where Segment D is high-performance engines?
CREATE TABLE table_15187735_15 (netflix VARCHAR, segment_d VARCHAR)
SELECT AVG(rank) FROM table_name_97 WHERE lane > 4 AND name = "dominik meichtry"
what is the average rank when the lane is more than 4 and the name is dominik meichtry?
CREATE TABLE table_name_97 (rank INTEGER, lane VARCHAR, name VARCHAR)
SELECT deceased_spouse FROM table_24143253_1 WHERE length_of_marriage = "24 years"
Name the deceased spouse for length of marriage being 24 years
CREATE TABLE table_24143253_1 (deceased_spouse VARCHAR, length_of_marriage VARCHAR)
SELECT date FROM table_name_30 WHERE winning_score = 72 - 67 - 68 - 67 = 274
On what Date was the Winning score of 72-67-68-67=274?
CREATE TABLE table_name_30 (date VARCHAR, winning_score VARCHAR)
SELECT album FROM table_name_93 WHERE year < 2008 AND title = "we're not made in the usa"
What album came out before 2008 called We're not Made in the USA?
CREATE TABLE table_name_93 (album VARCHAR, year VARCHAR, title VARCHAR)
SELECT week__number FROM table_21501518_1 WHERE theme = "N/A"
Which week is the theme n/a
CREATE TABLE table_21501518_1 (week__number VARCHAR, theme VARCHAR)
SELECT game_site FROM table_13259009_2 WHERE opponent = "San Diego Chargers"
Where did they play the San Diego Chargers?
CREATE TABLE table_13259009_2 (game_site VARCHAR, opponent VARCHAR)
SELECT team_2 FROM table_name_90 WHERE team_1 = "taipower" AND result = "0-1"
What team is 2 when 1 is Taipower and the result is 0-1?
CREATE TABLE table_name_90 (team_2 VARCHAR, team_1 VARCHAR, result VARCHAR)
SELECT team FROM table_name_44 WHERE pick > 2 AND position = "running back"
What team has a position of running back and picked after 2?
CREATE TABLE table_name_44 (team VARCHAR, pick VARCHAR, position VARCHAR)
SELECT class FROM table_name_15 WHERE power = "78 watts"
What is Class, when Power is 78 Watts?
CREATE TABLE table_name_15 (class VARCHAR, power VARCHAR)
SELECT title FROM table_name_81 WHERE duration = "4:57"
Which of the titles have a duration time of 4:57?
CREATE TABLE table_name_81 (title VARCHAR, duration VARCHAR)
SELECT away_team FROM table_name_16 WHERE home_team = "fitzroy"
What Away team is from Fitzroy?
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
SELECT country FROM table_name_28 WHERE to_par = "+2"
Name the country with +2 to par
CREATE TABLE table_name_28 (country VARCHAR, to_par VARCHAR)
SELECT SUM(total) FROM table_name_37 WHERE gold > 2 AND bronze > 0
What is the total for the team with more than 2 golds and more than 0 bronze?
CREATE TABLE table_name_37 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT province_of_silla FROM table_name_25 WHERE modern_equivalent = "pyeongan"
WHat kind of Province of Silla has a Modern equivalent of pyeongan?
CREATE TABLE table_name_25 (province_of_silla VARCHAR, modern_equivalent VARCHAR)
SELECT COUNT(points) FROM table_name_96 WHERE losses < 5 AND draws = 0
How many points have a loss less than 5, and 0 for draws?
CREATE TABLE table_name_96 (points VARCHAR, losses VARCHAR, draws VARCHAR)
SELECT draw FROM table_name_2 WHERE team = "tramwajarz łódź"
What is the Draw for the team of tramwajarz łódź?
CREATE TABLE table_name_2 (draw VARCHAR, team VARCHAR)
SELECT status FROM table_name_18 WHERE floors < 18 AND year > 2013
What is the status of the building with less than 18 floors and later than 2013?
CREATE TABLE table_name_18 (status VARCHAR, floors VARCHAR, year VARCHAR)
SELECT venue FROM table_name_88 WHERE home_team = "south melbourne"
Which venue has a Home team of south melbourne?
CREATE TABLE table_name_88 (venue VARCHAR, home_team VARCHAR)
SELECT score FROM table_23249053_8 WHERE game > 29.0
What is the score when the game is bigger than 29.0?
CREATE TABLE table_23249053_8 (score VARCHAR, game INTEGER)
SELECT country FROM table_13150274_1 WHERE area_of_operation = "El Hamada"
In what country is the El Hamada area of operation?
CREATE TABLE table_13150274_1 (country VARCHAR, area_of_operation VARCHAR)
SELECT SUM(silver) FROM table_name_84 WHERE gold = 0 AND rank = "5" AND bronze > 0
What is the number of silver medals of the team with 0 gold, ranked 5, and more than 0 bronze medals?
CREATE TABLE table_name_84 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT MAX(attendance) FROM table_name_15 WHERE game < 1
Tell me the most attendance for game less than 1
CREATE TABLE table_name_15 (attendance INTEGER, game INTEGER)
SELECT poles FROM table_name_47 WHERE position = "8th"
Which poles were there for the 8th position?
CREATE TABLE table_name_47 (poles VARCHAR, position VARCHAR)
SELECT result FROM table_name_25 WHERE score = "69-81"
Which Result has a Score of 69-81?
CREATE TABLE table_name_25 (result VARCHAR, score VARCHAR)
SELECT SUM(points) FROM table_name_96 WHERE opponent = "new york islanders" AND game < 65
Which Points have an Opponent of new york islanders, and a Game smaller than 65?
CREATE TABLE table_name_96 (points INTEGER, opponent VARCHAR, game VARCHAR)
SELECT AVG(losses) FROM table_name_21 WHERE goals_against > 17 AND goal_difference < 2 AND points > 5
How many losses when goals against are more than 17, goal difference is more than 2 and points are more than 5?
CREATE TABLE table_name_21 (losses INTEGER, points VARCHAR, goals_against VARCHAR, goal_difference VARCHAR)
SELECT date_of_vacancy FROM table_name_54 WHERE date_of_appointment = "1 january 2009"
what is the date of vacancy when the date of appointment is 1 january 2009?
CREATE TABLE table_name_54 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR)
SELECT AVG(Enrollment) FROM school
What is the average enrollment of schools?
CREATE TABLE school (Enrollment INTEGER)
SELECT name, LOCATION, year_opened FROM track WHERE seating > (SELECT AVG(seating) FROM track)
Show the name, location, open year for all tracks with a seating higher than the average.
CREATE TABLE track (name VARCHAR, LOCATION VARCHAR, year_opened VARCHAR, seating INTEGER)
SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus"
What are the names of the tourist attractions that can be accessed by bus?
CREATE TABLE TOURIST_ATTRACTIONS (Name VARCHAR, How_to_Get_There VARCHAR)
SELECT AVG(rank) FROM table_name_29 WHERE source = "cia world factbook" AND year < 2005
What is the average rank that has cia world factbook as the source and a year prior to 2005?
CREATE TABLE table_name_29 (rank INTEGER, source VARCHAR, year VARCHAR)
SELECT 2010 FROM table_name_46 WHERE 2011 = "2r" AND 2008 = "2r"
what is 2010 when 2011 is 2r and 2008 is 2r?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT top_5 FROM table_1671401_3 WHERE winnings = "$52,595"
name the top 5 where the winnings is $52,595
CREATE TABLE table_1671401_3 (top_5 VARCHAR, winnings VARCHAR)
SELECT segment_b FROM table_15187735_8 WHERE segment_c = "Graphite s Fly Rod"
Name the segment b for graphite s fly rod
CREATE TABLE table_15187735_8 (segment_b VARCHAR, segment_c VARCHAR)
SELECT MAX(episode__number) FROM table_2342078_4 WHERE written_by = "Harry Winkler"
What is the highest episode number written by Harry Winkler?
CREATE TABLE table_2342078_4 (episode__number INTEGER, written_by VARCHAR)
SELECT MAX(total) FROM table_name_32 WHERE silver > 1 AND nation = "yugoslavia"
What is the total when the Yugoslavia number of silver won is more than 1?
CREATE TABLE table_name_32 (total INTEGER, silver VARCHAR, nation VARCHAR)
SELECT incumbent FROM table_27487712_1 WHERE district = "Georgia's 8th"
Who was the incumbent from georgia's 8th district?
CREATE TABLE table_27487712_1 (incumbent VARCHAR, district VARCHAR)
SELECT COUNT(*) FROM follows GROUP BY f1
Find the number of followers for each user.
CREATE TABLE follows (f1 VARCHAR)
SELECT COUNT(attendance) FROM table_17972193_1 WHERE game_site = "Anaheim Stadium"
How many total number of attendance were there when the game was held in Anaheim Stadium?
CREATE TABLE table_17972193_1 (attendance VARCHAR, game_site VARCHAR)
SELECT player FROM table_20170644_1 WHERE cfl_team = "Hamilton Tiger-Cats (via BC via Saskatchewan )"
Who was the player for the CFL team hamilton tiger-cats (via bc via saskatchewan )?
CREATE TABLE table_20170644_1 (player VARCHAR, cfl_team VARCHAR)
SELECT record FROM table_name_67 WHERE home = "warriors"
Which record was for Warriors at home?
CREATE TABLE table_name_67 (record VARCHAR, home VARCHAR)
SELECT date_first_lit FROM table_25597136_1 WHERE focal_plane_in_ft__m_ = "43ft (13.1m)"
Focal plane in ft (m) is 43ft (13.1m) is the first date lit.
CREATE TABLE table_25597136_1 (date_first_lit VARCHAR, focal_plane_in_ft__m_ VARCHAR)
SELECT opponent FROM table_10361453_2 WHERE record = "9-4"
The record of 9-4 was against which opponent?
CREATE TABLE table_10361453_2 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(*) FROM employees AS T1 JOIN customers AS T2 ON T2.support_rep_id = T1.id WHERE T1.first_name = "Steve" AND T1.last_name = "Johnson"
How many customers does Steve Johnson support?
CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE customers (support_rep_id VARCHAR)
SELECT SUM(population_2001_census) FROM table_name_10 WHERE population_1991_census = 476 OFFSET 815
What is the number of Population 2001 Census that has 476,815 in Population 1991 Census?
CREATE TABLE table_name_10 (population_2001_census INTEGER, population_1991_census VARCHAR)
SELECT COUNT(founding_date) FROM table_28436909_4 WHERE canadian_chapters = "1 Active, 1 Inactive"
When 1 active, 1 inactive is the canadian chapters how many founding dates are there?
CREATE TABLE table_28436909_4 (founding_date VARCHAR, canadian_chapters VARCHAR)
SELECT round FROM table_10083598_1 WHERE circuit = "Assen"
Where was Assen held?
CREATE TABLE table_10083598_1 (round VARCHAR, circuit VARCHAR)
SELECT AVG(field_goals) FROM table_name_65 WHERE points > 60
What is the average number of field goals for players with more than 60 points?
CREATE TABLE table_name_65 (field_goals INTEGER, points INTEGER)
SELECT document_name FROM documents GROUP BY document_type_code ORDER BY COUNT(*) DESC LIMIT 3 INTERSECT SELECT document_name FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) DESC LIMIT 3
Find the list of documents that are both in the most three popular type and have the most three popular structure.
CREATE TABLE documents (document_name VARCHAR, document_type_code VARCHAR, document_structure_code VARCHAR)
SELECT date_from FROM table_name_50 WHERE position = "mf" AND name = "jennison myrie-williams"
What is the date for the MF position and player Jennison Myrie-Williams?
CREATE TABLE table_name_50 (date_from VARCHAR, position VARCHAR, name VARCHAR)
SELECT MIN(matches) FROM table_name_74 WHERE against < 7 AND wins > 1
What is the lowest Matches, when Against is less than 7, and when Wins is greater than 1?
CREATE TABLE table_name_74 (matches INTEGER, against VARCHAR, wins VARCHAR)
SELECT latitude FROM table_16799784_7 WHERE longitude = "80.0E"
what is the latitude of the feature of longitude 80.0e
CREATE TABLE table_16799784_7 (latitude VARCHAR, longitude VARCHAR)
SELECT score FROM table_name_38 WHERE arena = "broadmoor arena"
What was the score of the game at the Broadmoor Arena?
CREATE TABLE table_name_38 (score VARCHAR, arena VARCHAR)
SELECT payload__kg_ FROM table_name_99 WHERE in_service = "2011"
Tell me the payload that has an In service for 2011
CREATE TABLE table_name_99 (payload__kg_ VARCHAR, in_service VARCHAR)
SELECT COUNT(touchdowns) FROM table_14342480_7 WHERE extra_points > 5.0
How many touchdowns were scored by players who scored more than 5.0 extra points?
CREATE TABLE table_14342480_7 (touchdowns VARCHAR, extra_points INTEGER)
SELECT MIN(february) FROM table_name_90 WHERE opponent = "boston bruins"
What is the earliest day that had a game against the Boston Bruins?
CREATE TABLE table_name_90 (february INTEGER, opponent VARCHAR)
SELECT 3 AS _credits FROM table_name_34 WHERE hand = "theoretical return"
What does a hand of Theoretical return have as a 3 credit?
CREATE TABLE table_name_34 (hand VARCHAR)
SELECT torque FROM table_20007413_3 WHERE year = "1986"
Name the torque for 1986
CREATE TABLE table_20007413_3 (torque VARCHAR, year VARCHAR)
SELECT defensive FROM table_14132239_3 WHERE month = "February" AND rookie = "Rhys Duch"
Who was the defensive award winner in February when the rookie award was given to Rhys Duch?
CREATE TABLE table_14132239_3 (defensive VARCHAR, month VARCHAR, rookie VARCHAR)
SELECT MAX(enrollment) FROM table_16734640_1 WHERE nickname = "Hawks"
Name the most enrollment when nickname is hawks
CREATE TABLE table_16734640_1 (enrollment INTEGER, nickname VARCHAR)
SELECT COUNT(week) FROM table_name_25 WHERE date = "december 31, 1993"
What week shows for december 31, 1993?
CREATE TABLE table_name_25 (week VARCHAR, date VARCHAR)
SELECT COUNT(byes) FROM table_name_55 WHERE draws > 0
How many byes has a draw larger than 0?
CREATE TABLE table_name_55 (byes VARCHAR, draws INTEGER)
SELECT icao FROM table_name_22 WHERE iata = "zyl"
Name the ICAO for when IATA is zyl
CREATE TABLE table_name_22 (icao VARCHAR, iata VARCHAR)
SELECT losing_bp FROM table_name_72 WHERE played = "22" AND try_bp = "9"
Name the Losing BP with 22 played and 9 Try BP.
CREATE TABLE table_name_72 (losing_bp VARCHAR, played VARCHAR, try_bp VARCHAR)
SELECT final_score FROM table_name_58 WHERE opponent = "platense"
what is the final score when the opponent is platense?
CREATE TABLE table_name_58 (final_score VARCHAR, opponent VARCHAR)
SELECT COUNT(date) FROM table_21091162_1 WHERE opponent = "Boston College"
How many dates have boston college as the opponent?
CREATE TABLE table_21091162_1 (date VARCHAR, opponent VARCHAR)
SELECT DISTINCT label FROM Albums
What are all the labels?
CREATE TABLE Albums (label VARCHAR)
SELECT kilometer_no__layac_basis_ FROM table_name_29 WHERE barangay = "general lim (capot)"
What kilometer (Layac-basis) has a Barangay of general lim (capot)?
CREATE TABLE table_name_29 (kilometer_no__layac_basis_ VARCHAR, barangay VARCHAR)
SELECT COUNT(dividend_per_share__p_) FROM table_2856898_1 WHERE turnover__£m_ = "0.42"
How many items appear in the dividend per share when the turnover is 0.42?
CREATE TABLE table_2856898_1 (dividend_per_share__p_ VARCHAR, turnover__£m_ VARCHAR)
SELECT d_41_√ FROM table_name_24 WHERE d_47_√ = "r 34 o"
What is the D 41 √ when the D 47 √ is r 34 o?
CREATE TABLE table_name_24 (d_41_√ VARCHAR, d_47_√ VARCHAR)
SELECT year_s__won FROM table_name_42 WHERE total < 292 AND player = "hale irwin"
Which Year(s) won has a Total smaller than 292, and a Player of hale irwin?
CREATE TABLE table_name_42 (year_s__won VARCHAR, total VARCHAR, player VARCHAR)
SELECT coach FROM table_name_58 WHERE club = "qadsia"
Who was the coach for qadsia?
CREATE TABLE table_name_58 (coach VARCHAR, club VARCHAR)
SELECT SUM(crowd) FROM table_name_81 WHERE away_team = "fitzroy"
What was the sum of the crowds that watched Fitzroy play as the away team?
CREATE TABLE table_name_81 (crowd INTEGER, away_team VARCHAR)
SELECT SUM(civil_liberties) FROM table_name_78 WHERE political_rights = 6 AND president = "yoweri museveni" AND year = 1993
When the president was Yoweri Museveni, and the year was 1993, with rank of 6 under political rights, what was the total of civil liberties?
CREATE TABLE table_name_78 (civil_liberties INTEGER, year VARCHAR, political_rights VARCHAR, president VARCHAR)
SELECT week_of FROM table_name_71 WHERE winner = "jana novotná arantxa sánchez vicario 5–7, 7–5, 6–4"
In which week is the winner listed as Jana Novotná Arantxa Sánchez Vicario 5–7, 7–5, 6–4?
CREATE TABLE table_name_71 (week_of VARCHAR, winner VARCHAR)
SELECT time_retired FROM table_name_56 WHERE driver = "richard attwood"
what is the time/retired for driver richard attwood?
CREATE TABLE table_name_56 (time_retired VARCHAR, driver VARCHAR)