answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(population__2000_census__) FROM table_2588674_1 WHERE area_km² = "2.33"
What is the population for the place with an area of 2.33 km2?
CREATE TABLE table_2588674_1 (population__2000_census__ INTEGER, area_km² VARCHAR)
SELECT date FROM table_13557843_7 WHERE game = 72
what's the date with game being 72
CREATE TABLE table_13557843_7 (date VARCHAR, game VARCHAR)
SELECT score FROM table_name_73 WHERE visitor = "columbus"
Name the score for columbus visitor
CREATE TABLE table_name_73 (score VARCHAR, visitor VARCHAR)
SELECT close_of_reactor FROM table_name_13 WHERE rated_power = "945 mw" AND finish_construction = "may 10, 1978"
When did the reactor that has a rated power of 945 MW and ended construction on May 10, 1978 close?
CREATE TABLE table_name_13 (close_of_reactor VARCHAR, rated_power VARCHAR, finish_construction VARCHAR)
SELECT SUM(total_foreign_born__1000_) FROM table_name_7 WHERE country = "sweden" AND born_in_other_eu_state__1000_ > 477
How many Foreign-born (1000) are from Sweden and born in some other EU state (1000) larger than 477?
CREATE TABLE table_name_7 (total_foreign_born__1000_ INTEGER, country VARCHAR, born_in_other_eu_state__1000_ VARCHAR)
SELECT record FROM table_28768469_7 WHERE high_assists = "Earl Watson (6)"
What is the record listed when the high assists is earl watson (6)?
CREATE TABLE table_28768469_7 (record VARCHAR, high_assists VARCHAR)
SELECT MAX(number_of_people) FROM table_16048129_5 WHERE average_family_size = "2.8"
What is the largest population in regions where the average family size is 2.8 people?
CREATE TABLE table_16048129_5 (number_of_people INTEGER, average_family_size VARCHAR)
SELECT MAX(wins) FROM table_name_4 WHERE losses > "2" AND points = "2" AND place > 7
Name the most wins for losses more than 2 and points of two with place larger than 7
CREATE TABLE table_name_4 (wins INTEGER, place VARCHAR, losses VARCHAR, points VARCHAR)
SELECT region_name FROM region WHERE region_name <> 'Denmark'
Show names for all regions except for Denmark.
CREATE TABLE region (region_name VARCHAR)
SELECT birth_state FROM table_name_74 WHERE name = "charles cotesworth pinckney" AND election_year = 1808
What was the birth state of Charles Cotesworth Pinckney who was elected in 1808?
CREATE TABLE table_name_74 (birth_state VARCHAR, name VARCHAR, election_year VARCHAR)
SELECT tie_no FROM table_name_56 WHERE home_team = "sheffield wednesday"
What was the tie resulting from Sheffield Wednesday's game?
CREATE TABLE table_name_56 (tie_no VARCHAR, home_team VARCHAR)
SELECT COUNT(opponent) FROM table_23308178_4 WHERE record = "3-2-2"
How many opponents were there with the record of 3-2-2?
CREATE TABLE table_23308178_4 (opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_38 WHERE attendance = "1,644"
What was the score of the game when the attendance was 1,644?
CREATE TABLE table_name_38 (score VARCHAR, attendance VARCHAR)
SELECT AVG(year) FROM table_name_33 WHERE movie = "rangam"
What's the average year a Rangam movie came out?
CREATE TABLE table_name_33 (year INTEGER, movie VARCHAR)
SELECT date FROM table_name_2 WHERE home_away_game = "away" AND week = 8
What is the date of the away game in week 8?
CREATE TABLE table_name_2 (date VARCHAR, home_away_game VARCHAR, week VARCHAR)
SELECT date FROM table_name_94 WHERE venue = "adelaide oval"
When has a Venue of Adelaide Oval?
CREATE TABLE table_name_94 (date VARCHAR, venue VARCHAR)
SELECT AVG(silver) FROM table_name_2 WHERE gold = 1 AND bronze > 5
What is the average silver medals a team that has 1 gold and more than 5 bronze has?
CREATE TABLE table_name_2 (silver INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT location FROM table_name_71 WHERE floors < 27 AND building = "150 elgin"
Which Location has Floors smaller than 27, and a Building of 150 elgin?
CREATE TABLE table_name_71 (location VARCHAR, floors VARCHAR, building VARCHAR)
SELECT MIN(year) FROM table_name_74 WHERE location = "gelredome, arnhem" AND anthem = "technoboy - next dimensional world"
What is the earliest year it was located in gelredome, arnhem, and a Anthem of technoboy - next dimensional world?
CREATE TABLE table_name_74 (year INTEGER, location VARCHAR, anthem VARCHAR)
SELECT result FROM table_2668387_18 WHERE candidates = "Walter Jones (DR) 99.0% Henry Lee (F) 1.0%"
Name the result for walter jones (dr) 99.0% henry lee (f) 1.0%
CREATE TABLE table_2668387_18 (result VARCHAR, candidates VARCHAR)
SELECT COUNT(enrollment) FROM table_13759592_1 WHERE high_school = "Roosevelt"
How many enrollment figures are provided for Roosevelt High School?
CREATE TABLE table_13759592_1 (enrollment VARCHAR, high_school VARCHAR)
SELECT AVG(year) FROM table_name_91 WHERE rank < 3
What's the average year with a rank less than 3?
CREATE TABLE table_name_91 (year INTEGER, rank INTEGER)
SELECT years_as_tallest FROM table_name_6 WHERE name = "independence hall"
How many years as tallest building was Independence Hall?
CREATE TABLE table_name_6 (years_as_tallest VARCHAR, name VARCHAR)
SELECT MIN(year) FROM table_15001753_1
What was the first year of the Lithuanian National Badminton Championships?
CREATE TABLE table_15001753_1 (year INTEGER)
SELECT SUM(goals_against) FROM table_name_73 WHERE points < 13 AND wins < 3 AND goals_for < 15
How many goals against were scored when the points were smaller than 13, the wins were smaller than 3, and the goals for were smaller than 15?
CREATE TABLE table_name_73 (goals_against INTEGER, goals_for VARCHAR, points VARCHAR, wins VARCHAR)
SELECT AVG(round) FROM table_name_64 WHERE pick__number < 236 AND position = "offensive guard"
what is the round when the pick # is less than 236 and the position is offensive guard?
CREATE TABLE table_name_64 (round INTEGER, pick__number VARCHAR, position VARCHAR)
SELECT chassis FROM table_name_82 WHERE engine = "cosworth" AND drivers = "scott pruett" AND team = "dick simon racing"
What chassis belongs with the Cosworth Engine driven by Scott Pruett on the Dick Simon Racing team?
CREATE TABLE table_name_82 (chassis VARCHAR, team VARCHAR, engine VARCHAR, drivers VARCHAR)
SELECT year_built FROM table_name_83 WHERE church_name = "hopperstad stavkyrkje"
When was the Hopperstad Stavkyrkje built?
CREATE TABLE table_name_83 (year_built VARCHAR, church_name VARCHAR)
SELECT time FROM table_22098274_1 WHERE site = "USF Softball Field • Tampa, FL" AND result = "W4-0"
At what time is the site usf softball field • tampa, fl and w4-0 is the result?
CREATE TABLE table_22098274_1 (time VARCHAR, site VARCHAR, result VARCHAR)
SELECT MAX(conceded) FROM table_name_39 WHERE points > 17 AND team = "guaraní" AND losses < 6
Which Conceded is the highest one that has Points larger than 17, and a Team of guaraní, and Losses smaller than 6?
CREATE TABLE table_name_39 (conceded INTEGER, losses VARCHAR, points VARCHAR, team VARCHAR)
SELECT nation FROM table_name_35 WHERE world_rank = "2" AND birth_date = "1976-12-20"
what is the nation when the world rank is 2 and the birth date is 1976-12-20?
CREATE TABLE table_name_35 (nation VARCHAR, world_rank VARCHAR, birth_date VARCHAR)
SELECT AVG(worst_score) FROM table_name_81 WHERE best_dancer = "mario lopez" AND dance = "tango"
What is the average Worst score for Mario Lopez as the Best dancer and Tango as the Dance?
CREATE TABLE table_name_81 (worst_score INTEGER, best_dancer VARCHAR, dance VARCHAR)
SELECT type FROM table_name_21 WHERE reported_price = "$500,000" AND person_s_ = "angelina jolie"
What type of photos of Angelina Jolie cost $500,000?
CREATE TABLE table_name_21 (type VARCHAR, reported_price VARCHAR, person_s_ VARCHAR)
SELECT mountains_classification FROM table_name_15 WHERE general_classification = "denis menchov" AND winner = "carlos sastre"
What's the mountains classification of winner Carlos Sastre when the general classification is Denis Menchov?
CREATE TABLE table_name_15 (mountains_classification VARCHAR, general_classification VARCHAR, winner VARCHAR)
SELECT croats FROM table_2374338_2 WHERE roma = "3.1%"
What is every value for Croats if the value of Roma is 3.1%?
CREATE TABLE table_2374338_2 (croats VARCHAR, roma VARCHAR)
SELECT points_against FROM table_12828723_5 WHERE "played" = "played"
What was the points againt when played is played?
CREATE TABLE table_12828723_5 (points_against VARCHAR)
SELECT total_passengers FROM table_13836704_9 WHERE freight__metric_tonnes_ = 827
what's the total passengers with freight (metric tonnes) being 827
CREATE TABLE table_13836704_9 (total_passengers VARCHAR, freight__metric_tonnes_ VARCHAR)
SELECT pro_stock FROM table_name_83 WHERE top_fuel = "tony schumacher" AND funny_car = "tony pedregon"
Who won Pro Stock the year Tony Schumacher won Top Fuel and Tony Pedregon won Funny Car?
CREATE TABLE table_name_83 (pro_stock VARCHAR, top_fuel VARCHAR, funny_car VARCHAR)
SELECT mens_singles FROM table_28138035_26 WHERE womens_singles = "Lau Sui Fei"
Who won the mens singles when lau sui fei won the womens singles?
CREATE TABLE table_28138035_26 (mens_singles VARCHAR, womens_singles VARCHAR)
SELECT republican_ticket FROM table_name_8 WHERE office = "inspector of state prisons"
Who was on the Republican ticket for the office of Inspector of state prisons?
CREATE TABLE table_name_8 (republican_ticket VARCHAR, office VARCHAR)
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code
Show all cities and corresponding number of students.
CREATE TABLE Student (city_code VARCHAR)
SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Davis" AND t3.lname = "Steven"
List the clubs having "Davis Steven" as a member.
CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)
SELECT city FROM table_name_97 WHERE years = "1971-1974"
Which city had years 1971-1974?
CREATE TABLE table_name_97 (city VARCHAR, years VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_31 WHERE position = "rw" AND player = "don murdoch"
What is the College/Junior/Club Team (League) when the position is rw, and the player is Don Murdoch?
CREATE TABLE table_name_31 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR)
SELECT december FROM table_15945862_1 WHERE january = "8.77"
What December is 8.77 in January
CREATE TABLE table_15945862_1 (december VARCHAR, january VARCHAR)
SELECT gdp__nominal_ FROM table_11780179_1 WHERE country = "Uzbekistan"
What is the GDP (nominal) for Uzbekistan?
CREATE TABLE table_11780179_1 (gdp__nominal_ VARCHAR, country VARCHAR)
SELECT score FROM table_name_67 WHERE home_team = "liverpool"
What is the score in the Liverpool home game?
CREATE TABLE table_name_67 (score VARCHAR, home_team VARCHAR)
SELECT ds_division FROM table_12485020_1 WHERE divisional_secretary = "S. H. Muzammil"
What is the name of the DS division where the divisional secretary is S. H. Muzammil?
CREATE TABLE table_12485020_1 (ds_division VARCHAR, divisional_secretary VARCHAR)
SELECT arabic_capital_name FROM table_15694696_1 WHERE english_capital_name = "Manama"
what is the arabic capital name wher the english capital name is manama?
CREATE TABLE table_15694696_1 (arabic_capital_name VARCHAR, english_capital_name VARCHAR)
SELECT MIN(build_date) FROM table_name_48 WHERE disposal = "scrapped 1941"
Which railway had the earliest build date and a disposal of "Scrapped 1941?"
CREATE TABLE table_name_48 (build_date INTEGER, disposal VARCHAR)
SELECT AVG(attendance) FROM table_name_70 WHERE week = 8
What was the Attendance on Week 8?
CREATE TABLE table_name_70 (attendance INTEGER, week VARCHAR)
SELECT state FROM table_name_76 WHERE region = "mideast" AND city = "knoxville"
What state is Knoxville and the mideast region located in?
CREATE TABLE table_name_76 (state VARCHAR, region VARCHAR, city VARCHAR)
SELECT incumbent FROM table_1342379_23 WHERE candidates = "Percy E. Quin (D) Unopposed"
who is the the incumbent with candidates being percy e. quin (d) unopposed
CREATE TABLE table_1342379_23 (incumbent VARCHAR, candidates VARCHAR)
SELECT MAX(released) FROM table_24600706_1 WHERE song = "Apologize"
Name the most released for apologize
CREATE TABLE table_24600706_1 (released INTEGER, song VARCHAR)
SELECT opponent FROM table_name_25 WHERE venue = "memorial stadium"
Who was the opponent at memorial stadium?
CREATE TABLE table_name_25 (opponent VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_85 WHERE home_team = "carlton"
What away team score has carlton home team?
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
SELECT MIN(norwegian_americans__1980_) FROM table_1182314_5 WHERE state = "Rhode Island"
what is the minimum norwegian americans (1980) where state is rhode island
CREATE TABLE table_1182314_5 (norwegian_americans__1980_ INTEGER, state VARCHAR)
SELECT opponent FROM table_name_44 WHERE score = "6-5" AND loss = "white (2-1)"
Who was the opponent during the game with a score of 6-5 and a loss of White (2-1)?
CREATE TABLE table_name_44 (opponent VARCHAR, score VARCHAR, loss VARCHAR)
SELECT COUNT(nationality) FROM table_1013129_8 WHERE pick = 193
How many nationalities are the pick 193?
CREATE TABLE table_1013129_8 (nationality VARCHAR, pick VARCHAR)
SELECT AVG(played) FROM table_name_13 WHERE lost < 3 AND drawn < 0
What Played has a Lost smaller than 3, and a Drawn smaller than 0?
CREATE TABLE table_name_13 (played INTEGER, lost VARCHAR, drawn VARCHAR)
SELECT MAX(no) FROM table_1705429_1 WHERE constituency = "Leitrim"
Name the most number of leitrim
CREATE TABLE table_1705429_1 (no INTEGER, constituency VARCHAR)
SELECT tournament FROM table_name_29 WHERE year = 1984
Where was the 1984 Olympics hosted?
CREATE TABLE table_name_29 (tournament VARCHAR, year VARCHAR)
SELECT MIN(attendance) FROM table_name_30 WHERE home = "linköpings hc" AND date = "monday, november 10" AND round > 18
What is the lowest attendance on Monday, November 10 when linköpings hc was the home team and there were more than 18 rounds?
CREATE TABLE table_name_30 (attendance INTEGER, round VARCHAR, home VARCHAR, date VARCHAR)
SELECT SUM(year) FROM table_name_68 WHERE start < 30
Name the sum of year when start is less than 30
CREATE TABLE table_name_68 (year INTEGER, start INTEGER)
SELECT week FROM table_name_44 WHERE tv_time = "cbs 1:00pm" AND attendance = "72,714"
Which Week has a TV Time of cbs 1:00pm, and an Attendance of 72,714?
CREATE TABLE table_name_44 (week VARCHAR, tv_time VARCHAR, attendance VARCHAR)
SELECT team FROM table_name_30 WHERE college = "virginia tech"
What is the team when the college is virginia tech?
CREATE TABLE table_name_30 (team VARCHAR, college VARCHAR)
SELECT COUNT(sec_wins) FROM table_22993636_2 WHERE overall_record = "30-4"
How many different SEC Win counts does the team with an overall record of 30-4 have?
CREATE TABLE table_22993636_2 (sec_wins VARCHAR, overall_record VARCHAR)
SELECT wins FROM table_name_82 WHERE podiums = "0" AND team = "team autotecnica"
How many wins did Team Autotecnica, with 0 podiums, have?
CREATE TABLE table_name_82 (wins VARCHAR, podiums VARCHAR, team VARCHAR)
SELECT player FROM table_name_40 WHERE position = "wide receiver"
What Player is a Wide Receiver?
CREATE TABLE table_name_40 (player VARCHAR, position VARCHAR)
SELECT points FROM table_name_52 WHERE lost = "3"
How many points does the team with 3 losses have?
CREATE TABLE table_name_52 (points VARCHAR, lost VARCHAR)
SELECT MIN(overall) FROM table_name_32 WHERE college = "san diego state" AND pick__number < 30
College of san diego state, and a Pick # smaller than 30 is what lowest overall?
CREATE TABLE table_name_32 (overall INTEGER, college VARCHAR, pick__number VARCHAR)
SELECT MAX(number_of_seasons_in_top_division) FROM table_18143210_2 WHERE first_season_in_top_division = "1990-91"
How many 'number of seasons in top division' were played if the 'first season in top division' games is in 1990-91?
CREATE TABLE table_18143210_2 (number_of_seasons_in_top_division INTEGER, first_season_in_top_division VARCHAR)
SELECT location FROM table_name_28 WHERE total_score = "149"
What's the location that has a total of 149?
CREATE TABLE table_name_28 (location VARCHAR, total_score VARCHAR)
SELECT AVG(bronze) FROM table_name_70 WHERE rank < 5 AND gold > 2 AND total = 9 AND silver < 4
How many Bronze medals were received by the nation that Ranked less than 5 and received more than 2 Gold medals, less than 4 Silver medals with a Total of 9 medals?
CREATE TABLE table_name_70 (bronze INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT MIN(game) FROM table_name_62 WHERE date = "23 april" AND batting_2nd = "england 5/113 (19)"
what is the game for 23 april when batting 2nd is england 5/113 (19)?
CREATE TABLE table_name_62 (game INTEGER, date VARCHAR, batting_2nd VARCHAR)
SELECT MIN(gdp__ppp__per_capita) FROM table_25869317_1
What is the lowest GDP (ppp) per capita?
CREATE TABLE table_25869317_1 (gdp__ppp__per_capita INTEGER)
SELECT to_par FROM table_name_35 WHERE place = "t6" AND player = "tom watson"
When Tom Watson placed t6, what was the 2 par?
CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT greek__modern_ FROM table_1841901_1 WHERE polish__extinct_ = "słyszałeś był / słyszałaś była"
Name the greek modern for słyszałeś był / słyszałaś była
CREATE TABLE table_1841901_1 (greek__modern_ VARCHAR, polish__extinct_ VARCHAR)
SELECT segment_b FROM table_15187735_21 WHERE segment_c = "Artificial Flowers"
What is listed in segment b when segment c is artificial flowers?
CREATE TABLE table_15187735_21 (segment_b VARCHAR, segment_c VARCHAR)
SELECT win_percentage FROM table_name_9 WHERE wins = "46"
Where the wins are 46, what is the win%?
CREATE TABLE table_name_9 (win_percentage VARCHAR, wins VARCHAR)
SELECT player FROM table_name_83 WHERE rank = 3
Which player is ranked number 3?
CREATE TABLE table_name_83 (player VARCHAR, rank VARCHAR)
SELECT record FROM table_name_22 WHERE method = "tko (punches and elbows)"
What was the record when TKO (punches and elbows) was the method?
CREATE TABLE table_name_22 (record VARCHAR, method VARCHAR)
SELECT written_by FROM table_23799653_1 WHERE directed_by = "Karen Gaviola"
Who wrote the episode whose director is Karen Gaviola?
CREATE TABLE table_23799653_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT eviction_result FROM table_name_10 WHERE net_vote = "31.86%"
Which Eviction result has a Net vote of 31.86%?
CREATE TABLE table_name_10 (eviction_result VARCHAR, net_vote VARCHAR)
SELECT incumbent FROM table_1805191_48 WHERE district = "Washington 1"
Who is the incumbent in the Washington 1 district?
CREATE TABLE table_1805191_48 (incumbent VARCHAR, district VARCHAR)
SELECT 1 AS st_member FROM table_name_82 WHERE elected = "1620/21"
Who is the 1st member elected in 1620/21?
CREATE TABLE table_name_82 (elected VARCHAR)
SELECT SUM(year) FROM table_name_24 WHERE bsu_head_coach = "bus conner"
What is the sum of the years with bus conner as the BSU head coach?
CREATE TABLE table_name_24 (year INTEGER, bsu_head_coach VARCHAR)
SELECT 2012 FROM table_name_4 WHERE tournament = "tournament played"
What is the 2012 that has tournament played as the tournament?
CREATE TABLE table_name_4 (tournament VARCHAR)
SELECT score FROM table_name_64 WHERE date = "april 5"
What is the score on April 5?
CREATE TABLE table_name_64 (score VARCHAR, date VARCHAR)
SELECT SUM(score) FROM table_name_96 WHERE to_par = "e" AND country = "united states"
What was the score of the golfer from the united states who had a To par of e?
CREATE TABLE table_name_96 (score INTEGER, to_par VARCHAR, country VARCHAR)
SELECT result FROM table_1341663_11 WHERE incumbent = "Billy Lee Evans"
In the race involving Billy Lee Evans as the seated Representative, was he elected again?
CREATE TABLE table_1341663_11 (result VARCHAR, incumbent VARCHAR)
SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1
Which district has the largest population?
CREATE TABLE district (district_name VARCHAR, city_population VARCHAR)
SELECT average FROM table_12338595_1 WHERE state = "New York"
How much is the average score for New York state?
CREATE TABLE table_12338595_1 (average VARCHAR, state VARCHAR)
SELECT date_final FROM table_name_59 WHERE year = "1982"
What date final has 1982 as the year?
CREATE TABLE table_name_59 (date_final VARCHAR, year VARCHAR)
SELECT name FROM table_name_92 WHERE license = "gpl v2" AND current_version = "0.9.9"
Who has a licence of gpl v2 and a current version of 0.9.9?
CREATE TABLE table_name_92 (name VARCHAR, license VARCHAR, current_version VARCHAR)
SELECT year FROM table_name_62 WHERE points < 20 AND chassis = "dallara 3087"
Name the year for points less than 20 and chassis of dallara 3087
CREATE TABLE table_name_62 (year VARCHAR, points VARCHAR, chassis VARCHAR)
SELECT where_built FROM table_name_79 WHERE year_built < 1858
Where was something built earlier than 1858?
CREATE TABLE table_name_79 (where_built VARCHAR, year_built INTEGER)
SELECT COUNT(date) FROM table_17058226_10 WHERE team = "Phoenix"
On how many dates did the Timberwolves play Phoenix?
CREATE TABLE table_17058226_10 (date VARCHAR, team VARCHAR)
SELECT week FROM table_name_85 WHERE kickoff_[a_] = "1:00" AND record = "4-5-1"
Which week has a Kickoff time of 1:00 with a record of 4-5-1?
CREATE TABLE table_name_85 (week VARCHAR, record VARCHAR, kickoff_ VARCHAR, a_ VARCHAR)
SELECT venue FROM table_name_7 WHERE result = "0-5"
Where was a 0-5 game played?
CREATE TABLE table_name_7 (venue VARCHAR, result VARCHAR)