answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MIN(lost) FROM table_name_27 WHERE _percentage_pts = 93.45
If the points scored were 93.45%, what's the lowest amount of games lost?
CREATE TABLE table_name_27 (lost INTEGER, _percentage_pts VARCHAR)
SELECT opponent FROM table_name_92 WHERE score = "postponed (rain) not rescheduled"
Name the opponent for Score of postponed (rain) not rescheduled
CREATE TABLE table_name_92 (opponent VARCHAR, score VARCHAR)
SELECT chinese_title FROM table_name_3 WHERE average = 32 AND peak < 38 AND rank = 7
What Chinese Title Ranking #7 has an Average of 32 and Peak less than 38?
CREATE TABLE table_name_3 (chinese_title VARCHAR, rank VARCHAR, average VARCHAR, peak VARCHAR)
SELECT tries_against FROM table_13399573_3 WHERE won = "14"
How many tries were against when the number won was 14?
CREATE TABLE table_13399573_3 (tries_against VARCHAR, won VARCHAR)
SELECT date FROM table_name_78 WHERE score = "w 105-88"
What is the date of the game with a w 105-88 score?
CREATE TABLE table_name_78 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_97 WHERE away_team = "carlton"
If the Away team was carlton, what Date did they play?
CREATE TABLE table_name_97 (date VARCHAR, away_team VARCHAR)
SELECT season FROM table_name_19 WHERE points < 16 AND losses = 18
Which season did the Burnaby Lakers have less than 16 points and less than 18 losses?
CREATE TABLE table_name_19 (season VARCHAR, points VARCHAR, losses VARCHAR)
SELECT network FROM table_name_70 WHERE year < 2011 AND title = "star king"
What is the network that aired Star King prior to 2011?
CREATE TABLE table_name_70 (network VARCHAR, year VARCHAR, title VARCHAR)
SELECT COUNT(storms__days_year_) FROM table_name_74 WHERE fog__days_year_ < 74 AND sunshine__hrs_year_ = "2 668"
What are the number of storms where fog is lower than 74, and sunshine is 2 668?
CREATE TABLE table_name_74 (storms__days_year_ VARCHAR, fog__days_year_ VARCHAR, sunshine__hrs_year_ VARCHAR)
SELECT winner FROM table_name_67 WHERE city = "punta del este"
What is the Winner of the Event in Punta del Este?
CREATE TABLE table_name_67 (winner VARCHAR, city VARCHAR)
SELECT visitor FROM table_name_72 WHERE home = "calgary" AND date = "april 17"
Which Visitor has a Home of calgary, and a Date of april 17?
CREATE TABLE table_name_72 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT MIN(d__max_) FROM table_name_47 WHERE morse_taper_number < 0
What is the minimum D (max) when the Morse Taper number is less than 0?
CREATE TABLE table_name_47 (d__max_ INTEGER, morse_taper_number INTEGER)
SELECT championship FROM table_name_55 WHERE outcome = "runner-up" AND opponents_in_final = "gigi fernández natalia zvereva"
What is Championship, when Outcome is "runner-up", and when Opponents In Final is "Gigi Fernández Natalia Zvereva"?
CREATE TABLE table_name_55 (championship VARCHAR, outcome VARCHAR, opponents_in_final VARCHAR)
SELECT date FROM table_name_41 WHERE venue = "a" AND opponent = "celtic"
What was the date of the match at venue A with the celtic as the opponent?
CREATE TABLE table_name_41 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT MAX(top_10s) FROM table_2112220_6 WHERE best_finish = "2"
Name the most top 10s for 2 best finish
CREATE TABLE table_2112220_6 (top_10s INTEGER, best_finish VARCHAR)
SELECT tally FROM table_name_12 WHERE opposition = "derry" AND total = 14
What is the tally when the opposition is Derry, and total is 14?
CREATE TABLE table_name_12 (tally VARCHAR, opposition VARCHAR, total VARCHAR)
SELECT industry FROM table_name_83 WHERE profits__billion_$_ < 14.2 AND assets__billion_$_ > 2 OFFSET 467.9
For which industry was the profit smaller than 14.2 billion and the assets larger than 2,467.9 billion?
CREATE TABLE table_name_83 (industry VARCHAR, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
SELECT 1992 FROM table_name_43 WHERE 1988 = "a" AND tournament = "australian open"
What shows for 1992 when 1988 is A, at the Australian Open?
CREATE TABLE table_name_43 (tournament VARCHAR)
SELECT date FROM table_name_63 WHERE round = "2nd round 2nd leg"
What is the date of the 2nd round 2nd leg?
CREATE TABLE table_name_63 (date VARCHAR, round VARCHAR)
SELECT approx_premium FROM table_10408617_5 WHERE tariff_code = "g9"
What is the premium associated with tariff code g9?
CREATE TABLE table_10408617_5 (approx_premium VARCHAR, tariff_code VARCHAR)
SELECT date FROM table_name_14 WHERE others = "5%" AND szdsz = "5%"
On what date do others have 5% with an SZDSZ of 5%?
CREATE TABLE table_name_14 (date VARCHAR, others VARCHAR, szdsz VARCHAR)
SELECT SUM(samples_taken) FROM table_name_12 WHERE melamine_content_mg_kg_ < 53.4 AND producer = "qingdao suncare nutritional technology"
How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?
CREATE TABLE table_name_12 (samples_taken INTEGER, melamine_content_mg_kg_ VARCHAR, producer VARCHAR)
SELECT COUNT(winners) FROM table_name_11 WHERE runners_up < 0
How many times is runners-up less than 0?
CREATE TABLE table_name_11 (winners VARCHAR, runners_up INTEGER)
SELECT original_airdate FROM table_26139378_1 WHERE viewers__in_millions_ = "8.23"
What is the original airdate of the episode that had 8.23 million viewers?
CREATE TABLE table_26139378_1 (original_airdate VARCHAR, viewers__in_millions_ VARCHAR)
SELECT week FROM table_name_59 WHERE attendance = "75,866"
In What Week was the Attendance 75,866?
CREATE TABLE table_name_59 (week VARCHAR, attendance VARCHAR)
SELECT attendance FROM table_name_41 WHERE date = "december 6, 1998"
What iwas the attendance of the game that took place on december 6, 1998?
CREATE TABLE table_name_41 (attendance VARCHAR, date VARCHAR)
SELECT position FROM table_name_55 WHERE years_in_orlando = "2003–2004"
Which Position has a Years in Orlando of 2003–2004?
CREATE TABLE table_name_55 (position VARCHAR, years_in_orlando VARCHAR)
SELECT home_team AS score FROM table_name_85 WHERE home_team = "collingwood"
What is the score for Collingwood as the home team?
CREATE TABLE table_name_85 (home_team VARCHAR)
SELECT designated_visitors FROM table_name_42 WHERE designated_home = "atlanta falcons"
Who were the visitors when the Atlanta Falcons were the home team?
CREATE TABLE table_name_42 (designated_visitors VARCHAR, designated_home VARCHAR)
SELECT record FROM table_name_11 WHERE opponent = "new york knicks"
What is Record, when Opponent is "New York Knicks"?
CREATE TABLE table_name_11 (record VARCHAR, opponent VARCHAR)
SELECT winner FROM table_22050544_1 WHERE dateca = "Apr 2" AND event__number = "1H"
Who is the winner of event # 1h and dateca is Apr 2?
CREATE TABLE table_22050544_1 (winner VARCHAR, dateca VARCHAR, event__number VARCHAR)
SELECT MAX(round) FROM table_name_67 WHERE name = "roy hall"
What is Roy Hall's highest round?
CREATE TABLE table_name_67 (round INTEGER, name VARCHAR)
SELECT pick FROM table_name_15 WHERE school = "lamar high school"
Which pick was from Lamar High School?
CREATE TABLE table_name_15 (pick VARCHAR, school VARCHAR)
SELECT record FROM table_name_21 WHERE game > 33 AND score = "111-108"
What is the celtics record after game 33 when they score of the game was 111-108?
CREATE TABLE table_name_21 (record VARCHAR, game VARCHAR, score VARCHAR)
SELECT MAX(weight) FROM table_22496344_1 WHERE _number = 20
What is the weight when 20 is the number?
CREATE TABLE table_22496344_1 (weight INTEGER, _number VARCHAR)
SELECT date FROM table_name_7 WHERE attendance = "19,183"
What is the date of the game with an attendance of 19,183?
CREATE TABLE table_name_7 (date VARCHAR, attendance VARCHAR)
SELECT chassis FROM table_name_15 WHERE rounds = "7" AND entrant = "ecurie rosier"
Which chassis had Rounds of 7, and an Entrant of Ecurie Rosier?
CREATE TABLE table_name_15 (chassis VARCHAR, rounds VARCHAR, entrant VARCHAR)
SELECT time FROM table_name_52 WHERE round = 3 AND record = "9-3"
What is the time of the match with 3 rounds and a 9-3 record?
CREATE TABLE table_name_52 (time VARCHAR, round VARCHAR, record VARCHAR)
SELECT level FROM table_23649244_1 WHERE artist_1 = "Wale"
Which level has wale as artist 1?
CREATE TABLE table_23649244_1 (level VARCHAR, artist_1 VARCHAR)
SELECT category FROM table_name_30 WHERE country = "switzerland"
What is the category of the film made in Switzerland?
CREATE TABLE table_name_30 (category VARCHAR, country VARCHAR)
SELECT product, chromosome, porphyria FROM enzyme WHERE LOCATION = 'Cytosol'
What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?
CREATE TABLE enzyme (product VARCHAR, chromosome VARCHAR, porphyria VARCHAR, LOCATION VARCHAR)
SELECT COUNT(outgoing_manager) FROM table_27666856_3 WHERE replaced_by = "Esteban Vigo"
Name the outgoing manager for esteban vigo
CREATE TABLE table_27666856_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT date FROM table_name_68 WHERE opponent = "leyton orient" AND venue = "away"
When was Leyton Orient an away team?
CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT MAX(extra_points) FROM table_14342480_6 WHERE position = "Right tackle"
Name the most extra points for right tackle
CREATE TABLE table_14342480_6 (extra_points INTEGER, position VARCHAR)
SELECT MAX(year) FROM table_name_16 WHERE next_highest_spender = "aarp" AND us_cham_spending = "$39,805,000" AND us_cham_rank > 1
Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1?
CREATE TABLE table_name_16 (year INTEGER, us_cham_rank VARCHAR, next_highest_spender VARCHAR, us_cham_spending VARCHAR)
SELECT score FROM table_name_70 WHERE team_2 = "club valencia"
What was the score of the game when team 2 was club valencia?
CREATE TABLE table_name_70 (score VARCHAR, team_2 VARCHAR)
SELECT MIN(year) FROM table_name_53 WHERE engine = "honda" AND finish = 4
What is the earliest year of the Honda Engine with a finish of 4?
CREATE TABLE table_name_53 (year INTEGER, engine VARCHAR, finish VARCHAR)
SELECT score FROM table_name_37 WHERE home = "green bay packers"
Name the score for home of green bay packers
CREATE TABLE table_name_37 (score VARCHAR, home VARCHAR)
SELECT MIN(total) FROM table_name_46 WHERE gold = 3 AND silver < 3
What is the lowest total of medals that has a gold of 3 and a silver less than 3?
CREATE TABLE table_name_46 (total INTEGER, gold VARCHAR, silver VARCHAR)
SELECT MIN(wins) FROM table_name_9 WHERE class = "50cc" AND team = "tomos" AND year < 1969
Tell me the lowest wins for class of 50cc and team of tomos for year less than 1969
CREATE TABLE table_name_9 (wins INTEGER, year VARCHAR, class VARCHAR, team VARCHAR)
SELECT COUNT(*) FROM club_rank WHERE Total < 10
How many clubs have total medals less than 10?
CREATE TABLE club_rank (Total INTEGER)
SELECT COUNT(goals_for) FROM table_name_25 WHERE played < 38
What is the total number of goals that has been played less than 38 times?
CREATE TABLE table_name_25 (goals_for VARCHAR, played INTEGER)
SELECT region FROM table_1585609_2 WHERE prefecture = "Iwate"
Name the region for iwate
CREATE TABLE table_1585609_2 (region VARCHAR, prefecture VARCHAR)
SELECT first_name, last_name, salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'
display the full name (first and last name), and salary of those employees who working in any department located in London.
CREATE TABLE locations (location_id VARCHAR, city VARCHAR); CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR)
SELECT position FROM table_name_90 WHERE laps = 156
What is Position, when Laps is 156?
CREATE TABLE table_name_90 (position VARCHAR, laps VARCHAR)
SELECT 2008 FROM table_name_46 WHERE 2007 = "a" AND 2010 = "qf"
Which 2008 Tournament has a 2007 of a and a 2010 of qf?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT college FROM table_name_77 WHERE name = "pat thomas"
What college is Pat Thomas from?
CREATE TABLE table_name_77 (college VARCHAR, name VARCHAR)
SELECT away FROM table_name_71 WHERE golden_point_s__scorer = "trent hodkinson" AND home = "manly-warringah sea eagles"
What Away team has the Golden point(s) scorer Trent Hodkinson and the Home of Manly-Warringah Sea Eagles?
CREATE TABLE table_name_71 (away VARCHAR, golden_point_s__scorer VARCHAR, home VARCHAR)
SELECT resale FROM table_name_41 WHERE down__up_to_kbit_s_ = 24000
what is the resale when the down (up to kbit/s) is 24000?
CREATE TABLE table_name_41 (resale VARCHAR, down__up_to_kbit_s_ VARCHAR)
SELECT date FROM table_name_23 WHERE week = 8
What is the date of week 8?
CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR)
SELECT compression_ratio FROM table_name_57 WHERE dx_10_name = "(none)" AND fourcc = "dxt4"
Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4?
CREATE TABLE table_name_57 (compression_ratio VARCHAR, dx_10_name VARCHAR, fourcc VARCHAR)
SELECT COUNT(laps) FROM table_name_90 WHERE time_retired = "+1.906"
How many laps did the team with a time/retired of +1.906 have?
CREATE TABLE table_name_90 (laps VARCHAR, time_retired VARCHAR)
SELECT week FROM table_name_5 WHERE original_artist = "the police"
What week was the Original artist, the police ?
CREATE TABLE table_name_5 (week VARCHAR, original_artist VARCHAR)
SELECT class FROM table_name_6 WHERE quantity = "1"
What is the class with 1 quantity?
CREATE TABLE table_name_6 (class VARCHAR, quantity VARCHAR)
SELECT SUM(silver) FROM table_name_14 WHERE total > 14 AND gold > 16
What is the sum of silver medals for teams with more than 14 total medals and more than 16 golds?
CREATE TABLE table_name_14 (silver INTEGER, total VARCHAR, gold VARCHAR)
SELECT airport FROM table_name_64 WHERE city = "oslo"
What is the Airport in Oslo?
CREATE TABLE table_name_64 (airport VARCHAR, city VARCHAR)
SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = "Paper"
What is the description of document type 'Paper'?
CREATE TABLE Ref_Document_Types (document_type_description VARCHAR, document_type_code VARCHAR)
SELECT position FROM table_name_45 WHERE round > 3 AND pick__number = 238
Which position has a pick # of 238 and a round above 3?
CREATE TABLE table_name_45 (position VARCHAR, round VARCHAR, pick__number VARCHAR)
SELECT number_range FROM table_name_84 WHERE builder = "gloucester rcw" AND introduced = "1937"
What is the number range for the Gloucester RCW builder introduced in 1937?
CREATE TABLE table_name_84 (number_range VARCHAR, builder VARCHAR, introduced VARCHAR)
SELECT MAX(round) FROM table_name_94 WHERE time = "1:44"
What is the highest Round that lasted 1:44?
CREATE TABLE table_name_94 (round INTEGER, time VARCHAR)
SELECT COUNT(average) FROM table_23662356_3 WHERE number_of_dances = 12
How many averages were listed for the couple who had 12 dances?
CREATE TABLE table_23662356_3 (average VARCHAR, number_of_dances VARCHAR)
SELECT COUNT(casinos) FROM table_25438110_5 WHERE fy09_$millions = "$279"
How many casinos are associated with a FY2009 $mil value of exactly $279?
CREATE TABLE table_25438110_5 (casinos VARCHAR, fy09_$millions VARCHAR)
SELECT date FROM table_27733258_7 WHERE game = 29
what date was game 29?
CREATE TABLE table_27733258_7 (date VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_93 WHERE method = "submission (chin in the eye)"
Method of submission (chin in the eye) had what opponent?
CREATE TABLE table_name_93 (opponent VARCHAR, method VARCHAR)
SELECT title FROM table_name_99 WHERE pages = 96
Tell me the title for pages of 96
CREATE TABLE table_name_99 (title VARCHAR, pages VARCHAR)
SELECT founded FROM table_11464746_1 WHERE house_name = "Gongola"
What year was the house named gongola made?
CREATE TABLE table_11464746_1 (founded VARCHAR, house_name VARCHAR)
SELECT SUM(killeen_rate) FROM table_name_8 WHERE reported_offenses > 216 AND us_rate < 3274 AND texas_rate < 2688.9 AND crime = "violent crime"
Reported Offenses larger than 216, and a U.S. Rate smaller than 3274, and a Texas Rate smaller than 2688.9, and a Crime of violent crime has what killeen rate?
CREATE TABLE table_name_8 (killeen_rate INTEGER, crime VARCHAR, texas_rate VARCHAR, reported_offenses VARCHAR, us_rate VARCHAR)
SELECT result FROM table_27487712_1 WHERE district = "Georgia's 3rd"
What was the result of the election for georgia's 3rd district?
CREATE TABLE table_27487712_1 (result VARCHAR, district VARCHAR)
SELECT position FROM table_24477075_1 WHERE minutes = 132
Name the position for 132 minutes
CREATE TABLE table_24477075_1 (position VARCHAR, minutes VARCHAR)
SELECT MIN(penalty_points) FROM table_name_30 WHERE judge_e = "72.22"
what is the least penalty points when the judge e is 72.22?
CREATE TABLE table_name_30 (penalty_points INTEGER, judge_e VARCHAR)
SELECT serbian_league_east FROM table_12283621_6 WHERE serbian_league_belgrade = "Kolubara"
What team was promoted in the Serbian League East in the same season when Kolubara was promoted in the Serbian League Belgrade?
CREATE TABLE table_12283621_6 (serbian_league_east VARCHAR, serbian_league_belgrade VARCHAR)
SELECT country FROM table_name_83 WHERE tournament = "paris masters"
What country was the Paris Masters tournament played in?
CREATE TABLE table_name_83 (country VARCHAR, tournament VARCHAR)
SELECT COUNT(total) FROM table_name_54 WHERE event = "+105 kg" AND clean_ & _jerk < 227.5
What is the total that had an event of +105 kg and clean & jerk less than 227.5?
CREATE TABLE table_name_54 (total VARCHAR, event VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT round FROM table_name_24 WHERE margin = "178"
which round has a margin of 178?
CREATE TABLE table_name_24 (round VARCHAR, margin VARCHAR)
SELECT circuit FROM table_13642023_2 WHERE rnd = 5 AND gtu_winning_team = "#59 Brumos Porsche - Audi"
On what circuit was the GTU winning team #59 Brumos Porsche - Audi in round 5?
CREATE TABLE table_13642023_2 (circuit VARCHAR, rnd VARCHAR, gtu_winning_team VARCHAR)
SELECT 2 AS nd_party FROM table_name_82 WHERE election = "1865"
What is 2nd Party, when Election is "1865"?
CREATE TABLE table_name_82 (election VARCHAR)
SELECT score FROM table_name_20 WHERE time = "1:36"
Name the score for 1:36 time
CREATE TABLE table_name_20 (score VARCHAR, time VARCHAR)
SELECT t1.customer_name, t1.customer_phone FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California'
Find the names and phone numbers of customers living in California state.
CREATE TABLE customer_addresses (customer_id VARCHAR, address_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE addresses (address_id VARCHAR, state_province_county VARCHAR)
SELECT to_par FROM table_name_40 WHERE score = 64 - 73 - 74 - 69 = 280
What is the to par for the score 64-73-74-69=280?
CREATE TABLE table_name_40 (to_par VARCHAR, score VARCHAR)
SELECT away_team AS score FROM table_name_95 WHERE home_team = "essendon"
In the game against Essendon at home, what did the away team score?
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
SELECT maximum_elevation FROM table_24285393_1 WHERE country_or_region = "Netherlands"
What is the maximum elevation in netherlands?
CREATE TABLE table_24285393_1 (maximum_elevation VARCHAR, country_or_region VARCHAR)
SELECT AVG(attendance) FROM table_name_5 WHERE date = "november 1, 1981"
What is the average Attendance for the game on November 1, 1981?
CREATE TABLE table_name_5 (attendance INTEGER, date VARCHAR)
SELECT position FROM table_name_15 WHERE player = "mikhail kravets"
What position does Mikhail Kravets play?
CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR)
SELECT director FROM table_27423508_1 WHERE spanish_title = "Tango Bar"
Who was the director for Tango Bar?
CREATE TABLE table_27423508_1 (director VARCHAR, spanish_title VARCHAR)
SELECT place FROM table_name_94 WHERE comp = "ech" AND date = "1989"
What's the place of 1989 with a comp of ECH?
CREATE TABLE table_name_94 (place VARCHAR, comp VARCHAR, date VARCHAR)
SELECT MIN(floors) FROM table_name_4 WHERE completed < 1970 AND rank > 14
What is the lowest amount of floors in the building completed before 1970 ranked more than 14?
CREATE TABLE table_name_4 (floors INTEGER, completed VARCHAR, rank VARCHAR)
SELECT COUNT(tries_against) FROM table_12792876_4 WHERE "drawn" = "drawn"
Name the tries against for drawn
CREATE TABLE table_12792876_4 (tries_against 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 MIN(bronze) FROM table_name_3 WHERE rank = "3" AND silver < 2
what is the least bronze when the rank is 3 and silver is less than 2?
CREATE TABLE table_name_3 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT poles FROM table_2308381_2 WHERE avg_start = "4.7"
Name the poles for avg start being 4.7
CREATE TABLE table_2308381_2 (poles VARCHAR, avg_start VARCHAR)