answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT score FROM table_name_18 WHERE january > 21 AND points = 63
Which Score has a January larger than 21, and Points of 63?
CREATE TABLE table_name_18 (score VARCHAR, january VARCHAR, points VARCHAR)
SELECT format FROM table_name_19 WHERE region = "united kingdom"
Which format has a region of united kingdom?
CREATE TABLE table_name_19 (format VARCHAR, region VARCHAR)
SELECT COUNT(kenenisa_bekele___eth__) FROM table_24011830_2 WHERE world_record = "African record"
Name the total number of kenesia for african record
CREATE TABLE table_24011830_2 (kenenisa_bekele___eth__ VARCHAR, world_record VARCHAR)
SELECT Population, Region FROM country WHERE Name = "Angola"
What are the region and population of Angola?
CREATE TABLE country (Population VARCHAR, Region VARCHAR, Name VARCHAR)
SELECT visitor FROM table_name_14 WHERE date = "may 9"
Who is the visitor on May 9?
CREATE TABLE table_name_14 (visitor VARCHAR, date VARCHAR)
SELECT 1935 FROM table_name_6 WHERE 1953 = "4"
What 1935 has 4 as a 1953?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT to_par FROM table_name_15 WHERE score = 67 - 68 = 135
What is the to par score of the player that had a score of 67-68=135?
CREATE TABLE table_name_15 (to_par VARCHAR, score VARCHAR)
SELECT substrate FROM table_name_47 WHERE omim = 176000
Which substrate has an OMIM of 176000?
CREATE TABLE table_name_47 (substrate VARCHAR, omim VARCHAR)
SELECT COUNT(year) FROM table_name_89 WHERE chassis = "kurtis kraft 4000" AND points > 2
Name the total number of year for chassis of kurtis kraft 4000 and points more than 2
CREATE TABLE table_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT march FROM table_name_53 WHERE august = "gianna amore"
Who is the March playmate with an August playmate Gianna Amore?
CREATE TABLE table_name_53 (march VARCHAR, august VARCHAR)
SELECT away_team FROM table_name_69 WHERE venue = "lake oval"
Who played in lake oval while away?
CREATE TABLE table_name_69 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(title) FROM table_17355820_1 WHERE season__number = 19
How many episodes were there in season 19?
CREATE TABLE table_17355820_1 (title VARCHAR, season__number VARCHAR)
SELECT date FROM table_name_94 WHERE type_of_game = "wc 1974 qualifying"
When was the WC 1974 Qualifying game?
CREATE TABLE table_name_94 (date VARCHAR, type_of_game VARCHAR)
SELECT AVG(points) FROM table_name_1 WHERE pts_game > 4 AND nation = "england" AND games < 5
Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5?
CREATE TABLE table_name_1 (points INTEGER, games VARCHAR, pts_game VARCHAR, nation VARCHAR)
SELECT title FROM table_1876825_5 WHERE original_air_date = "March 2, 2003"
What is title of episode aired on March 2, 2003?
CREATE TABLE table_1876825_5 (title VARCHAR, original_air_date VARCHAR)
SELECT away_team FROM table_name_73 WHERE attendance = "1,730"
What is the away team at the game with an Attendance of 1,730?
CREATE TABLE table_name_73 (away_team VARCHAR, attendance VARCHAR)
SELECT english_name FROM table_name_30 WHERE year_signed > 1974 AND chinese_name = "蘇永康"
What is the English name for the Chinese name of 蘇永康 later than 1974?
CREATE TABLE table_name_30 (english_name VARCHAR, year_signed VARCHAR, chinese_name VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_93 WHERE country = "united states" AND player = "bob gilder"
What is the most money United States player Bob Gilder won?
CREATE TABLE table_name_93 (money___ INTEGER, country VARCHAR, player VARCHAR)
SELECT 2010 FROM table_name_82 WHERE 2009 = "1"
What is 2010, when 2009 is "1"?
CREATE TABLE table_name_82 (Id VARCHAR)
SELECT date_successor_seated FROM table_224837_4 WHERE reason_for_change = "Contested election; served until February 14, 1794"
Name the date successor seated for contested election; served until february 14, 1794
CREATE TABLE table_224837_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR)
SELECT MAX(league_cup_goals) FROM table_name_23 WHERE fa_cup_apps = "0" AND position = "mf" AND league_apps = "1" AND total_goals < 0
What is the maximum league cup goals when there has been 0 FA cup appearances, and MF is the position, with 1 league appearance, and smaller than 0 total goals?
CREATE TABLE table_name_23 (league_cup_goals INTEGER, total_goals VARCHAR, league_apps VARCHAR, fa_cup_apps VARCHAR, position VARCHAR)
SELECT score FROM table_name_93 WHERE surface = "hard" AND championship = "new haven , usa"
What is the Score when there was a hard surface and the Championship is new haven , usa?
CREATE TABLE table_name_93 (score VARCHAR, surface VARCHAR, championship VARCHAR)
SELECT written_by FROM table_17901155_3 WHERE no_in_season = 3
who co-wrote Season 2, Episode 3?
CREATE TABLE table_17901155_3 (written_by VARCHAR, no_in_season VARCHAR)
SELECT country FROM table_1949994_7 WHERE end_date = "June 25"
Where was the season that ended on June 25 located?
CREATE TABLE table_1949994_7 (country VARCHAR, end_date VARCHAR)
SELECT opponent FROM table_name_35 WHERE loss = "caldwell (10-11)"
Who was the opponent at the game that had a loss of Caldwell (10-11)?
CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR)
SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID WHERE T3.Sales_in_Billion > 200
Show the names of employees that work for companies with sales bigger than 200.
CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR); CREATE TABLE company (Company_ID VARCHAR, Sales_in_Billion INTEGER); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT head_coach FROM table_2384331_1 WHERE arena = "Altrincham Ice Dome"
Who is the head coach for the team that plays at Altrincham Ice Dome?
CREATE TABLE table_2384331_1 (head_coach VARCHAR, arena VARCHAR)
SELECT driver FROM table_name_92 WHERE laps = 45
Which driver has 45 laps?
CREATE TABLE table_name_92 (driver VARCHAR, laps VARCHAR)
SELECT record FROM table_name_35 WHERE nationality = "new zealand"
What is the Record that has a Nationality of new zealand?
CREATE TABLE table_name_35 (record VARCHAR, nationality VARCHAR)
SELECT MAX(year) FROM table_name_82 WHERE laps > 161
What is the highest Year, when Laps is greater than 161?
CREATE TABLE table_name_82 (year INTEGER, laps INTEGER)
SELECT us_viewers__millions_ FROM table_20942925_1 WHERE written_by = "Kevin Curran"
What are all values for U.S. viewers(millions) with Kevin Curran as a writer?
CREATE TABLE table_20942925_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
SELECT COUNT(open_cup) FROM table_12002388_1 WHERE year = 1993
How many open cups were hosted in 1993?
CREATE TABLE table_12002388_1 (open_cup VARCHAR, year VARCHAR)
SELECT AVG(decile) FROM table_name_16 WHERE authority = "state" AND name = "mapiu school"
What is the average Decile with a state authority and a Name of mapiu school?
CREATE TABLE table_name_16 (decile INTEGER, authority VARCHAR, name VARCHAR)
SELECT AVG(Snatch) FROM body_builder
What is the average snatch score of body builders?
CREATE TABLE body_builder (Snatch INTEGER)
SELECT year FROM table_14903491_1 WHERE womens_doubles = "Victoria Hristova Neli Nedialkova"
Name the year for victoria hristova neli nedialkova
CREATE TABLE table_14903491_1 (year VARCHAR, womens_doubles VARCHAR)
SELECT left FROM table_1973816_2 WHERE enrollment = 650
In what year did the school with enrollment of 650 leave?
CREATE TABLE table_1973816_2 (left VARCHAR, enrollment VARCHAR)
SELECT won FROM table_17675675_2 WHERE tries_against = "89"
with the amount of tries at 89, how many win's were there?
CREATE TABLE table_17675675_2 (won VARCHAR, tries_against VARCHAR)
SELECT second FROM table_name_58 WHERE team = "north america" AND country = "canada" AND home = "edmonton"
Who is the second of the North America team from Edmonton, Canada?
CREATE TABLE table_name_58 (second VARCHAR, home VARCHAR, team VARCHAR, country VARCHAR)
SELECT venue FROM table_name_39 WHERE score = "0:0" AND season > 2010 AND team_1 = "t&t hanoi"
Which Venue has a Score of 0:0, a Season larger than 2010, and a Team 1 of t&t hanoi?
CREATE TABLE table_name_39 (venue VARCHAR, team_1 VARCHAR, score VARCHAR, season VARCHAR)
SELECT team FROM table_name_91 WHERE location = "lida"
Which team is located in Lida?
CREATE TABLE table_name_91 (team VARCHAR, location VARCHAR)
SELECT mark FROM table_name_11 WHERE name = "kim collins"
What is the mark for Kim Collins?
CREATE TABLE table_name_11 (mark VARCHAR, name VARCHAR)
SELECT 2013 FROM table_name_44 WHERE 2006 = "a" AND 2010 = "1r"
Which tournament in 2013 had a 2010 finish of 1R?
CREATE TABLE table_name_44 (Id VARCHAR)
SELECT score FROM table_name_5 WHERE march = 18
What is the Score of the game on March 18?
CREATE TABLE table_name_5 (score VARCHAR, march VARCHAR)
SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2
Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.
CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)
SELECT name FROM table_name_32 WHERE year = "2001"
Which Name was in the Year 2001?
CREATE TABLE table_name_32 (name VARCHAR, year VARCHAR)
SELECT COUNT(cab_size) FROM table_2155350_2 WHERE category = "4 Medium tanker"
Name the number of cab size for 4 medium tanker
CREATE TABLE table_2155350_2 (cab_size VARCHAR, category VARCHAR)
SELECT academy_award FROM table_name_34 WHERE film = "educating peter"
What is the Academy Award for the Film Educating Peter?
CREATE TABLE table_name_34 (academy_award VARCHAR, film VARCHAR)
SELECT COUNT(week_36) FROM table_23680576_3 WHERE week_32 = "13.2%"
List the full amount of week 36 results when week 32 is 13.2%.
CREATE TABLE table_23680576_3 (week_36 VARCHAR, week_32 VARCHAR)
SELECT part_1 FROM table_name_88 WHERE part_4 = "february 10, 2008"
When is Part 1, when Part 4 is on February 10, 2008?
CREATE TABLE table_name_88 (part_1 VARCHAR, part_4 VARCHAR)
SELECT denomination FROM table_name_8 WHERE series = "iii series"
What is the denomination of the III Series?
CREATE TABLE table_name_8 (denomination VARCHAR, series VARCHAR)
SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING COUNT(*) >= 2
Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.
CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR); CREATE TABLE Maintenance_Engineers (company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR, company_name VARCHAR)
SELECT location FROM table_name_67 WHERE year < 2010 AND silver = "hei zhi hong"
What is the location for the year under 2010 and the year Hei Zhi Hong won silver?
CREATE TABLE table_name_67 (location VARCHAR, year VARCHAR, silver VARCHAR)
SELECT COUNT(*) FROM flight WHERE velocity > 200
How many flights have a velocity larger than 200?
CREATE TABLE flight (velocity INTEGER)
SELECT date_of_birth FROM table_name_63 WHERE name = "daniel moro"
When was Daniel Moro born?
CREATE TABLE table_name_63 (date_of_birth VARCHAR, name VARCHAR)
SELECT league FROM table_name_7 WHERE season = "1958-59"
In the 1958-59 season, what league did the team play in?
CREATE TABLE table_name_7 (league VARCHAR, season VARCHAR)
SELECT record FROM table_name_54 WHERE loss = "eichhorn (8-5)"
Which record has a Loss of eichhorn (8-5)?
CREATE TABLE table_name_54 (record VARCHAR, loss VARCHAR)
SELECT COUNT(total_assists) FROM table_name_20 WHERE games > 107 AND rank < 2
How many assists for player(s) with over 107 games and ranked less than 2?
CREATE TABLE table_name_20 (total_assists VARCHAR, games VARCHAR, rank VARCHAR)
SELECT away_team AS score FROM table_name_46 WHERE home_team = "hawthorn"
What is the score for the away team when they played Hawthorn?
CREATE TABLE table_name_46 (away_team VARCHAR, home_team VARCHAR)
SELECT constituency FROM table_name_72 WHERE winning_party_2003 = "conservative"
Which constituency had the conservative party win in 2003?
CREATE TABLE table_name_72 (constituency VARCHAR, winning_party_2003 VARCHAR)
SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 8
How many days had both mean humidity above 50 and mean visibility above 8?
CREATE TABLE weather (mean_humidity VARCHAR, mean_visibility_miles VARCHAR)
SELECT circuit FROM table_27948565_1 WHERE grand_prix = "Hertz British grand_prix"
Name the circuit for hertz british grand prix
CREATE TABLE table_27948565_1 (circuit VARCHAR, grand_prix VARCHAR)
SELECT date FROM table_name_58 WHERE away_team = "south melbourne"
What is the date of the game where South Melbourne was the away team?
CREATE TABLE table_name_58 (date VARCHAR, away_team VARCHAR)
SELECT record FROM table_name_47 WHERE date = "december 3"
Tell me the record for december 3
CREATE TABLE table_name_47 (record VARCHAR, date VARCHAR)
SELECT 2011 FROM table_name_71 WHERE tournament = "beijing"
Name the tournament of beijing
CREATE TABLE table_name_71 (tournament 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 COUNT(ignition_timing) FROM table_22915134_2 WHERE graphical = "1-1-0-0-1-1-0-0-"
When 1-1-0-0-1-1-0-0- is the graphical how many ignition timings are there?
CREATE TABLE table_22915134_2 (ignition_timing VARCHAR, graphical VARCHAR)
SELECT date FROM table_name_97 WHERE opponent = "buffalo bills"
What date did the Ravens play the buffalo bills?
CREATE TABLE table_name_97 (date VARCHAR, opponent VARCHAR)
SELECT joined FROM table_255205_1 WHERE institution = "Manchester University"
How many joined Manchester University?
CREATE TABLE table_255205_1 (joined VARCHAR, institution VARCHAR)
SELECT MAX(product_price), MIN(product_price), product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_code
What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?
CREATE TABLE products (product_type_code VARCHAR, product_price INTEGER)
SELECT date FROM table_name_83 WHERE away_team = "essendon"
When was the game at Essendon?
CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR)
SELECT res FROM table_name_94 WHERE round = 1 AND time = "2:48"
What is the result of the match that went to round 1 and only for 2:48?
CREATE TABLE table_name_94 (res VARCHAR, round VARCHAR, time VARCHAR)
SELECT medal FROM table_name_1 WHERE event = "men's giant slalom"
What is the medal for the Men's Giant Slalom event?
CREATE TABLE table_name_1 (medal VARCHAR, event VARCHAR)
SELECT high_points FROM table_27713030_12 WHERE date = "April 8"
What were the high points on April 8?
CREATE TABLE table_27713030_12 (high_points VARCHAR, date VARCHAR)
SELECT location FROM table_name_23 WHERE date = "september 22"
Where was the September 22 game played?
CREATE TABLE table_name_23 (location VARCHAR, date VARCHAR)
SELECT place FROM table_name_55 WHERE score = 67 - 70 = 137 AND player = "stuart appleby"
Name the place for score of 67-70=137 and stuart appleby
CREATE TABLE table_name_55 (place VARCHAR, player VARCHAR, score VARCHAR)
SELECT in_service_for_nal FROM table_name_10 WHERE ship = "ms vistafjord"
The ship MS Vistafjord has what in service for NAL?
CREATE TABLE table_name_10 (in_service_for_nal VARCHAR, ship VARCHAR)
SELECT opponent FROM table_name_64 WHERE result = "w 24-14"
Which opponent had the result of W 24-14?
CREATE TABLE table_name_64 (opponent VARCHAR, result VARCHAR)
SELECT eid FROM Employee WHERE salary > 100000
Show ids for all employees with at least 100000 salary.
CREATE TABLE Employee (eid VARCHAR, salary INTEGER)
SELECT MAX(pick__number) FROM table_name_14 WHERE college = "simon fraser"
What was the highest Pick # for the College of Simon Fraser?
CREATE TABLE table_name_14 (pick__number INTEGER, college VARCHAR)
SELECT 1990 FROM table_name_45 WHERE 1989 = "a" AND 1985 = "a" AND 1993 = "a"
What is the value in 1990 when it is A in 1989, 1985, and 1993?
CREATE TABLE table_name_45 (Id VARCHAR)
SELECT Song FROM volume ORDER BY Weeks_on_Top DESC LIMIT 1
What is the song in the volume with the maximum weeks on top?
CREATE TABLE volume (Song VARCHAR, Weeks_on_Top VARCHAR)
SELECT mountain_peak FROM table_name_73 WHERE location = "37.5775°n 105.4856°w"
what is the mountain peak when the location is 37.5775°n 105.4856°w?
CREATE TABLE table_name_73 (mountain_peak VARCHAR, location VARCHAR)
SELECT entrant FROM table_name_46 WHERE rounds = "all" AND driver = "jean alesi"
Who was the entrant for all the round with Jean Alesi?
CREATE TABLE table_name_46 (entrant VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT won_promotion FROM table_2119448_3 WHERE season = 1987
Name the won promotion for 1987
CREATE TABLE table_2119448_3 (won_promotion VARCHAR, season VARCHAR)
SELECT MAX(legs_lost) FROM table_18621456_22
What is the most legs lost of all?
CREATE TABLE table_18621456_22 (legs_lost INTEGER)
SELECT opponent FROM table_name_41 WHERE game < 54
Who were the opponents in games before number 54?
CREATE TABLE table_name_41 (opponent VARCHAR, game INTEGER)
SELECT frequency FROM table_name_99 WHERE area_served = "katherine"
What is the frequency for katherine?
CREATE TABLE table_name_99 (frequency VARCHAR, area_served VARCHAR)
SELECT AVG(year) FROM table_name_44 WHERE result = "34-25"
What Year had a Result of 34-25?
CREATE TABLE table_name_44 (year INTEGER, result VARCHAR)
SELECT date FROM table_name_4 WHERE country = "us" AND catalog = "ck 9942"
What is the date for US catalog CK 9942?
CREATE TABLE table_name_4 (date VARCHAR, country VARCHAR, catalog VARCHAR)
SELECT MAX(site) FROM table_name_42 WHERE sex_and_other_data = "old male"
Which Site that has a Sex and other data of old male?
CREATE TABLE table_name_42 (site INTEGER, sex_and_other_data VARCHAR)
SELECT COUNT(year) FROM table_1458412_1 WHERE avg_start = "27.3"
What is the totl amount of years where avg start is 27.3?
CREATE TABLE table_1458412_1 (year VARCHAR, avg_start VARCHAR)
SELECT MAX(consecutive_starts) FROM table_28606933_7 WHERE player = "Jason Gildon"
What is the largest number of consecutive starts for jason gildon?
CREATE TABLE table_28606933_7 (consecutive_starts INTEGER, player VARCHAR)
SELECT score FROM table_name_65 WHERE date = "10 july 2011"
What is Score, when Date is 10 July 2011?
CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
SELECT COUNT(player) FROM table_11734041_20 WHERE years_for_rockets = "2004-06"
what is the total number of player where years for rockets is 2004-06
CREATE TABLE table_11734041_20 (player VARCHAR, years_for_rockets VARCHAR)
SELECT SUM(county) FROM table_name_16 WHERE party = "people before profit" AND borough > 0
How many counties have people before profit as the party, and a borough greater than 0?
CREATE TABLE table_name_16 (county INTEGER, party VARCHAR, borough VARCHAR)
SELECT wsu_year_s_ FROM table_name_88 WHERE pro_year_s_ = "1974-77"
What is WSU Year(s), when Pro Year(s) is 1974-77?
CREATE TABLE table_name_88 (wsu_year_s_ VARCHAR, pro_year_s_ VARCHAR)
SELECT director FROM table_name_61 WHERE film_title_used_in_nomination = "small voices"
Who was the director of Small Voices, a film title used in nomination?
CREATE TABLE table_name_61 (director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT Author FROM submission WHERE College = "Florida" OR College = "Temple"
Show the names of authors from college "Florida" or "Temple"
CREATE TABLE submission (Author VARCHAR, College VARCHAR)
SELECT COUNT(team__a_) FROM table_22384475_1 WHERE margin = "131 runs"
How many games were won by a margin of 131 runs?
CREATE TABLE table_22384475_1 (team__a_ VARCHAR, margin VARCHAR)
SELECT score FROM table_name_59 WHERE player = "eduardo romero"
What was Eduardo Romero's score?
CREATE TABLE table_name_59 (score VARCHAR, player VARCHAR)