question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What state is Knoxville and the mideast region located in?
CREATE TABLE table_name_76 (state VARCHAR, region VARCHAR, city VARCHAR)
SELECT state FROM table_name_76 WHERE region = "mideast" AND city = "knoxville"
How many times in 1984 did the Falcons play the Los Angeles Rams?
CREATE TABLE table_16710742_3 (opponents VARCHAR, opponent VARCHAR)
SELECT COUNT(opponents) FROM table_16710742_3 WHERE opponent = "Los Angeles Rams"
What is the date when Joseph is the decision and San Jose is the home team?
CREATE TABLE table_name_40 (date VARCHAR, decision VARCHAR, home VARCHAR)
SELECT date FROM table_name_40 WHERE decision = "joseph" AND home = "san jose"
What is the strongs # for the english spelling of the word jirmejah?
CREATE TABLE table_1242447_2 (strongs__number VARCHAR, english_spelling VARCHAR)
SELECT strongs__number FROM table_1242447_2 WHERE english_spelling = "Jirmejah"
Which team picked from South Carolina college?
CREATE TABLE table_14649522_1 (nfl_team VARCHAR, college VARCHAR)
SELECT nfl_team FROM table_14649522_1 WHERE college = "South Carolina"
What's the Time for an Event of 4x100 m relay and has a Venue of Frankfurt?
CREATE TABLE table_name_17 (time VARCHAR, event VARCHAR, venue VARCHAR)
SELECT time FROM table_name_17 WHERE event = "4x100 m relay" AND venue = "frankfurt"
What is the top speed of the SLK200K that produces 122kw (163hp)?
CREATE TABLE table_name_4 (top_speed VARCHAR, model VARCHAR, power VARCHAR)
SELECT top_speed FROM table_name_4 WHERE model = "slk200k" AND power = "122kw (163hp)"
Show theme and year for all exhibitions with ticket prices lower than 15.
CREATE TABLE exhibition (theme VARCHAR, YEAR VARCHAR, ticket_price INTEGER)
SELECT theme, YEAR FROM exhibition WHERE ticket_price < 15
List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.
CREATE TABLE problem_log (assigned_to_staff_id VARCHAR, problem_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)
SELECT DISTINCT staff_first_name, staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1
Name the number of assets for australia
CREATE TABLE table_24307126_3 (assets_2013__bil VARCHAR, base VARCHAR)
SELECT COUNT(assets_2013__bil) AS $_ FROM table_24307126_3 WHERE base = "Australia"
What was the team record after the Frankfurt Galaxy matchup?
CREATE TABLE table_24852001_2 (team_record VARCHAR, opponent VARCHAR)
SELECT team_record FROM table_24852001_2 WHERE opponent = "Frankfurt Galaxy"
What is the title of production code 514?
CREATE TABLE table_11630008_7 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_11630008_7 WHERE production_code = 514
What is the home team's score when the away team is south melbourne?
CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_12 WHERE away_team = "south melbourne"
How many times is the country ireland and points more than 4?
CREATE TABLE table_name_31 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR)
SELECT COUNT(vuelta_wins) FROM table_name_31 WHERE country = "ireland" AND points > 4
Name the most points for
CREATE TABLE table_13018116_1 (pts_for INTEGER)
SELECT MIN(pts_for) FROM table_13018116_1
In which year are there festivals both inside the 'United States' and outside the 'United States'?
CREATE TABLE festival_detail (YEAR VARCHAR, LOCATION VARCHAR)
SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION <> 'United States'
On what Date was the Results¹ 1:2?
CREATE TABLE table_name_76 (date VARCHAR, results¹ VARCHAR)
SELECT date FROM table_name_76 WHERE results¹ = "1:2"
What laps have a Time of +28.778?
CREATE TABLE table_name_37 (laps VARCHAR, time VARCHAR)
SELECT laps FROM table_name_37 WHERE time = "+28.778"
What was the score and game outcome when High Points was andre miller (17)?
CREATE TABLE table_17323042_11 (score VARCHAR, high_points VARCHAR)
SELECT score FROM table_17323042_11 WHERE high_points = "Andre Miller (17)"
Who is the player that wears number 42?
CREATE TABLE table_10015132_11 (player VARCHAR, no VARCHAR)
SELECT player FROM table_10015132_11 WHERE no = "42"
What did the home team when they played Richmond?
CREATE TABLE table_name_48 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_48 WHERE away_team = "richmond"
What is the venue established after 1948?
CREATE TABLE table_name_77 (venue VARCHAR, established INTEGER)
SELECT venue FROM table_name_77 WHERE established > 1948
What is listed for the Week 3 Sept 8 that has a Week 2 Sept 2 of Florida State (2-0) (4)?
CREATE TABLE table_name_51 (week_3_sept_8 VARCHAR, week_2_sept_2 VARCHAR)
SELECT week_3_sept_8 FROM table_name_51 WHERE week_2_sept_2 = "florida state (2-0) (4)"
What school has a size less than 674, has a county of 19 dubois, and has the rangers as their mascot?
CREATE TABLE table_name_43 (school VARCHAR, mascot VARCHAR, size VARCHAR, county VARCHAR)
SELECT school FROM table_name_43 WHERE size < 674 AND county = "19 dubois" AND mascot = "rangers"
What's the location for men's speed skating?
CREATE TABLE table_name_70 (location VARCHAR, distance VARCHAR)
SELECT location FROM table_name_70 WHERE distance = "men's speed skating"
What was the Opponent in the game with a Score of 102-125?
CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_82 WHERE score = "102-125"
Where are all school boards associated with a number of elementary schools of 96?
CREATE TABLE table_1506619_1 (school_board VARCHAR, number_of_elementary_schools VARCHAR)
SELECT school_board FROM table_1506619_1 WHERE number_of_elementary_schools = 96
What is Award, when Category is Cabello Maluco?
CREATE TABLE table_name_43 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_43 WHERE category = "cabello maluco"
Which institution was founded in 1923?
CREATE TABLE table_13759592_2 (institution VARCHAR, founded VARCHAR)
SELECT institution FROM table_13759592_2 WHERE founded = 1923
Find the id and color description of the products with at least 2 characteristics.
CREATE TABLE product_characteristics (product_id VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR)
SELECT t1.product_id, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING COUNT(*) >= 2
What is the lifespan of Joseph Vance, a democratic-republican from Ohio?
CREATE TABLE table_name_96 (lifespan VARCHAR, party VARCHAR, state VARCHAR, representative VARCHAR)
SELECT lifespan FROM table_name_96 WHERE state = "ohio" AND representative = "joseph vance" AND party = "democratic-republican"
What is the number of the grid for mika häkkinen and more than 45 laps?
CREATE TABLE table_name_65 (grid VARCHAR, driver VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_65 WHERE driver = "mika häkkinen" AND laps > 45
Name the most number in season for leslie hill
CREATE TABLE table_25604014_9 (no_in_season INTEGER, directed_by VARCHAR)
SELECT MAX(no_in_season) FROM table_25604014_9 WHERE directed_by = "Leslie Hill"
What is the semifinal result for Dorrie Timmermans-Van Hall?
CREATE TABLE table_18602462_22 (semifinals VARCHAR, athlete VARCHAR)
SELECT semifinals FROM table_18602462_22 WHERE athlete = "Dorrie Timmermans-Van Hall"
What is the name of the country that has an Area (km²) of 49,036?
CREATE TABLE table_name_47 (member_countries VARCHAR, area__km²_ VARCHAR)
SELECT member_countries FROM table_name_47 WHERE area__km²_ = "49,036"
In what Distance has a Venue of sale?
CREATE TABLE table_name_36 (distance VARCHAR, venue VARCHAR)
SELECT distance FROM table_name_36 WHERE venue = "sale"
What are the dates of leaving office for politician from the province of Seville?
CREATE TABLE table_26362472_1 (left_office VARCHAR, province VARCHAR)
SELECT left_office FROM table_26362472_1 WHERE province = "Seville"
When the percentage is 0.34900000000000003 with more than 13 solo blocks and less than 4713 total attempts, what is the greatest assists?
CREATE TABLE table_name_63 (assists INTEGER, total_attempts VARCHAR, percentage VARCHAR, solo_blocks VARCHAR)
SELECT MAX(assists) FROM table_name_63 WHERE percentage < 0.34900000000000003 AND solo_blocks > 13 AND total_attempts < 4713
What is the rank associated with the team that has more than 2 wins and has greater than 204 points?
CREATE TABLE table_name_34 (rank VARCHAR, wins VARCHAR, points VARCHAR)
SELECT rank FROM table_name_34 WHERE wins > 2 AND points > 204
What was the pick number when mark hayes was drafted?
CREATE TABLE table_name_42 (pick VARCHAR, player VARCHAR)
SELECT pick FROM table_name_42 WHERE player = "mark hayes"
When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)?
CREATE TABLE table_name_46 (solidat__ INTEGER, sn_sb___percentage_ VARCHAR, liquidat__°c_ VARCHAR)
SELECT SUM(solidat__) AS °c_ FROM table_name_46 WHERE sn_sb___percentage_ = "13/17" AND liquidat__°c_ > 283
Which airport is in Saudi Arabia when the ICAO is oejn?
CREATE TABLE table_name_20 (airport VARCHAR, country VARCHAR, icao VARCHAR)
SELECT airport FROM table_name_20 WHERE country = "saudi arabia" AND icao = "oejn"
What is Mark O'Meara's Score?
CREATE TABLE table_name_44 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_44 WHERE player = "mark o'meara"
What was the highest lap count for Walker Racing with a grid larger than 15?
CREATE TABLE table_name_34 (laps INTEGER, team VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_34 WHERE team = "walker racing" AND grid > 15
What is the name of the green house?
CREATE TABLE table_11464746_1 (house_name VARCHAR, colours VARCHAR)
SELECT house_name FROM table_11464746_1 WHERE colours = "Green"
What is the high grid that has a Time/Retired of +6 laps, and under 69 laps?
CREATE TABLE table_name_4 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT MAX(grid) FROM table_name_4 WHERE time_retired = "+6 laps" AND laps < 69
Which is the highest gold that has a bronze greater than 4?
CREATE TABLE table_name_96 (gold INTEGER, bronze INTEGER)
SELECT MAX(gold) FROM table_name_96 WHERE bronze > 4
What party did the incumbent in the Arkansas 2 district belong to?
CREATE TABLE table_1341897_6 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341897_6 WHERE district = "Arkansas 2"
Which classes have more than two captains?
CREATE TABLE captain (CLASS VARCHAR)
SELECT CLASS FROM captain GROUP BY CLASS HAVING COUNT(*) > 2
What year did Ecurie Bleue score more than 0 points?
CREATE TABLE table_name_34 (year INTEGER, pts VARCHAR, entrant VARCHAR)
SELECT AVG(year) FROM table_name_34 WHERE pts > 0 AND entrant = "ecurie bleue"
What is Ryan McCay's speed that has a rank better than 8?
CREATE TABLE table_name_65 (speed VARCHAR, rank VARCHAR, rider VARCHAR)
SELECT speed FROM table_name_65 WHERE rank > 8 AND rider = "ryan mccay"
At what stadium did the Green Bay Packers play an away game?
CREATE TABLE table_name_67 (stadium VARCHAR, visiting_team VARCHAR)
SELECT stadium FROM table_name_67 WHERE visiting_team = "green bay packers"
In what year was 1.35% the average vote per candidate?
CREATE TABLE table_28819393_1 (year VARCHAR, average__percentage_of_vote_per_candidate VARCHAR)
SELECT year FROM table_28819393_1 WHERE average__percentage_of_vote_per_candidate = "1.35"
Which Construction is named of fu-hsing?
CREATE TABLE table_name_89 (construction VARCHAR, name__wade_giles_ VARCHAR)
SELECT construction FROM table_name_89 WHERE name__wade_giles_ = "fu-hsing"
Which Goals have Games smaller than 41, and a Player of mark amos?
CREATE TABLE table_name_57 (goals INTEGER, games VARCHAR, player VARCHAR)
SELECT MIN(goals) FROM table_name_57 WHERE games < 41 AND player = "mark amos"
Name the vice captain for melbourne victory
CREATE TABLE table_1301373_7 (Vice VARCHAR, captain VARCHAR, club VARCHAR)
SELECT Vice - captain FROM table_1301373_7 WHERE club = "Melbourne Victory"
Which Country has a To par of e?
CREATE TABLE table_name_96 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_96 WHERE to_par = "e"
Who is the primary sponsor for crew cheif Rick Ren's team?
CREATE TABLE table_19908313_2 (primary_sponsor_s_ VARCHAR, crew_chief VARCHAR)
SELECT primary_sponsor_s_ FROM table_19908313_2 WHERE crew_chief = "Rick Ren"
Which tournament included an opponent of Marinko Matosevic?
CREATE TABLE table_name_74 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_74 WHERE opponent = "marinko matosevic"
Where is longitude 202.9e?
CREATE TABLE table_16799784_4 (name VARCHAR, longitude VARCHAR)
SELECT name FROM table_16799784_4 WHERE longitude = "202.9E"
What is the MIntage after 2006 of the Ruby-Throated Hummingbird Theme coin?
CREATE TABLE table_name_42 (mintage INTEGER, year VARCHAR, theme VARCHAR)
SELECT MAX(mintage) FROM table_name_42 WHERE year > 2006 AND theme = "ruby-throated hummingbird"
What was Raymond Floyd's score?
CREATE TABLE table_name_58 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_58 WHERE player = "raymond floyd"
What is the total number of overall draft picks for Fred Nixon?
CREATE TABLE table_name_37 (overall VARCHAR, player VARCHAR)
SELECT COUNT(overall) FROM table_name_37 WHERE player = "fred nixon"
What is the number of career caps for a full back, when tour Apps is smaller than 29?
CREATE TABLE table_name_78 (career_caps VARCHAR, position VARCHAR, tour_apps VARCHAR)
SELECT COUNT(career_caps) FROM table_name_78 WHERE position = "full back" AND tour_apps < 29
What country was the race in on April 27?
CREATE TABLE table_name_53 (country VARCHAR, date VARCHAR)
SELECT country FROM table_name_53 WHERE date = "april 27"
What is the catalog number of the album whose label is Atlantic Records and region is the United States?
CREATE TABLE table_name_8 (catalog__number VARCHAR, label VARCHAR, region VARCHAR)
SELECT catalog__number FROM table_name_8 WHERE label = "atlantic records" AND region = "united states"
What was the away team score at Hawthorn?
CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_26 WHERE home_team = "hawthorn"
Can you tell me the High points that has the Date of january 31?
CREATE TABLE table_name_32 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_32 WHERE date = "january 31"
Which Decision has a Date of april 30?
CREATE TABLE table_name_95 (decision VARCHAR, date VARCHAR)
SELECT decision FROM table_name_95 WHERE date = "april 30"
What Genre has Hindi as the Language and Star Gold as the Network?
CREATE TABLE table_name_16 (genre VARCHAR, language VARCHAR, network VARCHAR)
SELECT genre FROM table_name_16 WHERE language = "hindi" AND network = "star gold"
Which Games↑ is the lowest one that has a Number of 98?
CREATE TABLE table_name_88 (games INTEGER, number VARCHAR)
SELECT MIN(games) AS ↑ FROM table_name_88 WHERE number = 98
What is the fleet size of the Vanguard 0-6-0dh class?
CREATE TABLE table_name_73 (fleet_size VARCHAR, class VARCHAR)
SELECT fleet_size FROM table_name_73 WHERE class = "vanguard 0-6-0dh"
Who drove a race car with a Mercedes IC 108e engine and has an 8-10 record?
CREATE TABLE table_name_28 (drivers VARCHAR, engine VARCHAR, races VARCHAR)
SELECT drivers FROM table_name_28 WHERE engine = "mercedes ic 108e" AND races = "8-10"
Find the name of companies whose revenue is between 100 and 150.
CREATE TABLE manufacturers (name VARCHAR, revenue INTEGER)
SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
What is the smallest number of FA Cup Goals for players with 4 FA Cup Appearances, 49 Total Appearances, and more than 17 total goals?
CREATE TABLE table_name_55 (fa_cup_goals INTEGER, total_goals VARCHAR, fa_cup_apps VARCHAR, total_apps VARCHAR)
SELECT MIN(fa_cup_goals) FROM table_name_55 WHERE fa_cup_apps = "4" AND total_apps = "49" AND total_goals > 17
How many silver have 4 as the total with a bronze less than 2?
CREATE TABLE table_name_42 (silver VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT COUNT(silver) FROM table_name_42 WHERE total = 4 AND bronze < 2
What is the lap number for the rank of 13?
CREATE TABLE table_name_78 (laps VARCHAR, rank VARCHAR)
SELECT laps FROM table_name_78 WHERE rank = "13"
What is the sum of the position with less than 0 draws?
CREATE TABLE table_name_39 (position INTEGER, draws INTEGER)
SELECT SUM(position) FROM table_name_39 WHERE draws < 0
What is the laid down date of Kaki?
CREATE TABLE table_name_33 (laid_down VARCHAR, name VARCHAR)
SELECT laid_down FROM table_name_33 WHERE name = "kaki"
Name the position for stanley havili
CREATE TABLE table_26533354_8 (position VARCHAR, player VARCHAR)
SELECT position FROM table_26533354_8 WHERE player = "Stanley Havili"
What is every percentage of overweight or obese adults when 12.4% of children and adolescents are obese?
CREATE TABLE table_18958648_1 (overweight__incl_obese__adults VARCHAR, obese_children_and_adolescents VARCHAR)
SELECT overweight__incl_obese__adults FROM table_18958648_1 WHERE obese_children_and_adolescents = "12.4%"
Which paper's title contains the word "Database"?
CREATE TABLE papers (title VARCHAR)
SELECT title FROM papers WHERE title LIKE "%Database%"
what is the average when the place is 16?
CREATE TABLE table_29583818_3 (average VARCHAR, place VARCHAR)
SELECT average FROM table_29583818_3 WHERE place = 16
Name the least number for xle02007
CREATE TABLE table_28348757_3 (no INTEGER, production_code VARCHAR)
SELECT MIN(no) FROM table_28348757_3 WHERE production_code = "XLE02007"
What is the date of the game being played at Schaeffer Stadium?
CREATE TABLE table_name_52 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_52 WHERE game_site = "schaeffer stadium"
Which Frequency has an Owner of rogers communications rogers radio, and a Call sign of cikz-fm?
CREATE TABLE table_name_77 (frequency VARCHAR, owner VARCHAR, call_sign VARCHAR)
SELECT frequency FROM table_name_77 WHERE owner = "rogers communications rogers radio" AND call_sign = "cikz-fm"
Find the names of the campus which has more faculties in 2002 than every campus in Orange county.
CREATE TABLE campuses (campus VARCHAR, id VARCHAR, county VARCHAR); CREATE TABLE faculty (campus VARCHAR, year VARCHAR)
SELECT T1.campus FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND faculty > (SELECT MAX(faculty) FROM campuses AS T1 JOIN faculty AS T2 ON T1.id = T2.campus WHERE T2.year = 2002 AND T1.county = "Orange")
What game has a score of 89-91?
CREATE TABLE table_name_27 (game INTEGER, score VARCHAR)
SELECT AVG(game) FROM table_name_27 WHERE score = "89-91"
Show white percentages of cities and the crime rates of counties they are in.
CREATE TABLE city (White VARCHAR, County_ID VARCHAR); CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR)
SELECT T1.White, T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID
What is Year Named, when Longitude is 227.5E?
CREATE TABLE table_name_42 (year_named VARCHAR, longitude VARCHAR)
SELECT year_named FROM table_name_42 WHERE longitude = "227.5e"
What kind of Voltage has a Frequency of 2000mhz, and a Release date in q3 2008?
CREATE TABLE table_name_64 (voltage VARCHAR, frequency VARCHAR, release_date VARCHAR)
SELECT voltage FROM table_name_64 WHERE frequency = "2000mhz" AND release_date = "q3 2008"
In what district was the incumbent Charles Hawkins?
CREATE TABLE table_13618584_1 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_13618584_1 WHERE incumbent = "Charles Hawkins"
What did the away team score when the home team was south melbourne?
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_80 WHERE home_team = "south melbourne"
What is the score for Set 1 at 19:21?
CREATE TABLE table_name_59 (score VARCHAR, set_1 VARCHAR)
SELECT score FROM table_name_59 WHERE set_1 = "19:21"
Which episode was watched by 7.2 million viewers?
CREATE TABLE table_2101431_1 (episode VARCHAR, viewers__in_millions_ VARCHAR)
SELECT episode FROM table_2101431_1 WHERE viewers__in_millions_ = "7.2"
What is the Location of the Game on October 8?
CREATE TABLE table_name_73 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_73 WHERE date = "october 8"
How many total medals does rank 3 with less than 40 silver medals?
CREATE TABLE table_name_86 (total INTEGER, silver VARCHAR, rank VARCHAR)
SELECT MAX(total) FROM table_name_86 WHERE silver < 40 AND rank = 3
Name the year for t-10th
CREATE TABLE table_20774360_2 (year VARCHAR, standing VARCHAR)
SELECT year FROM table_20774360_2 WHERE standing = "T-10th"
What was the pole position for jerez?
CREATE TABLE table_name_39 (pole_position VARCHAR, location VARCHAR)
SELECT pole_position FROM table_name_39 WHERE location = "jerez"
What Chassis did Memo Gidley use?
CREATE TABLE table_name_37 (chassis VARCHAR, drivers VARCHAR)
SELECT chassis FROM table_name_37 WHERE drivers = "memo gidley"