answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT area FROM table_name_17 WHERE output__2007_ = "12,332 t"
What's the Area with an Output (2007) of 12,332 T?
CREATE TABLE table_name_17 (area VARCHAR, output__2007_ VARCHAR)
SELECT visitor FROM table_name_24 WHERE date = "january 27"
Who was the visiting team on January 27?
CREATE TABLE table_name_24 (visitor VARCHAR, date VARCHAR)
SELECT team_1 FROM table_name_45 WHERE team_2 = "manchester united"
What is team 1 when team 2 is Manchester United?
CREATE TABLE table_name_45 (team_1 VARCHAR, team_2 VARCHAR)
SELECT MAX(attendance) FROM table_name_89 WHERE record = "80-81"
Of the games with a record of 80-81, what was the highest attendance?
CREATE TABLE table_name_89 (attendance INTEGER, record VARCHAR)
SELECT MAX(lane) FROM table_name_38 WHERE name = "nimrod shapira bar-or"
What is the highest lane that has nimrod shapira bar-or as the name?
CREATE TABLE table_name_38 (lane INTEGER, name VARCHAR)
SELECT MIN(number) FROM table_22705586_1
Name the least number
CREATE TABLE table_22705586_1 (number INTEGER)
SELECT süskən FROM table_name_25 WHERE malax = "meşəbaş"
What is the Süskən village with a Malax village meşəbaş?
CREATE TABLE table_name_25 (süskən VARCHAR, malax VARCHAR)
SELECT score FROM table_name_8 WHERE date = "january 15, 2005"
What score has january 15, 2005 as the date?
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR)
SELECT MAX(base_elevation__feet_) FROM table_25762852_1 WHERE lifts = 11
If there are 11 lifts, what is the base elevation?
CREATE TABLE table_25762852_1 (base_elevation__feet_ INTEGER, lifts VARCHAR)
SELECT wednesday FROM table_18173916_8 WHERE friday = "307 VS."
which episode was Transmitted on wednesday if the episode of "307 vs." was transmitted on friday?
CREATE TABLE table_18173916_8 (wednesday VARCHAR, friday VARCHAR)
SELECT COUNT(*) FROM savings WHERE balance > (SELECT AVG(balance) FROM savings)
How many accounts have a savings balance above the average savings balance?
CREATE TABLE savings (balance INTEGER)
SELECT surface FROM table_name_71 WHERE score = "7–6(4), 6–1"
Name the surface for score of 7–6(4), 6–1
CREATE TABLE table_name_71 (surface VARCHAR, score VARCHAR)
SELECT american_labor_ticket FROM table_name_55 WHERE socialist_ticket = "herman j. hahn"
Which American Labor candidate is running against the Socialist candidate Herman J. Hahn?
CREATE TABLE table_name_55 (american_labor_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT class FROM table_name_83 WHERE city_of_license = "ferrum, virginia"
Which class City of license of ferrum, virginia?
CREATE TABLE table_name_83 (class VARCHAR, city_of_license VARCHAR)
SELECT date FROM table_22801165_1 WHERE cowboys_points = 13
When did the Cowboys score 13 points in 1966?
CREATE TABLE table_22801165_1 (date VARCHAR, cowboys_points VARCHAR)
SELECT MAX(rank) FROM table_name_10 WHERE time = "6:50.40"
What is the highest rank for the team that raced a time of 6:50.40?
CREATE TABLE table_name_10 (rank INTEGER, time VARCHAR)
SELECT place FROM table_name_28 WHERE score = 71 - 72 - 70 = 213
What is the place with a 71-72-70=213 score?
CREATE TABLE table_name_28 (place VARCHAR, score VARCHAR)
SELECT manner_of_departure FROM table_name_57 WHERE team = "motherwell"
What is Motherwell Team's manner of departure?
CREATE TABLE table_name_57 (manner_of_departure VARCHAR, team VARCHAR)
SELECT first_elected FROM table_2668264_22 WHERE incumbent = "Andrew R. Govan"
What was the first elected year that featured incumbent andrew r. govan?
CREATE TABLE table_2668264_22 (first_elected VARCHAR, incumbent VARCHAR)
SELECT prize FROM table_name_2 WHERE rank = "2nd"
What is Prize, when Rank is "2nd"?
CREATE TABLE table_name_2 (prize VARCHAR, rank VARCHAR)
SELECT MAX(enrollment) FROM table_name_88 WHERE ihsaa_class = "aaa" AND mascot = "dragons"
What's the most enrolled having the dragons for a mascot and an AAA for the IHSAA Class?
CREATE TABLE table_name_88 (enrollment INTEGER, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT MIN(year) FROM table_name_42 WHERE venue = "rio de janeiro, brazil"
What is the lowest Year, when Venue is Rio De Janeiro, Brazil?
CREATE TABLE table_name_42 (year INTEGER, venue VARCHAR)
SELECT away_team FROM table_name_30 WHERE home_team = "ramsgate"
Who was the away team when the home team was Ramsgate?
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(game) FROM table_name_75 WHERE opponent = "hartford whalers"
Name the most game with opponent of hartford whalers
CREATE TABLE table_name_75 (game INTEGER, opponent VARCHAR)
SELECT location FROM table_name_99 WHERE ihsaa_football_class = "aa" AND school = "winchester community"
Winchester Community school, which plays IHSAA class AA football, is located where?
CREATE TABLE table_name_99 (location VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR)
SELECT SUM(lost) FROM table_name_35 WHERE played > 42
What's the total Lost that has a Played that's larger than 42?
CREATE TABLE table_name_35 (lost INTEGER, played INTEGER)
SELECT apt_number FROM Apartments ORDER BY bedroom_count DESC LIMIT 1
Return the apartment number with the largest number of bedrooms.
CREATE TABLE Apartments (apt_number VARCHAR, bedroom_count VARCHAR)
SELECT AVG(Age) FROM manager
What is the average age for all managers?
CREATE TABLE manager (Age INTEGER)
SELECT overall_attendance FROM table_2771237_1 WHERE average_attendance = 17148
What is the overall attendance in the places where the average attendance was 17148?
CREATE TABLE table_2771237_1 (overall_attendance VARCHAR, average_attendance VARCHAR)
SELECT SUM(pick) FROM table_name_94 WHERE name = "darryl pounds" AND overall > 68
What is the sum of the pick of darryl pounds, who has an overall greater than 68?
CREATE TABLE table_name_94 (pick INTEGER, name VARCHAR, overall VARCHAR)
SELECT date_of_vacancy FROM table_22640051_3 WHERE outgoing_manager = "Manuel Pellegrini"
Name the date of vacancy for manuel pellegrini
CREATE TABLE table_22640051_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT home_team AS score FROM table_name_8 WHERE away_team = "north melbourne"
What was the home team score when North Melbourne was the away team?
CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR)
SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance')
What is the title of the prerequisite class of International Finance course?
CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR)
SELECT MIN(f_laps) FROM table_name_97 WHERE podiums > 4 AND races > 14
What is the lowest number of f/laps with more than 4 podiums and more than 14 races?
CREATE TABLE table_name_97 (f_laps INTEGER, podiums VARCHAR, races VARCHAR)
SELECT speed FROM table_name_13 WHERE time = "1:36.46.93"
Name the speed for 1:36.46.93
CREATE TABLE table_name_13 (speed VARCHAR, time VARCHAR)
SELECT MAX(points) FROM table_name_64 WHERE chassis = "jordan 194"
Give the most points that features jordan 194 in the Chassis column.
CREATE TABLE table_name_64 (points INTEGER, chassis VARCHAR)
SELECT 2006 AS _2007_season FROM table_name_13 WHERE club = "vitória de setúbal"
Where did the Vitória de Setúbal club place in the 2006-2007 season?
CREATE TABLE table_name_13 (club VARCHAR)
SELECT season FROM table_name_89 WHERE league = "3rd liga" AND away = "1-0"
What season has a league 3rd liga, and away of 1-0?
CREATE TABLE table_name_89 (season VARCHAR, league VARCHAR, away VARCHAR)
SELECT home FROM table_name_44 WHERE opponent = "slovan liberec"
Who was the home when the opponent was slovan liberec?
CREATE TABLE table_name_44 (home VARCHAR, opponent VARCHAR)
SELECT SUM(crowd) FROM table_name_98 WHERE ground = "westpac stadium"
What was the total crowd attendance at Westpac Stadium?
CREATE TABLE table_name_98 (crowd INTEGER, ground VARCHAR)
SELECT height_[m] FROM table_name_27 WHERE architect = "ross and macfarlane"
What is the height of the building built by architects Ross and Macfarlane?
CREATE TABLE table_name_27 (height_ VARCHAR, m VARCHAR, architect VARCHAR)
SELECT opponent FROM table_name_74 WHERE date = "may 20"
Who was the opponent on May 20?
CREATE TABLE table_name_74 (opponent VARCHAR, date VARCHAR)
SELECT height FROM table_25177625_1 WHERE position = "Forward" AND year = "Freshman"
What was the height of this Freshman with a forward position?
CREATE TABLE table_25177625_1 (height VARCHAR, position VARCHAR, year VARCHAR)
SELECT date FROM table_name_9 WHERE label = "dos or die recordings"
What is the date of the label Dos or Die Recordings?
CREATE TABLE table_name_9 (date VARCHAR, label VARCHAR)
SELECT venue FROM table_name_60 WHERE margin < 66 AND opponent = "north queensland cowboys"
Name the venue for margin less than 66 and opponent of north queensland cowboys
CREATE TABLE table_name_60 (venue VARCHAR, margin VARCHAR, opponent VARCHAR)
SELECT fastest_lap FROM table_25459168_2 WHERE pole_position = "Anders Krohn"
Who won the fastest lap if Anders Krohn won the pole position?
CREATE TABLE table_25459168_2 (fastest_lap VARCHAR, pole_position VARCHAR)
SELECT away_team AS score FROM table_name_54 WHERE away_team = "melbourne"
What is the away team score of Melbourne?
CREATE TABLE table_name_54 (away_team VARCHAR)
SELECT replaced_by FROM table_22640051_3 WHERE date_of_appointment = "8 July 2009"
Name the replaced by for 8 july 2009
CREATE TABLE table_22640051_3 (replaced_by VARCHAR, date_of_appointment VARCHAR)
SELECT MAX(goals_conceded__gc_) FROM table_name_84 WHERE draw__pe_ = 2 AND goals_scored__gf_ > 29 AND ____dif_ > 15
What is the maximum goals conceded for a team with 2 draws, more than 29 goals and a diff larger than 15?
CREATE TABLE table_name_84 (goals_conceded__gc_ INTEGER, ____dif_ VARCHAR, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR)
SELECT power_output FROM table_name_29 WHERE model = "s-13"
Name the power output for model of s-13
CREATE TABLE table_name_29 (power_output VARCHAR, model VARCHAR)
SELECT MIN(average_votes_per_candidate) FROM table_28819393_1 WHERE average__percentage_of_vote_per_candidate = "3.29"
When 3.29% was the average per candidate, what was the number of average votes per candidate?
CREATE TABLE table_28819393_1 (average_votes_per_candidate INTEGER, average__percentage_of_vote_per_candidate VARCHAR)
SELECT pPos FROM tryout GROUP BY pPos ORDER BY COUNT(*) DESC LIMIT 1
Which position is most popular among players in the tryout?
CREATE TABLE tryout (pPos VARCHAR)
SELECT COUNT(profit__loss__before_tax__) AS £m_ FROM table_name_47 WHERE year_ended = "2011" AND net_profit__£m_ > 123.8
In year 2011 what is sum of profit/loss before tax and net profit larger than 123.8 million?
CREATE TABLE table_name_47 (profit__loss__before_tax__ VARCHAR, year_ended VARCHAR, net_profit__£m_ VARCHAR)
SELECT AVG(react) FROM table_name_36 WHERE rank > 8
What is the average react for a rank more than 8?
CREATE TABLE table_name_36 (react INTEGER, rank INTEGER)
SELECT last_win FROM table_name_89 WHERE club = "celtic"
When was the last win of Celtic?
CREATE TABLE table_name_89 (last_win VARCHAR, club VARCHAR)
SELECT loss FROM table_name_48 WHERE record = "38-53"
Name the loss with record of 38-53
CREATE TABLE table_name_48 (loss VARCHAR, record VARCHAR)
SELECT local_investment__us$_ FROM table_17118006_2 WHERE bid_pronar_investment__us$_ = "912,185"
What was the local investment (in $) in the projects of the department with $912,185 BID/PRONAR investment?
CREATE TABLE table_17118006_2 (local_investment__us$_ VARCHAR, bid_pronar_investment__us$_ VARCHAR)
SELECT competition FROM table_name_21 WHERE venue = "ta'qali"
What is the competition at the ta'qali venue?
CREATE TABLE table_name_21 (competition VARCHAR, venue VARCHAR)
SELECT opponent_in_the_final FROM table_name_4 WHERE surface = "clay" AND score = "6–0, 6–2"
What is the Opponent of the match played on a Clay Surface with a Score of 6–0, 6–2?
CREATE TABLE table_name_4 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
SELECT notes FROM table_name_96 WHERE year = 1997
What events did the competition that took place in 1997 have?
CREATE TABLE table_name_96 (notes VARCHAR, year VARCHAR)
SELECT dob FROM table_name_47 WHERE surname = "dale" AND first = "lachlan"
When was Lachlan Dale born?
CREATE TABLE table_name_47 (dob VARCHAR, surname VARCHAR, first VARCHAR)
SELECT COUNT(*) FROM airlines WHERE country = 'Russia'
How many airlines does Russia has?
CREATE TABLE airlines (country VARCHAR)
SELECT result FROM table_17861179_1 WHERE week = 6
For week 6, what were the results?
CREATE TABLE table_17861179_1 (result VARCHAR, week VARCHAR)
SELECT CName FROM COURSE WHERE Credits = 1
List all names of courses with 1 credit?
CREATE TABLE COURSE (CName VARCHAR, Credits VARCHAR)
SELECT location FROM table_16734640_1 WHERE institution = "Abraham Baldwin Agricultural College"
Name the location for abraham baldwin agricultural college
CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR)
SELECT MIN(game) FROM table_name_3 WHERE location_attendance = "madison square garden" AND score = "109-99"
What is the smallest game had a location of Madison Square Garden with a score of 109-99?
CREATE TABLE table_name_3 (game INTEGER, location_attendance VARCHAR, score VARCHAR)
SELECT type_of_game FROM table_name_57 WHERE date = "december 22"
What type of game was held on December 22?
CREATE TABLE table_name_57 (type_of_game VARCHAR, date VARCHAR)
SELECT score FROM table_name_16 WHERE 2012 = "15.0%"
What score has 15.0% as the 2012?
CREATE TABLE table_name_16 (score VARCHAR)
SELECT location FROM table_name_23 WHERE founded > 1890 AND institution = "university of montana"
What is the location of the University of Montana, which was founded after 1890?
CREATE TABLE table_name_23 (location VARCHAR, founded VARCHAR, institution VARCHAR)
SELECT airport FROM table_name_64 WHERE iata = "cxb"
Name the airport with IATA of cxb
CREATE TABLE table_name_64 (airport VARCHAR, iata VARCHAR)
SELECT high_rebounds FROM table_name_7 WHERE score = "l 122–93"
Who had the high rebounds when the score was l 122–93?
CREATE TABLE table_name_7 (high_rebounds VARCHAR, score VARCHAR)
SELECT position FROM table_name_21 WHERE school = "alabama"
What position did the school of alabama draft?
CREATE TABLE table_name_21 (position VARCHAR, school VARCHAR)
SELECT AVG(area__km_2__) FROM table_name_46 WHERE population = 311
What is the km2 area for the population of 311?
CREATE TABLE table_name_46 (area__km_2__ INTEGER, population VARCHAR)
SELECT MIN(no_votes) FROM table_256286_13
What is the lowest overall amount of no votes?
CREATE TABLE table_256286_13 (no_votes INTEGER)
SELECT AVG(grid) FROM table_name_40 WHERE team = "paul cruickshank racing" AND laps < 27
What is the average grid number for paul cruickshank racing with less than 27 laps?
CREATE TABLE table_name_40 (grid INTEGER, team VARCHAR, laps VARCHAR)
SELECT MAX(position) FROM table_name_73 WHERE played < 10
What is the highest position of the team having played under 10 matches?
CREATE TABLE table_name_73 (position INTEGER, played INTEGER)
SELECT score FROM table_name_38 WHERE home = "chicago black hawks" AND date = "march 28"
What is the Score of the Chicago Black Hawks Home game on March 28?
CREATE TABLE table_name_38 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT date FROM table_name_14 WHERE game = "13"
What was the date for game 13?
CREATE TABLE table_name_14 (date VARCHAR, game VARCHAR)
SELECT bush_number FROM table_name_10 WHERE bush_percentage = "52.9%"
When Bush has 52.9%, what is the Bush#?
CREATE TABLE table_name_10 (bush_number VARCHAR, bush_percentage VARCHAR)
SELECT percentage FROM table_name_73 WHERE place = 5
What Percentage has a Place of 5?
CREATE TABLE table_name_73 (percentage VARCHAR, place VARCHAR)
SELECT notes FROM table_name_48 WHERE rank > 2 AND time = "1:48.179"
What are the notes for the person ranked larger than 2, and a time of 1:48.179?
CREATE TABLE table_name_48 (notes VARCHAR, rank VARCHAR, time VARCHAR)
SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4
Find the names of courses that have either 3 credits or 1 credit but 4 hours.
CREATE TABLE COURSE (CName VARCHAR, Credits VARCHAR, Hours VARCHAR)
SELECT COUNT(heat) FROM table_name_14 WHERE mark = "7.29" AND name = "virgen benavides" AND lane < 2
When the lane is under 2 and the name is virgen benavides with a mark of 7.29, what's the total number of Heat found?
CREATE TABLE table_name_14 (heat VARCHAR, lane VARCHAR, mark VARCHAR, name VARCHAR)
SELECT co_drivers FROM table_name_14 WHERE year < 1986 AND team = "martini lancia"
Which co-driver was part of team Martini Lancia earlier than 1986?
CREATE TABLE table_name_14 (co_drivers VARCHAR, year VARCHAR, team VARCHAR)
SELECT year FROM table_name_45 WHERE mixed_doubles = "no competition"
What year was there no competition in Mixed Doubles?
CREATE TABLE table_name_45 (year VARCHAR, mixed_doubles VARCHAR)
SELECT game_4 FROM table_name_27 WHERE game_1 = "michael o'connor"
For which Game 4 did Michael O'Connor play during Game 1?
CREATE TABLE table_name_27 (game_4 VARCHAR, game_1 VARCHAR)
SELECT high_rebounds FROM table_name_35 WHERE high_assists = "a. johnson (6)"
Who had the highest rebounds of the game with A. Johnson (6) as the highest assist?
CREATE TABLE table_name_35 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT school FROM table_name_65 WHERE nickname_s_ = "tornadoes lady tornadoes"
What is the school with the nickname Tornadoes Lady Tornadoes?
CREATE TABLE table_name_65 (school VARCHAR, nickname_s_ VARCHAR)
SELECT series_ep FROM table_15187735_17 WHERE segment_a = "Rolled Wafers"
are rolled wafers in many episodes
CREATE TABLE table_15187735_17 (series_ep VARCHAR, segment_a VARCHAR)
SELECT written_by FROM table_23483182_1 WHERE original_air_date = "February 4, 2010"
Who wrote the episode that aired February 4, 2010?
CREATE TABLE table_23483182_1 (written_by VARCHAR, original_air_date VARCHAR)
SELECT record FROM table_name_62 WHERE attendance = "28,531"
What's the record when the attendance was 28,531?
CREATE TABLE table_name_62 (record VARCHAR, attendance VARCHAR)
SELECT AVG(points) FROM table_name_54 WHERE year > 1992
What are the average points after 1992?
CREATE TABLE table_name_54 (points INTEGER, year INTEGER)
SELECT score FROM table_20745685_1 WHERE _number = 7
What is the score for game #7?
CREATE TABLE table_20745685_1 (score VARCHAR, _number VARCHAR)
SELECT nationality FROM table_2679061_9 WHERE player = "Cliff Abrecht"
What was the nationality of player Cliff Abrecht?
CREATE TABLE table_2679061_9 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(branding) FROM table_2610582_2 WHERE power_kw__erp_ = "1kW (29.94kW ERP)"
How many brandings are there where the Power kW (ERP) is 1kW (29.94kW ERP)?
CREATE TABLE table_2610582_2 (branding VARCHAR, power_kw__erp_ VARCHAR)
SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1
List the name of film studio that have the most number of films.
CREATE TABLE film (Studio VARCHAR)
SELECT score FROM table_name_35 WHERE home_team = "tottenham hotspur"
What was the score of the tie that had Tottenham Hotspur as the home team?
CREATE TABLE table_name_35 (score VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_65 WHERE result = "*non-conference game. #rankings from ap poll ."
What is the Date when the result is *non-conference game. #rankings from ap poll .?
CREATE TABLE table_name_65 (date VARCHAR, result VARCHAR)
SELECT SUM(bronze) FROM table_name_45 WHERE silver > 3
What is the sum of bronze when silver is greater than 3?
CREATE TABLE table_name_45 (bronze INTEGER, silver INTEGER)
SELECT SUM(no_of_customers) FROM bank WHERE city = 'New York City'
Find the number of customers in the banks at New York City.
CREATE TABLE bank (no_of_customers INTEGER, city VARCHAR)