answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT result FROM table_name_46 WHERE director = "veljko bulajić category:articles with hcards" AND original_title = "sarajevski atentat"
What is Result, when Director is Veljko Bulajić category:articles with hcards, and when Original title is Sarajevski Atentat?
CREATE TABLE table_name_46 (result VARCHAR, director VARCHAR, original_title VARCHAR)
SELECT district FROM table_2668401_17 WHERE incumbent = "Edwin Gray"
In what district was the incumbent Edwin Gray?
CREATE TABLE table_2668401_17 (district VARCHAR, incumbent VARCHAR)
SELECT t2.department_name, t1.department_id FROM degree_programs AS t1 JOIN departments AS t2 ON t1.department_id = t2.department_id GROUP BY t1.department_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name and id of the department with the most number of degrees ?
CREATE TABLE degree_programs (department_id VARCHAR); CREATE TABLE departments (department_name VARCHAR, department_id VARCHAR)
SELECT MIN(assists) FROM table_24850487_5 WHERE minutes = 863
How many assists did the player who had 863 minutes have?
CREATE TABLE table_24850487_5 (assists INTEGER, minutes VARCHAR)
SELECT qual_1 FROM table_name_43 WHERE best = "1:01.704"
Who had a qual 1 best of 1:01.704?
CREATE TABLE table_name_43 (qual_1 VARCHAR, best VARCHAR)
SELECT chassis FROM table_name_55 WHERE engine = "maserati straight-6" AND entrant = "officine alfieri maserati" AND points < 6
What is the chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fewer than 6 points?
CREATE TABLE table_name_55 (chassis VARCHAR, points VARCHAR, engine VARCHAR, entrant VARCHAR)
SELECT 1989 FROM table_name_95 WHERE 1983 = "a" AND 1987 = "a"
What is the 1989 result for the tournament that had a 1983 and 1987 result of A?
CREATE TABLE table_name_95 (Id VARCHAR)
SELECT kickoff__et_ FROM table_name_67 WHERE result = "w 34–23"
Which Kickoff (ET) has a Result of w 34–23?
CREATE TABLE table_name_67 (kickoff__et_ VARCHAR, result VARCHAR)
SELECT bullet FROM table_name_25 WHERE shoulder = "10.92 (.430)"
Which bullet has a Shoulder of 10.92 (.430)?
CREATE TABLE table_name_25 (bullet VARCHAR, shoulder VARCHAR)
SELECT college_junior_club_team FROM table_1213511_4 WHERE player = "George Hulme"
What team does George Hulme play for?
CREATE TABLE table_1213511_4 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT AVG(points) FROM table_name_2 WHERE chassis = "lola lc88"
What is the average points for the chassis LOLA LC88?
CREATE TABLE table_name_2 (points INTEGER, chassis VARCHAR)
SELECT studio_s_ FROM table_name_92 WHERE year = 2007 AND director = "paul greengrass"
What studio did Paul Greengrass direct in 2007?
CREATE TABLE table_name_92 (studio_s_ VARCHAR, year VARCHAR, director VARCHAR)
SELECT team_from FROM table_name_59 WHERE pick__number = 148
Which Team has a Pick # of 148?
CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR)
SELECT skip FROM table_name_22 WHERE lead = "marju velga"
Which Skip did marju velga lead?
CREATE TABLE table_name_22 (skip VARCHAR, lead VARCHAR)
SELECT census_ranking FROM table_176521_2 WHERE official_name = "Maugerville"
What are the census ranking(s) of maugerville?
CREATE TABLE table_176521_2 (census_ranking VARCHAR, official_name VARCHAR)
SELECT year FROM table_name_45 WHERE position = "9"
Which year had a position of 9?
CREATE TABLE table_name_45 (year VARCHAR, position VARCHAR)
SELECT COUNT(game) FROM table_name_95 WHERE opponent = "athlone town"
What is the total game number with athlone town as the opponent?
CREATE TABLE table_name_95 (game VARCHAR, opponent VARCHAR)
SELECT opponent FROM table_name_26 WHERE location = "gold coast , australia" AND method = "submission (punches)"
Which Opponent has a Location of gold coast , australia, and a Method of submission (punches)?
CREATE TABLE table_name_26 (opponent VARCHAR, location VARCHAR, method VARCHAR)
SELECT high_assists FROM table_17288861_9 WHERE score = "L 93–103 (OT)"
Name the high assists for l 93–103 (ot)
CREATE TABLE table_17288861_9 (high_assists VARCHAR, score VARCHAR)
SELECT written_by FROM table_2430014_6 WHERE directed_by = "John Trefor"
Name the written by for john trefor
CREATE TABLE table_2430014_6 (written_by VARCHAR, directed_by VARCHAR)
SELECT outgoing_manager FROM table_name_28 WHERE team = "necaxa"
Who was the outgoing manager for the team, necaxa?
CREATE TABLE table_name_28 (outgoing_manager VARCHAR, team VARCHAR)
SELECT playoffs FROM table_name_38 WHERE reg_season = "4th, central"
What was the Rampage's result in the playoffs in the year that their regular season resulted in 4th, central?
CREATE TABLE table_name_38 (playoffs VARCHAR, reg_season VARCHAR)
SELECT AVG(attendance) FROM table_name_6 WHERE away = "marathon"
What was the average attendance when marathon was the away team?
CREATE TABLE table_name_6 (attendance INTEGER, away VARCHAR)
SELECT conference FROM table_name_8 WHERE season = 2009 AND format = "super leg final"
What conference has 2009 as the season, with super leg final as the format?
CREATE TABLE table_name_8 (conference VARCHAR, season VARCHAR, format VARCHAR)
SELECT home_team AS score FROM table_name_70 WHERE away_team = "geelong"
Who was the home team against Geelong?
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
SELECT SUM(total) FROM table_name_29 WHERE gold < 0
Which Total has a Gold smaller than 0?
CREATE TABLE table_name_29 (total INTEGER, gold INTEGER)
SELECT period FROM table_name_90 WHERE country = "south korea" AND peak_position = "#1"
Name the period for south korea with peak position of #1
CREATE TABLE table_name_90 (period VARCHAR, country VARCHAR, peak_position VARCHAR)
SELECT name FROM table_name_46 WHERE license = "gpl" AND actual_version = "0.8.29wip4"
What name has a License of gpl, and an Actual version of 0.8.29wip4?
CREATE TABLE table_name_46 (name VARCHAR, license VARCHAR, actual_version VARCHAR)
SELECT year FROM table_name_13 WHERE superlative = "oldest winner"
In what year had the oldest winner?
CREATE TABLE table_name_13 (year VARCHAR, superlative VARCHAR)
SELECT T1.Name, T3.Name, T3.Hours FROM Scientists AS T1 JOIN AssignedTo AS T2 ON T1.SSN = T2.Scientist JOIN Projects AS T3 ON T2.Project = T3.Code ORDER BY T3.Name, T1.Name
List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.
CREATE TABLE AssignedTo (Scientist VARCHAR, Project VARCHAR); CREATE TABLE Projects (Name VARCHAR, Hours VARCHAR, Code VARCHAR); CREATE TABLE Scientists (Name VARCHAR, SSN VARCHAR)
SELECT game_site FROM table_name_8 WHERE attendance = "78,722"
What game did Jets have an attendance of 78,722?
CREATE TABLE table_name_8 (game_site VARCHAR, attendance VARCHAR)
SELECT MAX(overall) FROM table_name_51 WHERE round = 16
What is the highest overall number for someone from round 16?
CREATE TABLE table_name_51 (overall INTEGER, round VARCHAR)
SELECT SUM(area_km_2) FROM table_name_66 WHERE population = 542
What is the sum of the areas for populations of 542?
CREATE TABLE table_name_66 (area_km_2 INTEGER, population VARCHAR)
SELECT venue FROM table_name_19 WHERE date = "20 may"
Where was the game played on 20 may?
CREATE TABLE table_name_19 (venue VARCHAR, date VARCHAR)
SELECT missouri FROM table_19153842_1 WHERE year = 2002
Name the missouri for 2002
CREATE TABLE table_19153842_1 (missouri VARCHAR, year VARCHAR)
SELECT shuji_kondo FROM table_name_90 WHERE mazada = "x" AND ryuji_hijikata = "hijikata (14:24)"
Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24)
CREATE TABLE table_name_90 (shuji_kondo VARCHAR, mazada VARCHAR, ryuji_hijikata VARCHAR)
SELECT 2006 FROM table_name_64 WHERE 2013 = "2–4"
What shows for 2006, when 2013 is 2–4?
CREATE TABLE table_name_64 (Id VARCHAR)
SELECT MIN(laps) FROM table_name_17 WHERE team = "perkins engineering"
What are Perkins Engineering's fewest laps?
CREATE TABLE table_name_17 (laps INTEGER, team VARCHAR)
SELECT COUNT(bruce_coulter_award) FROM table_228149_1 WHERE game = "9th"
Nam the total number for bruce coulter award for 9th game
CREATE TABLE table_228149_1 (bruce_coulter_award VARCHAR, game VARCHAR)
SELECT location FROM table_name_67 WHERE record = "23-17"
What is the location for the 23-17 record?
CREATE TABLE table_name_67 (location VARCHAR, record VARCHAR)
SELECT MAX(crowd) FROM table_name_64 WHERE away_team = "footscray"
What was the crowd population for Footscray as an away team?
CREATE TABLE table_name_64 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(wins) FROM table_1012730_1 WHERE year = 1983
How many wins happened in 1983?
CREATE TABLE table_1012730_1 (wins INTEGER, year VARCHAR)
SELECT MIN(year) FROM table_name_69 WHERE time = "24:55:58" AND place > 3
Which Year is the lowest one that has a Time of 24:55:58, and a Place larger than 3?
CREATE TABLE table_name_69 (year INTEGER, time VARCHAR, place VARCHAR)
SELECT MIN(pick__number) FROM table_2897457_8 WHERE player = "Paul Krake"
What was the pick number when Paul Krake was selected?
CREATE TABLE table_2897457_8 (pick__number INTEGER, player VARCHAR)
SELECT ties FROM table_name_38 WHERE wins = "0"
What is the tie with a win of 0?
CREATE TABLE table_name_38 (ties VARCHAR, wins VARCHAR)
SELECT year FROM table_name_87 WHERE venue = "beijing"
Which year was held in beijing?
CREATE TABLE table_name_87 (year VARCHAR, venue VARCHAR)
SELECT second_party FROM table_name_95 WHERE first_party = "conservative" AND second_member = "john cotes"
What is the second party that has a conservative first party and second member John Cotes?
CREATE TABLE table_name_95 (second_party VARCHAR, first_party VARCHAR, second_member VARCHAR)
SELECT SUM(1956) FROM table_name_40 WHERE county = "vâlcea" AND 2011 < 371714
Which 1956 has a County of vâlcea, and a 2011 smaller than 371714?
CREATE TABLE table_name_40 (county VARCHAR)
SELECT career_and_other_notes FROM table_1557974_1 WHERE stable = "Oguruma"
What are the career and other notes for wrestlers whose stable is oguruma?
CREATE TABLE table_1557974_1 (career_and_other_notes VARCHAR, stable VARCHAR)
SELECT second_place FROM table_2331549_1 WHERE champion = "South Dakota School of Mines & Technology"
Who came in second place when the champion was south dakota school of mines & technology?
CREATE TABLE table_2331549_1 (second_place VARCHAR, champion VARCHAR)
SELECT laps FROM table_name_40 WHERE rank > 13 AND time_retired = "accident" AND qual < 136.98
What laps have a rank larger than 13 and the Time/Retired is accident, and a Qual smaller than 136.98?
CREATE TABLE table_name_40 (laps VARCHAR, qual VARCHAR, rank VARCHAR, time_retired VARCHAR)
SELECT AVG(round) FROM table_name_52 WHERE pick__number > 26 AND position = "defensive back"
Which Round is the average one that has a Pick # larger than 26, and a Position of defensive back?
CREATE TABLE table_name_52 (round INTEGER, pick__number VARCHAR, position VARCHAR)
SELECT result FROM table_name_79 WHERE year = 1995
What was the result in 1995?
CREATE TABLE table_name_79 (result VARCHAR, year VARCHAR)
SELECT MAX(for_prohibition) FROM table_120778_1
Name the max for prohibition.
CREATE TABLE table_120778_1 (for_prohibition INTEGER)
SELECT AVG(year) FROM table_name_51 WHERE trim = "ls/lt" AND power = "hp (kw)"
What's the Year average that's got Trim of LS/LT and Power of HP (KW)?
CREATE TABLE table_name_51 (year INTEGER, trim VARCHAR, power VARCHAR)
SELECT overall_record FROM table_22993636_2 WHERE team = "LSU"
What's LSU's overall record/
CREATE TABLE table_22993636_2 (overall_record VARCHAR, team VARCHAR)
SELECT alvin_greene__d_ FROM table_name_22 WHERE other = "9%"
What was the vote for Alvin Green when other was 9%?
CREATE TABLE table_name_22 (alvin_greene__d_ VARCHAR, other VARCHAR)
SELECT COUNT(super_cup) FROM table_name_97 WHERE title_playoff = 0 AND total > 9 AND league < 11
What is the total number of Super Cup, when Title Playoff is "0", when Total is greater than 9, and when League is less than 11?
CREATE TABLE table_name_97 (super_cup VARCHAR, league VARCHAR, title_playoff VARCHAR, total VARCHAR)
SELECT pick__number FROM table_name_68 WHERE round = 11
What was the pick # for round 11?
CREATE TABLE table_name_68 (pick__number VARCHAR, round VARCHAR)
SELECT location FROM table_name_8 WHERE home_team = "mexico" AND date = "11 april 2013"
What is the location of 11 April 2013 and Mexico Home team?
CREATE TABLE table_name_8 (location VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT gross_mw FROM table_name_94 WHERE type = "phase ii"
Type of phase ii has what gross mw?
CREATE TABLE table_name_94 (gross_mw VARCHAR, type VARCHAR)
SELECT date_of_death FROM table_name_76 WHERE date_of_inauguration = "date of inauguration"
What was the date of death entry in the row that has a date of inauguration entry of date of inauguration?
CREATE TABLE table_name_76 (date_of_death VARCHAR, date_of_inauguration VARCHAR)
SELECT score FROM table_name_17 WHERE game > 7 AND points < 14
Which Score has a Game larger than 7, and Points smaller than 14?
CREATE TABLE table_name_17 (score VARCHAR, game VARCHAR, points VARCHAR)
SELECT league_division FROM table_name_29 WHERE location = "n/a"
What League/Division has a Location of n/a?
CREATE TABLE table_name_29 (league_division VARCHAR, location VARCHAR)
SELECT COUNT(result) FROM table_26555737_1 WHERE year__ceremony_ = "2012 (85th)"
When 2012 (85th) is the year (ceremony) how many results?
CREATE TABLE table_26555737_1 (result VARCHAR, year__ceremony_ VARCHAR)
SELECT SUM(against) FROM table_name_70 WHERE losses < 9 AND ntfa_div_2 = "old scotch"
Old Scotch had less than 9 losses and how much against?
CREATE TABLE table_name_70 (against INTEGER, losses VARCHAR, ntfa_div_2 VARCHAR)
SELECT altitude__km_ FROM table_148578_1 WHERE yield__approximate_ = "1.4 megatons"
What was the altitude of the yield of 1.4 megatons?
CREATE TABLE table_148578_1 (altitude__km_ VARCHAR, yield__approximate_ VARCHAR)
SELECT written_by FROM table_name_71 WHERE original_air_date = "october 9, 2000"
What is the name of the writer for the episode with an Original air date of october 9, 2000?
CREATE TABLE table_name_71 (written_by VARCHAR, original_air_date VARCHAR)
SELECT eliminated_from_competition FROM table_28068063_3 WHERE proceed_to_quarter_final = "Pau"
Who was eliminated from the competition when pau proceed to the quarter final?
CREATE TABLE table_28068063_3 (eliminated_from_competition VARCHAR, proceed_to_quarter_final VARCHAR)
SELECT MAX(founded) FROM table_255188_1 WHERE joined = 1978
When was the University founded that joined in 1978?
CREATE TABLE table_255188_1 (founded INTEGER, joined VARCHAR)
SELECT vacator FROM table_2417340_4 WHERE district = "Georgia 2nd"
What was the vacator for georgia 2nd?
CREATE TABLE table_2417340_4 (vacator VARCHAR, district VARCHAR)
SELECT game FROM table_name_16 WHERE result = "88-85 ot (1-0)"
Result of 88-85 ot (1-0) involves what game?
CREATE TABLE table_name_16 (game VARCHAR, result VARCHAR)
SELECT record FROM table_name_22 WHERE location_attendance = "palace of auburn hills 8,108"
Which Record has a Location/Attendance of palace of auburn hills 8,108?
CREATE TABLE table_name_22 (record VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_name_79 WHERE record = "15-14-4"
What date had a record of 15-14-4?
CREATE TABLE table_name_79 (date VARCHAR, record VARCHAR)
SELECT SUM(played) FROM table_name_64 WHERE goals_against = 45 AND goals_for < 65
How much Played has Goals Against of 45, and Goals For smaller than 65?
CREATE TABLE table_name_64 (played INTEGER, goals_against VARCHAR, goals_for VARCHAR)
SELECT COUNT(score) FROM table_17001658_7 WHERE game = 37
How many scores are listed for game 37?
CREATE TABLE table_17001658_7 (score VARCHAR, game VARCHAR)
SELECT COUNT(year) FROM table_name_78 WHERE location = "helsinki"
How many years has there been a competition in Helsinki?
CREATE TABLE table_name_78 (year VARCHAR, location VARCHAR)
SELECT COUNT(school) FROM table_16225511_2 WHERE percent = "0.667"
How many schools had the win loss ratio of 0.667?
CREATE TABLE table_16225511_2 (school VARCHAR, percent VARCHAR)
SELECT municipality FROM table_16278673_1 WHERE population = "57"
Name the municpality for 57 populaton
CREATE TABLE table_16278673_1 (municipality VARCHAR, population VARCHAR)
SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE web_thickness__mm_ = "4.7"
What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)?
CREATE TABLE table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, web_thickness__mm_ VARCHAR)
SELECT location_attendance FROM table_23286112_7 WHERE high_assists = "Russell Westbrook (5)" AND high_rebounds = "Nenad Krstic (8)"
What location attendance has russell westbrook (5) as high assists and nenad krstic (8) as high rebounds?
CREATE TABLE table_23286112_7 (location_attendance VARCHAR, high_assists VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(silver) FROM table_name_63 WHERE nation = "france" AND rank > 14
What is the total number of Silvers held by France when their rank was over 14?
CREATE TABLE table_name_63 (silver VARCHAR, nation VARCHAR, rank VARCHAR)
SELECT COUNT(outcome) FROM table_2215159_2 WHERE surface = "Grass" AND partner = "Chuck McKinley" AND year = 1962
How many outcomes were there for matches played with Chuck McKinley on grass in 1962?
CREATE TABLE table_2215159_2 (outcome VARCHAR, year VARCHAR, surface VARCHAR, partner VARCHAR)
SELECT MIN(swimsuit) FROM table_name_87 WHERE interview < 8.574 AND average > 8.532
Which smallest swimsuit number's interview was less than 8.574 when the average number was bigger than 8.532?
CREATE TABLE table_name_87 (swimsuit INTEGER, interview VARCHAR, average VARCHAR)
SELECT elimination AS Move FROM table_name_88 WHERE wrestler = "maria"
What is Maria's Elimination Move?
CREATE TABLE table_name_88 (elimination VARCHAR, wrestler VARCHAR)
SELECT l2_cache FROM table_27277284_27 WHERE order_part_number = "AMQL64DAM22GG"
What are the L2 cache specifications of part number amql64dam22gg?
CREATE TABLE table_27277284_27 (l2_cache VARCHAR, order_part_number VARCHAR)
SELECT nhl_team FROM table_1013129_8 WHERE player = "Mike Loach"
Which NHL team has player Mike Loach?
CREATE TABLE table_1013129_8 (nhl_team VARCHAR, player VARCHAR)
SELECT MIN(round) FROM table_name_82 WHERE event = "kotc 25: flaming fury"
What was the lowest round for the KOTC 25: Flaming Fury event?
CREATE TABLE table_name_82 (round INTEGER, event VARCHAR)
SELECT COUNT(type) FROM table_261927_2 WHERE location = "Bridgewater, Massachusetts"
How many different types are allocated to the institution in Bridgewater, Massachusetts?
CREATE TABLE table_261927_2 (type VARCHAR, location VARCHAR)
SELECT location FROM table_name_74 WHERE opponent_team = "napoli"
Where did Milan play against Napoli?
CREATE TABLE table_name_74 (location VARCHAR, opponent_team VARCHAR)
SELECT longitude FROM table_name_61 WHERE name = "raskova paterae"
What is Longitude, when Name is Raskova Paterae?
CREATE TABLE table_name_61 (longitude VARCHAR, name VARCHAR)
SELECT year_s__won FROM table_name_80 WHERE total = 285 AND player = "hale irwin"
What is the year that Hale Irwin won with 285 points?
CREATE TABLE table_name_80 (year_s__won VARCHAR, total VARCHAR, player VARCHAR)
SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games"
What was the platform when the developer was Telltale Games?
CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR)
SELECT MIN(vertical) FROM table_272313_1 WHERE aspect_ratio = "16:9" AND scanning = "interlaced"
What was the minimum vertical measurement if the aspect ratio is 16:9 and scanning is interlaced?
CREATE TABLE table_272313_1 (vertical INTEGER, aspect_ratio VARCHAR, scanning VARCHAR)
SELECT AVG(games) FROM table_name_89 WHERE years_at_club = "1974–1975" AND goals = 4
Which Games have Years at club of 1974–1975, and Goals of 4?
CREATE TABLE table_name_89 (games INTEGER, years_at_club VARCHAR, goals VARCHAR)
SELECT home_team AS score FROM table_name_57 WHERE venue = "lake oval"
What is the home team of lake oval's score?
CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR)
SELECT largest_metropolitan_area FROM table_name_99 WHERE name = "central-west"
What is the largest metropolitan area of the Central-West?
CREATE TABLE table_name_99 (largest_metropolitan_area VARCHAR, name VARCHAR)
SELECT MAX(overall) FROM table_name_89 WHERE name = "robert alford" AND round > 2
Which highest overall figure had Robert Alford as a name and a round of more than 2?
CREATE TABLE table_name_89 (overall INTEGER, name VARCHAR, round VARCHAR)
SELECT date FROM table_name_25 WHERE time = "20:10"
What date had a time of 20:10?
CREATE TABLE table_name_25 (date VARCHAR, time VARCHAR)
SELECT COUNT(year) FROM table_2201724_1 WHERE score_in_the_final = "3–6, 4–6, 2–6"
List the total number of years that have a score of 3–6, 4–6, 2–6.
CREATE TABLE table_2201724_1 (year VARCHAR, score_in_the_final VARCHAR)