answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT maximum_download_speed__kbps FROM table_name_24 WHERE technology = "3g" AND plan_name = "internet basic"
What is the maximum download speed for the Internet basic plan with 3G?
CREATE TABLE table_name_24 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR)
SELECT case_type FROM table_name_29 WHERE base_diameter = "13.03 (.513)" AND case_length = "63.5 (2.5)"
Which Case type has a Base diameter of 13.03 (.513), and a Case length of 63.5 (2.5)?
CREATE TABLE table_name_29 (case_type VARCHAR, base_diameter VARCHAR, case_length VARCHAR)
SELECT T1.Name, T2.Decoration_Theme FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID
Show the names of members and the decoration themes they have.
CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Decoration_Theme VARCHAR, Member_ID VARCHAR)
SELECT wood FROM table_name_50 WHERE earth = "stabilizing"
Which wood has stabilizing earth?
CREATE TABLE table_name_50 (wood VARCHAR, earth VARCHAR)
SELECT decor FROM Rooms WHERE roomName = "Recluse and defiance"
What is the decor of room Recluse and defiance?
CREATE TABLE Rooms (decor VARCHAR, roomName VARCHAR)
SELECT first_name, last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163)
What is the full name ( first name and last name ) for those employees who gets more salary than the employee whose id is 163?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary INTEGER, employee_id VARCHAR)
SELECT score FROM table_name_6 WHERE away_team = "ipswich town"
What is the score for the away team, Ipswich Town?
CREATE TABLE table_name_6 (score VARCHAR, away_team VARCHAR)
SELECT SUM(stellar_mass___m__) FROM table_name_57 WHERE type = "m0"
What is the total stellar mass of the type m0?
CREATE TABLE table_name_57 (stellar_mass___m__ INTEGER, type VARCHAR)
SELECT COUNT(pumpers) FROM table_name_32 WHERE cars = "1" AND staffing = "volunteer" AND brigade = "grovedale" AND tankers < 1
How many Pumpers have Cars of 1, and a Staffing of volunteer, and a Brigade of grovedale, and Tankers smaller than 1?
CREATE TABLE table_name_32 (pumpers VARCHAR, tankers VARCHAR, brigade VARCHAR, cars VARCHAR, staffing VARCHAR)
SELECT team FROM table_name_39 WHERE machine = "nsr250" AND points = 8
What is the Team with a Machine that is nsr250 and has Points of 8?
CREATE TABLE table_name_39 (team VARCHAR, machine VARCHAR, points VARCHAR)
SELECT rank FROM table_name_46 WHERE athletes = "manuel cortina martínez"
What is the rank of Manuel Cortina Martínez?
CREATE TABLE table_name_46 (rank VARCHAR, athletes VARCHAR)
SELECT tyre FROM table_name_82 WHERE fastest_lap = "jim clark" AND circuit = "prince george"
What is the tyre for the circuit of Prince George, which had Jim Clark as the fastest lap?
CREATE TABLE table_name_82 (tyre VARCHAR, fastest_lap VARCHAR, circuit VARCHAR)
SELECT AVG(episode__number) FROM table_name_26 WHERE format__number = "q146"
What is the average episode number with q146 format?
CREATE TABLE table_name_26 (episode__number INTEGER, format__number VARCHAR)
SELECT original_name FROM table_name_4 WHERE designer = "glen peloso" AND location = "n/a"
What is the original name of the place by designer Glen Peloso with a Location of n/a?
CREATE TABLE table_name_4 (original_name VARCHAR, designer VARCHAR, location VARCHAR)
SELECT high_points FROM table_13812785_8 WHERE date = "March 13"
Who had the high points dated march 13?
CREATE TABLE table_13812785_8 (high_points VARCHAR, date VARCHAR)
SELECT COUNT(tries) FROM table_name_73 WHERE played > 2 AND lost < 0
How many tries for the player whose number is greater than 2 and losses are smaller than 0?
CREATE TABLE table_name_73 (tries VARCHAR, played VARCHAR, lost VARCHAR)
SELECT SUM(live_births_2006) FROM table_name_94 WHERE whites_as__percentage_of_pop = "98.40%" AND tfr_2006 > 2
What is the total number of live births in 2006 with 98.40% of the population as Whites and has more than 2 for the TFR?
CREATE TABLE table_name_94 (live_births_2006 INTEGER, whites_as__percentage_of_pop VARCHAR, tfr_2006 VARCHAR)
SELECT venue FROM table_name_76 WHERE closed = "1990s"
Which venues closed in the 1990s?
CREATE TABLE table_name_76 (venue VARCHAR, closed VARCHAR)
SELECT bonus_points FROM table_17510803_2 WHERE points_for = "385"
How many bonus points are there when points for is 385?
CREATE TABLE table_17510803_2 (bonus_points VARCHAR, points_for VARCHAR)
SELECT COUNT(DISTINCT u_id) FROM review
How many different users wrote some reviews?
CREATE TABLE review (u_id VARCHAR)
SELECT total_apps FROM table_2980024_1 WHERE league_goals = 0
What were the total apps for Dunne in season where he had 0 league goals?
CREATE TABLE table_2980024_1 (total_apps VARCHAR, league_goals VARCHAR)
SELECT AVG(crowd) FROM table_name_31 WHERE home_team = "north melbourne"
What is the average crowd when the home team is north melbourne?
CREATE TABLE table_name_31 (crowd INTEGER, home_team VARCHAR)
SELECT package_option FROM table_name_3 WHERE content = "poker"
What is Package/Option, when Content is Poker?
CREATE TABLE table_name_3 (package_option VARCHAR, content VARCHAR)
SELECT COUNT(power_kw) FROM table_23915973_1 WHERE frequency = "93.7 MHz"
How many power kw have a frequency of 93.7 mhz?
CREATE TABLE table_23915973_1 (power_kw VARCHAR, frequency VARCHAR)
SELECT surface FROM table_name_56 WHERE outcome = "runner-up" AND championship = "toronto"
What is the listed surface for the Championship of Toronto that had a runner-up outcome?
CREATE TABLE table_name_56 (surface VARCHAR, outcome VARCHAR, championship VARCHAR)
SELECT score FROM table_name_33 WHERE third_place = "stefan edberg"
What is the score with third place of stefan edberg?
CREATE TABLE table_name_33 (score VARCHAR, third_place VARCHAR)
SELECT date FROM table_name_27 WHERE record = "1–2–4"
What is the Date of the game with a Record of 1–2–4?
CREATE TABLE table_name_27 (date VARCHAR, record VARCHAR)
SELECT wheels FROM table_name_33 WHERE built = 1920
Which wheels were built 1920?
CREATE TABLE table_name_33 (wheels VARCHAR, built VARCHAR)
SELECT opponent FROM table_name_67 WHERE winner = "bc 2"
Tell me the opponent for winner of bc 2
CREATE TABLE table_name_67 (opponent VARCHAR, winner VARCHAR)
SELECT champion FROM table_name_36 WHERE year = 2005 AND semi_finalist__number1 = "western carolina"
Who was champion in 2005 where the semi-finalist was #1 in western Carolina?
CREATE TABLE table_name_36 (champion VARCHAR, year VARCHAR, semi_finalist__number1 VARCHAR)
SELECT MAX(Price), MAX(Score) FROM WINE WHERE Appelation = "St. Helena"
What are the maximum price and score of wines produced by St. Helena appelation?
CREATE TABLE WINE (Price INTEGER, Score INTEGER, Appelation VARCHAR)
SELECT masters FROM table_1506950_9 WHERE pga_ch = "R16"
What is the result at the Masters for the player who finished R16 at the PGA Ch.?
CREATE TABLE table_1506950_9 (masters VARCHAR, pga_ch VARCHAR)
SELECT MIN(attendance) FROM table_name_7 WHERE date = "may 17"
How many people were in attendance on may 17?
CREATE TABLE table_name_7 (attendance INTEGER, date VARCHAR)
SELECT MAX(crowd) FROM table_name_85 WHERE away_team = "sydney"
Which Crowd has a Away team of sydney?
CREATE TABLE table_name_85 (crowd INTEGER, away_team VARCHAR)
SELECT score FROM table_name_41 WHERE player = "vijay singh"
What is Score, when Player is "Vijay Singh"?
CREATE TABLE table_name_41 (score VARCHAR, player VARCHAR)
SELECT top_division_titles FROM table_18143210_2 WHERE first_season_of_current_spell_in_top_division = "1979-80"
How many top division titles were won during the 'first season of current spell in top division' in 1979-80?
CREATE TABLE table_18143210_2 (top_division_titles VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)
SELECT school_club_team FROM table_name_53 WHERE position = "dl"
What was the school for the player who was a DL?
CREATE TABLE table_name_53 (school_club_team VARCHAR, position VARCHAR)
SELECT no_of_athletes FROM table_26669939_1 WHERE edition = "7th"
What was the number of athletes for the 7th edition?
CREATE TABLE table_26669939_1 (no_of_athletes VARCHAR, edition VARCHAR)
SELECT enrollment__fall_2010_ FROM table_2076522_2 WHERE location_s_ = "Bottineau"
What is the enrollment for the school in bottineau?
CREATE TABLE table_2076522_2 (enrollment__fall_2010_ VARCHAR, location_s_ VARCHAR)
SELECT MIN(rank_by_average) FROM table_name_99 WHERE average = 23 AND total = 115
What was the lowest rank by average of a couple who had an average of 23 and a total of 115?
CREATE TABLE table_name_99 (rank_by_average INTEGER, average VARCHAR, total VARCHAR)
SELECT senator FROM table_name_82 WHERE party = "republican" AND home_town = "houston" AND district = 7
Which Senator has a Party of republican, a Home Town of houston, and a District of 7?
CREATE TABLE table_name_82 (senator VARCHAR, district VARCHAR, party VARCHAR, home_town VARCHAR)
SELECT event FROM table_name_3 WHERE venue = "valencia, spain"
What even was held in Valencia, Spain?
CREATE TABLE table_name_3 (event VARCHAR, venue VARCHAR)
SELECT fourth FROM table_name_93 WHERE event = "2008 telstra men's pro"
Who was Fourth in the 2008 Telstra Men's Pro Event?
CREATE TABLE table_name_93 (fourth VARCHAR, event VARCHAR)
SELECT score FROM table_name_29 WHERE home_team = "queens park rangers"
What is the score when the home team is queens park rangers?
CREATE TABLE table_name_29 (score VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_4 WHERE home_team = "collingwood"
What venue features collingwood as the home side?
CREATE TABLE table_name_4 (venue VARCHAR, home_team VARCHAR)
SELECT title FROM table_23242958_1 WHERE directed_by = "Rodney Clouden"
What is the title of the episode directed by Rodney Clouden?
CREATE TABLE table_23242958_1 (title VARCHAR, directed_by 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 MIN(rank) FROM table_name_46 WHERE attempts = 319 AND year > 2000
What is the lowest Rank when Attempts was 319, and the Year was larger than 2000?
CREATE TABLE table_name_46 (rank INTEGER, attempts VARCHAR, year VARCHAR)
SELECT last_performance FROM table_name_11 WHERE name = "liam mower"
What is the date of the last performance for Liam Mower?
CREATE TABLE table_name_11 (last_performance VARCHAR, name VARCHAR)
SELECT notes FROM table_name_2 WHERE position = "10th"
What were the notes when his position was 10th?
CREATE TABLE table_name_2 (notes VARCHAR, position VARCHAR)
SELECT points FROM table_name_15 WHERE date = "february 10"
What were the points on February 10?
CREATE TABLE table_name_15 (points VARCHAR, date VARCHAR)
SELECT COUNT(game_site) FROM table_1941183_2 WHERE opponent = "Barcelona Dragons"
In how many locations was the game against Barcelona Dragons played?
CREATE TABLE table_1941183_2 (game_site VARCHAR, opponent VARCHAR)
SELECT name FROM table_name_21 WHERE birth = "16 august 1401"
Who has a birth of 16 august 1401?
CREATE TABLE table_name_21 (name VARCHAR, birth VARCHAR)
SELECT name, nationality, id FROM architect WHERE gender = 'male' ORDER BY name
List the name, nationality and id of all male architects ordered by their names lexicographically.
CREATE TABLE architect (name VARCHAR, nationality VARCHAR, id VARCHAR, gender VARCHAR)
SELECT gregorian_months FROM table_name_96 WHERE season_in_tamil = "குளிர்"
What are the gregorian months for the season குளிர் in Tamil?
CREATE TABLE table_name_96 (gregorian_months VARCHAR, season_in_tamil VARCHAR)
SELECT year FROM table_name_53 WHERE game = "dead space 2"
what is the year for the game dead space 2?
CREATE TABLE table_name_53 (year VARCHAR, game VARCHAR)
SELECT voltage FROM table_name_49 WHERE model_number = "pentium dual-core e2140"
What's the voltage for the pentium dual-core e2140?
CREATE TABLE table_name_49 (voltage VARCHAR, model_number VARCHAR)
SELECT COUNT(series__number) FROM table_27720737_1 WHERE production_code = 120
How many episodes had a production code 120?
CREATE TABLE table_27720737_1 (series__number VARCHAR, production_code VARCHAR)
SELECT date FROM table_27713583_2 WHERE high_points = "Toney Douglas (23)"
What is the date the high points was by toney douglas (23)?
CREATE TABLE table_27713583_2 (date VARCHAR, high_points VARCHAR)
SELECT MIN(round) FROM table_11803648_17 WHERE position = "Forward"
WHAT ROUND WAS FORWARD ANDRE PETERSSON SELECTED?
CREATE TABLE table_11803648_17 (round INTEGER, position VARCHAR)
SELECT AVG(cuts_made) FROM table_name_65 WHERE top_25 < 10 AND top_10 > 3
What is the average cuts made at the top 25, less than 10, and at the Top 10 more than 3?
CREATE TABLE table_name_65 (cuts_made INTEGER, top_25 VARCHAR, top_10 VARCHAR)
SELECT player FROM table_24108789_6 WHERE events = 22
Name the player for 22 events
CREATE TABLE table_24108789_6 (player VARCHAR, events VARCHAR)
SELECT record FROM table_17323042_5 WHERE team = "Orlando"
What was the team's record when they faced orlando?
CREATE TABLE table_17323042_5 (record VARCHAR, team VARCHAR)
SELECT loaned_to FROM table_name_37 WHERE loan_expires = "end of the season" AND player = "francis jeffers"
What shows for loaned to when the loan expires end of the season, Francis Jeffers is the player?
CREATE TABLE table_name_37 (loaned_to VARCHAR, loan_expires VARCHAR, player VARCHAR)
SELECT total_score FROM table_name_90 WHERE champion = "gay brewer category:articles with hcards"
When the champion was Gay Brewer Category:Articles with hCards what was the total score?
CREATE TABLE table_name_90 (total_score VARCHAR, champion VARCHAR)
SELECT COUNT(rank) FROM table_name_87 WHERE date_of_official_foundation_of_municipality > 1926 AND province = "sistan and baluchestan" AND 2006 > 567449
What is the total number of Rank, when Date of Official Foundation of Municipality is after 1926, when Province is "Sistan and Baluchestan", and when 2006 is greater than 567449?
CREATE TABLE table_name_87 (rank VARCHAR, date_of_official_foundation_of_municipality VARCHAR, province VARCHAR)
SELECT result FROM table_name_6 WHERE first_elected = 1898 AND incumbent = "julius kahn"
What was the result for Julius Kahn's first election of 1898?
CREATE TABLE table_name_6 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT country FROM table_name_21 WHERE player = "larry mize"
What country is Larry Mize from?
CREATE TABLE table_name_21 (country VARCHAR, player VARCHAR)
SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age LIMIT 1
What is the total point count of the youngest gymnast?
CREATE TABLE people (People_ID VARCHAR, Age VARCHAR); CREATE TABLE gymnast (Total_Points VARCHAR, Gymnast_ID VARCHAR)
SELECT COUNT(ansi_code) FROM table_18600760_20 WHERE latitude = "48.142938"
How many ansi codes are there for latitude 48.142938?
CREATE TABLE table_18600760_20 (ansi_code VARCHAR, latitude VARCHAR)
SELECT purse FROM table_name_95 WHERE trainer = "aidan o'brien"
What is the purse when Aidan O'brien was the trainer?
CREATE TABLE table_name_95 (purse VARCHAR, trainer VARCHAR)
SELECT date FROM table_name_70 WHERE visiting_team = "new york giants" AND final_score = "37-34"
What is the date the new york giants were the visiting team and the Final Score was 37-34?
CREATE TABLE table_name_70 (date VARCHAR, visiting_team VARCHAR, final_score VARCHAR)
SELECT away_team FROM table_name_14 WHERE stadium = "adelaide oval"
Which team was hosted at Adelaide Oval?
CREATE TABLE table_name_14 (away_team VARCHAR, stadium VARCHAR)
SELECT gt2_winning_team FROM table_11875915_2 WHERE gt3_winning_team = "#1 PTG"
Who was the GT2 winning team when the GT3 winning team was #1 PTG?
CREATE TABLE table_11875915_2 (gt2_winning_team VARCHAR, gt3_winning_team VARCHAR)
SELECT MIN(year) FROM table_name_99 WHERE play_by_play = "al michaels" AND sideline_reporter_s_ = "lesley visser and dan fouts"
What's the earliest year that Al Michaels was the play-by-play commentator, in which Lesley Visser and Dan Fouts were also sideline reporters?
CREATE TABLE table_name_99 (year INTEGER, play_by_play VARCHAR, sideline_reporter_s_ VARCHAR)
SELECT terminus FROM table_name_46 WHERE color = "diamond"
The color diamond is assigned to which Terminus?
CREATE TABLE table_name_46 (terminus VARCHAR, color VARCHAR)
SELECT team FROM table_name_72 WHERE qual_1 = "59.895"
What team had a qual 1 of 59.895?
CREATE TABLE table_name_72 (team VARCHAR, qual_1 VARCHAR)
SELECT fcc_info FROM table_name_35 WHERE erp_w < 222 AND call_sign = "k297ai"
Which FCC info has a ERP W smaller than 222, and a Call sign of k297ai?
CREATE TABLE table_name_35 (fcc_info VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
SELECT 1954 FROM table_name_28 WHERE 1969 = "a" AND tournament = "australian championships"
What did the Tournament of Australian Championships, with an A in 1969, get in 1954?
CREATE TABLE table_name_28 (tournament VARCHAR)
SELECT lga_name FROM table_1966992_1 WHERE census_2006_population > 425208.9417698913 AND administrative_capital = "Port Harcourt"
What is the LGA name where the 2006 census population is bigger than 425208.9417698913 and administrative capital is port harcourt?
CREATE TABLE table_1966992_1 (lga_name VARCHAR, census_2006_population VARCHAR, administrative_capital VARCHAR)
SELECT date FROM table_name_4 WHERE record = "46-34"
On what date did the result leave the team with a record of 46-34?
CREATE TABLE table_name_4 (date VARCHAR, record VARCHAR)
SELECT senior_status FROM table_name_53 WHERE active_service = "1972–1995"
What were the years of senior status for active service in 1972–1995?
CREATE TABLE table_name_53 (senior_status VARCHAR, active_service VARCHAR)
SELECT MAX(year) FROM table_name_4 WHERE championship = "us open"
What is the highest year for the US Open?
CREATE TABLE table_name_4 (year INTEGER, championship VARCHAR)
SELECT rank FROM table_name_23 WHERE time = "1:55.40"
What was the rank of the swimmer with a time of 1:55.40?
CREATE TABLE table_name_23 (rank VARCHAR, time VARCHAR)
SELECT issue FROM table_name_51 WHERE actual_title = "7th heaven"
What isssue has 7th heaven as an actual title?
CREATE TABLE table_name_51 (issue VARCHAR, actual_title VARCHAR)
SELECT AVG(crowd) FROM table_name_78 WHERE home_team = "fitzroy"
What is the average crowd size of Fitzroy's home team?
CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR)
SELECT competition FROM table_name_8 WHERE score = "3-0" AND result = "4-1"
What competition had a score of 3-0, and a result of 4-1?
CREATE TABLE table_name_8 (competition VARCHAR, score VARCHAR, result VARCHAR)
SELECT us_open_cup FROM table_1046170_5 WHERE regular_season = "4th, Atlantic division"
what's the u.s. open cup status for regular season of 4th, atlantic division
CREATE TABLE table_1046170_5 (us_open_cup VARCHAR, regular_season VARCHAR)
SELECT written_by FROM table_26561506_1 WHERE no = 28
Who wrote episode number 28?
CREATE TABLE table_26561506_1 (written_by VARCHAR, no VARCHAR)
SELECT pole_position FROM table_name_75 WHERE grand_prix = "belgian grand prix"
Name the pole position for belgian grand prix
CREATE TABLE table_name_75 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_27 WHERE original_title = "báng-kah (艋舺)"
What is Film Title Used In Nomination, when Original Title is "Báng-Kah (艋舺)"
CREATE TABLE table_name_27 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT became_consort FROM table_name_92 WHERE marriage = "4 april 1721"
Name the became consort for marriage of 4 april 1721
CREATE TABLE table_name_92 (became_consort VARCHAR, marriage VARCHAR)
SELECT state FROM table_name_28 WHERE opened__closing_date_if_defunct_ = "1960"
What State has an Opened (closing date if defunct) that shows 1960?
CREATE TABLE table_name_28 (state VARCHAR, opened__closing_date_if_defunct_ VARCHAR)
SELECT AVG(played) FROM table_name_9 WHERE against = 51 AND drawn > 1
What is the average Played when the against is 51, and the drawn is more than 1?
CREATE TABLE table_name_9 (played INTEGER, against VARCHAR, drawn VARCHAR)
SELECT MAX(total) FROM table_name_14 WHERE to_par > 16
Name the most total with to par more than 16
CREATE TABLE table_name_14 (total INTEGER, to_par INTEGER)
SELECT away_team FROM table_name_33 WHERE date = "23 january 1982" AND home_team = "sunderland"
Who did home team sunderland play on 23 january 1982?
CREATE TABLE table_name_33 (away_team VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT championship FROM table_name_10 WHERE year > 2010 AND surface = "grass"
Which championship is in a year later than 2010 on a grass surface?
CREATE TABLE table_name_10 (championship VARCHAR, year VARCHAR, surface VARCHAR)
SELECT team FROM table_name_29 WHERE draw = "0"
What team had a draw of 0?
CREATE TABLE table_name_29 (team VARCHAR, draw VARCHAR)
SELECT championship FROM table_name_43 WHERE margin = "10 strokes"
Which championship had a margin of 10 strokes?
CREATE TABLE table_name_43 (championship VARCHAR, margin VARCHAR)
SELECT first_day_cover_cancellation FROM table_11900773_6 WHERE date_of_issue = "3 April 2008" AND theme = "IIHF World Championships, Quebec City"
Where is the first day cover cancellation for the 3 April 2008 IIHF World Championships, Quebec City stamp?
CREATE TABLE table_11900773_6 (first_day_cover_cancellation VARCHAR, date_of_issue VARCHAR, theme VARCHAR)