answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT title FROM table_11589522_3 WHERE original_air_date = "January18,2009"
what's the title where original air date is january18,2009
CREATE TABLE table_11589522_3 (title VARCHAR, original_air_date VARCHAR)
SELECT COUNT(goals) FROM table_name_71 WHERE current_club = "chievo" AND debut_year < 2002
How many goals were achieved when Chievo was the club and the debut year was before 2002?
CREATE TABLE table_name_71 (goals VARCHAR, current_club VARCHAR, debut_year VARCHAR)
SELECT home_team AS score FROM table_name_2 WHERE home_team = "footscray"
What was Footscray's score when it played as the home team?
CREATE TABLE table_name_2 (home_team VARCHAR)
SELECT venue FROM table_name_90 WHERE against > 9 AND status = "second test"
Which venue has more than 9 against and a status of second test?
CREATE TABLE table_name_90 (venue VARCHAR, against VARCHAR, status VARCHAR)
SELECT away_team FROM table_name_89 WHERE tie_no = "12"
What away team has 12 as the tie no.?
CREATE TABLE table_name_89 (away_team VARCHAR, tie_no VARCHAR)
SELECT first_season_in_first_division FROM table_name_63 WHERE first_season_after_most_recent_promotion = "1959" AND name = "alianza"
When was Alianza's first season in first division with a promotion after 1959?
CREATE TABLE table_name_63 (first_season_in_first_division VARCHAR, first_season_after_most_recent_promotion VARCHAR, name VARCHAR)
SELECT title FROM table_19161605_2 WHERE _number = 14
What is the title of episode number 14?
CREATE TABLE table_19161605_2 (title VARCHAR, _number VARCHAR)
SELECT result FROM table_name_22 WHERE venue = "away" AND game < 43 AND opponent = "bournemouth"
Which Result has a Venue of away, and a Game smaller than 43, and an Opponent of bournemouth?
CREATE TABLE table_name_22 (result VARCHAR, opponent VARCHAR, venue VARCHAR, game VARCHAR)
SELECT trofeo_fast_team FROM table_name_55 WHERE young_rider_classification = "francesco casagrande" AND stage = "10"
Name trofeo fast team with young rider classification of francesco casagrande and stage of 10
CREATE TABLE table_name_55 (trofeo_fast_team VARCHAR, young_rider_classification VARCHAR, stage VARCHAR)
SELECT score FROM table_name_72 WHERE competition = "friendly" AND date = "03-jun-62"
Competition of friendly, and a Date of 03-jun-62 had what score?
CREATE TABLE table_name_72 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT COUNT(wiaa_classification) FROM table_22058547_1 WHERE high_school = "Fort Vancouver"
how many wiaa classifications does fort vancouver high school have?
CREATE TABLE table_22058547_1 (wiaa_classification VARCHAR, high_school VARCHAR)
SELECT livingstone FROM table_12570207_1 WHERE fitzroy = 9499
what's the livingstone with fitzroy being 9499
CREATE TABLE table_12570207_1 (livingstone VARCHAR, fitzroy VARCHAR)
SELECT venue FROM table_name_16 WHERE status = "test match" AND against = 12
What is Venue, when Status is "Test Match", and when Against is "12"?
CREATE TABLE table_name_16 (venue VARCHAR, status VARCHAR, against VARCHAR)
SELECT result___category FROM table_name_18 WHERE year < 2007
Which result is older than 2007?
CREATE TABLE table_name_18 (result___category VARCHAR, year INTEGER)
SELECT date FROM table_name_10 WHERE road_team = "st. louis" AND game = "game 5"
What is the Date of Game 5 with Road Team St. Louis?
CREATE TABLE table_name_10 (date VARCHAR, road_team VARCHAR, game VARCHAR)
SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY COUNT(*) DESC LIMIT 1
Find the name of amenity that is most common in all dorms.
CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR); CREATE TABLE has_amenity (amenid VARCHAR)
SELECT title FROM table_name_3 WHERE label = "pacific jazz" AND label - Nr = st - 20124
What is the song title on the Pacific Jazz label, and a Label-Nr of st-20124?
CREATE TABLE table_name_3 (title VARCHAR, label VARCHAR, Nr VARCHAR, st VARCHAR)
SELECT name FROM table_name_64 WHERE county = "sør-trøndelag"
Tell me the name with sør-trøndelag
CREATE TABLE table_name_64 (name VARCHAR, county VARCHAR)
SELECT COUNT(draws) FROM table_name_45 WHERE goals_for = 58 AND losses = 12 AND goal_difference < 21
Name the total number of Draws when goals for is 58 and losses is 12 when goal differences is less than 21
CREATE TABLE table_name_45 (draws VARCHAR, goal_difference VARCHAR, goals_for VARCHAR, losses VARCHAR)
SELECT record FROM table_name_56 WHERE visitor = "st. louis"
What is the record when St. Louis is the visitor?
CREATE TABLE table_name_56 (record VARCHAR, visitor VARCHAR)
SELECT group FROM table_name_82 WHERE distance = "1200 m"
What group has 1200 m as the distance?
CREATE TABLE table_name_82 (group VARCHAR, distance VARCHAR)
SELECT name FROM table_16799784_4 WHERE longitude = "202.9E"
Where is longitude 202.9e?
CREATE TABLE table_16799784_4 (name VARCHAR, longitude VARCHAR)
SELECT place FROM table_name_61 WHERE score = 67 - 70 = 137
WHAT IS THE PLACE WITH A SCORE OF 67-70=137?
CREATE TABLE table_name_61 (place VARCHAR, score VARCHAR)
SELECT SUM(played) FROM table_name_85 WHERE lost < 5 AND points > 41
How many games were played when the loss is less than 5 and points greater than 41?
CREATE TABLE table_name_85 (played INTEGER, lost VARCHAR, points VARCHAR)
SELECT score FROM table_name_77 WHERE game > 4 AND series = "3-2"
What is the score for the game larger than 4 in series 3-2?
CREATE TABLE table_name_77 (score VARCHAR, game VARCHAR, series VARCHAR)
SELECT site FROM table_name_46 WHERE cost___us$__ = "free" AND editor = "jsvi"
Which site has a Cost free and a Editor of jsvi?
CREATE TABLE table_name_46 (site VARCHAR, cost___us$__ VARCHAR, editor VARCHAR)
SELECT district FROM table_1847180_4 WHERE vacator = "Ralph Harvey (R)"
Which district did Ralph Harvey (r) vacated when he resigned?
CREATE TABLE table_1847180_4 (district VARCHAR, vacator VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_93 WHERE country = "united states" AND to_par = "–2"
What is the total amount of money that the United States one with a To par of –2?
CREATE TABLE table_name_93 (money___ VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT models_produced FROM table_250309_1 WHERE plant = "Scarborough"
what models are produced where the plant is scarborough?
CREATE TABLE table_250309_1 (models_produced VARCHAR, plant VARCHAR)
SELECT capacity FROM table_26980923_2 WHERE team = "Dundee United"
What is the capacity for dundee united?
CREATE TABLE table_26980923_2 (capacity VARCHAR, team VARCHAR)
SELECT croats FROM table_2374338_2 WHERE romanians = "16.65%"
What is every value for Croats when value for Romanians is 16.65%?
CREATE TABLE table_2374338_2 (croats VARCHAR, romanians VARCHAR)
SELECT date FROM table_name_2 WHERE partner = "alexander krasnorutskiy" AND score = "6–3, 4–6, 6–2"
What date had Alexander Krasnorutskiy as a partner with a score of 6–3, 4–6, 6–2?
CREATE TABLE table_name_2 (date VARCHAR, partner VARCHAR, score VARCHAR)
SELECT production_code FROM table_25390694_2 WHERE writer = "Brendan Cowell"
What was the production code of the episode written by Brendan Cowell?
CREATE TABLE table_25390694_2 (production_code VARCHAR, writer VARCHAR)
SELECT position FROM table_name_68 WHERE height__cm_ > 180 AND name = "brian lawton"
What position has a height (cm) greater than 180, and brian lawton as the name?
CREATE TABLE table_name_68 (position VARCHAR, height__cm_ VARCHAR, name VARCHAR)
SELECT MAX(year_established) FROM table_1784514_1 WHERE number_of_powiats = "5 powiats"
What is the latest year established that had 5 powiats?
CREATE TABLE table_1784514_1 (year_established INTEGER, number_of_powiats VARCHAR)
SELECT away_team FROM table_name_13 WHERE home_team = "zambia"
Who is the away team that goes against Team Zambia?
CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR)
SELECT 2004 FROM table_name_24 WHERE 2000 = "2r"
What's the 2004 tournament that has a 2R in 2000?
CREATE TABLE table_name_24 (Id VARCHAR)
SELECT type FROM table_2562572_30 WHERE settlement = "Rabe"
What type of settlement is rabe?
CREATE TABLE table_2562572_30 (type VARCHAR, settlement VARCHAR)
SELECT stadium FROM table_name_71 WHERE score = "6–3"
What stadium held the game that had a score of 6–3?
CREATE TABLE table_name_71 (stadium VARCHAR, score VARCHAR)
SELECT score FROM table_name_41 WHERE high_assists = "rafer alston (8)"
Can you tell me the Score that has the High assists of rafer alston (8)?
CREATE TABLE table_name_41 (score VARCHAR, high_assists VARCHAR)
SELECT date FROM table_name_2 WHERE week = 2
what was the date of the game on week 2?
CREATE TABLE table_name_2 (date VARCHAR, week VARCHAR)
SELECT customer_id, SUM(amount_paid) FROM Payments GROUP BY customer_id ORDER BY SUM(amount_paid) DESC LIMIT 1
What is the maximum total amount paid by a customer? List the customer id and amount.
CREATE TABLE Payments (customer_id VARCHAR, amount_paid INTEGER)
SELECT COUNT(*) FROM artwork
How many artworks are there?
CREATE TABLE artwork (Id VARCHAR)
SELECT boarding_day FROM table_name_36 WHERE type = "old" AND house = "saunderites"
What is the Boarding/Day value for a type of old and house of Saunderites?
CREATE TABLE table_name_36 (boarding_day VARCHAR, type VARCHAR, house VARCHAR)
SELECT AVG(wins) FROM table_name_41 WHERE losses = 14 AND against > 2200
What is the average number of wins for teams with 14 losses and against over 2200?
CREATE TABLE table_name_41 (wins INTEGER, losses VARCHAR, against VARCHAR)
SELECT MIN(week) FROM table_10392906_2 WHERE game_site = "Commerzbank-Arena"
In what week was the first game played at the Commerzbank-Arena?
CREATE TABLE table_10392906_2 (week INTEGER, game_site VARCHAR)
SELECT pos FROM table_22737506_1 WHERE points = 86
When 86 is the amount of points what is the position?
CREATE TABLE table_22737506_1 (pos VARCHAR, points VARCHAR)
SELECT 2009 FROM table_name_44 WHERE 2010 = "1r" AND 2012 = "a" AND 2008 = "2r"
Name the 2009 ffor 2010 of 1r and 2012 of a and 2008 of 2r
CREATE TABLE table_name_44 (Id VARCHAR)
SELECT democrat AS :_brian_schweitzer FROM table_name_12 WHERE lead_margin = 29
What is the percentage for Schweitzer when the lead margin is 29?
CREATE TABLE table_name_12 (democrat VARCHAR, lead_margin VARCHAR)
SELECT name FROM table_name_59 WHERE rank > 2 AND nationality = "spain"
What's the name of spain rank greater than 2?
CREATE TABLE table_name_59 (name VARCHAR, rank VARCHAR, nationality VARCHAR)
SELECT chassis FROM table_name_4 WHERE driver = "john watson"
What chassis did John Watson drive?
CREATE TABLE table_name_4 (chassis VARCHAR, driver VARCHAR)
SELECT fuel_system FROM table_name_95 WHERE years = "1960-62"
What fuel system was used in 1960-62?
CREATE TABLE table_name_95 (fuel_system VARCHAR, years VARCHAR)
SELECT COUNT(_percentage_2006) FROM table_21132404_1 WHERE political_parties = "Social Democratic Party of Germany"
How many time was the political party the social democratic party of germany?
CREATE TABLE table_21132404_1 (_percentage_2006 VARCHAR, political_parties VARCHAR)
SELECT driver FROM table_28046929_2 WHERE entrant = "Belgian VW Club" AND co_driver = "Frédéric Miclotte"
who is the person that is part of the belgian vw club that works with frédéric miclotte
CREATE TABLE table_28046929_2 (driver VARCHAR, entrant VARCHAR, co_driver VARCHAR)
SELECT COUNT(total) FROM table_name_59 WHERE bronze = 4 AND silver > 6
Name the total number of total for bronze of 4 and silver more than 6
CREATE TABLE table_name_59 (total VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT final_position FROM table_23819979_3 WHERE competition = "Copa Libertadores"
Name the final position for copa libertadores
CREATE TABLE table_23819979_3 (final_position VARCHAR, competition VARCHAR)
SELECT res FROM table_name_40 WHERE event = "ufc 122"
Which Res has an Event of UFC 122?
CREATE TABLE table_name_40 (res VARCHAR, event VARCHAR)
SELECT original_air_date FROM table_21979779_1 WHERE us_viewers__million_ = "1.76"
when was the premiere of the episode where the amount of North American spectators was 1.76 millions?
CREATE TABLE table_21979779_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT dates_active FROM table_10602294_1 WHERE deaths = "185km/h (115mph)"
What were the active dates for the storm that had 185km/h (115mph) deaths?
CREATE TABLE table_10602294_1 (dates_active VARCHAR, deaths VARCHAR)
SELECT 2008 FROM table_name_54 WHERE 2010 = "1r" AND 2007 = "a" AND 2009 = "1r"
What 2008 has 1r as a 2010, A as the 2007, and 1r as the 2009?
CREATE TABLE table_name_54 (Id VARCHAR)
SELECT partner FROM table_name_62 WHERE tournament_name = "united airlines tournament (1)"
Who was the Partner in the United Airlines Tournament (1)?
CREATE TABLE table_name_62 (partner VARCHAR, tournament_name VARCHAR)
SELECT contribution FROM table_name_49 WHERE album = "board up the house"
For the album Board Up the House, what is the contribution?
CREATE TABLE table_name_49 (contribution VARCHAR, album VARCHAR)
SELECT percent_of_slovenes_1951 FROM table_name_60 WHERE number_of_people_1991 > 8 AND village__german_ = "plöschenberg"
Which Percent of Slovenes 1951 has a Number of people 1991 larger than 8, and a Village (German) of plöschenberg?
CREATE TABLE table_name_60 (percent_of_slovenes_1951 VARCHAR, number_of_people_1991 VARCHAR, village__german_ VARCHAR)
SELECT MAX(losses) FROM table_name_81 WHERE club = "camperdown" AND against < 945
What's the highest amount of losses of Camperdown when the against was less than 945?
CREATE TABLE table_name_81 (losses INTEGER, club VARCHAR, against VARCHAR)
SELECT COUNT(year) FROM table_name_24 WHERE chassis = "ferrari 625" AND points = "2"
What is the total number of years that has a chassis of Ferrari 625 and 2 points?
CREATE TABLE table_name_24 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT SUM(magnitude) FROM table_name_44 WHERE date = "february 12, 1953"
What is the sum of Magnitude on february 12, 1953?
CREATE TABLE table_name_44 (magnitude INTEGER, date VARCHAR)
SELECT years_in_orlando FROM table_15621965_17 WHERE player = "Jeryl Sasser"
List all years in Orlando where Jeryl Sasser was a player.
CREATE TABLE table_15621965_17 (years_in_orlando VARCHAR, player VARCHAR)
SELECT displacement FROM table_name_63 WHERE year = "1935-45"
Tell me the displacement for 1935-45
CREATE TABLE table_name_63 (displacement VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_85 WHERE game > 5 AND date = "june 22"
Who is the opponent of the game with a game number larger than 5 on June 22?
CREATE TABLE table_name_85 (opponent VARCHAR, game VARCHAR, date VARCHAR)
SELECT loss FROM table_name_56 WHERE date = "june 2"
What Loss is recorded for the Date June 2?
CREATE TABLE table_name_56 (loss VARCHAR, date VARCHAR)
SELECT venue FROM table_name_17 WHERE team = "evansville bluecats"
What venue did the team, evansville bluecats play on?
CREATE TABLE table_name_17 (venue VARCHAR, team VARCHAR)
SELECT result FROM table_name_17 WHERE venue = "dakar , senegal" AND date = "3 september 2011" AND score = "2–0"
What was the result at dakar , senegal, on 3 september 2011, and with a Score of 2–0?
CREATE TABLE table_name_17 (result VARCHAR, score VARCHAR, venue VARCHAR, date VARCHAR)
SELECT AVG(points) FROM table_name_76 WHERE best_time = "01:46.367"
How many points associated with a Best time of 01:46.367?
CREATE TABLE table_name_76 (points INTEGER, best_time VARCHAR)
SELECT time FROM table_name_56 WHERE game = 4
What was the time for game 4?
CREATE TABLE table_name_56 (time VARCHAR, game VARCHAR)
SELECT tournament FROM table_name_54 WHERE surface = "clay" AND opponent = "sofia shapatava"
What is the tournament with a clay surface and sofia shapatava as the opponent?
CREATE TABLE table_name_54 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT driver FROM table_name_10 WHERE tyre = "p" AND entrant = "officine alfieri maserati"
Who is the driver when the tyre is p and the entrant is officine alfieri maserati?
CREATE TABLE table_name_10 (driver VARCHAR, tyre VARCHAR, entrant VARCHAR)
SELECT date FROM table_name_97 WHERE brazil_scorers = "palhinha"
On what Date was Palhinha Brazil Scorers?
CREATE TABLE table_name_97 (date VARCHAR, brazil_scorers VARCHAR)
SELECT episode FROM table_23575917_6 WHERE davids_team = "Bill Oddie and Frank Skinner"
When bill oddie and frank skinner are both on the davids team what is the episode?
CREATE TABLE table_23575917_6 (episode VARCHAR, davids_team VARCHAR)
SELECT distribution FROM table_1357052_6 WHERE rsbac = "Unknown"
what's the dbeingtribution with rsbac being unknown
CREATE TABLE table_1357052_6 (distribution VARCHAR, rsbac VARCHAR)
SELECT competition FROM table_17594659_1 WHERE opposition = "Panathinaikos"
Name the competition of panathinaikos
CREATE TABLE table_17594659_1 (competition VARCHAR, opposition VARCHAR)
SELECT opponent FROM table_name_1 WHERE date = "may 11"
what team played on may 11
CREATE TABLE table_name_1 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(player) FROM table_1965650_11 WHERE pick__number = 166
How many players have the pick number 166?
CREATE TABLE table_1965650_11 (player VARCHAR, pick__number VARCHAR)
SELECT winning_span FROM table_1953516_1 WHERE rank = "5"
What is the winning span with the rank of 5?
CREATE TABLE table_1953516_1 (winning_span VARCHAR, rank VARCHAR)
SELECT score FROM table_name_48 WHERE player = "billy mayfair"
What is Score, when Player is Billy Mayfair?
CREATE TABLE table_name_48 (score VARCHAR, player VARCHAR)
SELECT COUNT(first_downs) FROM table_15847691_2 WHERE date = "October 23"
What was the total number of first down on October 23?
CREATE TABLE table_15847691_2 (first_downs VARCHAR, date VARCHAR)
SELECT SUM(pocona_municipality___percentage_) FROM table_name_6 WHERE puerto_villarroel_municipality___percentage_ > 14.6 AND pojo_municipality___percentage_ < 88.5
Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5?
CREATE TABLE table_name_6 (pocona_municipality___percentage_ INTEGER, puerto_villarroel_municipality___percentage_ VARCHAR, pojo_municipality___percentage_ VARCHAR)
SELECT COUNT(us_viewers__million_) FROM table_13336122_6 WHERE no_in_season = 2
Name the number of shows when there was 2 million views
CREATE TABLE table_13336122_6 (us_viewers__million_ VARCHAR, no_in_season VARCHAR)
SELECT COUNT(wins) FROM table_name_90 WHERE points < 54 AND team = "yamaha" AND class = "250cc" AND year < 1977
How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?
CREATE TABLE table_name_90 (wins VARCHAR, year VARCHAR, class VARCHAR, points VARCHAR, team VARCHAR)
SELECT start FROM table_name_39 WHERE finish = "21st"
Name the start for finish being 21st
CREATE TABLE table_name_39 (start VARCHAR, finish VARCHAR)
SELECT year FROM table_17302440_1 WHERE west_manila = "6.5"
What was the year when West Manila has a tariff increase of 6.5?
CREATE TABLE table_17302440_1 (year VARCHAR, west_manila VARCHAR)
SELECT years FROM table_name_21 WHERE role = "steve rhoades"
How many years did the role of Steve Rhoades last?
CREATE TABLE table_name_21 (years VARCHAR, role VARCHAR)
SELECT COUNT(top_25) FROM table_name_61 WHERE events < 10
What's the sum of Top-25 that has an Events that is smaller than 10?
CREATE TABLE table_name_61 (top_25 VARCHAR, events INTEGER)
SELECT class FROM table_name_35 WHERE race = "coca-cola classic 12 hours of sebring"
What is the class of the Coca-cola classic 12 hours of sebring race?
CREATE TABLE table_name_35 (class VARCHAR, race VARCHAR)
SELECT COUNT(miles__km_) FROM table_2241841_1 WHERE manufacturer = "Dodge"
How many wins are with Dodge vehicles?
CREATE TABLE table_2241841_1 (miles__km_ VARCHAR, manufacturer VARCHAR)
SELECT COUNT(region_4__australia_) FROM table_240936_2 WHERE region_2__uk_ = "July 9, 2007"
How many region 4 dates are associated with a region 2 date of July 9, 2007?
CREATE TABLE table_240936_2 (region_4__australia_ VARCHAR, region_2__uk_ VARCHAR)
SELECT season FROM table_name_24 WHERE score = "0–2 (a), 3–1 (h)"
What is the Season of the game with a Score of 0–2 (a), 3–1 (h)?
CREATE TABLE table_name_24 (season VARCHAR, score VARCHAR)
SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code
Select all the data from the products and each product's manufacturer.
CREATE TABLE products (manufacturer VARCHAR); CREATE TABLE Manufacturers (code VARCHAR)
SELECT COUNT(timeslot) FROM table_27987623_3 WHERE viewers__millions_ = "0.238"
How many timeslots had viewers of 0.238 million?
CREATE TABLE table_27987623_3 (timeslot VARCHAR, viewers__millions_ VARCHAR)
SELECT transfer_fee FROM table_name_33 WHERE ends > 2010 AND transfer_window = "winter"
What was the transfer fee for the player moving in the winter window and ending in a year after 2010?
CREATE TABLE table_name_33 (transfer_fee VARCHAR, ends VARCHAR, transfer_window VARCHAR)
SELECT outcome FROM table_name_2 WHERE opponents = "bob hewitt frew mcmillan"
What Outcome has Opponents of bob hewitt frew mcmillan?
CREATE TABLE table_name_2 (outcome VARCHAR, opponents VARCHAR)