question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Show different occupations along with the number of players in each occupation.
CREATE TABLE player (Occupation VARCHAR)
SELECT Occupation, COUNT(*) FROM player GROUP BY Occupation
When did the Cowboys score 13 points in 1966?
CREATE TABLE table_22801165_1 (date VARCHAR, cowboys_points VARCHAR)
SELECT date FROM table_22801165_1 WHERE cowboys_points = 13
Find the distinct winery of wines having price between 50 and 100.
CREATE TABLE WINE (Winery VARCHAR, Price INTEGER)
SELECT DISTINCT Winery FROM WINE WHERE Price BETWEEN 50 AND 100
What was the final score for the game in which Carmelo Anthony (26) was the high points scorer?
CREATE TABLE table_name_78 (score VARCHAR, high_points VARCHAR)
SELECT score FROM table_name_78 WHERE high_points = "carmelo anthony (26)"
What is Russia's time with a heat higher than 3?
CREATE TABLE table_name_21 (time VARCHAR, nationality VARCHAR, heat VARCHAR)
SELECT time FROM table_name_21 WHERE nationality = "russia" AND heat > 3
What day is miami the venue with 38 goals?
CREATE TABLE table_name_67 (date VARCHAR, venue VARCHAR, goal VARCHAR)
SELECT date FROM table_name_67 WHERE venue = "miami" AND goal = 38
What was the winning score in the PGA Championship?
CREATE TABLE table_name_14 (winning_score VARCHAR, championship VARCHAR)
SELECT winning_score FROM table_name_14 WHERE championship = "pga championship"
Which year has 200 laps?
CREATE TABLE table_name_95 (year VARCHAR, laps VARCHAR)
SELECT year FROM table_name_95 WHERE laps = 200
What is the bowling style of the player whose first class team is Islamabad and has a date of birth of 28 February 1975?
CREATE TABLE table_name_72 (bowling_style VARCHAR, first_class_team VARCHAR, date_of_birth VARCHAR)
SELECT bowling_style FROM table_name_72 WHERE first_class_team = "islamabad" AND date_of_birth = "28 february 1975"
What team was the opponent for the game played on December 19, 1999?
CREATE TABLE table_name_87 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_87 WHERE date = "december 19, 1999"
Where is the German Grand Prix?
CREATE TABLE table_1140082_2 (location VARCHAR, race VARCHAR)
SELECT location FROM table_1140082_2 WHERE race = "German Grand Prix"
What was the lowest number in Pernambuco where the Northeast had a total of 119978?
CREATE TABLE table_name_55 (pernambuco INTEGER, northeast_total VARCHAR)
SELECT MIN(pernambuco) FROM table_name_55 WHERE northeast_total = "119978"
Which location has a method of decision and Nikos Tsoukalas for an opponent?
CREATE TABLE table_name_97 (location VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_97 WHERE method = "decision" AND opponent = "nikos tsoukalas"
Name of choice b. Randell is the name of which District Residence?
CREATE TABLE table_name_4 (district_residence VARCHAR, name VARCHAR)
SELECT district_residence FROM table_name_4 WHERE name = "choice b. randell"
What place is the golfer in who is from Spain?
CREATE TABLE table_name_21 (place VARCHAR, country VARCHAR)
SELECT place FROM table_name_21 WHERE country = "spain"
Name the result for south carolina 4
CREATE TABLE table_1341930_40 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341930_40 WHERE district = "South Carolina 4"
What is the highest tonnage of the ship from norway?
CREATE TABLE table_name_71 (tonnage INTEGER, nationality VARCHAR)
SELECT MAX(tonnage) FROM table_name_71 WHERE nationality = "norway"
Who publishes Wolverine?
CREATE TABLE table_name_67 (publisher VARCHAR, character_s_ VARCHAR)
SELECT publisher FROM table_name_67 WHERE character_s_ = "wolverine"
Name the money spent for 2Q having candidate of john mccain
CREATE TABLE table_name_84 (money_spent VARCHAR, _2q VARCHAR, candidate VARCHAR)
SELECT money_spent, _2q FROM table_name_84 WHERE candidate = "john mccain"
Who is every main presenter for the Estonia region/country?
CREATE TABLE table_24224647_2 (main_presenter VARCHAR, region_country VARCHAR)
SELECT main_presenter FROM table_24224647_2 WHERE region_country = "Estonia"
Who attended the school in 2006, that Whitney Powell attended in 2007?
CREATE TABLE table_name_32 (Id VARCHAR)
SELECT 2006 FROM table_name_32 WHERE 2007 = "whitney powell"
Which Channel has an Opponent of washington redskins?
CREATE TABLE table_name_41 (channel VARCHAR, opponent VARCHAR)
SELECT channel FROM table_name_41 WHERE opponent = "washington redskins"
What are the total casualties with 1,200+ military and/or civilian wounded?
CREATE TABLE table_name_54 (total_casualties VARCHAR, military_and_or_civilian_wounded VARCHAR)
SELECT total_casualties FROM table_name_54 WHERE military_and_or_civilian_wounded = "1,200+"
Kim Weiskopf and Jeff Franklin wrote all the no. in series.
CREATE TABLE table_25276528_2 (no_in_series VARCHAR, written_by VARCHAR)
SELECT no_in_series FROM table_25276528_2 WHERE written_by = "Kim Weiskopf and Jeff Franklin"
Which series episode has a segment c that is Electric pole s transformer?
CREATE TABLE table_name_59 (series_ep VARCHAR, segment_c VARCHAR)
SELECT series_ep FROM table_name_59 WHERE segment_c = "electric pole s transformer"
What is the least amount of field goals made by a player?
CREATE TABLE table_14342210_6 (field_goals INTEGER)
SELECT MIN(field_goals) FROM table_14342210_6
What were the results for November 24, 2002?
CREATE TABLE table_name_79 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_79 WHERE date = "november 24, 2002"
What's the authority when the roll is less than 234 for the massey east area?
CREATE TABLE table_name_79 (authority VARCHAR, roll VARCHAR, area VARCHAR)
SELECT authority FROM table_name_79 WHERE roll < 234 AND area = "massey east"
Return all reviewer names and movie names together in a single list.
CREATE TABLE Reviewer (name VARCHAR, title VARCHAR); CREATE TABLE Movie (name VARCHAR, title VARCHAR)
SELECT name FROM Reviewer UNION SELECT title FROM Movie
what is the score when the surface is hard and outcome is runner-up?
CREATE TABLE table_name_85 (score VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT score FROM table_name_85 WHERE surface = "hard" AND outcome = "runner-up"
Name the total number of attendance for october 20, 1946 with week less than 4
CREATE TABLE table_name_43 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT COUNT(attendance) FROM table_name_43 WHERE date = "october 20, 1946" AND week < 4
What was the result when the attendance was 25,418?
CREATE TABLE table_name_99 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_99 WHERE attendance = "25,418"
How many points does Marussia Manor Racing have?
CREATE TABLE table_25548630_1 (points VARCHAR, team VARCHAR)
SELECT COUNT(points) FROM table_25548630_1 WHERE team = "Marussia Manor Racing"
Who is the Opponent on January 16?
CREATE TABLE table_name_45 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_45 WHERE date = "january 16"
Name the total number of round for against the netherlands
CREATE TABLE table_22825058_23 (round VARCHAR, against VARCHAR)
SELECT COUNT(round) FROM table_22825058_23 WHERE against = "The Netherlands"
Which country is ranked number 2 and has less than 5 total medals?
CREATE TABLE table_name_61 (silver VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(silver) FROM table_name_61 WHERE rank = 2 AND total < 5
What was the result when they were on a bye week?
CREATE TABLE table_name_33 (result VARCHAR, stadium VARCHAR)
SELECT result FROM table_name_33 WHERE stadium = "bye week"
What is the date listed for the item that has undergoing overhaul, restoration or repairs listed under description?
CREATE TABLE table_name_62 (date VARCHAR, description VARCHAR)
SELECT date FROM table_name_62 WHERE description = "undergoing overhaul, restoration or repairs"
Who is the pregame host when the pregame analysts is Dave Campbell and the year is 2001?
CREATE TABLE table_2941848_10 (pregame_hosts VARCHAR, pregame_analysts VARCHAR, year VARCHAR)
SELECT pregame_hosts FROM table_2941848_10 WHERE pregame_analysts = "Dave Campbell" AND year = 2001
what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91?
CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, stage_wins VARCHAR)
SELECT MAX(points) FROM table_name_42 WHERE chassis = "focus rs wrc 08 and 09" AND stage_wins > 91
What is the FCC info for the radio station in West Lafayette, Indiana?
CREATE TABLE table_name_35 (fcc_info VARCHAR, state VARCHAR, city_of_license VARCHAR)
SELECT fcc_info FROM table_name_35 WHERE state = "indiana" AND city_of_license = "west lafayette"
What is the Home team on October 17 with a Score of 1–2?
CREATE TABLE table_name_21 (home VARCHAR, score VARCHAR, date VARCHAR)
SELECT home FROM table_name_21 WHERE score = "1–2" AND date = "october 17"
Name the team for avg start being 20.5
CREATE TABLE table_2463383_2 (team_s_ VARCHAR, avg_start VARCHAR)
SELECT team_s_ FROM table_2463383_2 WHERE avg_start = "20.5"
What district does incumbent james c. davis represent?
CREATE TABLE table_1342218_11 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342218_11 WHERE incumbent = "James C. Davis"
Who is the rider who has a rank lower than 10, and a time of 1:26.31.20?
CREATE TABLE table_name_57 (rider VARCHAR, rank VARCHAR, time VARCHAR)
SELECT rider FROM table_name_57 WHERE rank < 10 AND time = "1:26.31.20"
What is the mascot of the school in New Washington in 10 Clark county?
CREATE TABLE table_name_50 (mascot VARCHAR, county VARCHAR, location VARCHAR)
SELECT mascot FROM table_name_50 WHERE county = "10 clark" AND location = "new washington"
What was the Result of the game after Week 4 with a Time of 5:15 p.m. and a Record of 4–7?
CREATE TABLE table_name_88 (result VARCHAR, record VARCHAR, week VARCHAR, time VARCHAR)
SELECT result FROM table_name_88 WHERE week > 4 AND time = "5:15 p.m." AND record = "4–7"
What was the average number of "goals for", scored in the club Real Oviedo that had a "goal difference" lower than -16 and fewer than 9 wins?
CREATE TABLE table_name_68 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR, club VARCHAR)
SELECT AVG(goals_for) FROM table_name_68 WHERE goal_difference < -16 AND club = "real oviedo" AND wins < 9
What is the status for 07/01/1961?
CREATE TABLE table_name_91 (status VARCHAR, date VARCHAR)
SELECT status FROM table_name_91 WHERE date = "07/01/1961"
Which Grid has a Driver of johnny dumfries?
CREATE TABLE table_name_85 (grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_85 WHERE driver = "johnny dumfries"
What was the away team score at Windy Hill?
CREATE TABLE table_name_25 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_25 WHERE venue = "windy hill"
Willy Sagnol with a type as career end had what has the transfer fee?
CREATE TABLE table_name_34 (transfer_fee VARCHAR, type VARCHAR, name VARCHAR)
SELECT transfer_fee FROM table_name_34 WHERE type = "career end" AND name = "willy sagnol"
What was the name of the episode Alan Yang wrote?
CREATE TABLE table_25341765_1 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_25341765_1 WHERE written_by = "Alan Yang"
How many dates originally aired episodes located in Philadelphia, pennsylvania?
CREATE TABLE table_24798489_2 (original_airdate VARCHAR, location VARCHAR)
SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE location = "Philadelphia, Pennsylvania"
What is the Manufacturer with a Fuel Type that is diesel?
CREATE TABLE table_name_9 (manufacturer VARCHAR, fuel_type VARCHAR)
SELECT manufacturer FROM table_name_9 WHERE fuel_type = "diesel"
How many counties are there?
CREATE TABLE county_public_safety (Id VARCHAR)
SELECT COUNT(*) FROM county_public_safety
What was drawn for 6 bonus points and is against 410 points?
CREATE TABLE table_name_87 (drawn VARCHAR, bonus_points VARCHAR, points_against VARCHAR)
SELECT drawn FROM table_name_87 WHERE bonus_points = "6" AND points_against = "410"
What position did athlete play from Tennessee state?
CREATE TABLE table_name_86 (pos VARCHAR, college VARCHAR)
SELECT pos FROM table_name_86 WHERE college = "tennessee state"
what is the least floors when the building type is residential and the sr no is 8?
CREATE TABLE table_name_79 (floors INTEGER, building_type VARCHAR, sr_no VARCHAR)
SELECT MIN(floors) FROM table_name_79 WHERE building_type = "residential" AND sr_no = 8
What opponent has april 10 as the date?
CREATE TABLE table_name_14 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_14 WHERE date = "april 10"
Who is the studio host that has a play-by-play announcer of Bob Cole and a colour commentator of Harry Neale?
CREATE TABLE table_name_38 (studio_host VARCHAR, play_by_play VARCHAR, colour_commentator_s_ VARCHAR)
SELECT studio_host FROM table_name_38 WHERE play_by_play = "bob cole" AND colour_commentator_s_ = "harry neale"
Who was the rider who had an accident time and a kawasaki zx-10r bike?
CREATE TABLE table_name_49 (rider VARCHAR, time VARCHAR, bike VARCHAR)
SELECT rider FROM table_name_49 WHERE time = "accident" AND bike = "kawasaki zx-10r"
Julio Robledo represents which country?
CREATE TABLE table_name_55 (country VARCHAR, director_s_ VARCHAR)
SELECT country FROM table_name_55 WHERE director_s_ = "julio robledo"
Which player went to college at Laval?
CREATE TABLE table_10812938_3 (player VARCHAR, college VARCHAR)
SELECT player FROM table_10812938_3 WHERE college = "Laval"
Name the player for 22 events
CREATE TABLE table_24108789_6 (player VARCHAR, events VARCHAR)
SELECT player FROM table_24108789_6 WHERE events = 22
What is Name, when Authors are Kammerer & Sidor?
CREATE TABLE table_name_51 (name VARCHAR, authors VARCHAR)
SELECT name FROM table_name_51 WHERE authors = "kammerer & sidor"
What is the 2005-2006 team for player Phil Kessel?
CREATE TABLE table_name_89 (name VARCHAR)
SELECT 2005 AS _2006_team FROM table_name_89 WHERE name = "phil kessel"
What were highest points received from someone using a zabel-wsp with a position greater than 7?
CREATE TABLE table_name_15 (points INTEGER, equipment VARCHAR, position VARCHAR)
SELECT MAX(points) FROM table_name_15 WHERE equipment = "zabel-wsp" AND position > 7
Name the number of conference tournament for james madison
CREATE TABLE table_22849575_6 (conference VARCHAR, tournament_winner VARCHAR)
SELECT COUNT(conference) AS Tournament FROM table_22849575_6 WHERE tournament_winner = "James Madison"
What is the average year to begin making autos for a brand that joined GM in 1917?
CREATE TABLE table_name_30 (year_began_making_autos INTEGER, year_joined_gm VARCHAR)
SELECT AVG(year_began_making_autos) FROM table_name_30 WHERE year_joined_gm = 1917
Which Network has 17.5 million Viewers?
CREATE TABLE table_name_99 (network VARCHAR, viewers VARCHAR)
SELECT network FROM table_name_99 WHERE viewers = "17.5 million"
Find the name and training hours of players whose hours are below 1500.
CREATE TABLE Player (pName VARCHAR, HS INTEGER)
SELECT pName, HS FROM Player WHERE HS < 1500
Who was the coach who had 215 losses?
CREATE TABLE table_name_33 (coach VARCHAR, losses VARCHAR)
SELECT coach FROM table_name_33 WHERE losses = 215
What is every original language for book series Little House on the Prairie?
CREATE TABLE table_2512935_8 (original_language VARCHAR, book_series VARCHAR)
SELECT original_language FROM table_2512935_8 WHERE book_series = "Little House on the Prairie"
Which composer has a track length of 2:50?
CREATE TABLE table_name_33 (composer_s_ VARCHAR, time VARCHAR)
SELECT composer_s_ FROM table_name_33 WHERE time = "2:50"
How many Januarys had records of 22-15-6?
CREATE TABLE table_name_14 (january VARCHAR, record VARCHAR)
SELECT COUNT(january) FROM table_name_14 WHERE record = "22-15-6"
What is Venue, when Opposing Teams is "South Africa", and when Date is "17/06/2000"?
CREATE TABLE table_name_46 (venue VARCHAR, opposing_teams VARCHAR, date VARCHAR)
SELECT venue FROM table_name_46 WHERE opposing_teams = "south africa" AND date = "17/06/2000"
What was the result of the last 5 meetings for a team with an L 1 streak?
CREATE TABLE table_name_85 (last_5_meetings VARCHAR, current_streak VARCHAR)
SELECT last_5_meetings FROM table_name_85 WHERE current_streak = "l 1"
What point against has tries against of 77, and a lost of 16?
CREATE TABLE table_name_93 (points_against VARCHAR, tries_against VARCHAR, lost VARCHAR)
SELECT points_against FROM table_name_93 WHERE tries_against = "77" AND lost = "16"
Which Format has a Label of eagle records, and a Catalogue number(s) of edgcd391?
CREATE TABLE table_name_23 (format VARCHAR, label VARCHAR, catalogue_number_s_ VARCHAR)
SELECT format FROM table_name_23 WHERE label = "eagle records" AND catalogue_number_s_ = "edgcd391"
Return the names of all counties sorted by population in ascending order.
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
SELECT County_name FROM county ORDER BY Population
How many losses did the coach who served under 1 season and in 1975 have?
CREATE TABLE table_name_93 (lost VARCHAR, years VARCHAR, seasons VARCHAR)
SELECT COUNT(lost) FROM table_name_93 WHERE years = "1975" AND seasons < 1
What is the total number in attendance for the game after week 8 that was on November 25, 1979?
CREATE TABLE table_name_49 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_49 WHERE week > 8 AND date = "november 25, 1979"
Who is the instructor with the highest salary?
CREATE TABLE instructor (name VARCHAR, salary VARCHAR)
SELECT name FROM instructor ORDER BY salary DESC LIMIT 1
What episode was written by Bobby Bell and Bill Lee?
CREATE TABLE table_12226390_4 (no_in_season INTEGER, written_by VARCHAR)
SELECT MAX(no_in_season) FROM table_12226390_4 WHERE written_by = "Bobby Bell and Bill Lee"
Who danced the Cha-Cha-Cha on November 18, 2008?
CREATE TABLE table_name_2 (pair VARCHAR, dance VARCHAR, date VARCHAR)
SELECT pair FROM table_name_2 WHERE dance = "cha-cha-cha" AND date = "november 18, 2008"
What team has the most wins with at least 18 goals and less than 5 losses?
CREATE TABLE table_name_85 (wins INTEGER, goals_for VARCHAR, losses VARCHAR)
SELECT MAX(wins) FROM table_name_85 WHERE goals_for = 18 AND losses < 5
What engine what in the vehicle when adt champion racing ranked in 1st place?
CREATE TABLE table_name_21 (engine VARCHAR, rank VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_21 WHERE rank = "1st" AND entrant = "adt champion racing"
When was the game played against a visiting team from Philadelphia?
CREATE TABLE table_name_65 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_65 WHERE visitor = "philadelphia"
What are the details for John Buchanan?
CREATE TABLE table_name_71 (details VARCHAR, name VARCHAR)
SELECT details FROM table_name_71 WHERE name = "john buchanan"
What Construction Start has an Inauguration Date of 2010 june?
CREATE TABLE table_name_39 (construction_start VARCHAR, inauguration_date VARCHAR)
SELECT construction_start FROM table_name_39 WHERE inauguration_date = "2010 june"
who are the candidates when the incumbent is lindsey graham?
CREATE TABLE table_1341423_40 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341423_40 WHERE incumbent = "Lindsey Graham"
How many customers live in Prague city?
CREATE TABLE customers (city VARCHAR)
SELECT COUNT(*) FROM customers WHERE city = "Prague"
How many match numbers have team europe listed as osku palermaa?
CREATE TABLE table_19072602_2 (match_no VARCHAR, team_europe VARCHAR)
SELECT COUNT(match_no) FROM table_19072602_2 WHERE team_europe = "Osku Palermaa"
What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro?
CREATE TABLE table_name_39 (sensor_resolution VARCHAR, cpu_usage VARCHAR, camera VARCHAR)
SELECT sensor_resolution FROM table_name_39 WHERE cpu_usage = "minimal" AND camera = "naturalpoint trackir 3 pro"
How many Patent outcomes are generated from all the projects?
CREATE TABLE Project_outcomes (outcome_code VARCHAR)
SELECT COUNT(*) FROM Project_outcomes WHERE outcome_code = 'Patent'
When 5th, south western district 2 is the mens 2nd xi what is the season?
CREATE TABLE table_21576644_2 (season VARCHAR, mens_2nd_xi VARCHAR)
SELECT season FROM table_21576644_2 WHERE mens_2nd_xi = "5th, South Western District 2"
What's the platform of the genre RPG?
CREATE TABLE table_name_80 (platform_s_ VARCHAR, genre VARCHAR)
SELECT platform_s_ FROM table_name_80 WHERE genre = "rpg"
what's the date where visitor is phoenix suns and record is 31–30
CREATE TABLE table_11964047_9 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT date FROM table_11964047_9 WHERE visitor = "Phoenix Suns" AND record = "31–30"
Find the names of the swimmers who have no record.
CREATE TABLE swimmer (name VARCHAR, id VARCHAR, swimmer_id VARCHAR); CREATE TABLE record (name VARCHAR, id VARCHAR, swimmer_id VARCHAR)
SELECT name FROM swimmer WHERE NOT id IN (SELECT swimmer_id FROM record)