answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT won FROM table_13741576_4 WHERE try_bonus = "10"
Name the won for try bonus of 10
CREATE TABLE table_13741576_4 (won VARCHAR, try_bonus VARCHAR)
SELECT home_team FROM table_name_95 WHERE crowd > 20 OFFSET 000
What home team has had a crowd bigger than 20,000?
CREATE TABLE table_name_95 (home_team VARCHAR, crowd INTEGER)
SELECT AVG(wins) FROM table_name_54 WHERE year = 1963 AND class = "50cc"
Which Wins have a Year of 1963, and a Class of 50cc?
CREATE TABLE table_name_54 (wins INTEGER, year VARCHAR, class VARCHAR)
SELECT type FROM table_name_51 WHERE location = "los angeles, california"
What was the school type for Los Angeles, California?
CREATE TABLE table_name_51 (type VARCHAR, location VARCHAR)
SELECT 1988 FROM table_name_54 WHERE 1985 = "2r"
Which 1988 has a 1985 of 2r?
CREATE TABLE table_name_54 (Id VARCHAR)
SELECT MAX(draws) FROM table_name_5 WHERE goal_difference < 64 AND played > 30
Can you tell me the highest Draws that has the Goal Difference smaller than 64, and the Played larger than 30?
CREATE TABLE table_name_5 (draws INTEGER, goal_difference VARCHAR, played VARCHAR)
SELECT races FROM table_25318033_1 WHERE points = "137"
Which races have 137 points?
CREATE TABLE table_25318033_1 (races VARCHAR, points VARCHAR)
SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING COUNT(*) > 3
Which complaint status has more than 3 records on file?
CREATE TABLE complaints (complaint_status_code VARCHAR)
SELECT address, num_of_staff FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM happy_hour)
Find the address and staff number of the shops that do not have any happy hour.
CREATE TABLE shop (address VARCHAR, num_of_staff VARCHAR, shop_id VARCHAR); CREATE TABLE happy_hour (address VARCHAR, num_of_staff VARCHAR, shop_id VARCHAR)
SELECT MIN(production_code) FROM table_13505192_3 WHERE season_number = 8
What is the production code for season episode 8?
CREATE TABLE table_13505192_3 (production_code INTEGER, season_number VARCHAR)
SELECT T1.Name, T2.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID
Show names of actors and names of musicals they are in.
CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Name VARCHAR, Musical_ID VARCHAR)
SELECT highest_point FROM table_name_46 WHERE country = "south ossetia"
What is the most points for South Ossetia?
CREATE TABLE table_name_46 (highest_point VARCHAR, country VARCHAR)
SELECT circuit FROM table_name_5 WHERE race_name = "i mexican grand prix"
On what circuit was the i mexican grand prix held?
CREATE TABLE table_name_5 (circuit VARCHAR, race_name VARCHAR)
SELECT MAX(pick__number) FROM table_29626583_1 WHERE mls_team = "Chivas USA"
how many pick# does the chivas usa mls team have
CREATE TABLE table_29626583_1 (pick__number INTEGER, mls_team VARCHAR)
SELECT constructor FROM table_name_24 WHERE driver = "clay regazzoni"
Tell me the constructor for clay regazzoni
CREATE TABLE table_name_24 (constructor VARCHAR, driver VARCHAR)
SELECT series FROM table_23286158_11 WHERE high_rebounds = "Marcus Camby (11)"
What series had high rebounds with Marcus Camby (11)?
CREATE TABLE table_23286158_11 (series VARCHAR, high_rebounds VARCHAR)
SELECT lowest_elevation FROM table_name_62 WHERE highest_point = "mont raimeux"
What is the lowest elevation value whose highest point is Mont Raimeux?
CREATE TABLE table_name_62 (lowest_elevation VARCHAR, highest_point VARCHAR)
SELECT win_loss FROM table_26847237_1 WHERE round__number = "Round 3"
Was it a win or loss for Wanganui in round 3?
CREATE TABLE table_26847237_1 (win_loss VARCHAR, round__number VARCHAR)
SELECT away_team FROM table_name_50 WHERE venue = "windy hill"
Which Away team played at the Windy Hill Venue?
CREATE TABLE table_name_50 (away_team VARCHAR, venue VARCHAR)
SELECT MIN(points) FROM table_25352318_1 WHERE position = "3rd"
When 3rd is the position what is the lowest amount of points?
CREATE TABLE table_25352318_1 (points INTEGER, position VARCHAR)
SELECT COUNT(rank) FROM table_name_26 WHERE total > 2 AND bronze < 4
What number of rank has more than 2 medals in total with less than 4 bronze?
CREATE TABLE table_name_26 (rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT end__utc_ FROM table_22385461_6 WHERE spacecraft = "STS-114 EVA 3"
What is the end (UTC) for spacecraft STS-114 Eva 3?
CREATE TABLE table_22385461_6 (end__utc_ VARCHAR, spacecraft VARCHAR)
SELECT MAX(total_votes) FROM table_name_48 WHERE _percentage_of_popular_vote = "0.86%" AND _number_of_seats_won > 0
Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0?
CREATE TABLE table_name_48 (total_votes INTEGER, _percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR)
SELECT départment__or_collectivity_ FROM table_name_54 WHERE since = 2008 AND président = "guy-dominique kennel"
Which department has Guy-Dominique Kennel as president since 2008?
CREATE TABLE table_name_54 (départment__or_collectivity_ VARCHAR, since VARCHAR, président VARCHAR)
SELECT drums FROM table_name_89 WHERE album = "the gray race"
Who played drums for the Gray Race album?
CREATE TABLE table_name_89 (drums VARCHAR, album VARCHAR)
SELECT last_match FROM table_name_8 WHERE manner_of_departure = "sacked" AND outgoing_manager = "geninho"
What is the name of the last match that had a sacked manner of departure and a geninho outgoing manner?
CREATE TABLE table_name_8 (last_match VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')
Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.
CREATE TABLE manufacturers (revenue INTEGER, headquarter VARCHAR)
SELECT corporate_name FROM table_28367242_1 WHERE incorporation_date__city_ = "October 15, 1955"
What is the name of the corporation that incorporated on october 15, 1955?
CREATE TABLE table_28367242_1 (corporate_name VARCHAR, incorporation_date__city_ VARCHAR)
SELECT publication FROM table_name_75 WHERE country = "uk"
Which publication happened in the UK?
CREATE TABLE table_name_75 (publication VARCHAR, country VARCHAR)
SELECT team FROM table_name_21 WHERE year > 1997
Are there any Teams after 1997?
CREATE TABLE table_name_21 (team VARCHAR, year INTEGER)
SELECT COUNT(year) FROM table_name_10 WHERE issue_price > 15.95 AND special_notes = "from edmonton oilers gift set"
What year has an issue price over 15.95, and a special notes from edmonton oilers gift set?
CREATE TABLE table_name_10 (year VARCHAR, issue_price VARCHAR, special_notes VARCHAR)
SELECT frequency FROM table_name_42 WHERE city_of_license = "belleville"
what is the frequency when the city of license is belleville?
CREATE TABLE table_name_42 (frequency VARCHAR, city_of_license VARCHAR)
SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) INTERSECT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)
Find the name of the person who has friends with age above 40 and under age 30?
CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)
SELECT score FROM table_name_87 WHERE country = "australia" AND place = "4"
What is the score for Australia with a place of 4?
CREATE TABLE table_name_87 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT 1 AS st_member FROM table_name_44 WHERE elected = "1541/42"
Who was the 1st member that was elected in 1541/42?
CREATE TABLE table_name_44 (elected VARCHAR)
SELECT main_use FROM table_name_54 WHERE name = "emley moor tower (mk.3)"
What is the Main use of emley moor tower (mk.3)?
CREATE TABLE table_name_54 (main_use VARCHAR, name VARCHAR)
SELECT rank FROM table_name_20 WHERE gold > 0 AND bronze = 0 AND nation = "germany (ger)"
What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation?
CREATE TABLE table_name_20 (rank VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT Prime AS minister FROM table_name_71 WHERE minister = "antoine wehenkel"
Who is the Prime Minister of Antoine Wehenkel?
CREATE TABLE table_name_71 (Prime VARCHAR, minister VARCHAR)
SELECT date FROM table_name_76 WHERE score = "2–3 ot"
Score of 2–3 ot on what date?
CREATE TABLE table_name_76 (date VARCHAR, score VARCHAR)
SELECT branding FROM table_name_99 WHERE callsign = "dwll"
What is the Branding with a Callsign DWLL?
CREATE TABLE table_name_99 (branding VARCHAR, callsign VARCHAR)
SELECT date FROM table_name_66 WHERE away_team = "bolton wanderers"
what is the date when the away team is bolton wanderers?
CREATE TABLE table_name_66 (date VARCHAR, away_team VARCHAR)
SELECT record FROM table_name_57 WHERE opponent = "twins" AND date = "september 25"
What was the home team's record when they played the Twins on September 25?
CREATE TABLE table_name_57 (record VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT MAX(ties) FROM table_name_56 WHERE losses < 4 AND goals_against < 20
Which team has the most ties with fewer than 4 losses and GA smaller than 20?
CREATE TABLE table_name_56 (ties INTEGER, losses VARCHAR, goals_against VARCHAR)
SELECT television_service FROM table_name_36 WHERE content = "cartomanzia"
What is the Television Service offering Cartomanzia?
CREATE TABLE table_name_36 (television_service VARCHAR, content VARCHAR)
SELECT score FROM table_name_31 WHERE year > 1974 AND champion = "hawthorn"
What score has a year later than 1974, with hawthorn as the champion?
CREATE TABLE table_name_31 (score VARCHAR, year VARCHAR, champion VARCHAR)
SELECT home_team AS score FROM table_name_95 WHERE home_team = "st kilda"
What did st kilda score at home?
CREATE TABLE table_name_95 (home_team VARCHAR)
SELECT result FROM table_21063459_1 WHERE opponent = "Mississippi State"
What was the result of the game against Mississippi State?
CREATE TABLE table_21063459_1 (result VARCHAR, opponent VARCHAR)
SELECT MAX(crowd) FROM table_name_9 WHERE home_team = "footscray"
What is the largest crowd for any game where Footscray is the home team?
CREATE TABLE table_name_9 (crowd INTEGER, home_team VARCHAR)
SELECT result FROM table_1342149_43 WHERE district = "Texas 4"
What was the result of the election in the Texas 4 district?
CREATE TABLE table_1342149_43 (result VARCHAR, district VARCHAR)
SELECT nationality FROM table_11545282_6 WHERE player = "Jim Farmer"
What's Jim Farmer's nationality?
CREATE TABLE table_11545282_6 (nationality VARCHAR, player VARCHAR)
SELECT date FROM table_name_49 WHERE score = "0–3" AND set_2 = "16–25"
Which Date has a Score of 0–3, and a Set 2 of 16–25?
CREATE TABLE table_name_49 (date VARCHAR, score VARCHAR, set_2 VARCHAR)
SELECT COUNT(records) FROM table_15313204_1 WHERE _number = 2
How many teams are #2 on the list?
CREATE TABLE table_15313204_1 (records VARCHAR, _number VARCHAR)
SELECT MIN(bronze) FROM table_name_58 WHERE gold < 0
What is the lowest Bronze, when Gold is less than 0?
CREATE TABLE table_name_58 (bronze INTEGER, gold INTEGER)
SELECT date FROM table_name_19 WHERE name = "french grand prix"
What was the date for the French Grand Prix?
CREATE TABLE table_name_19 (date VARCHAR, name VARCHAR)
SELECT MAX(erp_w) FROM table_name_10 WHERE call_sign = "w216bo"
What is the highest ERP W with a w216bo call sign?
CREATE TABLE table_name_10 (erp_w INTEGER, call_sign VARCHAR)
SELECT record FROM table_name_37 WHERE location = "astrodome"
What was the record after the game at the Astrodome?
CREATE TABLE table_name_37 (record VARCHAR, location VARCHAR)
SELECT weekly_schedule FROM table_name_21 WHERE timeslot = "16:45"
What days of the week is the show aired on that runs at 16:45?
CREATE TABLE table_name_21 (weekly_schedule VARCHAR, timeslot VARCHAR)
SELECT county FROM table_name_78 WHERE population_rank = 205
What county is the town with a rank of 205 located in?
CREATE TABLE table_name_78 (county VARCHAR, population_rank VARCHAR)
SELECT segment_a FROM table_name_86 WHERE netflix = "s05e22"
Which segment a's Netflix is S05E22?
CREATE TABLE table_name_86 (segment_a VARCHAR, netflix VARCHAR)
SELECT news_freq FROM table_name_73 WHERE show_name = "locker room"
What is the news frequency for the show Locker Room?
CREATE TABLE table_name_73 (news_freq VARCHAR, show_name VARCHAR)
SELECT COUNT(party) FROM table_1805191_39 WHERE district = "Pennsylvania 1"
In the district of Pennsylvania 1, what is the total number of political parties?
CREATE TABLE table_1805191_39 (party VARCHAR, district VARCHAR)
SELECT district FROM table_1134091_4 WHERE reason_for_change = "Died January 1, 1974"
What was the district when the reason for change was died January 1, 1974?
CREATE TABLE table_1134091_4 (district VARCHAR, reason_for_change VARCHAR)
SELECT res FROM table_name_80 WHERE opponent = "dan bobish"
What was his result against dan bobish?
CREATE TABLE table_name_80 (res VARCHAR, opponent VARCHAR)
SELECT 2005 FROM table_name_76 WHERE güzelçamlı’s_lost_panther = "green fairy"
Which 2005 has a Güzelçamlı’s Lost Panther of green fairy?
CREATE TABLE table_name_76 (güzelçamlı’s_lost_panther VARCHAR)
SELECT city_of_license FROM table_name_98 WHERE call_sign = "kyli"
Which city of license has the Kyli call sign?
CREATE TABLE table_name_98 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT away FROM table_name_67 WHERE competition = "uefa champions league"
What is the away team of the UEFA champions league?
CREATE TABLE table_name_67 (away VARCHAR, competition VARCHAR)
SELECT attendance FROM table_name_92 WHERE record = "4-5"
What was the attendance at the game with a record of 4-5?
CREATE TABLE table_name_92 (attendance VARCHAR, record VARCHAR)
SELECT first_leg FROM table_name_41 WHERE round = "2nd"
What was the first leg score in the 2nd round?
CREATE TABLE table_name_41 (first_leg VARCHAR, round VARCHAR)
SELECT country FROM table_name_4 WHERE place = "t1" AND score = 71 - 68 = 139
Which country is in T1 place with a score of 71-68=139?
CREATE TABLE table_name_4 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT average FROM table_name_57 WHERE band = "f"
Which Average has a Band of f?
CREATE TABLE table_name_57 (average VARCHAR, band VARCHAR)
SELECT score FROM table_name_37 WHERE date = "22 august 2012"
Tell me the score on 22 august 2012
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
SELECT COUNT(location_attendance) FROM table_13557843_7 WHERE team = "Charlotte"
how many location attendance with team being charlotte
CREATE TABLE table_13557843_7 (location_attendance VARCHAR, team VARCHAR)
SELECT first_couple FROM table_25664518_3 WHERE fourth_couple = "Sammy and Nat"
Who was the first couple in the episode having a fourth couple of Sammy and Nat?
CREATE TABLE table_25664518_3 (first_couple VARCHAR, fourth_couple VARCHAR)
SELECT season FROM table_20398823_1 WHERE wins = 0 AND races = 20
Namet he season for wins being 0 and 20 races
CREATE TABLE table_20398823_1 (season VARCHAR, wins VARCHAR, races VARCHAR)
SELECT 1965 FROM table_name_81 WHERE 1967 = "7"
What is the value in 1965 when 7 is the value for 1967?
CREATE TABLE table_name_81 (Id VARCHAR)
SELECT player FROM table_name_20 WHERE finish = "t20"
Who had a finish of t20?
CREATE TABLE table_name_20 (player VARCHAR, finish VARCHAR)
SELECT venue FROM table_name_58 WHERE extra < 7.4 AND result = "4th"
What venue had less than 7.4 extra and the result of 4th?
CREATE TABLE table_name_58 (venue VARCHAR, extra VARCHAR, result VARCHAR)
SELECT date FROM table_name_25 WHERE home = "mavericks"
What was the date of the Mavericks home game?
CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR)
SELECT tie_no FROM table_name_77 WHERE home_team = "crawley town"
Crawley Town as the home team has what as the tie no?
CREATE TABLE table_name_77 (tie_no VARCHAR, home_team VARCHAR)
SELECT area FROM table_2847477_2 WHERE english_name = "Xin County"
What is the area of xin county?
CREATE TABLE table_2847477_2 (area VARCHAR, english_name VARCHAR)
SELECT COUNT(lost) FROM table_name_70 WHERE points = 2
What is the number of lost with 2 points?
CREATE TABLE table_name_70 (lost VARCHAR, points VARCHAR)
SELECT date FROM table_name_32 WHERE home_team = "richmond"
What date does the Home team of Richmond have?
CREATE TABLE table_name_32 (date VARCHAR, home_team VARCHAR)
SELECT result FROM table_1342379_23 WHERE incumbent = "Bill G. Lowrey"
what's the result with incumbent being bill g. lowrey
CREATE TABLE table_1342379_23 (result VARCHAR, incumbent VARCHAR)
SELECT location FROM table_name_4 WHERE country = "scotland" AND name = "muirfield"
Where was the location with Muirfield in Scotland?
CREATE TABLE table_name_4 (location VARCHAR, country VARCHAR, name VARCHAR)
SELECT to_par FROM table_name_20 WHERE player = "phil mickelson"
What was Phil Mickelson's score to par?
CREATE TABLE table_name_20 (to_par VARCHAR, player VARCHAR)
SELECT scott FROM table_2006661_1 WHERE species = "Chloropsis hardwickii"
Name the scott for chloropsis hardwickii
CREATE TABLE table_2006661_1 (scott VARCHAR, species VARCHAR)
SELECT spaceport FROM table_name_82 WHERE launcher = "saturn ib" AND launch_complex = "lc34"
What is the spaceport location that houses the LC34 complex and uses the Saturn IB launcher?
CREATE TABLE table_name_82 (spaceport VARCHAR, launcher VARCHAR, launch_complex VARCHAR)
SELECT result FROM table_1342249_42 WHERE incumbent = "Jere Cooper"
How many results have Jere Cooper as incumbent?
CREATE TABLE table_1342249_42 (result VARCHAR, incumbent VARCHAR)
SELECT format FROM table_name_28 WHERE country = "united kingdom" AND date = "20 october 2008"
what is the format for the country united kingdom on 20 october 2008?
CREATE TABLE table_name_28 (format VARCHAR, country VARCHAR, date VARCHAR)
SELECT event FROM table_name_90 WHERE opponent = "shinya aoki" AND time = "4:56"
Which event had the opponent of shinya aoki and was at 4:56?
CREATE TABLE table_name_90 (event VARCHAR, opponent VARCHAR, time VARCHAR)
SELECT candidates FROM table_1341586_19 WHERE first_elected = 1977
who is the the candidates with first elected being 1977
CREATE TABLE table_1341586_19 (candidates VARCHAR, first_elected VARCHAR)
SELECT champion FROM table_name_52 WHERE year = "2000"
Name the champion for 2000
CREATE TABLE table_name_52 (champion VARCHAR, year VARCHAR)
SELECT time_retired FROM table_name_19 WHERE grid = 3
What is the time/retired for grid 3?
CREATE TABLE table_name_19 (time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(air_date) FROM table_16072430_1 WHERE weekly_rank = "73"
What broadcast dates have a weekly rank of 73?
CREATE TABLE table_16072430_1 (air_date VARCHAR, weekly_rank VARCHAR)
SELECT COUNT(DISTINCT country_code) FROM players
find the number of distinct country codes of all players.
CREATE TABLE players (country_code VARCHAR)
SELECT power__kw_ FROM table_name_75 WHERE location = "metro manila"
Which Power has Location in metro manila
CREATE TABLE table_name_75 (power__kw_ VARCHAR, location VARCHAR)
SELECT AVG(fumbles) FROM table_name_27 WHERE avg > 5.4 AND yards < 164
What is the number of fumbles for the avg larger than 5.4, with yards smaller than 164?
CREATE TABLE table_name_27 (fumbles INTEGER, avg VARCHAR, yards VARCHAR)
SELECT score FROM table_name_66 WHERE date = "november 15"
what is the score on november 15
CREATE TABLE table_name_66 (score VARCHAR, date VARCHAR)
SELECT city FROM table_name_92 WHERE gross_revenue__2011_ = "$739,578"
Which city had a gross revenue in 2011 of $739,578?
CREATE TABLE table_name_92 (city VARCHAR, gross_revenue__2011_ VARCHAR)
SELECT SUM(pick) FROM table_name_24 WHERE round = 11
Round of 11 had waht sum of pick?
CREATE TABLE table_name_24 (pick INTEGER, round VARCHAR)