answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(_percentage_hydropower) FROM table_name_59 WHERE _percentage_coal = 4.9 AND _percentage_nuclear_power > 0
what is the highest % hydropower when % coal is 4.9 and % nuclear power is more than 0?
CREATE TABLE table_name_59 (_percentage_hydropower INTEGER, _percentage_coal VARCHAR, _percentage_nuclear_power VARCHAR)
SELECT res FROM table_name_67 WHERE record = "4-2"
What is the result of the team with the 4-2 record?
CREATE TABLE table_name_67 (res VARCHAR, record VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_93 WHERE to_par = 15
How much money was there when the to par was 15?
CREATE TABLE table_name_93 (money___ INTEGER, to_par VARCHAR)
SELECT margin_of_victory FROM table_name_30 WHERE tournament = "travelers championship"
what is the margin of victory for the tournament travelers championship?
CREATE TABLE table_name_30 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT COUNT(pick__number) FROM table_name_22 WHERE position = "defensive end" AND overall < 33
How many Picks have a Position of defensive end, and an Overall smaller than 33?
CREATE TABLE table_name_22 (pick__number VARCHAR, position VARCHAR, overall VARCHAR)
SELECT COUNT(no_votes) FROM table_256286_8 WHERE description = "$1500 Tax Exemption Amendment"
How many data are there under NO vote with a description of $1500 tax exemption amendment?
CREATE TABLE table_256286_8 (no_votes VARCHAR, description VARCHAR)
SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY COUNT(*) DESC LIMIT 1
Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.
CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR)
SELECT SUM(attendance) FROM table_name_63 WHERE date = "november 16"
What is the sum of the attendance on November 16?
CREATE TABLE table_name_63 (attendance INTEGER, date VARCHAR)
SELECT COUNT(crowd) FROM table_name_46 WHERE away_team = "north melbourne"
When North Melbourne is the Away team, what is the total number of the Crowd?
CREATE TABLE table_name_46 (crowd VARCHAR, away_team VARCHAR)
SELECT enrollment FROM table_29483673_1 WHERE affiliation = "Private"
What is the enrollment at the private university?
CREATE TABLE table_29483673_1 (enrollment VARCHAR, affiliation VARCHAR)
SELECT game_site FROM table_14977592_1 WHERE date = "December 12, 1965"
Name the game site for december 12, 1965
CREATE TABLE table_14977592_1 (game_site VARCHAR, date VARCHAR)
SELECT ikavian FROM table_27730_9 WHERE ijekavian = "lijep"
What's the Ikavian translation of the Ijekavian word lijep?
CREATE TABLE table_27730_9 (ikavian VARCHAR, ijekavian VARCHAR)
SELECT MAX(week) FROM table_name_10 WHERE opponent = "minnesota vikings"
What is the Week of the game against Minnesota Vikings?
CREATE TABLE table_name_10 (week INTEGER, opponent VARCHAR)
SELECT position FROM table_274117_5 WHERE year_of_induction_into_pro_football_hall_of_fame = "1980"
What position was the player who was inducted into the Pro Football Hall of Fame in 1980?
CREATE TABLE table_274117_5 (position VARCHAR, year_of_induction_into_pro_football_hall_of_fame VARCHAR)
SELECT MIN(viewers__m_) FROM table_name_69 WHERE share > 13
what is the lowest viewers (m) when the share is more than 13?
CREATE TABLE table_name_69 (viewers__m_ INTEGER, share INTEGER)
SELECT to_par FROM table_name_42 WHERE score > 68
Which To par has a Score larger than 68?
CREATE TABLE table_name_42 (to_par VARCHAR, score INTEGER)
SELECT gold FROM table_name_55 WHERE year > 1982 AND place = "moscow"
Who won the Gold Medal in Moscow after the year 1982?
CREATE TABLE table_name_55 (gold VARCHAR, year VARCHAR, place VARCHAR)
SELECT date FROM table_name_66 WHERE catalog = "alca-9198"
Name the date with catalog of alca-9198
CREATE TABLE table_name_66 (date VARCHAR, catalog VARCHAR)
SELECT chassis FROM table_name_74 WHERE points > 0 AND entrant = "march engineering"
What was the chassis when the points were greater than 0 and the entrant was March Engineering?
CREATE TABLE table_name_74 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)
SELECT hdtv FROM table_15887683_16 WHERE n° = 862
What values of HDTV correspond to n° of 862?
CREATE TABLE table_15887683_16 (hdtv VARCHAR, n° VARCHAR)
SELECT title FROM table_name_72 WHERE frequency = "monthly"
What titles come out monthly?
CREATE TABLE table_name_72 (title VARCHAR, frequency VARCHAR)
SELECT party FROM table_1341577_36 WHERE incumbent = "Tom Luken"
Which party does Tom Luken belong to?
CREATE TABLE table_1341577_36 (party VARCHAR, incumbent VARCHAR)
SELECT AVG(game) FROM table_name_49 WHERE opponent = "toronto maple leafs" AND february < 17
What is the game number when the Toronto Maple Leafs were the opponent, and the February was less than 17?
CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR, february VARCHAR)
SELECT portuguese_title FROM table_22118197_1 WHERE english_title = "Belle Toujours"
What is the Portuguese name of the film who's English title is, Belle Toujours?
CREATE TABLE table_22118197_1 (portuguese_title VARCHAR, english_title VARCHAR)
SELECT date FROM table_name_44 WHERE week = 6
Which date has a Week of 6?
CREATE TABLE table_name_44 (date VARCHAR, week VARCHAR)
SELECT SUM(total) FROM table_name_90 WHERE year_s__won = "1979"
What is the sum of the total of the player who won in 1979?
CREATE TABLE table_name_90 (total INTEGER, year_s__won VARCHAR)
SELECT attendance FROM table_name_61 WHERE competition = "league" AND venue = "away" AND date = 22
How many people attended the away league competition with a date of 22?
CREATE TABLE table_name_61 (attendance VARCHAR, date VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT role FROM table_name_42 WHERE leading_lady = "sheila terry" AND title = "the lawless frontier"
What role did John Wayne play in The Lawless Frontier, with Sheila Terry as the leading lady?
CREATE TABLE table_name_42 (role VARCHAR, leading_lady VARCHAR, title VARCHAR)
SELECT SUM(bodyweight) FROM table_name_91 WHERE clean_ & _jerk = 82.5 AND total__kg_ < 152.5
What is the bodyweight for the player with a clean & jerk of 82.5 and total smaller than 152.5?
CREATE TABLE table_name_91 (bodyweight INTEGER, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT time FROM table_name_14 WHERE year = 2009
What was the time for 2009?
CREATE TABLE table_name_14 (time VARCHAR, year VARCHAR)
SELECT team FROM table_name_45 WHERE outgoing_manager = "christoph john"
Which team had Christoph John as an outgoing manager?
CREATE TABLE table_name_45 (team VARCHAR, outgoing_manager VARCHAR)
SELECT avg_finish FROM table_2308381_2 WHERE position = "70th"
Name the avg finish for position of 70th
CREATE TABLE table_2308381_2 (avg_finish VARCHAR, position VARCHAR)
SELECT drawn FROM table_name_34 WHERE losing_bp = "8"
With a Losing BP of 8, what is the drawn?
CREATE TABLE table_name_34 (drawn VARCHAR, losing_bp VARCHAR)
SELECT MAX(gold) FROM table_name_40 WHERE rank = "7" AND bronze < 0
What is the most gold when the rank is 7 and bronze is less than 0?
CREATE TABLE table_name_40 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT semifinalists FROM table_name_95 WHERE tournament = "montreal"
who were the semifinalists for the tournament in montreal?
CREATE TABLE table_name_95 (semifinalists VARCHAR, tournament VARCHAR)
SELECT additional_major_sponsor_s_ FROM table_name_91 WHERE main_colour_s_ = "red" AND year > 1991
What is the additional major sponsor(s) that has red as its main color after 1991?
CREATE TABLE table_name_91 (additional_major_sponsor_s_ VARCHAR, main_colour_s_ VARCHAR, year VARCHAR)
SELECT AVG(lane) FROM table_name_79 WHERE nationality = "kenya" AND react > 0.212
What is the average lane for Kenya with react larger than 0.212?
CREATE TABLE table_name_79 (lane INTEGER, nationality VARCHAR, react VARCHAR)
SELECT SUM(byes) FROM table_name_70 WHERE draws = 1 AND wins = 5 AND losses < 12
What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses?
CREATE TABLE table_name_70 (byes INTEGER, losses VARCHAR, draws VARCHAR, wins VARCHAR)
SELECT COUNT(location) FROM table_11934032_1 WHERE station_number = "C03"
what is the total number of location where station number is c03
CREATE TABLE table_11934032_1 (location VARCHAR, station_number VARCHAR)
SELECT SUM(carries) FROM table_name_98 WHERE points = 80 AND touchdowns < 16
What is the sum of carries associated with 80 points and fewer than 16 touchdowns?
CREATE TABLE table_name_98 (carries INTEGER, points VARCHAR, touchdowns VARCHAR)
SELECT MAX(weight) FROM table_name_33 WHERE position = "fullback"
Position of fullback has what highest weight?
CREATE TABLE table_name_33 (weight INTEGER, position VARCHAR)
SELECT best FROM table_name_77 WHERE team = "cte racing-hvm" AND qual_2 = "50.312"
What was CTE Racing-hvm's Best with a Qual 2 of 50.312?
CREATE TABLE table_name_77 (best VARCHAR, team VARCHAR, qual_2 VARCHAR)
SELECT production_code FROM table_24319661_5 WHERE directed_by = "Robert Duncan McNeill"
What as the production code for the episode directed by Robert Duncan McNeill?
CREATE TABLE table_24319661_5 (production_code VARCHAR, directed_by VARCHAR)
SELECT 1 AS st_leg FROM table_name_48 WHERE team_1 = "c.d. plaza amador"
What is the 1st leg where Team 1 is C.D. Plaza Amador?
CREATE TABLE table_name_48 (team_1 VARCHAR)
SELECT edition FROM table_18183850_12 WHERE surface = "Clay (i)" AND outcome = "Winner"
What was the game edition when they played on the clay (i) surface and the outcome was a winner?
CREATE TABLE table_18183850_12 (edition VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT club_province FROM table_name_41 WHERE player = "david penalva"
Which Club/province has a Player of david penalva?
CREATE TABLE table_name_41 (club_province VARCHAR, player VARCHAR)
SELECT COUNT(*) FROM student
How many students are there?
CREATE TABLE student (Id VARCHAR)
SELECT batting_team FROM table_name_61 WHERE season = "2006"
Who was the batting team in the 2006 season?
CREATE TABLE table_name_61 (batting_team VARCHAR, season VARCHAR)
SELECT away_team FROM table_name_16 WHERE venue = "western oval"
Which away team played at western oval?
CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR)
SELECT AVG(matches) FROM table_name_56 WHERE prize_money = "£3,000"
What is the average for matches with a prize money amount of £3,000?
CREATE TABLE table_name_56 (matches INTEGER, prize_money VARCHAR)
SELECT MAX(gold) FROM table_name_61 WHERE nation = "switzerland" AND silver < 0
Switzerland has how many gold and less than 0 silver?
CREATE TABLE table_name_61 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT title FROM table_name_28 WHERE leading_lady = "muriel evans"
Which title had Muriel Evans as leading lady?
CREATE TABLE table_name_28 (title VARCHAR, leading_lady VARCHAR)
SELECT margin_of_victory FROM table_name_59 WHERE winning_score = –14(70 - 68 - 67 = 205)
What was the margin of victory when the winning score was –14 (70-68-67=205)?
CREATE TABLE table_name_59 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT game FROM table_name_87 WHERE april = 6
Which game took place April 6?
CREATE TABLE table_name_87 (game VARCHAR, april VARCHAR)
SELECT score FROM table_name_15 WHERE date = "27 january 1996"
What was the score of the game on 27 January 1996?
CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_11 WHERE record = "4-0"
Who was the opponent when Raphael was 4-0?
CREATE TABLE table_name_11 (opponent VARCHAR, record VARCHAR)
SELECT group_c FROM table_name_53 WHERE group_b = "illinois"
What is the group C region with Illinois as group B?
CREATE TABLE table_name_53 (group_c VARCHAR, group_b VARCHAR)
SELECT stadium FROM table_25794138_1 WHERE team = "San Juan Jabloteh"
What stadium(sO does san juan jabloteh play in?
CREATE TABLE table_25794138_1 (stadium VARCHAR, team VARCHAR)
SELECT result FROM table_name_8 WHERE date = "november 22"
What was the score of the game on November 22?
CREATE TABLE table_name_8 (result VARCHAR, date VARCHAR)
SELECT competition FROM table_name_50 WHERE date = "26th"
What competition was held on the 26th?
CREATE TABLE table_name_50 (competition VARCHAR, date VARCHAR)
SELECT candidates FROM table_1805191_36 WHERE incumbent = "Dennis Kucinich"
Who are all of the candidates in elections where Dennis Kucinich was a candidate?
CREATE TABLE table_1805191_36 (candidates VARCHAR, incumbent VARCHAR)
SELECT city_or_town FROM table_name_70 WHERE number_of_seasons_in_top_division < 40 AND club = "gaziantepspor"
Which City or town has top division smaller than 40 and Gaziantepspor Club ?
CREATE TABLE table_name_70 (city_or_town VARCHAR, number_of_seasons_in_top_division VARCHAR, club VARCHAR)
SELECT not_out FROM table_20367820_16 WHERE average = "43.70"
How many no outs are there for an average of 43.70?
CREATE TABLE table_20367820_16 (not_out VARCHAR, average VARCHAR)
SELECT COUNT(byes) FROM table_name_78 WHERE losses > 4 AND sunrayia_fl = "red cliffs" AND against > 2422
What are the total byes for the Red Cliffs with more than 4 losses and more than 2422 against?
CREATE TABLE table_name_78 (byes VARCHAR, against VARCHAR, losses VARCHAR, sunrayia_fl VARCHAR)
SELECT building_short_name FROM Apartment_Buildings WHERE building_manager = "Emma"
Show the short names of the buildings managed by "Emma".
CREATE TABLE Apartment_Buildings (building_short_name VARCHAR, building_manager VARCHAR)
SELECT record FROM table_name_91 WHERE score = "105-115"
Which Record has a Score of 105-115?
CREATE TABLE table_name_91 (record VARCHAR, score VARCHAR)
SELECT incumbent FROM table_name_41 WHERE first_elected < 2002 AND district = "maryland 3"
Who is the incumbent who was first elected before 2002 from the maryland 3 district?
CREATE TABLE table_name_41 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR)
SELECT date FROM table_27734769_8 WHERE high_points = "LaMarcus Aldridge (36)"
What is the date the high points was lamarcus aldridge (36)?
CREATE TABLE table_27734769_8 (date VARCHAR, high_points VARCHAR)
SELECT us_viewers__million_ FROM table_25997153_1 WHERE directed_by = "Dan Lerner"
how many million u.s. viewers watched the episode directed by dan lerner?
CREATE TABLE table_25997153_1 (us_viewers__million_ VARCHAR, directed_by VARCHAR)
SELECT home FROM table_name_33 WHERE date = "january 7"
on january 7 what is home?
CREATE TABLE table_name_33 (home VARCHAR, date VARCHAR)
SELECT team FROM table_17933600_2 WHERE outgoing_manage = "João Alves"
What team(s) had an outgoing manager of joão alves?
CREATE TABLE table_17933600_2 (team VARCHAR, outgoing_manage VARCHAR)
SELECT class FROM table_name_13 WHERE race = "budweiser grand prix of miami" AND length = "3 hours"
What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours?
CREATE TABLE table_name_13 (class VARCHAR, race VARCHAR, length VARCHAR)
SELECT carpet FROM table_name_1 WHERE clay = "1–0" AND hard = "1–1"
Which carpet has a Clay of 1–0 and a Hard 1–1?
CREATE TABLE table_name_1 (carpet VARCHAR, clay VARCHAR, hard VARCHAR)
SELECT starts FROM table_1708050_1 WHERE position = "16th"
Name the starts when position is 16th
CREATE TABLE table_1708050_1 (starts VARCHAR, position VARCHAR)
SELECT MIN(year) FROM table_name_43 WHERE runner_up = "fabrice soulier"
What was the first year Fabrice Soulier was a runner-up?
CREATE TABLE table_name_43 (year INTEGER, runner_up VARCHAR)
SELECT MAX(birth_2013) FROM table_25703_1 WHERE death_2012 = "14,1"
What is the highest birth/2013 when the death/2012 is 14,1?
CREATE TABLE table_25703_1 (birth_2013 INTEGER, death_2012 VARCHAR)
SELECT COUNT(top_10) FROM table_name_75 WHERE top_25 < 2 AND top_5 > 0
Name the total number of top 10 with top 25 less than 2 and top 5 more than 0
CREATE TABLE table_name_75 (top_10 VARCHAR, top_25 VARCHAR, top_5 VARCHAR)
SELECT MAX(founded) FROM table_261895_1 WHERE nickname = "Belles"
under belles, which is the most possible created?
CREATE TABLE table_261895_1 (founded INTEGER, nickname VARCHAR)
SELECT home_team FROM table_name_36 WHERE away_team = "melbourne"
What team was the home team against Melbourne?
CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(bronze) FROM table_name_51 WHERE nation = "hungary" AND silver < 1
Wha is the average number of bronze of hungary, which has less than 1 silver?
CREATE TABLE table_name_51 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT name FROM table_name_75 WHERE builder = "chatham" AND laid_down = "25 april 1887"
What is the name of the boat that was built by Chatham and Laid down of 25 april 1887?
CREATE TABLE table_name_75 (name VARCHAR, builder VARCHAR, laid_down VARCHAR)
SELECT name FROM table_name_67 WHERE took_office = "march 4, 1875"
Who has Took Office of march 4, 1875?
CREATE TABLE table_name_67 (name VARCHAR, took_office VARCHAR)
SELECT birthplace, _date FROM table_name_47 WHERE pick = 4
What is the birthplace and date of pick 4?
CREATE TABLE table_name_47 (birthplace VARCHAR, _date VARCHAR, pick VARCHAR)
SELECT MAX(ties) FROM table_name_56 WHERE gp > 5
What was the largest tie when the G.P was more than 5?
CREATE TABLE table_name_56 (ties INTEGER, gp INTEGER)
SELECT date FROM table_name_11 WHERE surface = "hard (i)" AND tournament = "brighton , united kingdom"
When is the Surface of hard (i), and a Tournament of brighton , united kingdom taken?
CREATE TABLE table_name_11 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT MIN(pick__number) FROM table_1965650_4 WHERE nhl_team = "Minnesota North Stars"
What's the smallest pick number of a player playing in Minnesota North Stars?
CREATE TABLE table_1965650_4 (pick__number INTEGER, nhl_team VARCHAR)
SELECT belarusian__bgn_pcgn_ FROM table_name_73 WHERE status = "raion" AND foundation = "1514" AND population__2010_ = "8100"
What Belarusian has a status of Raion a foundation of 1514 and a 2010 population of 8100?
CREATE TABLE table_name_73 (belarusian__bgn_pcgn_ VARCHAR, population__2010_ VARCHAR, status VARCHAR, foundation VARCHAR)
SELECT MIN(ansi_code) FROM table_name_18 WHERE longitude > -101.333926 AND geo_id < 3806700900 AND township = "adler" AND land___sqmi__ > 35.84
What is the smallest ANSI code for adler township when Longitude is more than -101.333926, GEO ID is less than 3806700900, and Land ( sqmi ) is more than 35.84?
CREATE TABLE table_name_18 (ansi_code INTEGER, land___sqmi__ VARCHAR, township VARCHAR, longitude VARCHAR, geo_id VARCHAR)
SELECT name FROM table_name_88 WHERE term_end = "18 july 1944"
Which Name has a Term end of 18 july 1944?
CREATE TABLE table_name_88 (name VARCHAR, term_end VARCHAR)
SELECT COUNT(arabs_2001) FROM table_1939367_1 WHERE province = "British Columbia"
If the province is British Columbia, what is the Arabs 2001 total number?
CREATE TABLE table_1939367_1 (arabs_2001 VARCHAR, province VARCHAR)
SELECT SUM(place) FROM table_name_7 WHERE name = "r. wenzel" AND until > 1934
What place did R. Wenzel, who was active after 1934, have?
CREATE TABLE table_name_7 (place INTEGER, name VARCHAR, until VARCHAR)
SELECT owner_operator FROM table_name_18 WHERE from_to = "kambalda to esperance"
Who is the owner/operator of the line from Kambalda to Esperance?
CREATE TABLE table_name_18 (owner_operator VARCHAR, from_to VARCHAR)
SELECT MAX(rank) FROM table_name_37 WHERE definition = "core districts + inner suburbs" AND population = "10123000"
What rank was Core Districts + Inner Suburbs and had a population of 10123000?
CREATE TABLE table_name_37 (rank INTEGER, definition VARCHAR, population VARCHAR)
SELECT COUNT(film_title_used_in_nomination) FROM table_22034853_1 WHERE original_title = "Dans la ville blanche"
How many films are titled "Dans la Ville Blanche"?
CREATE TABLE table_22034853_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT laps FROM table_17271495_1 WHERE points = "18"
Name the laps for 18 pointss
CREATE TABLE table_17271495_1 (laps VARCHAR, points VARCHAR)
SELECT COUNT(directed_by) FROM table_23937219_3 WHERE season__number = 7
How many people directed episode 7 In the season?
CREATE TABLE table_23937219_3 (directed_by VARCHAR, season__number VARCHAR)
SELECT object_type FROM table_name_61 WHERE ngc_number > 2090 AND right_ascension___j2000__ = "05h52m19s"
What type of object has an NGC number higher than 2090 and has a right ascension (J2000) of 05h52m19s?
CREATE TABLE table_name_61 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT nation FROM table_name_90 WHERE points = 300.38
Which Nation has Points of 300.38?
CREATE TABLE table_name_90 (nation VARCHAR, points VARCHAR)
SELECT driver FROM table_name_12 WHERE race_3 = "10"
What is Driver, when Race 2 is "10"?
CREATE TABLE table_name_12 (driver VARCHAR, race_3 VARCHAR)
SELECT draws FROM table_name_80 WHERE wins = "did not qualify"
What is Draws, when Wins is "Did Not Qualify"?
CREATE TABLE table_name_80 (draws VARCHAR, wins VARCHAR)