question
stringlengths
12
243
answer
stringlengths
18
557
context
stringlengths
27
489
What is the number of losses when the goal difference was -8, and position is smaller than 10?
SELECT COUNT(losses) FROM table_name_37 WHERE goal_difference = -8 AND position < 10
CREATE TABLE table_name_37 (losses VARCHAR, goal_difference VARCHAR, position VARCHAR)
What was Arnold Palmer's score in the tournamnet?
SELECT score FROM table_name_5 WHERE player = "arnold palmer"
CREATE TABLE table_name_5 (score VARCHAR, player VARCHAR)
What is the Per capita income where Median family income is $72,288?
SELECT per_capita_income FROM table_name_7 WHERE median_family_income = "$72,288"
CREATE TABLE table_name_7 (per_capita_income VARCHAR, median_family_income VARCHAR)
When did the home team of Richmond play?
SELECT date FROM table_name_89 WHERE home_team = "richmond"
CREATE TABLE table_name_89 (date VARCHAR, home_team VARCHAR)
What studio is director Reginald Hudlin from?
SELECT studio FROM table_name_85 WHERE director = "reginald hudlin"
CREATE TABLE table_name_85 (studio VARCHAR, director VARCHAR)
What is the size difference for exa?
SELECT size_difference FROM table_name_29 WHERE prefix = "exa"
CREATE TABLE table_name_29 (size_difference VARCHAR, prefix VARCHAR)
what is the first performance of the last performance on 03/29/1957
SELECT first_performance FROM table_19189856_1 WHERE last_performance = "03/29/1957"
CREATE TABLE table_19189856_1 (first_performance VARCHAR, last_performance VARCHAR)
What are the names of perpetrators whose country is not "China"?
SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Country <> "China"
CREATE TABLE perpetrator (People_ID VARCHAR, Country VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
How many laps resulted from a Qual of 165.229?
SELECT MAX(laps) FROM table_name_17 WHERE qual = "165.229"
CREATE TABLE table_name_17 (laps INTEGER, qual VARCHAR)
What is the team's record on april 12?
SELECT record FROM table_name_11 WHERE date = "april 12"
CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR)
What is the moving from with a transfer and the nationality of Bra?
SELECT moving_from FROM table_name_22 WHERE type = "transfer" AND nat = "bra"
CREATE TABLE table_name_22 (moving_from VARCHAR, type VARCHAR, nat VARCHAR)
In which venue does Melbourne play as the home team?
SELECT venue FROM table_name_62 WHERE home_team = "melbourne"
CREATE TABLE table_name_62 (venue VARCHAR, home_team VARCHAR)
Which year had 0 points and an AGS JH23B chassis?
SELECT year FROM table_name_81 WHERE points = 0 AND chassis = "ags jh23b"
CREATE TABLE table_name_81 (year VARCHAR, points VARCHAR, chassis VARCHAR)
What was the lowest total for Italy when the latest win is 1950?
SELECT MIN(total) FROM table_name_43 WHERE nationality = "italy" AND latest_win = 1950
CREATE TABLE table_name_43 (total INTEGER, nationality VARCHAR, latest_win VARCHAR)
How many people watch at Western Oval venue?
SELECT COUNT(crowd) FROM table_name_4 WHERE venue = "western oval"
CREATE TABLE table_name_4 (crowd VARCHAR, venue VARCHAR)
Which City of license has a Frequency MHz larger than 89.5, and a Call sign of k213el?
SELECT city_of_license FROM table_name_22 WHERE frequency_mhz > 89.5 AND call_sign = "k213el"
CREATE TABLE table_name_22 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
What is the average land area with a density of 815.48, and a Population larger than 411?
SELECT AVG(land_area__hectares_) FROM table_name_29 WHERE density__inh_km²_ = 815.48 AND population > 411
CREATE TABLE table_name_29 (land_area__hectares_ INTEGER, density__inh_km²_ VARCHAR, population VARCHAR)
What is the Scoring rank when there are less than 21 events played with a rank of n/a in years less than 2011?
SELECT scoring_rank FROM table_name_19 WHERE events_played < 21 AND rank = "n/a" AND year < 2011
CREATE TABLE table_name_19 (scoring_rank VARCHAR, year VARCHAR, events_played VARCHAR, rank VARCHAR)
For team Atlético Nacional, what were the points?
SELECT points FROM table_16795394_3 WHERE team__number2 = "Atlético Nacional"
CREATE TABLE table_16795394_3 (points VARCHAR, team__number2 VARCHAR)
What is Surface, when Championship is Australian Open?
SELECT surface FROM table_name_49 WHERE championship = "australian open"
CREATE TABLE table_name_49 (surface VARCHAR, championship VARCHAR)
What is Jake Johnson's position?
SELECT position FROM table_name_60 WHERE players = "jake johnson"
CREATE TABLE table_name_60 (position VARCHAR, players VARCHAR)
What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0?
SELECT SUM(agricultural_panel) FROM table_name_46 WHERE industrial_and_commercial_panel < 0
CREATE TABLE table_name_46 (agricultural_panel INTEGER, industrial_and_commercial_panel INTEGER)
Name the transfer fee with a transfer window of summer for schollen
SELECT transfer_fee FROM table_name_88 WHERE transfer_window = "summer" AND name = "schollen"
CREATE TABLE table_name_88 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR)
What is the Name of the Special Stage with a 2.40km length and S. Loeb as Winner?
SELECT name FROM table_name_45 WHERE length = "2.40km" AND winner = "s. loeb"
CREATE TABLE table_name_45 (name VARCHAR, length VARCHAR, winner VARCHAR)
what is the to par when the player is hale irwin?
SELECT to_par FROM table_name_80 WHERE player = "hale irwin"
CREATE TABLE table_name_80 (to_par VARCHAR, player VARCHAR)
What was North Melbourne's score as an away team?
SELECT away_team AS score FROM table_name_66 WHERE away_team = "north melbourne"
CREATE TABLE table_name_66 (away_team VARCHAR)
Name the man of the match for 24th
SELECT man_of_the_match FROM table_17120964_5 WHERE date = "24th"
CREATE TABLE table_17120964_5 (man_of_the_match VARCHAR, date VARCHAR)
Name the broadcast date for 6.4 million viewers for the archive of 16mm t/r
SELECT broadcast_date FROM table_1776943_1 WHERE viewers__in_millions_ = "6.4" AND archive = "16mm t/r"
CREATE TABLE table_1776943_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR, archive VARCHAR)
what time is mon may 26 and fri may 30 is 18' 28.27 122.599mph?
SELECT mon_26_may FROM table_14209455_1 WHERE fri_30_may = "18' 28.27 122.599mph"
CREATE TABLE table_14209455_1 (mon_26_may VARCHAR, fri_30_may VARCHAR)
What is the points difference for the team that has allowed 615 points against?
SELECT points_difference FROM table_name_39 WHERE points_against = "615"
CREATE TABLE table_name_39 (points_difference VARCHAR, points_against VARCHAR)
Who wrote the lyrics for Mukti?
SELECT lyricist FROM table_name_14 WHERE film = "mukti"
CREATE TABLE table_name_14 (lyricist VARCHAR, film VARCHAR)
What is Venue, when Date is "14/12/1996"?
SELECT venue FROM table_name_44 WHERE date = "14/12/1996"
CREATE TABLE table_name_44 (venue VARCHAR, date VARCHAR)
What is Headquarter, when Type is Government-Owned, and when Newspaper/Magazine is Al-Jumhuriya?
SELECT headquarter FROM table_name_11 WHERE type = "government-owned" AND newspaper_magazine = "al-jumhuriya"
CREATE TABLE table_name_11 (headquarter VARCHAR, type VARCHAR, newspaper_magazine VARCHAR)
Which chassis has an Alfa Romeo flat-12 engine.
SELECT chassis FROM table_name_76 WHERE engine = "alfa romeo flat-12"
CREATE TABLE table_name_76 (chassis VARCHAR, engine VARCHAR)
What points has 18 for the played and bala rfc as the club?
SELECT points_for FROM table_name_31 WHERE played = "18" AND club = "bala rfc"
CREATE TABLE table_name_31 (points_for VARCHAR, played VARCHAR, club VARCHAR)
What's the highest game number for a game in which Kris Humphries (8) did the high rebounds?
SELECT MAX(game) FROM table_22879323_8 WHERE high_rebounds = "Kris Humphries (8)"
CREATE TABLE table_22879323_8 (game INTEGER, high_rebounds VARCHAR)
Which Driver has an Entrant of Arrows Racing Team and Rounds 1-3?
SELECT driver FROM table_name_25 WHERE entrant = "arrows racing team" AND rounds = "1-3"
CREATE TABLE table_name_25 (driver VARCHAR, entrant VARCHAR, rounds VARCHAR)
What was the results for the candidates listed as bart gordon (d) 76.5% wallace embry (r) 23.5%?
SELECT result FROM table_1341577_43 WHERE candidates = "Bart Gordon (D) 76.5% Wallace Embry (R) 23.5%"
CREATE TABLE table_1341577_43 (result VARCHAR, candidates VARCHAR)
What was the score of the game when the home team was Lincoln City?
SELECT score FROM table_name_74 WHERE home_team = "lincoln city"
CREATE TABLE table_name_74 (score VARCHAR, home_team VARCHAR)
Show the names of pilots and fleet series of the aircrafts they have flied with in ascending order of the rank of the pilot.
SELECT T3.Pilot_name, T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID ORDER BY T3.Rank
CREATE TABLE pilot (Pilot_name VARCHAR, Pilot_ID VARCHAR, Rank VARCHAR); CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE aircraft (Fleet_Series VARCHAR, Aircraft_ID VARCHAR)
Record of 92–70 had what date?
SELECT date FROM table_name_70 WHERE record = "92–70"
CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR)
If fitzroy is the Away team, what Date did they play?
SELECT date FROM table_name_97 WHERE away_team = "fitzroy"
CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR)
What is Score, when Edition is 2011, and when Surface is Hard (i)?
SELECT score FROM table_name_37 WHERE edition = 2011 AND surface = "hard (i)"
CREATE TABLE table_name_37 (score VARCHAR, edition VARCHAR, surface VARCHAR)
What is Timo Lehkonen's highest pick number?
SELECT MAX(pick__number) FROM table_2850912_5 WHERE player = "Timo Lehkonen"
CREATE TABLE table_2850912_5 (pick__number INTEGER, player VARCHAR)
Which positions were in Toronto in 2004?
SELECT position FROM table_10015132_2 WHERE years_in_toronto = "2004"
CREATE TABLE table_10015132_2 (position VARCHAR, years_in_toronto VARCHAR)
What country has 302 as the total?
SELECT country FROM table_name_29 WHERE total = 302
CREATE TABLE table_name_29 (country VARCHAR, total VARCHAR)
Name the result in 2010 for bgm cyworld
SELECT result FROM table_name_98 WHERE year = 2010 AND award = "bgm cyworld"
CREATE TABLE table_name_98 (result VARCHAR, year VARCHAR, award VARCHAR)
How many championship titles for LRS Formula / Laurent Rédon Motorsport?
SELECT championship_titles FROM table_19312274_3 WHERE name = "LRS Formula / Laurent Rédon Motorsport"
CREATE TABLE table_19312274_3 (championship_titles VARCHAR, name VARCHAR)
Who had the most rebounds in the game against New York?
SELECT high_rebounds FROM table_name_74 WHERE opponent = "new york"
CREATE TABLE table_name_74 (high_rebounds VARCHAR, opponent VARCHAR)
How many entries for highest when the low team was baltimore rays?
SELECT COUNT(highest) FROM table_237757_10 WHERE low_team = "Baltimore Rays"
CREATE TABLE table_237757_10 (highest VARCHAR, low_team VARCHAR)
What is the original air date for episode graeme clifford directed and lindsay sturman wrote?
SELECT original_air_date FROM table_28859177_3 WHERE directed_by = "Graeme Clifford" AND written_by = "Lindsay Sturman"
CREATE TABLE table_28859177_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
What was the date of birth of a republican member of the United States House of Representatives who held the term of 1863-1865?
SELECT date_of_birth FROM table_name_80 WHERE party = "republican" AND house_term = "1863-1865"
CREATE TABLE table_name_80 (date_of_birth VARCHAR, party VARCHAR, house_term VARCHAR)
Who ran unsuccessfully against Bill Hefner?
SELECT opponent FROM table_1341522_36 WHERE incumbent = "Bill Hefner"
CREATE TABLE table_1341522_36 (opponent VARCHAR, incumbent VARCHAR)
Find all the payment dates for the payments with an amount larger than 10 and the payments handled by a staff person with the first name Elsa.
SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa'
CREATE TABLE payment (payment_date VARCHAR, staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, first_name VARCHAR); CREATE TABLE payment (payment_date VARCHAR, amount INTEGER)
What is the away team's score when north melbourne is the home team?
SELECT away_team AS score FROM table_name_28 WHERE home_team = "north melbourne"
CREATE TABLE table_name_28 (away_team VARCHAR, home_team VARCHAR)
The Qual of 120.006 took place in what year?
SELECT year FROM table_name_62 WHERE qual = "120.006"
CREATE TABLE table_name_62 (year VARCHAR, qual VARCHAR)
display the full name (first and last name), and salary of those employees who working in any department located in London.
SELECT first_name, last_name, salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'
CREATE TABLE locations (location_id VARCHAR, city VARCHAR); CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR)
How many attended on mathches against atlanta thrashers
SELECT COUNT(attendance) FROM table_17360840_4 WHERE opponent = "Atlanta Thrashers"
CREATE TABLE table_17360840_4 (attendance VARCHAR, opponent VARCHAR)
What stadium is in the city of Debrecen?
SELECT stadium FROM table_name_81 WHERE city = "debrecen"
CREATE TABLE table_name_81 (stadium VARCHAR, city VARCHAR)
Which Time/Retired has Laps smaller than 14, and a Rider of darren barton?
SELECT time_retired FROM table_name_78 WHERE laps < 14 AND rider = "darren barton"
CREATE TABLE table_name_78 (time_retired VARCHAR, laps VARCHAR, rider VARCHAR)
What is the total number of January (°C) temperatures when the July (°C) temperatures were 23/15?
SELECT COUNT(january__) AS °c_ FROM table_21980_1 WHERE july__°c_ = "23/15"
CREATE TABLE table_21980_1 (january__ VARCHAR, july__°c_ VARCHAR)
What is the nationality of the player from the Ohio State University (NCAA) Team?
SELECT nationality FROM table_name_20 WHERE college_junior_club_team__league_ = "ohio state university (ncaa)"
CREATE TABLE table_name_20 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
Name the partner for may 2, 1993
SELECT partner FROM table_name_8 WHERE date = "may 2, 1993"
CREATE TABLE table_name_8 (partner VARCHAR, date VARCHAR)
What is the total number of Tests when the lost is less than 9 for sir fred allen?
SELECT COUNT(tests) FROM table_name_43 WHERE lost < 9 AND name = "sir fred allen"
CREATE TABLE table_name_43 (tests VARCHAR, lost VARCHAR, name VARCHAR)
Find the max, average, and minimum gpa of all students in each department.
SELECT MAX(stu_gpa), AVG(stu_gpa), MIN(stu_gpa), dept_code FROM student GROUP BY dept_code
CREATE TABLE student (dept_code VARCHAR, stu_gpa INTEGER)
Name the profits for market value of 11.8
SELECT profits__billion_$_ FROM table_19112_3 WHERE market_value__billion_$_ = "11.8"
CREATE TABLE table_19112_3 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)
Which Total has a Country of united states, and a Player of andy north?
SELECT AVG(total) FROM table_name_12 WHERE country = "united states" AND player = "andy north"
CREATE TABLE table_name_12 (total INTEGER, country VARCHAR, player VARCHAR)
What is the value for the Wimbledon tournament in 1996?
SELECT 1996 FROM table_name_92 WHERE tournament = "wimbledon"
CREATE TABLE table_name_92 (tournament VARCHAR)
What ws the method of resolution for the fight against joe kielur?
SELECT method FROM table_name_35 WHERE opponent = "joe kielur"
CREATE TABLE table_name_35 (method VARCHAR, opponent VARCHAR)
What the score of the 1992 game?
SELECT score FROM table_name_71 WHERE year = "1992"
CREATE TABLE table_name_71 (score VARCHAR, year VARCHAR)
What is the 6th dail share of votes?
SELECT share_of_votes FROM table_name_67 WHERE dáil = "6th"
CREATE TABLE table_name_67 (share_of_votes VARCHAR, dáil VARCHAR)
What is the date of birth of the person who started their reign in 1986?
SELECT Birth AS name FROM table_name_61 WHERE start_of_reign = 1986
CREATE TABLE table_name_61 (Birth VARCHAR, start_of_reign VARCHAR)
What is the highest laps of the year when the rank was 14?
SELECT MAX(laps) FROM table_name_73 WHERE rank = "14"
CREATE TABLE table_name_73 (laps INTEGER, rank VARCHAR)
what's the extroverted, relationship-oriented where moderate is introverted sanguine
SELECT extroverted, _relationship_oriented FROM table_11256021_1 WHERE moderate = "Introverted Sanguine"
CREATE TABLE table_11256021_1 (extroverted VARCHAR, _relationship_oriented VARCHAR, moderate VARCHAR)
What is the current status of the KDAF ** Station?
SELECT current_status FROM table_1353096_2 WHERE station = "KDAF **"
CREATE TABLE table_1353096_2 (current_status VARCHAR, station VARCHAR)
What is the highest rank of a building erected in 1976 with fewer than 21 floors?
SELECT MAX(rank) FROM table_name_60 WHERE year = 1976 AND floors < 21
CREATE TABLE table_name_60 (rank INTEGER, year VARCHAR, floors VARCHAR)
When ellesmere port & neston is the team what are the points 1?
SELECT points_1 FROM table_17718005_2 WHERE team = "Ellesmere Port & Neston"
CREATE TABLE table_17718005_2 (points_1 VARCHAR, team VARCHAR)
What location did the event kotc: mortal sins take place?
SELECT location FROM table_name_30 WHERE event = "kotc: mortal sins"
CREATE TABLE table_name_30 (location VARCHAR, event VARCHAR)
How many members of the military died in the conflict that had a total of 531 casualties?
SELECT military_deaths FROM table_name_38 WHERE total_casualties = "531"
CREATE TABLE table_name_38 (military_deaths VARCHAR, total_casualties VARCHAR)
Which song has Drunkard Groom listed as additional information?
SELECT song FROM table_2528382_1 WHERE additional_info = "Drunkard Groom"
CREATE TABLE table_2528382_1 (song VARCHAR, additional_info VARCHAR)
What consoles was Shenmue released on?
SELECT console FROM table_12887260_1 WHERE franchise_or_game = "Shenmue"
CREATE TABLE table_12887260_1 (console VARCHAR, franchise_or_game VARCHAR)
Which week's game was attended by 65,272 people?
SELECT week FROM table_name_18 WHERE attendance = "65,272"
CREATE TABLE table_name_18 (week VARCHAR, attendance VARCHAR)
Which competition has a Date of 16/4/01?
SELECT competition FROM table_name_31 WHERE date = "16/4/01"
CREATE TABLE table_name_31 (competition VARCHAR, date VARCHAR)
what are all the positions of players who's hometown is concord, california
SELECT position FROM table_11677691_12 WHERE hometown = "Concord, California"
CREATE TABLE table_11677691_12 (position VARCHAR, hometown VARCHAR)
Which lowest year has a Position of rb, and a College of louisiana state?
SELECT MIN(year) FROM table_name_27 WHERE position = "rb" AND college = "louisiana state"
CREATE TABLE table_name_27 (year INTEGER, position VARCHAR, college VARCHAR)
Name the episode that aired october 8, 1988
SELECT episode_title FROM table_name_81 WHERE original_airdate = "october 8, 1988"
CREATE TABLE table_name_81 (episode_title VARCHAR, original_airdate VARCHAR)
Report the name of all campuses in Los Angeles county.
SELECT campus FROM campuses WHERE county = "Los Angeles"
CREATE TABLE campuses (campus VARCHAR, county VARCHAR)
What was the surface on 23 October 2011?
SELECT surface FROM table_name_97 WHERE date = "23 october 2011"
CREATE TABLE table_name_97 (surface VARCHAR, date VARCHAR)
What is Player, when Round is less than 6, and when Pick is "69"?
SELECT player FROM table_name_78 WHERE round < 6 AND pick = 69
CREATE TABLE table_name_78 (player VARCHAR, round VARCHAR, pick VARCHAR)
How many appointments are there?
SELECT COUNT(*) FROM appointment
CREATE TABLE appointment (Id VARCHAR)
Who many games were played for the series with the Sawhorse Dollar trophy?
SELECT games_played FROM table_name_77 WHERE trophy = "sawhorse dollar"
CREATE TABLE table_name_77 (games_played VARCHAR, trophy VARCHAR)
What shows for 2013 when the 2012 is 2r, and a 2009 is 2r?
SELECT 2013 FROM table_name_29 WHERE 2012 = "2r" AND 2009 = "2r"
CREATE TABLE table_name_29 (Id VARCHAR)
Find the name of companies that do not make DVD drive.
SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive'
CREATE TABLE manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR); CREATE TABLE manufacturers (name VARCHAR)
What was the maximum fab (nm)?
SELECT MAX(fab___nm__) FROM table_26860595_2
CREATE TABLE table_26860595_2 (fab___nm__ INTEGER)
What Year was james mcclure Deputy, and the Name is robert mcphearson?
SELECT year FROM table_name_44 WHERE deputy = "james mcclure" AND name = "robert mcphearson"
CREATE TABLE table_name_44 (year VARCHAR, deputy VARCHAR, name VARCHAR)
What is the Population of the nation that has an Area (km²) of 70,273?
SELECT population FROM table_name_31 WHERE area__km²_ = "70,273"
CREATE TABLE table_name_31 (population VARCHAR, area__km²_ VARCHAR)
Which home team played the away team of collingwood?
SELECT home_team FROM table_name_14 WHERE away_team = "collingwood"
CREATE TABLE table_name_14 (home_team VARCHAR, away_team VARCHAR)
Name the average year with Laps of 6
SELECT AVG(year) FROM table_name_11 WHERE laps = 6
CREATE TABLE table_name_11 (year INTEGER, laps VARCHAR)
What is the weight of Damir Burić?
SELECT weight FROM table_name_95 WHERE name = "damir burić"
CREATE TABLE table_name_95 (weight VARCHAR, name VARCHAR)
What surface did hayley ericksen play on?
SELECT surface FROM table_name_85 WHERE partner = "hayley ericksen"
CREATE TABLE table_name_85 (surface VARCHAR, partner VARCHAR)