question
stringlengths
12
243
answer
stringlengths
18
557
context
stringlengths
27
489
How much is the other black population when the black African population is 37811?
SELECT MIN(other_black_population) FROM table_19149550_7 WHERE black_african_population = 37811
CREATE TABLE table_19149550_7 (other_black_population INTEGER, black_african_population VARCHAR)
What is the method of the match with 1 round and a time of 1:58?
SELECT method FROM table_name_60 WHERE round = 1 AND time = "1:58"
CREATE TABLE table_name_60 (method VARCHAR, round VARCHAR, time VARCHAR)
What were the total number of entries in 2001 that had a front row smaller than 13?
SELECT COUNT(entries) FROM table_name_55 WHERE season = "2001" AND front_row_starts < 13
CREATE TABLE table_name_55 (entries VARCHAR, season VARCHAR, front_row_starts VARCHAR)
What's the most in attendance when the Dolphins points were less than 24 and, they played the New England Patriots?
SELECT MAX(attendance) FROM table_name_77 WHERE dolphins_points < 24 AND opponent = "new england patriots"
CREATE TABLE table_name_77 (attendance INTEGER, dolphins_points VARCHAR, opponent VARCHAR)
How many wins did SD Eibar, which played less than 38 games, have?
SELECT SUM(wins) FROM table_name_24 WHERE club = "sd eibar" AND played < 38
CREATE TABLE table_name_24 (wins INTEGER, club VARCHAR, played VARCHAR)
Builder H. K. Porter, inc who had a type of 0-4-4 Forney locomotive, has what works number?
SELECT works_number FROM table_name_88 WHERE type = "0-4-4 forney locomotive" AND builder = "h. k. porter, inc"
CREATE TABLE table_name_88 (works_number VARCHAR, type VARCHAR, builder VARCHAR)
Who was the opponent after week 9 with an attendance of 44,020?
SELECT opponent FROM table_name_96 WHERE week > 9 AND attendance = "44,020"
CREATE TABLE table_name_96 (opponent VARCHAR, week VARCHAR, attendance VARCHAR)
What is the venue of the napa auto parts 200 race with a mrn radio?
SELECT venue FROM table_name_79 WHERE radio = "mrn" AND race = "napa auto parts 200"
CREATE TABLE table_name_79 (venue VARCHAR, radio VARCHAR, race VARCHAR)
Which Rider has Laps smaller than 24, and a Grid smaller than 12, and a Manufacturer of aprilia?
SELECT rider FROM table_name_89 WHERE laps < 24 AND grid < 12 AND manufacturer = "aprilia"
CREATE TABLE table_name_89 (rider VARCHAR, manufacturer VARCHAR, laps VARCHAR, grid VARCHAR)
How many places associated with latitude 48.247662?
SELECT COUNT(ansi_code) FROM table_18600760_13 WHERE latitude = "48.247662"
CREATE TABLE table_18600760_13 (ansi_code VARCHAR, latitude VARCHAR)
How many models have maximum power output is 162kw (220 ps) at 6,300 rpm?
SELECT COUNT(model) FROM table_2326823_2 WHERE max_power_output = "162kW (220 PS) at 6,300 rpm"
CREATE TABLE table_2326823_2 (model VARCHAR, max_power_output VARCHAR)
How many directors for #15?
SELECT COUNT(directed_by) FROM table_20942925_1 WHERE _number = 15
CREATE TABLE table_20942925_1 (directed_by VARCHAR, _number VARCHAR)
Where did Richmond play as the home team?
SELECT venue FROM table_name_43 WHERE home_team = "richmond"
CREATE TABLE table_name_43 (venue VARCHAR, home_team VARCHAR)
Name the result for william j. driver
SELECT result FROM table_1342426_5 WHERE incumbent = "William J. Driver"
CREATE TABLE table_1342426_5 (result VARCHAR, incumbent VARCHAR)
Name the Nationality of södertälje sk?
SELECT nationality FROM table_name_78 WHERE team_from = "södertälje sk"
CREATE TABLE table_name_78 (nationality VARCHAR, team_from VARCHAR)
When was Dale Alford first elected in the Arkansas 5 district?
SELECT first_elected FROM table_1341897_6 WHERE district = "Arkansas 5"
CREATE TABLE table_1341897_6 (first_elected VARCHAR, district VARCHAR)
Find the country that has the most stadiums.
SELECT country FROM stadium GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE stadium (country VARCHAR)
What is the number for t c (k) when the notation is tl-2212?
SELECT COUNT(t_c__k_) FROM table_101336_1 WHERE notation = "Tl-2212"
CREATE TABLE table_101336_1 (t_c__k_ VARCHAR, notation VARCHAR)
What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826?
SELECT AVG(percentage) FROM table_name_80 WHERE wins > 0 AND points_against > 481 AND losses = 8 AND points_for > 826
CREATE TABLE table_name_80 (percentage INTEGER, points_for VARCHAR, losses VARCHAR, wins VARCHAR, points_against VARCHAR)
Which countries have at least 3 cities?
SELECT T2.country FROM city AS T1 JOIN country AS T2 ON T1.country_id = T2.country_id GROUP BY T2.country_id HAVING COUNT(*) >= 3
CREATE TABLE country (country VARCHAR, country_id VARCHAR); CREATE TABLE city (country_id VARCHAR)
Name the birth date for shirt number 7
SELECT birth_date FROM table_14363116_1 WHERE shirt_no = 7
CREATE TABLE table_14363116_1 (birth_date VARCHAR, shirt_no VARCHAR)
Which Prime Minister's served a term of 344 days?
SELECT Prime AS minister FROM table_name_68 WHERE term_in_office = "344 days"
CREATE TABLE table_name_68 (Prime VARCHAR, term_in_office VARCHAR)
For which constructor does Juan Manuel Fangio drive?
SELECT constructor FROM table_name_59 WHERE driver = "juan manuel fangio"
CREATE TABLE table_name_59 (constructor VARCHAR, driver VARCHAR)
List the names of all distinct wines in alphabetical order.
SELECT DISTINCT Name FROM WINE ORDER BY Name
CREATE TABLE WINE (Name VARCHAR)
What's the time/retired for a grid of 14?
SELECT time_retired FROM table_name_98 WHERE grid = "14"
CREATE TABLE table_name_98 (time_retired VARCHAR, grid VARCHAR)
What is the total amount of Top-25 having a Top-5 greater than 1?
SELECT COUNT(top_25) FROM table_name_92 WHERE top_5 > 1
CREATE TABLE table_name_92 (top_25 VARCHAR, top_5 INTEGER)
what is the assisted when the solo is 6 and sack is less than 5?
SELECT assisted FROM table_name_79 WHERE solo = 6 AND sack < 5
CREATE TABLE table_name_79 (assisted VARCHAR, solo VARCHAR, sack VARCHAR)
Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2
SELECT mountains_classification FROM table_name_82 WHERE young_rider_classification = "francesco casagrande" AND intergiro_classification = "not awarded" AND stage = "2"
CREATE TABLE table_name_82 (mountains_classification VARCHAR, stage VARCHAR, young_rider_classification VARCHAR, intergiro_classification VARCHAR)
What's the average total if the Bronze is 5 and the Silver is less than 4?
SELECT AVG(total) FROM table_name_25 WHERE bronze = 5 AND silver < 4
CREATE TABLE table_name_25 (total INTEGER, bronze VARCHAR, silver VARCHAR)
What is the name of Season #15?
SELECT title FROM table_12564633_1 WHERE season__number = 15
CREATE TABLE table_12564633_1 (title VARCHAR, season__number VARCHAR)
Which Country has Entities of emsa?
SELECT country FROM table_name_57 WHERE entities = "emsa"
CREATE TABLE table_name_57 (country VARCHAR, entities VARCHAR)
Name the number of goals for mauricio pochettino
SELECT COUNT(goals¹) FROM table_24565004_17 WHERE name = "Mauricio Pochettino"
CREATE TABLE table_24565004_17 (goals¹ VARCHAR, name VARCHAR)
What year were the Grizzlies in Providence?
SELECT years_for_grizzlies FROM table_name_19 WHERE school_club_team = "providence"
CREATE TABLE table_name_19 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
What is the average Week when the result was w 28–20, and there were more than 46,888 in attendance?
SELECT AVG(week) FROM table_name_83 WHERE result = "w 28–20" AND attendance > 46 OFFSET 888
CREATE TABLE table_name_83 (week INTEGER, result VARCHAR, attendance VARCHAR)
Which Class has a Year(s) of Manufacture of 1899?
SELECT class FROM table_name_32 WHERE year_s__of_manufacture = "1899"
CREATE TABLE table_name_32 (class VARCHAR, year_s__of_manufacture VARCHAR)
How many heights are listed for Jesse Holley in the WR position?
SELECT COUNT(height) FROM table_22603701_1 WHERE position = "WR" AND name = "Jesse Holley"
CREATE TABLE table_22603701_1 (height VARCHAR, position VARCHAR, name VARCHAR)
How many different numbers of total dances are there for the couple ranked at number 6?
SELECT COUNT(number_of_dances) FROM table_20424140_3 WHERE place = 6
CREATE TABLE table_20424140_3 (number_of_dances VARCHAR, place VARCHAR)
Name the fastest lap for the brazilian grand prix
SELECT fastest_lap FROM table_name_39 WHERE grand_prix = "brazilian grand prix"
CREATE TABLE table_name_39 (fastest_lap VARCHAR, grand_prix VARCHAR)
What state had an elected/assumed office in 2013?
SELECT state FROM table_name_98 WHERE elected_assumed_office = 2013
CREATE TABLE table_name_98 (state VARCHAR, elected_assumed_office VARCHAR)
What is the year listed when tied is listed as 11?
SELECT year FROM table_28848697_4 WHERE tied = 11
CREATE TABLE table_28848697_4 (year VARCHAR, tied VARCHAR)
What is the total population from the 2000 census for the municipality that has a 464.5 square km area and a population density in 2010 larger than 1840?
SELECT COUNT(population_2000_census) FROM table_name_58 WHERE area__km²_ = 464.5 AND population_density_2010___km²_ > 1840
CREATE TABLE table_name_58 (population_2000_census VARCHAR, area__km²_ VARCHAR, population_density_2010___km²_ VARCHAR)
Which School/Club Team has a Years in Orlando of 1997–1998?
SELECT school_club_team FROM table_name_92 WHERE years_in_orlando = "1997–1998"
CREATE TABLE table_name_92 (school_club_team VARCHAR, years_in_orlando VARCHAR)
Which December has Points of 48, and a Game larger than 33?
SELECT SUM(december) FROM table_name_77 WHERE points = 48 AND game > 33
CREATE TABLE table_name_77 (december INTEGER, points VARCHAR, game VARCHAR)
Who had the high rebounds record on December 12?
SELECT high_rebounds FROM table_27712702_8 WHERE date = "December 12"
CREATE TABLE table_27712702_8 (high_rebounds VARCHAR, date VARCHAR)
What sport has a Gold larger than 0, and a Silver of 2?
SELECT sport FROM table_name_7 WHERE gold > 0 AND silver = 2
CREATE TABLE table_name_7 (sport VARCHAR, gold VARCHAR, silver VARCHAR)
What was the featured in Engine through rounds 10-13?
SELECT engine FROM table_name_85 WHERE rounds = "10-13"
CREATE TABLE table_name_85 (engine VARCHAR, rounds VARCHAR)
Find the name of people whose age is greater than any engineer sorted by their age.
SELECT name FROM Person WHERE age > (SELECT MIN(age) FROM person WHERE job = 'engineer') ORDER BY age
CREATE TABLE Person (name VARCHAR, age INTEGER, job VARCHAR); CREATE TABLE person (name VARCHAR, age INTEGER, job VARCHAR)
Which Round has a Location of bahia, brazil?
SELECT AVG(round) FROM table_name_52 WHERE location = "bahia, brazil"
CREATE TABLE table_name_52 (round INTEGER, location VARCHAR)
What is the average capacity for the venue where the team kommunalnik played?
SELECT AVG(capacity) FROM table_name_29 WHERE team = "kommunalnik"
CREATE TABLE table_name_29 (capacity INTEGER, team VARCHAR)
who was running where the winner is daniel montgomery
SELECT candidates FROM table_2668378_13 WHERE incumbent = "Daniel Montgomery"
CREATE TABLE table_2668378_13 (candidates VARCHAR, incumbent VARCHAR)
Elected smaller than 2001, and a District of 83rd has what status?
SELECT status FROM table_name_77 WHERE elected < 2001 AND district = "83rd"
CREATE TABLE table_name_77 (status VARCHAR, elected VARCHAR, district VARCHAR)
How many millions of U.S. viewers watched the episode with the production code of 6AKY07?
SELECT us_viewers__millions_ FROM table_28027307_1 WHERE production_code = "6AKY07"
CREATE TABLE table_28027307_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
Are there registration notes on usek.edu.lb?
SELECT official_registration_notes FROM table_1160660_1 WHERE website = "usek.edu.lb"
CREATE TABLE table_1160660_1 (official_registration_notes VARCHAR, website VARCHAR)
What was the rank # for opponent AT Baylor?
SELECT rank_number FROM table_name_27 WHERE opponent_number = "at baylor"
CREATE TABLE table_name_27 (rank_number VARCHAR, opponent_number VARCHAR)
Find the distinct names of wines produced before the year of 2000 or after the year of 2010.
SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010
CREATE TABLE WINE (Name VARCHAR, YEAR VARCHAR)
Who is the player from the United States with a total less than 293 and won in 1984?
SELECT player FROM table_name_74 WHERE country = "united states" AND total < 293 AND year_s__won = "1984"
CREATE TABLE table_name_74 (player VARCHAR, year_s__won VARCHAR, country VARCHAR, total VARCHAR)
Name the authority for te akau with roll less than 254 and decile of 8
SELECT authority FROM table_name_64 WHERE roll < 254 AND decile = "8" AND area = "te akau"
CREATE TABLE table_name_64 (authority VARCHAR, area VARCHAR, roll VARCHAR, decile VARCHAR)
What is the technical number for Jiang Tingting & Jiang Wenwen, and the total was more than 96.334?
SELECT MAX(technical) FROM table_name_77 WHERE athlete = "jiang tingting & jiang wenwen" AND total > 96.334
CREATE TABLE table_name_77 (technical INTEGER, athlete VARCHAR, total VARCHAR)
What is ICAO, when IATA is "HKG"?
SELECT icao FROM table_name_99 WHERE iata = "hkg"
CREATE TABLE table_name_99 (icao VARCHAR, iata VARCHAR)
What are the exact Cubic inches of the Metric value of 104.955 L?
SELECT cubic_inches__exact_ FROM table_name_9 WHERE metric_value = "104.955 l"
CREATE TABLE table_name_9 (cubic_inches__exact_ VARCHAR, metric_value VARCHAR)
What is the highest goal for a GEO nat., that ended after 2010?
SELECT MAX(goals) FROM table_name_6 WHERE nat = "geo" AND ends > 2010
CREATE TABLE table_name_6 (goals INTEGER, nat VARCHAR, ends VARCHAR)
How many books are there?
SELECT COUNT(*) FROM book
CREATE TABLE book (Id VARCHAR)
How many matches were 44?
SELECT COUNT(dismissals) FROM table_24039597_26 WHERE matches = 44
CREATE TABLE table_24039597_26 (dismissals VARCHAR, matches VARCHAR)
What is 2007, when 2000 is "0 / 4"?
SELECT 2007 FROM table_name_89 WHERE 2000 = "0 / 4"
CREATE TABLE table_name_89 (Id VARCHAR)
What is the hometown for the player that went to the college of washington
SELECT hometown FROM table_name_54 WHERE college = "washington"
CREATE TABLE table_name_54 (hometown VARCHAR, college VARCHAR)
Name the most padilla municipality for quechua
SELECT MAX(padilla_municipality) FROM table_2509350_3 WHERE language = "Quechua"
CREATE TABLE table_2509350_3 (padilla_municipality INTEGER, language VARCHAR)
How many positions have round 3?
SELECT COUNT(position) FROM table_20872722_1 WHERE round = 3
CREATE TABLE table_20872722_1 (position VARCHAR, round VARCHAR)
Show all storm names affecting region "Denmark".
SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark'
CREATE TABLE region (region_id VARCHAR, region_name VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)
What are the lowest points in 2004?
SELECT MIN(points) FROM table_name_96 WHERE year = 2004
CREATE TABLE table_name_96 (points INTEGER, year VARCHAR)
What is the highest Against where they lost less than 20 games, tied more than 2 of them, and they had Favour less than 11?
SELECT MAX(against) FROM table_name_85 WHERE lost < 20 AND draw > 2 AND favour < 11
CREATE TABLE table_name_85 (against INTEGER, favour VARCHAR, lost VARCHAR, draw VARCHAR)
How many laps by Jorge Lorenzo on the Aprilia with a grid bigger than 1?
SELECT SUM(laps) FROM table_name_34 WHERE manufacturer = "aprilia" AND rider = "jorge lorenzo" AND grid > 1
CREATE TABLE table_name_34 (laps INTEGER, grid VARCHAR, manufacturer VARCHAR, rider VARCHAR)
Who was the leader in Points with Assists of 2 tied (5) and Steals of 3 tied (2)?
SELECT points FROM table_name_7 WHERE steals = "3 tied (2)" AND assists = "2 tied (5)"
CREATE TABLE table_name_7 (points VARCHAR, steals VARCHAR, assists VARCHAR)
What is the sum of bronzes for teams with more than 0 silver and a total under 1?
SELECT SUM(bronze) FROM table_name_22 WHERE silver > 0 AND total < 1
CREATE TABLE table_name_22 (bronze INTEGER, silver VARCHAR, total VARCHAR)
Who is the opponent for the game with 37,845 people in attendance?
SELECT opponent FROM table_name_64 WHERE attendance = "37,845"
CREATE TABLE table_name_64 (opponent VARCHAR, attendance VARCHAR)
what episode is called jewboy
SELECT episodes FROM table_name_20 WHERE title = "jewboy"
CREATE TABLE table_name_20 (episodes VARCHAR, title VARCHAR)
What was the score for the June 22 game with attendance 0?
SELECT score FROM table_name_44 WHERE date = "june 22" AND attendance = 0
CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR, attendance VARCHAR)
What was the final score of the game with 7523 in attendance?
SELECT final_score FROM table_25331766_3 WHERE attendance = 7523
CREATE TABLE table_25331766_3 (final_score VARCHAR, attendance VARCHAR)
Who is the player associated with the Esher venue?
SELECT player FROM table_name_63 WHERE venue = "esher"
CREATE TABLE table_name_63 (player VARCHAR, venue VARCHAR)
If the number of barangays is 19, what is the population density?
SELECT pop_density__per_km²_ FROM table_232458_1 WHERE no_of_barangays = 19
CREATE TABLE table_232458_1 (pop_density__per_km²_ VARCHAR, no_of_barangays VARCHAR)
What is the total of cuts made where the top 25 is less than 6 and the top-5 is more than 0?
SELECT SUM(cuts_made) FROM table_name_90 WHERE top_25 < 6 AND top_5 > 0
CREATE TABLE table_name_90 (cuts_made INTEGER, top_25 VARCHAR, top_5 VARCHAR)
what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello?
SELECT MIN(grid) FROM table_name_21 WHERE laps > 7 AND driver = "rubens barrichello"
CREATE TABLE table_name_21 (grid INTEGER, laps VARCHAR, driver VARCHAR)
what is the obama # in carson city
SELECT obama__number FROM table_20424014_1 WHERE county = "Carson City"
CREATE TABLE table_20424014_1 (obama__number VARCHAR, county VARCHAR)
What category was the movie Working Girl nominated?
SELECT category FROM table_18638067_1 WHERE film_title_used_in_nomination = "Working Girl"
CREATE TABLE table_18638067_1 (category VARCHAR, film_title_used_in_nomination VARCHAR)
What was the number in attendance for the Detroit Lions game?
SELECT attendance FROM table_name_21 WHERE opponent = "detroit lions"
CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR)
What's the bulgarian word for January?
SELECT bulgarian_name FROM table_name_95 WHERE english_name = "january"
CREATE TABLE table_name_95 (bulgarian_name VARCHAR, english_name VARCHAR)
Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond?
SELECT winner FROM table_name_80 WHERE team_classification = "la vie claire" AND general_classification = "greg lemond" AND stage = "20"
CREATE TABLE table_name_80 (winner VARCHAR, stage VARCHAR, team_classification VARCHAR, general_classification VARCHAR)
How many against have a difference of 6, with a played greater than 19?
SELECT SUM(against) FROM table_name_57 WHERE difference = "6" AND played > 19
CREATE TABLE table_name_57 (against INTEGER, difference VARCHAR, played VARCHAR)
What is the Nationality of the G Player with 4 years NBA Experience?
SELECT nationality FROM table_name_29 WHERE years_of_nba_experience_[a_] = "4" AND pos = "g"
CREATE TABLE table_name_29 (nationality VARCHAR, pos VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
What is "house", when "what" is "ano", and when "three" is "tulo"?
SELECT house FROM table_name_24 WHERE what = "ano" AND three = "tulo"
CREATE TABLE table_name_24 (house VARCHAR, what VARCHAR, three VARCHAR)
Which Nation has a Record of 15.16 m?
SELECT nation FROM table_name_84 WHERE record = "15.16 m"
CREATE TABLE table_name_84 (nation VARCHAR, record VARCHAR)
What is the L2 cache with ec number of slbmm(c2)slbsr(k0)?
SELECT l2_cache FROM table_name_92 WHERE sspec_number = "slbmm(c2)slbsr(k0)"
CREATE TABLE table_name_92 (l2_cache VARCHAR, sspec_number VARCHAR)
How large was the crowd at Brunswick Street Oval?
SELECT crowd FROM table_name_35 WHERE venue = "brunswick street oval"
CREATE TABLE table_name_35 (crowd VARCHAR, venue VARCHAR)
What city played on april 29?
SELECT city FROM table_name_32 WHERE date = "april 29"
CREATE TABLE table_name_32 (city VARCHAR, date VARCHAR)
On what date was the away team Bournemouth?
SELECT date FROM table_name_24 WHERE away_team = "bournemouth"
CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR)
When winner is the status and 77 is the total days in pbb house what is the edition?
SELECT edition FROM table_19061741_3 WHERE total_days_in_pbb_house = 77 AND status = "Winner"
CREATE TABLE table_19061741_3 (edition VARCHAR, total_days_in_pbb_house VARCHAR, status VARCHAR)
What Percentage did the First game of 1998 have?
SELECT percentage FROM table_name_80 WHERE first_game = 1998
CREATE TABLE table_name_80 (percentage VARCHAR, first_game VARCHAR)
Who won at the Circuit of lakeside international raceway?
SELECT winner FROM table_name_89 WHERE circuit = "lakeside international raceway"
CREATE TABLE table_name_89 (winner VARCHAR, circuit VARCHAR)
What religious groups made up 0.72% of the Indian population in 2001?
SELECT religious_group FROM table_10710364_1 WHERE population__percentage_2001 = "0.72%"
CREATE TABLE table_10710364_1 (religious_group VARCHAR, population__percentage_2001 VARCHAR)
Name the studio for super callanetics
SELECT studio FROM table_27303975_2 WHERE title = "Super Callanetics"
CREATE TABLE table_27303975_2 (studio VARCHAR, title VARCHAR)
What is the average medal total of the country who had 0 silver medals and participated in less than 15 games?
SELECT AVG(total) FROM table_name_41 WHERE games < 15 AND silver < 0
CREATE TABLE table_name_41 (total INTEGER, games VARCHAR, silver VARCHAR)