answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(capacity__mw_) FROM table_name_17 WHERE notes = "under construction"
What is the total capacity (MW) of the farm that is noted as being under construction?
CREATE TABLE table_name_17 (capacity__mw_ VARCHAR, notes VARCHAR)
SELECT place FROM table_name_38 WHERE mark > 90.73 AND date = "1996-05-25"
What is the place of the record on 1996-05-25 with a mark greater than 90.73?
CREATE TABLE table_name_38 (place VARCHAR, mark VARCHAR, date VARCHAR)
SELECT written_by FROM table_2618152_1 WHERE original_air_date = "January 13, 1999"
The episode with original air date January 13, 1999 is written by who?
CREATE TABLE table_2618152_1 (written_by VARCHAR, original_air_date VARCHAR)
SELECT years_for_rockets FROM table_11734041_18 WHERE no_s_ = "55"
Which years had a jersey number 55
CREATE TABLE table_11734041_18 (years_for_rockets VARCHAR, no_s_ VARCHAR)
SELECT COUNT(year) FROM table_name_81 WHERE pigs < 2089.2
How many years had fewer than 2089.2 pigs?
CREATE TABLE table_name_81 (year VARCHAR, pigs INTEGER)
SELECT written_by FROM table_2866514_1 WHERE us_viewers__million_ = "3.96"
Who wrote the episode with 3.96 million US viewers?
CREATE TABLE table_2866514_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(date_of_birth) FROM table_22344463_2 WHERE name = "Timo Higgins"
If the name is Timo Higgins, what is the total date of birth amount?
CREATE TABLE table_22344463_2 (date_of_birth VARCHAR, name VARCHAR)
SELECT last_1_4 FROM table_name_22 WHERE race = "qua" AND fin_time = "2:03.1"
What is the last 1/4 for the QUA race with a finishing time of 2:03.1?
CREATE TABLE table_name_22 (last_1_4 VARCHAR, race VARCHAR, fin_time VARCHAR)
SELECT COUNT(against) FROM table_name_73 WHERE losses < 3 AND wins > 16
What is the number against when losses are smaller than 3, and wins arelarger than 16?
CREATE TABLE table_name_73 (against VARCHAR, losses VARCHAR, wins VARCHAR)
SELECT result FROM table_name_98 WHERE year = 2010 AND award = "bgm cyworld"
Name the result in 2010 for bgm cyworld
CREATE TABLE table_name_98 (result VARCHAR, year VARCHAR, award VARCHAR)
SELECT AVG(floors) FROM table_name_59 WHERE name = "venetian tower"
What is the average number of floors of the Venetian tower?
CREATE TABLE table_name_59 (floors INTEGER, name VARCHAR)
SELECT matches FROM table_name_75 WHERE draws = "did not qualify" AND year = "1995"
What is Matches, when Draws is "Did Not Qualify", and when Year is "1995"?
CREATE TABLE table_name_75 (matches VARCHAR, draws VARCHAR, year VARCHAR)
SELECT start_date FROM table_name_29 WHERE party = "lsap" AND end_date = "present day"
Name the start date with lsap and end date of present day
CREATE TABLE table_name_29 (start_date VARCHAR, party VARCHAR, end_date VARCHAR)
SELECT label FROM table_name_59 WHERE country_of_release = "usa" AND title = "shake your groove thing"
What was the label for Shake Your Groove Thing in USA?
CREATE TABLE table_name_59 (label VARCHAR, country_of_release VARCHAR, title VARCHAR)
SELECT SUM(murder_and_non_negligent_manslaughter) FROM table_name_86 WHERE larceny_theft = "3,693.9" AND burglary > 1 OFFSET 027.0
What is the total rate of murder and non-negligent manslaughter when larceny-theft is 3,693.9 and burglary is more than 1,027.0?
CREATE TABLE table_name_86 (murder_and_non_negligent_manslaughter INTEGER, larceny_theft VARCHAR, burglary VARCHAR)
SELECT representative FROM table_10284385_1 WHERE date_of_birth = "January 31, 1866"
Which representative has a birthday of January 31, 1866?
CREATE TABLE table_10284385_1 (representative VARCHAR, date_of_birth VARCHAR)
SELECT round FROM table_name_99 WHERE pick__number > 114 AND player = "richard crump"
Richard Crump picked after the 114 pick was drafted in what round?
CREATE TABLE table_name_99 (round VARCHAR, pick__number VARCHAR, player VARCHAR)
SELECT title FROM table_27988540_1 WHERE no_in_series = 155
What is the title of episode 155 in the series?
CREATE TABLE table_27988540_1 (title VARCHAR, no_in_series VARCHAR)
SELECT team_1 FROM table_name_64 WHERE round = "3"
Name the team 1 for round 3
CREATE TABLE table_name_64 (team_1 VARCHAR, round VARCHAR)
SELECT series FROM table_24585157_1 WHERE points = "68"
What series did the racer earn 68 points in?
CREATE TABLE table_24585157_1 (series VARCHAR, points VARCHAR)
SELECT AVG(overall) FROM table_name_69 WHERE pick < 20 AND college = "north carolina" AND round < 8
What is the average overall that has a pick less than 20, North Carolina as the college, with a round less than 8?
CREATE TABLE table_name_69 (overall INTEGER, round VARCHAR, pick VARCHAR, college VARCHAR)
SELECT host_team FROM table_name_22 WHERE stadium = "candlestick park"
Who was the host team at Candlestick Park?
CREATE TABLE table_name_22 (host_team VARCHAR, stadium VARCHAR)
SELECT female_saber FROM table_28372291_1 WHERE average_fencers_rank = "3.5"
What female fenced with a saber on the team that had an average fencer rank of 3.5?
CREATE TABLE table_28372291_1 (female_saber VARCHAR, average_fencers_rank VARCHAR)
SELECT COUNT(rank) FROM table_name_67 WHERE lane = 4
Can you tell me the Total number of Rankthat has the Lane of 4?
CREATE TABLE table_name_67 (rank VARCHAR, lane VARCHAR)
SELECT COUNT(rank) FROM table_name_67 WHERE total > 19.42 AND taijiquan < 9.87
What is the total rank of the athlete with a total larger than 19.42 and a taijiquan less than 9.87?
CREATE TABLE table_name_67 (rank VARCHAR, total VARCHAR, taijiquan VARCHAR)
SELECT record FROM table_name_21 WHERE date = "2009-07-18"
What is the record of the match on 2009-07-18?
CREATE TABLE table_name_21 (record VARCHAR, date VARCHAR)
SELECT opponent_number FROM table_name_25 WHERE site = "memorial stadium • minneapolis, mn" AND date = "10/20/1928"
What is the Opponent name at memorial stadium • minneapolis, mn on 10/20/1928?
CREATE TABLE table_name_25 (opponent_number VARCHAR, site VARCHAR, date VARCHAR)
SELECT virtues FROM table_name_48 WHERE psycho_social_crisis = "intimacy vs. isolation"
What Virtue looks at the intimacy vs. isolation crisis?
CREATE TABLE table_name_48 (virtues VARCHAR, psycho_social_crisis VARCHAR)
SELECT region FROM table_name_71 WHERE catalog = "1766390"
What is the Region of the 1766390 Catalog?
CREATE TABLE table_name_71 (region VARCHAR, catalog VARCHAR)
SELECT season FROM table_name_60 WHERE west = "ev bad wörishofen"
Which season had EV Bad Wörishofen in the West?
CREATE TABLE table_name_60 (season VARCHAR, west VARCHAR)
SELECT competition FROM table_1233808_2 WHERE date_and_time = "17.04.1920 at 15:00"
What competitions record a date and time of 17.04.1920 at 15:00?
CREATE TABLE table_1233808_2 (competition VARCHAR, date_and_time VARCHAR)
SELECT margin_of_victory FROM table_name_12 WHERE runner_s__up = "isao aoki"
What was the margin of victory for Isao Aoki when he was a runner-up?
CREATE TABLE table_name_12 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT championship FROM table_name_8 WHERE opponent = "richard fromberg"
What was the championship during the match with the opponent of richard fromberg?
CREATE TABLE table_name_8 (championship VARCHAR, opponent VARCHAR)
SELECT month, _year FROM table_name_24 WHERE german_submarines_lost < 5 AND sunk_by_warship_or_raider < 6893 AND sunk_by_aircraft < 133746 AND sunk_by_u_boat > 111263
What is the month and year less than 5 German submarines were lost, less than 6893 were sunk by warship or raider, less than 133746 were sunk by aircraft, and more than 111263 were sunk by U-boat?
CREATE TABLE table_name_24 (month VARCHAR, _year VARCHAR, sunk_by_u_boat VARCHAR, sunk_by_aircraft VARCHAR, german_submarines_lost VARCHAR, sunk_by_warship_or_raider VARCHAR)
SELECT galician___reintegrationist__ FROM table_26614365_5 WHERE galician___official__ = "Adeus*"
What is the Galician (reintegrationist) word of the Galician (Official) is adeus*?
CREATE TABLE table_26614365_5 (galician___reintegrationist__ VARCHAR, galician___official__ VARCHAR)
SELECT team FROM table_name_17 WHERE chassis___engine = "porsche 956 b" AND laps < 79
What team has a porsche 956 b chassis-engine with less than 79 laps?
CREATE TABLE table_name_17 (team VARCHAR, chassis___engine VARCHAR, laps VARCHAR)
SELECT player FROM table_name_24 WHERE to_par = "+1" AND score = 73 - 71 - 71 = 217
What Player has a To par of +1 and a Score of 73-71-71=217?
CREATE TABLE table_name_24 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT round FROM table_name_44 WHERE venue = "n" AND result = "5-1"
What round was the game with a result of 5-1 at N venue?
CREATE TABLE table_name_44 (round VARCHAR, venue VARCHAR, result VARCHAR)
SELECT platform FROM table_18590048_1 WHERE units_sold__in_millions_ = "11.18"
What platform sold 11.18 million units?
CREATE TABLE table_18590048_1 (platform VARCHAR, units_sold__in_millions_ VARCHAR)
SELECT home_team AS score FROM table_name_53 WHERE home_team = "richmond"
What is richmond's scores when they are the home team?
CREATE TABLE table_name_53 (home_team VARCHAR)
SELECT goal_difference FROM table_name_99 WHERE team = "chorley"
What is the goal difference for the team from Chorley?
CREATE TABLE table_name_99 (goal_difference VARCHAR, team VARCHAR)
SELECT record FROM table_name_74 WHERE game = 46
What record has 46 as the game?
CREATE TABLE table_name_74 (record VARCHAR, game VARCHAR)
SELECT T2.location_name, T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY COUNT(*) LIMIT 1
Show the location name and code with the least documents.
CREATE TABLE Document_locations (location_code VARCHAR); CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR)
SELECT record FROM table_name_23 WHERE time = "n/a"
Which Record has a Time of n/a?
CREATE TABLE table_name_23 (record VARCHAR, time VARCHAR)
SELECT number FROM table_22481967_1 WHERE operator = "Melbourne and Metropolitan Tramways Board"
List the number for the operator melbourne and metropolitan tramways board.
CREATE TABLE table_22481967_1 (number VARCHAR, operator VARCHAR)
SELECT classroom FROM list GROUP BY classroom ORDER BY COUNT(*) DESC LIMIT 1
Which classroom has the most students?
CREATE TABLE list (classroom VARCHAR)
SELECT AVG(position) FROM table_name_54 WHERE points < 13 AND goals_ + __ > -12
What is the average position of Eesti Põlevkivi Jõhvi when they had less than 13 points and worse than a -12 goal differential?
CREATE TABLE table_name_54 (position INTEGER, points VARCHAR, goals_ VARCHAR, __ VARCHAR)
SELECT pole_position FROM table_23315271_2 WHERE circuit = "Misano World circuit"
Who held the pole position in misano world circuit?
CREATE TABLE table_23315271_2 (pole_position VARCHAR, circuit VARCHAR)
SELECT original_air_date FROM table_25548505_1 WHERE us_viewers__millions_ = "5.30"
What was the original air date of the episode that had 5.30 million U.S. viewers?
CREATE TABLE table_25548505_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT opponent FROM table_name_88 WHERE week > 14 AND game_site = "lincoln financial field" AND time__et_ = "8:30"
Who did they play at lincoln financial field at 8:30 (ET) after week 14?
CREATE TABLE table_name_88 (opponent VARCHAR, time__et_ VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT high_assists FROM table_17102076_9 WHERE date = "March 15"
Who had high assists on March 15?
CREATE TABLE table_17102076_9 (high_assists VARCHAR, date VARCHAR)
SELECT away_team FROM table_name_15 WHERE home_team = "collingwood"
Who was the away team playing against collingwood?
CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR)
SELECT downstream_rate FROM table_name_2 WHERE version = "adsl" AND standard_name = "itu g.992.2"
What's the downstream rate for the Itu g.992.2 having a version of ADSL?
CREATE TABLE table_name_2 (downstream_rate VARCHAR, version VARCHAR, standard_name VARCHAR)
SELECT SUM(year) FROM table_name_6 WHERE position = "4th"
Which Year has a Position of 4th?
CREATE TABLE table_name_6 (year INTEGER, position VARCHAR)
SELECT sub_parish__sokn_ FROM table_name_19 WHERE year_built = "1866"
Which Sub-Parish has a church built in 1866?
CREATE TABLE table_name_19 (sub_parish__sokn_ VARCHAR, year_built VARCHAR)
SELECT circuit FROM table_name_3 WHERE winning_driver = "johnny wakefield"
Which Circuit did Johnny Wakefield win?
CREATE TABLE table_name_3 (circuit VARCHAR, winning_driver VARCHAR)
SELECT location_attendance FROM table_name_27 WHERE record = "11–34"
Which Location Attendance has a Record of 11–34?
CREATE TABLE table_name_27 (location_attendance VARCHAR, record VARCHAR)
SELECT film_title_used_in_nomination FROM table_20963074_1 WHERE original_title = "La boca del lobo"
Name the film title for la boca del lobo
CREATE TABLE table_20963074_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT encoding FROM table_name_44 WHERE tracks__side = "80" AND sectors__track = "11"
what is the encoding when the tracks/side is 80 and sectors/track is 11?
CREATE TABLE table_name_44 (encoding VARCHAR, tracks__side VARCHAR, sectors__track VARCHAR)
SELECT AVG(games) FROM table_name_28 WHERE goals < 1 AND player = "keith j. miller" AND debut_year > 1974
How many games for keith j. miller, who debuted after 1974 with less than 1 goal?
CREATE TABLE table_name_28 (games INTEGER, debut_year VARCHAR, goals VARCHAR, player VARCHAR)
SELECT constructor FROM table_name_14 WHERE laps > 21 AND driver = "john surtees"
Which constructor had laps amounting to more than 21 where the driver was John Surtees?
CREATE TABLE table_name_14 (constructor VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT AVG(total) FROM table_name_6 WHERE year_s__won = "1994 , 1997"
Year(s) won of 1994 , 1997 has what average total?
CREATE TABLE table_name_6 (total INTEGER, year_s__won VARCHAR)
SELECT MAX(time) FROM table_name_24 WHERE number = 21
What is number 21's highest time?
CREATE TABLE table_name_24 (time INTEGER, number VARCHAR)
SELECT serial_numbers FROM table_name_28 WHERE class = "4-8-4 — oooooooo — northern"
What are the serial numbers for the locomotives of Class 4-8-4 — oooooooo — northern?
CREATE TABLE table_name_28 (serial_numbers VARCHAR, class VARCHAR)
SELECT background FROM table_name_71 WHERE hometown = "los angeles, california"
What is the Background of the contestant with a Hometown listed as Los Angeles, California?
CREATE TABLE table_name_71 (background VARCHAR, hometown VARCHAR)
SELECT AVG(year) FROM table_name_80 WHERE attendance < 28 OFFSET 505
How many years have less than 28,505 attendance?
CREATE TABLE table_name_80 (year INTEGER, attendance INTEGER)
SELECT AVG(quantity) FROM table_name_87 WHERE year_s__of_manufacture = "1921/23" AND seats = "40"
What is the average quantity for coaches manufactured in 1921/23, and had 40 seats?
CREATE TABLE table_name_87 (quantity INTEGER, year_s__of_manufacture VARCHAR, seats VARCHAR)
SELECT report FROM table_name_5 WHERE circuit = "hockenheimring"
What is the report status of Hockenheimring circuit?
CREATE TABLE table_name_5 (report VARCHAR, circuit VARCHAR)
SELECT time FROM table_name_36 WHERE period = "1st" AND player = "dustin byfuglien"
What time does Dustin Byfuglien have in 1st period?
CREATE TABLE table_name_36 (time VARCHAR, period VARCHAR, player VARCHAR)
SELECT race FROM table_name_9 WHERE fastest_lap = "keke rosberg" AND location = "paul ricard"
What is the race in Paul Ricard with Keke Rosberg as the fastest lap?
CREATE TABLE table_name_9 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR)
SELECT COUNT(*), T1.year FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' GROUP BY T1.year
What is the number of wins the team Boston Red Stockings got in the postseasons each year in history?
CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE postseason (year VARCHAR, team_id_winner VARCHAR)
SELECT AVG(wheels) FROM table_name_71 WHERE type = "accounting" AND location = "ibm collection"
What average wheels has accounting as the type, with IBM Collection as the location?
CREATE TABLE table_name_71 (wheels INTEGER, type VARCHAR, location VARCHAR)
SELECT pos FROM table_name_2 WHERE team = "new york knicks"
What is the pos for the New York Knicks?
CREATE TABLE table_name_2 (pos VARCHAR, team VARCHAR)
SELECT MIN(democratic_coalition) FROM table_15306124_1
Tell me the least amount of democratic colation
CREATE TABLE table_15306124_1 (democratic_coalition INTEGER)
SELECT season_outcome FROM table_name_70 WHERE school = "sussex tech"
What is the Season Outcome, when the School is Sussex Tech?
CREATE TABLE table_name_70 (season_outcome VARCHAR, school VARCHAR)
SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = "5,454.925"
What is every entry for epoch if periselene is 5,454.925?
CREATE TABLE table_206217_2 (epoch__utc_ VARCHAR, periselene__km_ VARCHAR)
SELECT opponents FROM table_name_9 WHERE round = "round 5"
Name the opponents for round of round 5
CREATE TABLE table_name_9 (opponents VARCHAR, round VARCHAR)
SELECT result FROM table_name_16 WHERE venue = "filbert street"
What is the Result with a Venue that is filbert street?
CREATE TABLE table_name_16 (result VARCHAR, venue VARCHAR)
SELECT won FROM table_14058433_5 WHERE points_for = "643"
what's the won with points for being 643
CREATE TABLE table_14058433_5 (won VARCHAR, points_for VARCHAR)
SELECT MIN(total_pts) FROM table_21471897_2 WHERE team_name = "Team Dennis Conner"
Name the min total pts for team dennis conner
CREATE TABLE table_21471897_2 (total_pts INTEGER, team_name VARCHAR)
SELECT CName FROM COURSE WHERE Days = "MTW"
Which courses are taught on days MTW?
CREATE TABLE COURSE (CName VARCHAR, Days VARCHAR)
SELECT time_retired FROM table_name_12 WHERE grid = 24
I want the time/retired for grid of 24
CREATE TABLE table_name_12 (time_retired VARCHAR, grid VARCHAR)
SELECT player FROM table_name_75 WHERE pick = 10
What player was drafted number 10?
CREATE TABLE table_name_75 (player VARCHAR, pick VARCHAR)
SELECT SUM(week) FROM table_name_99 WHERE opponent = "cleveland browns"
In what week(s) did the Broncos go up against the Cleveland Browns?
CREATE TABLE table_name_99 (week INTEGER, opponent VARCHAR)
SELECT MAX(place) FROM table_name_37 WHERE national_final = "4th" AND points < 139
what is the highest place when the national final is 4th and the points is less than 139?
CREATE TABLE table_name_37 (place INTEGER, national_final VARCHAR, points VARCHAR)
SELECT target FROM table_name_96 WHERE brand_name = "mylotarg"
What's the target for the brand mylotarg?
CREATE TABLE table_name_96 (target VARCHAR, brand_name VARCHAR)
SELECT AVG(position) FROM table_name_18 WHERE pilot = "erwin sommer"
What is Erwin Sommer's average position?
CREATE TABLE table_name_18 (position INTEGER, pilot VARCHAR)
SELECT record FROM table_name_45 WHERE time__seconds_ < 5.22
Tell me the record for a time in seconds smaller than 5.22.
CREATE TABLE table_name_45 (record VARCHAR, time__seconds_ INTEGER)
SELECT runners_up FROM table_name_68 WHERE semifinalists = "guillermo pérez-roldán andrea gaudenzi"
Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi?
CREATE TABLE table_name_68 (runners_up VARCHAR, semifinalists VARCHAR)
SELECT venue FROM table_name_8 WHERE score = "734-5d"
Which venue had a score of 734-5d?
CREATE TABLE table_name_8 (venue VARCHAR, score VARCHAR)
SELECT semifinal_matches FROM table_2413292_1 WHERE commercial_name = "Buick WCT Finals"
Who played in the semi finals matches at the Buick WCT finals?
CREATE TABLE table_2413292_1 (semifinal_matches VARCHAR, commercial_name VARCHAR)
SELECT call_sign FROM table_name_77 WHERE erp_w > 10 AND frequency_mhz = 103.7
When the frequency is 103.7 MHz and the ERP W is more than 10, what is the call sign?
CREATE TABLE table_name_77 (call_sign VARCHAR, erp_w VARCHAR, frequency_mhz VARCHAR)
SELECT SUM(crowd) FROM table_name_41 WHERE ground = "subiaco oval"
What kind of Crowd has a Ground of subiaco oval?
CREATE TABLE table_name_41 (crowd INTEGER, ground VARCHAR)
SELECT ihsaa_class FROM table_name_51 WHERE size < 400 AND mascot = "tigers"
What is the IHSAA class of the school with less than 400 students and a mascot of the Tigers?
CREATE TABLE table_name_51 (ihsaa_class VARCHAR, size VARCHAR, mascot VARCHAR)
SELECT arabic FROM table_26919_6 WHERE tigrinya = "ħamuʃte"
Name the arabic for ħamuʃte
CREATE TABLE table_26919_6 (arabic VARCHAR, tigrinya VARCHAR)
SELECT date FROM weather WHERE max_temperature_f > 85
Give me the dates when the max temperature was higher than 85.
CREATE TABLE weather (date VARCHAR, max_temperature_f INTEGER)
SELECT date FROM table_name_21 WHERE pole_position = "joakim bonnier"
What date was Joakim Bonnier in the pole position?
CREATE TABLE table_name_21 (date VARCHAR, pole_position VARCHAR)
SELECT finish FROM table_name_91 WHERE to_par < 23 AND total = 294
What is the Finish of the Player with a To par of 23 of less and Total of 294?
CREATE TABLE table_name_91 (finish VARCHAR, to_par VARCHAR, total VARCHAR)
SELECT COUNT(grid) FROM table_name_53 WHERE time_retired = "+7.346"
What is the total grid of the team with a time/retired of +7.346?
CREATE TABLE table_name_53 (grid VARCHAR, time_retired VARCHAR)
SELECT type FROM table_name_97 WHERE frequency = 1480
What is Type, when Frequency is "1480"?
CREATE TABLE table_name_97 (type VARCHAR, frequency VARCHAR)