answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT state_country FROM table_25595107_1 WHERE loa__metres_ = "15.79"
What state/country was the yacht from that had 15.79 LOA (metres)?
CREATE TABLE table_25595107_1 (state_country VARCHAR, loa__metres_ VARCHAR)
SELECT place FROM table_name_30 WHERE player = "fred funk"
What place is Fred Funk in?
CREATE TABLE table_name_30 (place VARCHAR, player VARCHAR)
SELECT first_runner_up FROM table_name_40 WHERE miss_maja_pilipinas = "nanette prodigalidad"
What First runner-up has a Miss Maja Pilipinas of nanette prodigalidad?
CREATE TABLE table_name_40 (first_runner_up VARCHAR, miss_maja_pilipinas VARCHAR)
SELECT away_team FROM table_name_23 WHERE tie_no = "37"
What is Away Team, when Tie No is "37"?
CREATE TABLE table_name_23 (away_team VARCHAR, tie_no VARCHAR)
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY COUNT(*) LIMIT 1
What is the description of the color used by least products?
CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (color_code VARCHAR)
SELECT model_number FROM table_name_46 WHERE socket = "μpga2 bga2 mmc-2"
Which model number has socket μpga2 bga2 mmc-2?
CREATE TABLE table_name_46 (model_number VARCHAR, socket VARCHAR)
SELECT COUNT(*) FROM ROLES
How many roles are there?
CREATE TABLE ROLES (Id VARCHAR)
SELECT annual_interchanges__millions__2011_12 FROM table_18118221_1 WHERE annual_entry_exit__millions__2011_12 = "36.609"
How many annual interchanges in the millions occurred in 2011-12 when the number of annual entry/exits was 36.609 million?
CREATE TABLE table_18118221_1 (annual_interchanges__millions__2011_12 VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR)
SELECT grid FROM table_name_83 WHERE driver = "kimi räikkönen"
What is Driver Kimi Räikkönen's number on the grid?
CREATE TABLE table_name_83 (grid VARCHAR, driver VARCHAR)
SELECT AVG(density__per_km²_) FROM table_name_40 WHERE no_munic = 53
What is the average Density of 53 No. munic.?
CREATE TABLE table_name_40 (density__per_km²_ INTEGER, no_munic VARCHAR)
SELECT SUM(teams) FROM table_name_19 WHERE season = "2012-13"
What is the total teams during the 2012-13 season?
CREATE TABLE table_name_19 (teams INTEGER, season VARCHAR)
SELECT height_ft___m FROM table_name_32 WHERE rank = "11"
What is the Height of rank 11?
CREATE TABLE table_name_32 (height_ft___m VARCHAR, rank VARCHAR)
SELECT name, grade FROM Highschooler
Show the names and grades of each high schooler.
CREATE TABLE Highschooler (name VARCHAR, grade VARCHAR)
SELECT built FROM table_name_55 WHERE name = "blackburn point bridge"
When was Blackburn Point Bridge built?
CREATE TABLE table_name_55 (built VARCHAR, name VARCHAR)
SELECT Party FROM party GROUP BY Party HAVING COUNT(*) >= 2
Show the name of the party that has at least two records.
CREATE TABLE party (Party VARCHAR)
SELECT decision FROM table_name_53 WHERE record = "45–18–6"
What was the decision of the Red Wings game when they had a record of 45–18–6?
CREATE TABLE table_name_53 (decision VARCHAR, record VARCHAR)
SELECT AVG(points) FROM table_name_92 WHERE year > 2001
Year larger than 2001 has what average points?
CREATE TABLE table_name_92 (points INTEGER, year INTEGER)
SELECT tie_no FROM table_name_63 WHERE away_team = "sheffield wednesday"
What was the tie number with the away team of Sheffield Wednesday?
CREATE TABLE table_name_63 (tie_no VARCHAR, away_team VARCHAR)
SELECT district FROM table_1342270_3 WHERE incumbent = "Sam Hobbs"
what are all the district with incumbent being sam hobbs
CREATE TABLE table_1342270_3 (district VARCHAR, incumbent VARCHAR)
SELECT surface FROM table_22597626_2 WHERE partner = "Fleming" AND opponents_in_the_final = "Hewitt McMillan"
If the opponents in the final is Hewitt McMillan and the partner is Fleming, what is the surface?
CREATE TABLE table_22597626_2 (surface VARCHAR, partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT away_captain FROM table_name_68 WHERE result = "[[|]] by 7 wickets"
Who is the away captain when the game resulted in [[|]] by 7 wickets?
CREATE TABLE table_name_68 (away_captain VARCHAR, result VARCHAR)
SELECT place FROM table_name_78 WHERE player = "tom kite"
What is Tom Kite's Place?
CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR)
SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination
Please show different denominations and the corresponding number of schools.
CREATE TABLE school (Denomination VARCHAR)
SELECT score_in_the_final FROM table_26202788_7 WHERE championship = "Miami , United States"
In the championship Miami , United States, what is the score in the final?
CREATE TABLE table_26202788_7 (score_in_the_final VARCHAR, championship VARCHAR)
SELECT COUNT(engine) FROM table_20866024_4 WHERE model_designation = "97H00"
How many engines are there for model 97H00?
CREATE TABLE table_20866024_4 (engine VARCHAR, model_designation VARCHAR)
SELECT pick FROM table_name_38 WHERE school = "clemson"
What pick did Clemson choose?
CREATE TABLE table_name_38 (pick VARCHAR, school VARCHAR)
SELECT lijsttrekker FROM table_name_51 WHERE year > 1990 AND chair = "ingrid van engelshoven"
What is Lijsttrekker, when Year is after 1990, and when Chair is "Ingrid Van Engelshoven"?
CREATE TABLE table_name_51 (lijsttrekker VARCHAR, year VARCHAR, chair VARCHAR)
SELECT POSITION FROM match_season GROUP BY POSITION ORDER BY COUNT(*) DESC LIMIT 1
Show the most common position of players in match seasons.
CREATE TABLE match_season (POSITION VARCHAR)
SELECT SUM(pick) FROM table_name_12 WHERE player = "bill duffy"
What is the total pick with Bill Duffy?
CREATE TABLE table_name_12 (pick INTEGER, player VARCHAR)
SELECT date FROM table_name_99 WHERE partner = "corrado barazzutti"
What date shows corrado barazzutti's partner?
CREATE TABLE table_name_99 (date VARCHAR, partner VARCHAR)
SELECT team FROM table_name_40 WHERE game = 4
Which team was played against in game 4?
CREATE TABLE table_name_40 (team VARCHAR, game VARCHAR)
SELECT crowd FROM table_name_63 WHERE away_team = "geelong"
How many people watched the away team of Geelong?
CREATE TABLE table_name_63 (crowd VARCHAR, away_team VARCHAR)
SELECT COUNT(round) FROM table_name_4 WHERE position = "wide receiver" AND overall > 145
What is the total round for a wide receiver with an overall of more than 145?
CREATE TABLE table_name_4 (round VARCHAR, position VARCHAR, overall VARCHAR)
SELECT away_team FROM table_name_75 WHERE home_team = "slough town"
What was the away team for the game in Slough Town?
CREATE TABLE table_name_75 (away_team VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_63 WHERE surface = "road" AND event = "half marathon"
When has a surface of road and an event of half marathon?
CREATE TABLE table_name_63 (date VARCHAR, surface VARCHAR, event VARCHAR)
SELECT date FROM table_name_82 WHERE attendance = "68,463"
What is the date with 68,463 in attendance?
CREATE TABLE table_name_82 (date VARCHAR, attendance VARCHAR)
SELECT SUM(laps) FROM table_name_96 WHERE bike = "honda cbr600rr" AND grid = 7
How many total laps were ridden when the grid was 7 and the rider rode the Honda CBR600RR?
CREATE TABLE table_name_96 (laps INTEGER, bike VARCHAR, grid VARCHAR)
SELECT loss FROM table_name_68 WHERE record = "54-39"
Which loss has a Record of 54-39?
CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR)
SELECT nhl_team FROM table_2897457_3 WHERE player = "Kris Draper"
Which nhl team has kris draper as the player?
CREATE TABLE table_2897457_3 (nhl_team VARCHAR, player VARCHAR)
SELECT zodiac_sign FROM table_20354_5 WHERE transcription = "karakadakhom"
What's the zodiac sing for the month whose transcription is Karakadakhom?
CREATE TABLE table_20354_5 (zodiac_sign VARCHAR, transcription VARCHAR)
SELECT COUNT(earnings___) AS $__ FROM table_name_1 WHERE wins > 2 AND rank < 2
What's the total earnings ($) with more than two wins and a rank less than 2?
CREATE TABLE table_name_1 (earnings___ VARCHAR, wins VARCHAR, rank VARCHAR)
SELECT record FROM table_17311759_5 WHERE team = "Denver"
What is the record of wins and losses for Denver's ball club?
CREATE TABLE table_17311759_5 (record VARCHAR, team VARCHAR)
SELECT venue FROM table_21350934_2 WHERE opponent = "Bradford Bulls" AND date = "06/09/2009"
Which venue has bradford bulls as the opponent on the date of 06/09/2009?
CREATE TABLE table_21350934_2 (venue VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT province FROM table_160510_1 WHERE hanja = "朔州"
The hanja 朔州 is for what province?
CREATE TABLE table_160510_1 (province VARCHAR, hanja VARCHAR)
SELECT COUNT(*), address FROM member GROUP BY address
Find the number of members living in each address.
CREATE TABLE member (address VARCHAR)
SELECT monarch FROM table_name_67 WHERE heir = "robert curthose" AND reason = "father became king"
Who is the Monarch whose Heir is Robert Curthose when the Reason is that the father became king?
CREATE TABLE table_name_67 (monarch VARCHAR, heir VARCHAR, reason VARCHAR)
SELECT SUM(goals) FROM table_name_78 WHERE national_team = "england" AND apps < 6 AND year = "2012"
How many Goals have a National team of england, and Apps smaller than 6, and a Year of 2012?
CREATE TABLE table_name_78 (goals INTEGER, year VARCHAR, national_team VARCHAR, apps VARCHAR)
SELECT MIN(week) FROM table_name_24 WHERE date = "october 5, 1975"
What week of the season had a date of october 5, 1975?
CREATE TABLE table_name_24 (week INTEGER, date VARCHAR)
SELECT club FROM table_name_79 WHERE tries_for = "101"
Which club has 101 tries for?
CREATE TABLE table_name_79 (club VARCHAR, tries_for VARCHAR)
SELECT MAX(played) FROM table_name_52 WHERE lost > 5 AND against = 228
What is the highest number of games played for teams that lost over 5 games and had an against total of 228?
CREATE TABLE table_name_52 (played INTEGER, lost VARCHAR, against VARCHAR)
SELECT school_club_team FROM table_name_25 WHERE player = "kenny smith"
What team does Kenny Smith play for?
CREATE TABLE table_name_25 (school_club_team VARCHAR, player VARCHAR)
SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 2 UNION SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 1
What are the ids, names and genders of the architects who built two bridges or one mill?
CREATE TABLE mill (architect_id VARCHAR); CREATE TABLE architect (id VARCHAR, name VARCHAR, gender VARCHAR); CREATE TABLE bridge (architect_id VARCHAR)
SELECT main_span_metres FROM table_name_23 WHERE year_to_open = 2013 AND country = "china" AND main_span_feet = "2,585"
What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585?
CREATE TABLE table_name_23 (main_span_metres VARCHAR, main_span_feet VARCHAR, year_to_open VARCHAR, country VARCHAR)
SELECT team FROM table_name_18 WHERE game = 49
Which team has a Game of 49?
CREATE TABLE table_name_18 (team VARCHAR, game VARCHAR)
SELECT date_of_vacancy FROM table_name_70 WHERE manner_of_departure = "fired" AND replaced_by = "albert cartier"
On which date was the manager fired and replaced by Albert Cartier?
CREATE TABLE table_name_70 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR)
SELECT SUM(silver) FROM table_name_7 WHERE nation = "cuba" AND gold < 0
What is the sum of silver medals of the nation Cuba, which has less than 0 gold?
CREATE TABLE table_name_7 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT wicket FROM table_name_55 WHERE runs__balls_ = "104 (69)"
Which Wicket was it that had a 104 (69) Runs (balls) amount?
CREATE TABLE table_name_55 (wicket VARCHAR, runs__balls_ VARCHAR)
SELECT COUNT(width__inches_) FROM table_name_11 WHERE engine = "navistar t444e" AND retired = "2005" AND length__feet_ < 25
For a vehicle below 25 feet, that was retired in 2005 and had a navistar t444e engine, what was the total width?
CREATE TABLE table_name_11 (width__inches_ VARCHAR, length__feet_ VARCHAR, engine VARCHAR, retired VARCHAR)
SELECT place FROM table_name_8 WHERE player = "chris dimarco"
What is the Place, when the Player is Chris Dimarco?
CREATE TABLE table_name_8 (place VARCHAR, player VARCHAR)
SELECT yacht FROM table_1858574_3 WHERE sail_number = "AUS70"
On what yacht was the sail number aus70?
CREATE TABLE table_1858574_3 (yacht VARCHAR, sail_number VARCHAR)
SELECT COUNT(grid) FROM table_name_71 WHERE time_retired = "+1:03.741" AND laps > 44
What's the total grid for a Time/Retired of +1:03.741, and Laps larger than 44?
CREATE TABLE table_name_71 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT title FROM table_29087004_3 WHERE written_by = "Eric Trueheart"
What are the titles of episodes written by Eric Trueheart?
CREATE TABLE table_29087004_3 (title VARCHAR, written_by VARCHAR)
SELECT issue_date FROM table_name_89 WHERE download = "no available" AND artist = "eric prydz"
What's the Issue Date for an Eric Prydz song with a no available Download information?
CREATE TABLE table_name_89 (issue_date VARCHAR, download VARCHAR, artist VARCHAR)
SELECT COUNT(week) FROM table_name_81 WHERE opponent = "at chicago bears" AND attendance > 49 OFFSET 070
What is the total number of Week, when Opponent is At Chicago Bears, and when Attendance is greater than 49,070?
CREATE TABLE table_name_81 (week VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT player FROM table_name_8 WHERE to_par = "+9"
Which Player has a To par of +9?
CREATE TABLE table_name_8 (player VARCHAR, to_par VARCHAR)
SELECT AVG(top_10) FROM table_name_93 WHERE cuts_made = 17 AND wins < 0
What is the average Top-10 when there were 17 cuts made with less than 0 wins?
CREATE TABLE table_name_93 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR)
SELECT branding FROM table_19215259_1 WHERE location = "Metro Manila"
What is the brand in Metro Manila?
CREATE TABLE table_19215259_1 (branding VARCHAR, location VARCHAR)
SELECT 1 AS st_leg FROM table_name_12 WHERE team__number1 = "hemofarm"
Which 1st leg that has hemofarm?
CREATE TABLE table_name_12 (team__number1 VARCHAR)
SELECT constituency_number FROM table_name_94 WHERE reserved_for___sc___st__none_ = "none" AND district = "seoni"
What's the constituency number of the Seoni district and has none reserved?
CREATE TABLE table_name_94 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, district VARCHAR)
SELECT MAX(rank) FROM table_19744915_18 WHERE couple = "Roxanne and Daniel"
When roxanne and daniel are the couple what is the highest rank?
CREATE TABLE table_19744915_18 (rank INTEGER, couple VARCHAR)
SELECT province FROM table_name_73 WHERE largest_city = "birjand"
What province has the largest city of Birjand?
CREATE TABLE table_name_73 (province VARCHAR, largest_city VARCHAR)
SELECT team_1 FROM table_19294812_2 WHERE team_2 = "Koper"
Who is team 1 when team 2 is koper?
CREATE TABLE table_19294812_2 (team_1 VARCHAR, team_2 VARCHAR)
SELECT original_name FROM table_1104312_5 WHERE population_at_2010_census = 210450
What are the original names of the districts where the population in the 2010 census was 210450?
CREATE TABLE table_1104312_5 (original_name VARCHAR, population_at_2010_census VARCHAR)
SELECT player FROM table_name_5 WHERE goals > 0 AND tries < 12
Which player has more than 0 goals and less than 12 tries?
CREATE TABLE table_name_5 (player VARCHAR, goals VARCHAR, tries VARCHAR)
SELECT team FROM table_20396_1 WHERE points = "4"
What team scored 4 points?
CREATE TABLE table_20396_1 (team VARCHAR, points VARCHAR)
SELECT MAX(episode) FROM table_15739098_1 WHERE adapted_by = "Leon Griffiths"
Name the msot episode that was adapted by leon griffiths
CREATE TABLE table_15739098_1 (episode INTEGER, adapted_by VARCHAR)
SELECT result FROM table_name_88 WHERE race = "ajc craven plate (wfa)"
What is the result of the ajc craven plate (wfa) race?
CREATE TABLE table_name_88 (result VARCHAR, race VARCHAR)
SELECT home_team AS score FROM table_name_19 WHERE away_team = "richmond"
What was the home team's score at the game where Richmond was the away team?
CREATE TABLE table_name_19 (home_team VARCHAR, away_team VARCHAR)
SELECT type FROM table_name_55 WHERE builder = "avonside engine company" AND number = 9
Which Type has a Builder of avonside engine company, and a Number of 9?
CREATE TABLE table_name_55 (type VARCHAR, builder VARCHAR, number VARCHAR)
SELECT sail_number FROM table_25595107_2 WHERE loa__metres_ = "13.68"
What is the number of the sail with an overall length of 13.68?
CREATE TABLE table_25595107_2 (sail_number VARCHAR, loa__metres_ VARCHAR)
SELECT year FROM table_12243817_1 WHERE country = "Japan"
What year is Japan the country?
CREATE TABLE table_12243817_1 (year VARCHAR, country VARCHAR)
SELECT MAX(model) FROM table_name_92 WHERE maximum_memory = "512 mb"
Which model has a maximum memory of 512 mb?
CREATE TABLE table_name_92 (model INTEGER, maximum_memory VARCHAR)
SELECT set_1 FROM table_name_48 WHERE set_2 = "21:18"
What is Set 1, when Set 2 is "21:18"?
CREATE TABLE table_name_48 (set_1 VARCHAR, set_2 VARCHAR)
SELECT away_team AS score FROM table_name_49 WHERE venue = "victoria park"
What is the away team score at victoria park?
CREATE TABLE table_name_49 (away_team VARCHAR, venue VARCHAR)
SELECT score FROM table_name_82 WHERE game = 5
What is the score for game 5?
CREATE TABLE table_name_82 (score VARCHAR, game VARCHAR)
SELECT no8 FROM table_name_72 WHERE no9 = "telmo"
Who this the no. 8 team that has a no. 9 player, Telmo?
CREATE TABLE table_name_72 (no8 VARCHAR, no9 VARCHAR)
SELECT COUNT(round) FROM table_26334740_3 WHERE race = 17
In how many rounds was Race 17?
CREATE TABLE table_26334740_3 (round VARCHAR, race VARCHAR)
SELECT COUNT(round) FROM table_26920192_5 WHERE series = "Italian" AND circuit = "Valencia"
How many times is the series italian and the circuit is valencia?
CREATE TABLE table_26920192_5 (round VARCHAR, series VARCHAR, circuit VARCHAR)
SELECT latin FROM table_name_72 WHERE ’phagspa = "ꡙ"
What is the Latin equivalent for the Phagspa of ꡙ?
CREATE TABLE table_name_72 (latin VARCHAR, ’phagspa VARCHAR)
SELECT frequency FROM table_name_14 WHERE class = "a" AND identifier = "cbf-fm-14"
What's the frequency when the identifier is cbf-fm-14 having a class of A?
CREATE TABLE table_name_14 (frequency VARCHAR, class VARCHAR, identifier VARCHAR)
SELECT MIN(championships) FROM table_19487922_2
What in the minimum number of championships won by a nation?
CREATE TABLE table_19487922_2 (championships INTEGER)
SELECT population FROM table_name_63 WHERE gdp__nominal_ = "$6.4 billion"
Which population has a GDP (nominal) of $6.4 billion?
CREATE TABLE table_name_63 (population VARCHAR, gdp__nominal_ VARCHAR)
SELECT original_air_date FROM table_23242933_2 WHERE us_viewers__millions_ = "6.09"
When did 6.09 million people in the US see the original airing of an episode of the show?
CREATE TABLE table_23242933_2 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MIN(points) FROM table_name_86 WHERE entrant = "parmalat forti ford" AND year > 1995
What is the smallest amount of points for parmalat forti ford entrant later than 1995?
CREATE TABLE table_name_86 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT original_air_date FROM table_23279434_1 WHERE directed_by = "Jeremy Kagan"
When did Jeremy Kagan's episode first air?
CREATE TABLE table_23279434_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING COUNT(*) <= 2
Find the name of the customers who have at most two orders.
CREATE TABLE orders (customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
SELECT COUNT(grid) FROM table_name_59 WHERE rider = "fonsi nieto" AND laps > 22
What is the total grid number when Fonsi Nieto had more than 22 laps?
CREATE TABLE table_name_59 (grid VARCHAR, rider VARCHAR, laps VARCHAR)
SELECT MIN(first_aired) FROM table_191105_3 WHERE performed_by = "Zachary Sanders"
When zachary sanders is the performer what is the lowerst first aired?
CREATE TABLE table_191105_3 (first_aired INTEGER, performed_by VARCHAR)
SELECT 1 AS st_member FROM table_name_51 WHERE dissolved = "23 february 1510"
Who was the 1st member of the parliament that was dissolved 23 february 1510?
CREATE TABLE table_name_51 (dissolved VARCHAR)
SELECT senator FROM table_name_72 WHERE state = "kentucky"
what is the senator in kentucky
CREATE TABLE table_name_72 (senator VARCHAR, state VARCHAR)