answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT model FROM table_name_59 WHERE propulsion = "hybrid"
Which Model has hybrid propulsion?
CREATE TABLE table_name_59 (model VARCHAR, propulsion VARCHAR)
SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id
Show all template type codes that are not used by any document.
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR)
SELECT source FROM table_name_18 WHERE name = "laird"
What is the source for Laird?
CREATE TABLE table_name_18 (source VARCHAR, name VARCHAR)
SELECT time FROM table_name_47 WHERE away_team = "convoy sun hei team a"
What was the time for the match with away team Convoy Sun Hei Team A?
CREATE TABLE table_name_47 (time VARCHAR, away_team VARCHAR)
SELECT record FROM table_name_80 WHERE game > 55 AND date = "march 25"
What is Record, when Game is greater than 55, and when Date is "March 25"?
CREATE TABLE table_name_80 (record VARCHAR, game VARCHAR, date VARCHAR)
SELECT winning_boat FROM table_24673710_1 WHERE entries = 64
When 64 is the entries what is the winning boat?
CREATE TABLE table_24673710_1 (winning_boat VARCHAR, entries VARCHAR)
SELECT T1.name_first, T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1960 INTERSECT SELECT T1.name_first, T1.name_last FROM player AS T1 JOIN player_award AS T2 WHERE T2.year = 1961
Find the players' first name and last name who won award both in 1960 and in 1961.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR); CREATE TABLE player_award (year VARCHAR)
SELECT eid, name FROM Employee ORDER BY salary DESC LIMIT 1
Show the id and name of the employee with maximum salary.
CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR)
SELECT co_drivers FROM table_name_23 WHERE pos = "3rd" AND team = "joest racing"
Which co drivers are 3rd in Joest racing?
CREATE TABLE table_name_23 (co_drivers VARCHAR, pos VARCHAR, team VARCHAR)
SELECT points_for FROM table_27293285_6 WHERE won = "22"
How many points for were scored by the team that won exactly 22?
CREATE TABLE table_27293285_6 (points_for VARCHAR, won VARCHAR)
SELECT code_name FROM table_name_81 WHERE birthplace = "hawaii"
What is the Code Name of the figure born in Hawaii?
CREATE TABLE table_name_81 (code_name VARCHAR, birthplace VARCHAR)
SELECT position FROM table_name_52 WHERE years_in_orlando = "1989–1999"
What is the Position for Orlando for 1989–1999?
CREATE TABLE table_name_52 (position VARCHAR, years_in_orlando VARCHAR)
SELECT home_team FROM table_name_5 WHERE away_team = "footscray"
Who played as the home team when Footscray was the away team?
CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR)
SELECT name FROM table_name_79 WHERE city = "shenzhen" AND completion < 2017 AND floors < 115
What building is in Shenzhen, have less than 115 floors, and was completed before 2017?
CREATE TABLE table_name_79 (name VARCHAR, floors VARCHAR, city VARCHAR, completion VARCHAR)
SELECT to_par FROM table_name_93 WHERE country = "united states" AND score < 72 AND place = "t3" AND player = "ed furgol"
How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3?
CREATE TABLE table_name_93 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR, score VARCHAR)
SELECT MAX(whole_weeks) FROM table_19542477_9
What is the longest number of weeks any 1 song was at number #1?
CREATE TABLE table_19542477_9 (whole_weeks INTEGER)
SELECT area__km²_ FROM table_16278349_1 WHERE map__number = 24
Name the area for map # 24
CREATE TABLE table_16278349_1 (area__km²_ VARCHAR, map__number VARCHAR)
SELECT to_par FROM table_name_18 WHERE place = "1"
WHAT IS THE TO PAR FOR NUMBER 1?
CREATE TABLE table_name_18 (to_par VARCHAR, place VARCHAR)
SELECT MAX(year) FROM table_name_80 WHERE pageant = "miss internet www" AND result = "second runner-up"
What's the latest year the miss internet www pageant had a result of second runner-up?
CREATE TABLE table_name_80 (year INTEGER, pageant VARCHAR, result VARCHAR)
SELECT MIN(game) FROM table_27712702_11 WHERE record = "46–24"
what was the game number where the record was 46–24?
CREATE TABLE table_27712702_11 (game INTEGER, record VARCHAR)
SELECT result FROM table_1342013_9 WHERE candidates = "Charles Edward Bennett (D) Unopposed"
what's the result with candidates being charles edward bennett (d) unopposed
CREATE TABLE table_1342013_9 (result VARCHAR, candidates VARCHAR)
SELECT attendance FROM table_name_74 WHERE tie_no = "replay" AND away_team = "swindon town"
Away team Swindon Town had a Tie no listing of Replay with what as an Attendance?
CREATE TABLE table_name_74 (attendance VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT away_team AS score FROM table_name_1 WHERE away_team = "geelong"
What is the away team's score of the game where the away team is Geelong?
CREATE TABLE table_name_1 (away_team VARCHAR)
SELECT title FROM table_name_72 WHERE platform_s_ = "3ds" AND director = "naohiko aoyama"
What 3ds game did Naohiko Aoyama direct?
CREATE TABLE table_name_72 (title VARCHAR, platform_s_ VARCHAR, director VARCHAR)
SELECT COUNT(total_power) FROM table_12983929_1 WHERE construction_start = "01.03.1977" AND commercial_operation = "01.02.1984"
How many different values of total power are there for the unit whose construction started on 01.03.1977 and whose commercial operation started on 01.02.1984?
CREATE TABLE table_12983929_1 (total_power VARCHAR, construction_start VARCHAR, commercial_operation VARCHAR)
SELECT airdate FROM table_24399615_5 WHERE episode_no = 6
When did episode number 6 air?
CREATE TABLE table_24399615_5 (airdate VARCHAR, episode_no VARCHAR)
SELECT score FROM table_27539272_4 WHERE game = 5
Name the score for game 5
CREATE TABLE table_27539272_4 (score VARCHAR, game VARCHAR)
SELECT bids FROM table_name_34 WHERE champions = "1"
What is Bids, when Champions is "1"?
CREATE TABLE table_name_34 (bids VARCHAR, champions VARCHAR)
SELECT COUNT(played) FROM table_name_24 WHERE goals_for > 34 AND goals_against > 63
what is the total number of played when the goals for is more than 34 and goals against is more than 63?
CREATE TABLE table_name_24 (played VARCHAR, goals_for VARCHAR, goals_against VARCHAR)
SELECT city FROM table_name_98 WHERE airport = "newcastle airport"
Which city holds Newcastle Airport?
CREATE TABLE table_name_98 (city VARCHAR, airport VARCHAR)
SELECT round_of_16 FROM table_18602462_22 WHERE athlete = "Jiske Griffioen Esther Vergeer"
What is the round of 16 result for Jiske Griffioen Esther Vergeer?
CREATE TABLE table_18602462_22 (round_of_16 VARCHAR, athlete VARCHAR)
SELECT directed_by FROM table_27811555_1 WHERE us_viewers__millions_ = "6.3"
who directed the episode that 6.3 million u.s. viewers saw?
CREATE TABLE table_27811555_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT AVG(game__number) FROM table_name_67 WHERE date = "march 4"
What game number was played on March 4?
CREATE TABLE table_name_67 (game__number INTEGER, date VARCHAR)
SELECT producer FROM table_name_60 WHERE year = 1961
Who were the producers in 1961?
CREATE TABLE table_name_60 (producer VARCHAR, year VARCHAR)
SELECT drawn FROM table_name_23 WHERE try_bonus = "5" AND points_for = "517"
What is listed for the Drawn that has a Tray bonus of 5 wiht Points for of 517?
CREATE TABLE table_name_23 (drawn VARCHAR, try_bonus VARCHAR, points_for VARCHAR)
SELECT ground FROM table_name_5 WHERE away = "toronto rebels"
On what grounds did the away team of the Toronto Rebels play?
CREATE TABLE table_name_5 (ground VARCHAR, away VARCHAR)
SELECT opponent FROM table_name_37 WHERE week = 7
Who was the Opponent in Week 7?
CREATE TABLE table_name_37 (opponent VARCHAR, week VARCHAR)
SELECT date FROM table_name_62 WHERE time = "2:26" AND location = "riverfront stadium"
What was date when the time was 2:26 and the location was Riverfront Stadium?
CREATE TABLE table_name_62 (date VARCHAR, time VARCHAR, location VARCHAR)
SELECT COUNT(market_value___usd_million_) FROM table_name_51 WHERE headquarters = "germany"
What is the total market value of all corporations headquartered in Germany?
CREATE TABLE table_name_51 (market_value___usd_million_ VARCHAR, headquarters VARCHAR)
SELECT fte_teachers FROM table_1414743_1 WHERE school_level = "Middle" AND city = "Sunnyvale"
List all FTE middle school teachers in Sunnyvale.
CREATE TABLE table_1414743_1 (fte_teachers VARCHAR, school_level VARCHAR, city VARCHAR)
SELECT SUM(population__2008_) FROM table_name_1 WHERE capital = "sanniquellie" AND created > 1964
What is the population (2008) when the capital was Sanniquellie, created later than 1964?
CREATE TABLE table_name_1 (population__2008_ INTEGER, capital VARCHAR, created VARCHAR)
SELECT numeric_code FROM table_222771_1 WHERE alpha_3_code = "LIE"
What is the number reference for LIE?
CREATE TABLE table_222771_1 (numeric_code VARCHAR, alpha_3_code VARCHAR)
SELECT driver FROM table_name_12 WHERE grid = 19
Which driver drove in grid 19?
CREATE TABLE table_name_12 (driver VARCHAR, grid VARCHAR)
SELECT destroyed FROM table_1817852_1 WHERE 1990 = 14 AND survived = 6
If there were 14 in 1990 and 6 survived how many were destroyed?
CREATE TABLE table_1817852_1 (destroyed VARCHAR, survived VARCHAR)
SELECT pick__number FROM table_20170644_3 WHERE college = "Calgary"
What number picks were the players who went to Calgary?
CREATE TABLE table_20170644_3 (pick__number VARCHAR, college VARCHAR)
SELECT vehicle FROM table_name_34 WHERE ceased_operation = "failed at launch"
Which vehicle failed at launch?
CREATE TABLE table_name_34 (vehicle VARCHAR, ceased_operation VARCHAR)
SELECT ipsos_5_16_09 FROM table_name_72 WHERE tns_sofres_5_28_09 = "2.5%"
Which Ipsos 5/16/09 has a TNS-Sofres 5/28/09 of 2.5%?
CREATE TABLE table_name_72 (ipsos_5_16_09 VARCHAR, tns_sofres_5_28_09 VARCHAR)
SELECT replaced_by FROM table_25361570_2 WHERE date_of_vacancy = "August 9" AND date_of_appointment = "August 9"
Name the replaced by for august 9
CREATE TABLE table_25361570_2 (replaced_by VARCHAR, date_of_vacancy VARCHAR, date_of_appointment VARCHAR)
SELECT COUNT(length_feet) FROM table_16226584_1 WHERE length_meters = "106.1"
How many feet in length are there when the length is 106.1 meters?
CREATE TABLE table_16226584_1 (length_feet VARCHAR, length_meters VARCHAR)
SELECT wsop_cashes FROM table_23696862_6 WHERE wsop_earnings = "0"
The person who had 0 WSOP earnings had how man WSOP cashes?
CREATE TABLE table_23696862_6 (wsop_cashes VARCHAR, wsop_earnings VARCHAR)
SELECT 2008 AS _rank FROM table_23050383_1 WHERE country = "Djibouti"
What is the 2008 rank of Djibouti?
CREATE TABLE table_23050383_1 (country VARCHAR)
SELECT label FROM table_name_84 WHERE catalog__number = "83061-4"
What is the label for the album with a catalog number of 83061-4?
CREATE TABLE table_name_84 (label VARCHAR, catalog__number VARCHAR)
SELECT status FROM table_name_39 WHERE opposing_teams = "u.s.a."
Who won the event against U.S.A.?
CREATE TABLE table_name_39 (status VARCHAR, opposing_teams VARCHAR)
SELECT class_aAA FROM table_10399701_2 WHERE school_year = "2000-01"
Who was Class AAA during the school year of 2000-01?
CREATE TABLE table_10399701_2 (class_aAA VARCHAR, school_year VARCHAR)
SELECT language FROM table_25926120_7 WHERE name_of_award = "Best Editing"
what is the language when the name of award is best editing?
CREATE TABLE table_25926120_7 (language VARCHAR, name_of_award VARCHAR)
SELECT score FROM table_name_25 WHERE decision = "peeters" AND record = "29–3–11"
What was the score of the game with a decision of Peeters and a record of 29–3–11?
CREATE TABLE table_name_25 (score VARCHAR, decision VARCHAR, record VARCHAR)
SELECT thursday FROM table_11748792_2 WHERE series = "Big Brother 13"
Who is the thursday presenter of the show Big Brother 13?
CREATE TABLE table_11748792_2 (thursday VARCHAR, series VARCHAR)
SELECT entered FROM table_name_42 WHERE known_for = "the only way is essex star"
On which day did the person who is known for the only way is essex star enter?
CREATE TABLE table_name_42 (entered VARCHAR, known_for VARCHAR)
SELECT place FROM table_name_64 WHERE money___$__ = 82 AND player = "al watrous"
Which ranking has money of $82 and Al Watrous as the player?
CREATE TABLE table_name_64 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT college FROM table_16376436_1 WHERE position = "Defensive Back"
What college did the defensive back attend?
CREATE TABLE table_16376436_1 (college VARCHAR, position VARCHAR)
SELECT MIN(played) FROM table_name_48 WHERE goals_for = 47 AND wins < 14
What is the lowest played number when goals for is 47, and wins is smaller than 14?
CREATE TABLE table_name_48 (played INTEGER, goals_for VARCHAR, wins VARCHAR)
SELECT investor_id, COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code = "SALE" GROUP BY investor_id
Show the number of transactions with transaction type code "SALE" for different investors if it is larger than 0.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR, transaction_type_code VARCHAR)
SELECT COUNT(round) FROM table_name_60 WHERE name = "ron hansen" AND overall > 332
What is the number of the round in which Ron Hansen was drafted and the overall is greater than 332?
CREATE TABLE table_name_60 (round VARCHAR, name VARCHAR, overall VARCHAR)
SELECT year_8_1st_quad FROM table_name_67 WHERE year_9_2nd_quad = "bggs" AND crew > 2006
In the Crews beyond 2006 what was the Year 8 1st Quads that exists in the same row that had the year 9 2nd Quads of BGGS?
CREATE TABLE table_name_67 (year_8_1st_quad VARCHAR, year_9_2nd_quad VARCHAR, crew VARCHAR)
SELECT MIN(latin_americans_2011) FROM table_1939405_2 WHERE province = "Saskatchewan"
How many Latin Americans lived in 2011 in Saskatchewan?
CREATE TABLE table_1939405_2 (latin_americans_2011 INTEGER, province VARCHAR)
SELECT T1.Name, T2.Name FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID
Show names of cities and names of counties they are in.
CREATE TABLE city (Name VARCHAR, County_ID VARCHAR); CREATE TABLE county_public_safety (Name VARCHAR, County_ID VARCHAR)
SELECT theme_song_s_ FROM table_name_54 WHERE japanese_title = "恋におちたら~僕の成功の秘密~"
Which Theme Song(s) has a Japanese Title of 恋におちたら~僕の成功の秘密~?
CREATE TABLE table_name_54 (theme_song_s_ VARCHAR, japanese_title VARCHAR)
SELECT score FROM table_name_35 WHERE competition = "vfl reserves" AND venue = "mcg" AND year = "1971"
In 1971 at MCG, what was the score of the VFL Reserves?
CREATE TABLE table_name_35 (score VARCHAR, year VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT tie_no FROM table_name_52 WHERE away_team = "wrexham"
WHAT'S THE TIE NUMBER WITH AN AWAY TEAM OF WREXHAM?
CREATE TABLE table_name_52 (tie_no VARCHAR, away_team VARCHAR)
SELECT race_name FROM table_name_3 WHERE winning_driver = "innes ireland"
What's the race name that the driver Innes Ireland won?
CREATE TABLE table_name_3 (race_name VARCHAR, winning_driver VARCHAR)
SELECT position FROM table_name_30 WHERE surname = "ruzic"
Which Position did Ruzic play?
CREATE TABLE table_name_30 (position VARCHAR, surname VARCHAR)
SELECT player FROM table_name_84 WHERE height = 182
What is the name of the player who is a height of 182?
CREATE TABLE table_name_84 (player VARCHAR, height VARCHAR)
SELECT averaging_time FROM table_name_53 WHERE regulatory_citation = "40 cfr 50.4(b)"
what is the averaging time when the regulatory citation is 40 cfr 50.4(b)?
CREATE TABLE table_name_53 (averaging_time VARCHAR, regulatory_citation VARCHAR)
SELECT series__number FROM table_2161859_1 WHERE title = "The Golden Frog"
What is the series number for the Golden Frog?
CREATE TABLE table_2161859_1 (series__number VARCHAR, title VARCHAR)
SELECT player FROM table_2679061_1 WHERE position = "Defence" AND college_junior_club_team = "Ottawa 67's (OHL)"
who is the player for the position defence and the college/junior/club team is ottawa 67's (ohl)?
CREATE TABLE table_2679061_1 (player VARCHAR, position VARCHAR, college_junior_club_team VARCHAR)
SELECT MAX(_number) FROM table_13956521_2 WHERE original_airdate = "March 14, 2001"
what is the maximum # with original airdate being march 14, 2001
CREATE TABLE table_13956521_2 (_number INTEGER, original_airdate VARCHAR)
SELECT power FROM table_name_26 WHERE class = "a" AND frequency = "93.7"
What power has A as the class, and 93.7 as the frequency?
CREATE TABLE table_name_26 (power VARCHAR, class VARCHAR, frequency VARCHAR)
SELECT score FROM table_name_51 WHERE player = "tom watson"
what is the score for tom watson?
CREATE TABLE table_name_51 (score VARCHAR, player VARCHAR)
SELECT stadium FROM table_name_26 WHERE visiting_team = "dallas cowboys" AND date = "september 12"
Where was the game on September 12 played when the Dallas Cowboys was the visiting team?
CREATE TABLE table_name_26 (stadium VARCHAR, visiting_team VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_45 WHERE week > 9 AND date = "november 20, 1983"
What is the attendance number later than week 9 on November 20, 1983?
CREATE TABLE table_name_45 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT career_win_loss FROM table_name_70 WHERE 2002 = "a" AND 2001 = "4r"
What is Career Win-Loss, when 2002 is "A", and when 2001 is "4R"?
CREATE TABLE table_name_70 (career_win_loss VARCHAR)
SELECT score FROM table_name_6 WHERE tie_no = "15"
What was the score of tie number 15?
CREATE TABLE table_name_6 (score VARCHAR, tie_no VARCHAR)
SELECT category FROM table_name_33 WHERE pilot = "frank scarabino"
In which category is Frank Scarabino a pilot?
CREATE TABLE table_name_33 (category VARCHAR, pilot VARCHAR)
SELECT AVG(touchdowns) FROM table_name_47 WHERE extra_points = 0 AND points > 5 AND player = "curtis redden"
Which Touchdowns have an Extra points of 0, and Points larger than 5, and a Player of curtis redden?
CREATE TABLE table_name_47 (touchdowns INTEGER, player VARCHAR, extra_points VARCHAR, points VARCHAR)
SELECT race FROM table_name_47 WHERE category = "formula 2 fia, non-championship" AND date = "july 30, 1950"
What is the Race on July 30, 1950 with a Formula 2 Fia, non-championship?
CREATE TABLE table_name_47 (race VARCHAR, category VARCHAR, date VARCHAR)
SELECT county FROM table_name_70 WHERE ihsaa_class = "aaaa" AND mascot = "cardinals"
Which County has an IHSAA Class of aaaa, and a Mascot of cardinals?
CREATE TABLE table_name_70 (county VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT place FROM table_name_34 WHERE score = 76 - 69 - 71 - 70 = 286
what is the place when the score is 76-69-71-70=286?
CREATE TABLE table_name_34 (place VARCHAR, score 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 COUNT(original_air_date) FROM table_24132083_1 WHERE directed_by = "Marcos Siega" AND written_by = "Scott Buck"
On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?
CREATE TABLE table_24132083_1 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT AVG(week) FROM table_name_46 WHERE opponent = "bye"
What week was the bye week?
CREATE TABLE table_name_46 (week INTEGER, opponent VARCHAR)
SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Fujitsu fi-6130 A4 Series Scanner"
What are the mm dimensions for the Fujitsu fi-6130 a4 Series Scanner?
CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR)
SELECT away_team AS score FROM table_name_89 WHERE home_team = "geelong"
What was the score of the other team that played Geelong?
CREATE TABLE table_name_89 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(area_km_2) FROM table_name_61 WHERE population = 1 OFFSET 215
How much Area km 2 have a Population of 1,215?
CREATE TABLE table_name_61 (area_km_2 VARCHAR, population VARCHAR)
SELECT COUNT(game) FROM table_17355408_12 WHERE record = "2-3"
What game was the record 2-3?
CREATE TABLE table_17355408_12 (game VARCHAR, record VARCHAR)
SELECT location FROM table_name_45 WHERE fc_matches = "12"
Where was the FC match with a score of 12 played?
CREATE TABLE table_name_45 (location VARCHAR, fc_matches VARCHAR)
SELECT college FROM table_name_79 WHERE player = "jim leonhard category:articles with hcards"
What college had Jim Leonhard Category:articles with hcards?
CREATE TABLE table_name_79 (college VARCHAR, player VARCHAR)
SELECT venue FROM table_name_50 WHERE result = "7-1"
Which venue had the result 7-1?
CREATE TABLE table_name_50 (venue VARCHAR, result 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 rank FROM table_name_47 WHERE gold = "9" AND silver = "9"
What is the rank of the games that had 9 gold and 9 silvers?
CREATE TABLE table_name_47 (rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT production_code FROM table_name_92 WHERE no_in_series = 174
What production code does episode 174 of Melrose place have?
CREATE TABLE table_name_92 (production_code VARCHAR, no_in_series VARCHAR)