answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT constellation FROM table_name_27 WHERE right_ascension___j2000__ = "20h56m40s"
What Constellation has a 20h56m40s Right Ascension (J2000)?
CREATE TABLE table_name_27 (constellation VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT COUNT(candidates) FROM table_1341640_11 WHERE first_elected = 1972
How many candidates were first elected in 1972?
CREATE TABLE table_1341640_11 (candidates VARCHAR, first_elected VARCHAR)
SELECT school FROM table_11677100_11 WHERE position = "Catcher"
What school is he the catcher for?
CREATE TABLE table_11677100_11 (school VARCHAR, position VARCHAR)
SELECT COUNT(pick) FROM table_2781227_2 WHERE player = "Vlastimil Kroupa"
How many values are displayed under pick for Vlastimil Kroupa?
CREATE TABLE table_2781227_2 (pick VARCHAR, player VARCHAR)
SELECT MAX(position) FROM table_name_66 WHERE pilot = "mario kiessling"
What is the highest Position, when Pilot is "Mario Kiessling"?
CREATE TABLE table_name_66 (position INTEGER, pilot VARCHAR)
SELECT date FROM table_name_36 WHERE venue = "lake oval"
Which Date has a Venue of lake oval?
CREATE TABLE table_name_36 (date VARCHAR, venue VARCHAR)
SELECT passed FROM table_256286_19 WHERE description = "Bus and Truck Operating License Bill"
What was the passing result for the measure with a description of bus and truck operating license bill?
CREATE TABLE table_256286_19 (passed VARCHAR, description VARCHAR)
SELECT title FROM table_name_87 WHERE written_by = "terri hughes & ron milbauer" AND original_air_date = "march 6, 2001"
What is the Title written by Terri Hughes & Ron Milbauer, and an Original air date of march 6, 2001?
CREATE TABLE table_name_87 (title VARCHAR, written_by VARCHAR, original_air_date VARCHAR)
SELECT elmers_end FROM table_name_65 WHERE bingham_road = "09:54"
What is the Elmers End with a 09:54 Bingham Road?
CREATE TABLE table_name_65 (elmers_end VARCHAR, bingham_road VARCHAR)
SELECT profit_before_tax__£m_ FROM table_2856898_1 WHERE turnover__£m_ = "431.06"
What was the profit before tax when the turnover was 431.06?
CREATE TABLE table_2856898_1 (profit_before_tax__£m_ VARCHAR, turnover__£m_ VARCHAR)
SELECT mID, AVG(stars) FROM Rating GROUP BY mID HAVING COUNT(*) >= 2
Find the average rating star for each movie that received at least 2 ratings.
CREATE TABLE Rating (mID VARCHAR, stars INTEGER)
SELECT l2_cache FROM table_18823880_10 WHERE release_date = "September 2009" AND part_number_s_ = "BY80607002529AF"
When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?
CREATE TABLE table_18823880_10 (l2_cache VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)
SELECT release_date FROM table_name_68 WHERE title = "too hop to handle"
When was Too Hop to Handle released?
CREATE TABLE table_name_68 (release_date VARCHAR, title VARCHAR)
SELECT winner FROM table_name_85 WHERE points_classification = "francesco moser" AND stage = "12"
Who was the winner of Stage 12 with a Points Classification of Francesco Moser?
CREATE TABLE table_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)
SELECT MAX(silver) FROM table_name_79 WHERE total < 2 AND bronze < 1 AND nation = "yugoslavia"
What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia?
CREATE TABLE table_name_79 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT commissioned FROM table_1206583_2 WHERE builder = "Scotts, Greenock" AND name = "Chieftain"
What are the commissioned for scotts, greenock and chieftain?
CREATE TABLE table_1206583_2 (commissioned VARCHAR, builder VARCHAR, name VARCHAR)
SELECT AVG(episodes) FROM table_name_17 WHERE tv_station = "ntv" AND japanese_title = "あいのうた"
Which Episodes have a TV Station of ntv, and a Japanese Title of あいのうた?
CREATE TABLE table_name_17 (episodes INTEGER, tv_station VARCHAR, japanese_title VARCHAR)
SELECT party FROM table_name_36 WHERE candidate = "grech louis grech"
Which party's candidate is Grech Louis Grech?
CREATE TABLE table_name_36 (party VARCHAR, candidate VARCHAR)
SELECT surface FROM table_name_66 WHERE opponents_in_the_final = "christophe rochus olivier rochus"
What is Surface, when Opponents In The Final is "Christophe Rochus Olivier Rochus"?
CREATE TABLE table_name_66 (surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT no FROM table_23670057_7 WHERE player = "Aigars Vitols"
What is every number when the player is Aigars Vitols?
CREATE TABLE table_23670057_7 (no VARCHAR, player VARCHAR)
SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name
Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).
CREATE TABLE products (name VARCHAR, price VARCHAR)
SELECT race_caller FROM table_22583466_5 WHERE year = 1978
Who called the race in 1978?
CREATE TABLE table_22583466_5 (race_caller VARCHAR, year VARCHAR)
SELECT MIN(founded) FROM table_name_56 WHERE named_after = "river benue"
When is the earliest year founded for houses named after the river benue?
CREATE TABLE table_name_56 (founded INTEGER, named_after VARCHAR)
SELECT AVG(to_iran) FROM table_name_9 WHERE survived < 9 AND aircraft = "ussr an-26" AND damaged > 3
What's the to Iran with fewer than 9 survivors, more than 3 damaged, and an ussr an-26 aircraft?
CREATE TABLE table_name_9 (to_iran INTEGER, damaged VARCHAR, survived VARCHAR, aircraft VARCHAR)
SELECT AVG(year) FROM table_name_89 WHERE avg_start < 6.3 AND wins < 0
What is the average year with an average start smaller than 6.3 and fewer than 0 wins?
CREATE TABLE table_name_89 (year INTEGER, avg_start VARCHAR, wins VARCHAR)
SELECT COUNT(crowd) FROM table_name_96 WHERE home_team = "geelong"
How big was the crowd when Geelong was the home team?
CREATE TABLE table_name_96 (crowd VARCHAR, home_team VARCHAR)
SELECT name FROM table_22810095_8 WHERE moving_from = "northampton Town"
Who moved from Northampton Town?
CREATE TABLE table_22810095_8 (name VARCHAR, moving_from VARCHAR)
SELECT res FROM table_name_79 WHERE record = "12-2"
What is the result of the fight when record is 12-2?
CREATE TABLE table_name_79 (res VARCHAR, record VARCHAR)
SELECT MIN(innings) FROM table_name_89 WHERE sr = 72.05 AND balls_faced < 297
What is the smallest number of innings with a strike rate of 72.05 and under 297 balls faced?
CREATE TABLE table_name_89 (innings INTEGER, sr VARCHAR, balls_faced VARCHAR)
SELECT champion__seed_ FROM table_name_78 WHERE score = "65–56"
What was the Champion of the Game with a Score of 65–56?
CREATE TABLE table_name_78 (champion__seed_ VARCHAR, score VARCHAR)
SELECT COUNT(capacity) FROM table_25346763_1 WHERE year_opened = "1956"
What is the capacity for a facility opened in 1956?
CREATE TABLE table_25346763_1 (capacity VARCHAR, year_opened VARCHAR)
SELECT institution FROM table_262514_1 WHERE nickname = "Ravens"
What is every institution with a nickname of Ravens?
CREATE TABLE table_262514_1 (institution VARCHAR, nickname VARCHAR)
SELECT party FROM table_name_77 WHERE constiuency = "council member for the fifth district"
What is the Party of the council member for the Fifth District?
CREATE TABLE table_name_77 (party VARCHAR, constiuency VARCHAR)
SELECT death FROM table_name_2 WHERE birth = "30 october 1797"
What is the date of death of the duchess born on 30 October 1797?
CREATE TABLE table_name_2 (death VARCHAR, birth VARCHAR)
SELECT MIN(league) FROM table_name_13 WHERE club = "aldershot town" AND play_offs < 0
Which of the lowest leagues had Aldershot town as a club when the play-offs number was less than 0?
CREATE TABLE table_name_13 (league INTEGER, club VARCHAR, play_offs VARCHAR)
SELECT COUNT(won) FROM table_12792876_3 WHERE points_against = "450"
How many were won with the points against was 450?
CREATE TABLE table_12792876_3 (won VARCHAR, points_against VARCHAR)
SELECT year FROM table_name_36 WHERE championship = "peter jackson classic"
Which year was the peter jackson classic?
CREATE TABLE table_name_36 (year VARCHAR, championship VARCHAR)
SELECT nation FROM table_name_20 WHERE gold = 0 AND silver > 1
Which nation has 0 golds and more than 1 silver?
CREATE TABLE table_name_20 (nation VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT COUNT(obama_number) FROM table_20693870_1 WHERE obama_percentage = "29.9%"
How many numbers were recorded under Obama when he had 29.9% voters?
CREATE TABLE table_20693870_1 (obama_number VARCHAR, obama_percentage VARCHAR)
SELECT comments FROM table_1206114_2 WHERE implementation = "Software running on Central Processor Module"
What are the comments when the implementation is software running on central processor module?
CREATE TABLE table_1206114_2 (comments VARCHAR, implementation VARCHAR)
SELECT college FROM table_10361625_1 WHERE player_name = "Keith Hartwig"
Where is the college where Keith Hartwig plays?
CREATE TABLE table_10361625_1 (college VARCHAR, player_name VARCHAR)
SELECT cyrillic_name_other_names FROM table_2562572_43 WHERE settlement = "Debeljača"
What is the cyrillic name other names for the settlement of debeljača?
CREATE TABLE table_2562572_43 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)
SELECT high_assists FROM table_17288845_9 WHERE team = "Houston"
Name the high assists for houston
CREATE TABLE table_17288845_9 (high_assists VARCHAR, team VARCHAR)
SELECT ht_brewer FROM table_1320857_1 WHERE je_armstrong = "C.P. Greeks"
Who is h.t. brewer when je armstrong is c.p. greeks?
CREATE TABLE table_1320857_1 (ht_brewer VARCHAR, je_armstrong VARCHAR)
SELECT year FROM table_1990460_1 WHERE regular_season = "4th, Midwest"
When did the 4th, Midwest season happen?
CREATE TABLE table_1990460_1 (year VARCHAR, regular_season VARCHAR)
SELECT _percentage_yes FROM table_256286_14 WHERE yes_votes = 78961
Name the % yes for yes votes for 78961
CREATE TABLE table_256286_14 (_percentage_yes VARCHAR, yes_votes VARCHAR)
SELECT visitor FROM table_name_41 WHERE home = "philadelphia" AND date = "march 6"
Who is the visitor in Philadelphia on March 6?
CREATE TABLE table_name_41 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT play FROM table_name_18 WHERE country = "belgium"
What play is from the country Belgium?
CREATE TABLE table_name_18 (play VARCHAR, country VARCHAR)
SELECT part_number_s_ FROM table_name_52 WHERE turbo = "9/11" AND frequency = "1.5 ghz"
what is the part number(s) when the turbo is 9/11 and the frequency is 1.5 ghz?
CREATE TABLE table_name_52 (part_number_s_ VARCHAR, turbo VARCHAR, frequency VARCHAR)
SELECT team FROM table_15013825_8 WHERE copa_conmebol_1992 = "Round of 16"
Name the team for copa conmebol 1992 is round of 16
CREATE TABLE table_15013825_8 (team VARCHAR, copa_conmebol_1992 VARCHAR)
SELECT MIN(field_goals__5_points_) FROM table_14342367_15
How many 5 points field goals is minimum
CREATE TABLE table_14342367_15 (field_goals__5_points_ INTEGER)
SELECT outcome FROM table_name_52 WHERE score = "3-6, 2-6"
What was the outcome of the match with a score of 3-6, 2-6?
CREATE TABLE table_name_52 (outcome VARCHAR, score VARCHAR)
SELECT city_of_license FROM table_name_22 WHERE frequency_mhz > 89.5 AND call_sign = "k213el"
Which City of license has a Frequency MHz larger than 89.5, and a Call sign of k213el?
CREATE TABLE table_name_22 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
SELECT host FROM table_name_40 WHERE city = "missoula"
Which host university is based in Missoula?
CREATE TABLE table_name_40 (host VARCHAR, city VARCHAR)
SELECT SUM(2006) FROM table_name_46 WHERE 2007 < 6.7 AND 2009 < 3.4
What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT MAX(year) FROM table_name_32 WHERE film = "baazigar"
Which Year has a Film of baazigar?
CREATE TABLE table_name_32 (year INTEGER, film VARCHAR)
SELECT result FROM table_name_90 WHERE venue = "lincoln financial field" AND date = "december 11, 2005"
Tell me the result for lincoln financial field december 11, 2005
CREATE TABLE table_name_90 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT olivier FROM table_29728787_1 WHERE la_roche = "Karl Ridderbusch"
When karl ridderbusch is the la roche who is the olivier?
CREATE TABLE table_29728787_1 (olivier VARCHAR, la_roche VARCHAR)
SELECT colors FROM table_22319599_1 WHERE school = "John A. Logan College"
If the school is John A. Logan College, what are the colors?
CREATE TABLE table_22319599_1 (colors VARCHAR, school VARCHAR)
SELECT date_of_appointment FROM table_19359427_6 WHERE position_in_table = "21st"
When was the new manager of the team on 21st position appointed?
CREATE TABLE table_19359427_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)
SELECT category FROM table_name_38 WHERE year = 2010 AND result = "nominated" AND awards = "british soap awards"
What category was nominated in 2010 fo the British Soap Awards?
CREATE TABLE table_name_38 (category VARCHAR, awards VARCHAR, year VARCHAR, result VARCHAR)
SELECT successor FROM table_2159537_3 WHERE reason_for_change = "Died January 16, 1944"
Who was the successor for the reason for change being "died January 16, 1944?
CREATE TABLE table_2159537_3 (successor VARCHAR, reason_for_change VARCHAR)
SELECT pick__number FROM table_2897457_5 WHERE player = "Marc Deschamps"
What pick number was marc deschamps?
CREATE TABLE table_2897457_5 (pick__number VARCHAR, player VARCHAR)
SELECT AVG(cuts_made) FROM table_name_96 WHERE wins = 2 AND top_5 < 7
How many vuts made for a player with 2 wins and under 7 top 5s?
CREATE TABLE table_name_96 (cuts_made INTEGER, wins VARCHAR, top_5 VARCHAR)
SELECT COUNT(swimsuit) FROM table_name_54 WHERE interview < 9.09 AND evening_gown < 8.21 AND average = 8.453
Name the total number of swimsuits for evening gowns less than 8.21 and average of 8.453 with interview less than 9.09
CREATE TABLE table_name_54 (swimsuit VARCHAR, average VARCHAR, interview VARCHAR, evening_gown VARCHAR)
SELECT MIN(points) FROM table_name_67 WHERE lost = 2 AND position < 1
What is the smallest amount of points had a lost number of 2 when the position was less than 1?
CREATE TABLE table_name_67 (points INTEGER, lost VARCHAR, position VARCHAR)
SELECT district FROM table_1341453_15 WHERE incumbent = "John Porter"
What district was John Porter elected in?
CREATE TABLE table_1341453_15 (district VARCHAR, incumbent VARCHAR)
SELECT position FROM table_name_96 WHERE round < 3 AND overall < 48
Which position had fewer rounds than 3, and an overall of less than 48?
CREATE TABLE table_name_96 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT reported_age FROM table_name_62 WHERE reported_birth_date = "22 december 1878"
what is the reported age when the reported birth date is 22 december 1878?
CREATE TABLE table_name_62 (reported_age VARCHAR, reported_birth_date VARCHAR)
SELECT SUM(gold) FROM table_name_26 WHERE nation = "united states" AND silver > 3
What is the sum of gold medals for the United States with silver medal count greater than 3?
CREATE TABLE table_name_26 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT restaurant_name FROM table_name_93 WHERE original_name = "essence"
What is the name of the restaurant originally named Essence?
CREATE TABLE table_name_93 (restaurant_name VARCHAR, original_name VARCHAR)
SELECT connection_speed FROM table_19246_1 WHERE launch_date__ddmmyyyy_ = "07.06.2005"
What was the connection speed when launched on 07.06.2005?
CREATE TABLE table_19246_1 (connection_speed VARCHAR, launch_date__ddmmyyyy_ VARCHAR)
SELECT saturday FROM table_11019212_1 WHERE wednesday = "10:00-5:00"
what's the saturday time with wednesday being 10:00-5:00
CREATE TABLE table_11019212_1 (saturday VARCHAR, wednesday VARCHAR)
SELECT driver FROM table_name_17 WHERE grid > 3 AND time_retired = "accident"
Who drove in grids more than 3 and exited in an accident?
CREATE TABLE table_name_17 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points DESC LIMIT 1
Show the height of the mountain climbed by the climber with the maximum points.
CREATE TABLE climber (Mountain_ID VARCHAR, Points VARCHAR); CREATE TABLE mountain (Height VARCHAR, Mountain_ID VARCHAR)
SELECT SUM(crowd) FROM table_name_32 WHERE venue = "mcg"
How many people were present in a total of every crowd at the MCG venue?
CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR)
SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = "The first time"
Name the least season # for the first time
CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR)
SELECT player FROM table_name_52 WHERE position = "guard" AND school_club_team = "byu"
What Utah Jazz guard, played at BYU?
CREATE TABLE table_name_52 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT driver FROM table_name_56 WHERE chassis = "166 c 500"
What driver has a 166 c 500 chassis?
CREATE TABLE table_name_56 (driver VARCHAR, chassis VARCHAR)
SELECT year FROM table_name_13 WHERE original_title = "la cérémonie"
Which Year has the Orginal title of La Cérémonie?
CREATE TABLE table_name_13 (year VARCHAR, original_title VARCHAR)
SELECT MAX(smallpox) FROM table_1007688_1 WHERE typhoid_fever = 293
what is the number of smallpox when typhoid fever is 293
CREATE TABLE table_1007688_1 (smallpox INTEGER, typhoid_fever VARCHAR)
SELECT to_par FROM table_name_15 WHERE player = "willie wood"
What was willie wood's to par?
CREATE TABLE table_name_15 (to_par VARCHAR, player VARCHAR)
SELECT MIN(played) FROM table_name_39 WHERE points = 36 AND place > 2
what is the least played when points is 36 and place is more than 2?
CREATE TABLE table_name_39 (played INTEGER, points VARCHAR, place VARCHAR)
SELECT SUM(goals_against) FROM table_name_54 WHERE goals_for < 33 AND points < 16
How many Goals against have Goals for smaller than 33, and Points smaller than 16?
CREATE TABLE table_name_54 (goals_against INTEGER, goals_for VARCHAR, points VARCHAR)
SELECT date FROM table_name_57 WHERE away_team = "essendon"
On what date was essendon the away team?
CREATE TABLE table_name_57 (date VARCHAR, away_team VARCHAR)
SELECT 1991 FROM table_name_69 WHERE 1992 = "1r" AND 1990 = "1r"
What is the 1991 when 1992 and 1990 are 1R?
CREATE TABLE table_name_69 (Id VARCHAR)
SELECT MAX(extra_points_1_point) FROM table_14342367_15 WHERE player = "Paul Dickey"
How many extra points did Paul Dickey received
CREATE TABLE table_14342367_15 (extra_points_1_point INTEGER, player VARCHAR)
SELECT area_km_2 FROM table_171361_1 WHERE population = 1209
What is the area of the community with a population of 1209?
CREATE TABLE table_171361_1 (area_km_2 VARCHAR, population VARCHAR)
SELECT brooklyn FROM table_1108394_47 WHERE manhattan = "321"
How many votes in Brooklyn were won by the candidate who won 321 votes in Manhattan?
CREATE TABLE table_1108394_47 (brooklyn VARCHAR, manhattan VARCHAR)
SELECT COUNT(crowd) FROM table_name_66 WHERE home_team = "south melbourne"
How many people are in the crowd in south melbourne?
CREATE TABLE table_name_66 (crowd VARCHAR, home_team VARCHAR)
SELECT SUM(points) FROM table_name_49 WHERE entrant = "forti corse"
what is the points total for forti corse?
CREATE TABLE table_name_49 (points INTEGER, entrant VARCHAR)
SELECT date FROM table_name_16 WHERE region = "new zealand"
What is the release Date for the New Zealand Region?
CREATE TABLE table_name_16 (date VARCHAR, region VARCHAR)
SELECT hindu FROM table_name_87 WHERE jewish = "source: uk 2001 census"
Tell me the Hindu with Jewish of source: uk 2001 census
CREATE TABLE table_name_87 (hindu VARCHAR, jewish VARCHAR)
SELECT chassis FROM table_name_66 WHERE engine = "ford v8" AND year < 1976 AND points = "12"
Before 1976 and with 12 points, what chassis did the Ford V8 have?
CREATE TABLE table_name_66 (chassis VARCHAR, points VARCHAR, engine VARCHAR, year VARCHAR)
SELECT name FROM table_22496344_1 WHERE year = "Senior" AND _number < 10.0
What is the name when senior is the year with the # less than 10.0?
CREATE TABLE table_22496344_1 (name VARCHAR, year VARCHAR, _number VARCHAR)
SELECT SUM(silver) FROM table_name_50 WHERE bronze > 3 AND gold = 16
How many Silver medals were won in total by all those with more than 3 bronze and exactly 16 gold?
CREATE TABLE table_name_50 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT SUM(silver) FROM table_name_41 WHERE bronze = 8
What is the silver medal count of the team that finished with 8 bronze medals?
CREATE TABLE table_name_41 (silver INTEGER, bronze VARCHAR)
SELECT date FROM table_name_54 WHERE week = "1"
When does week 1 start?
CREATE TABLE table_name_54 (date VARCHAR, week VARCHAR)
SELECT record FROM table_name_1 WHERE date = "october 25, 1964"
Date of October 25, 1964 involves what record?
CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR)
SELECT game_modes FROM table_1616608_2 WHERE pinyin = "Zhígǎn Yī Bǐ"
What game modes are there when the pinyin is zhígǎn yī bǐ ?
CREATE TABLE table_1616608_2 (game_modes VARCHAR, pinyin VARCHAR)