Question: Of TV series with a story set in Massachusetts (population 5737037), which has the lowest season count?
Choices: Bleak House
Game of Thrones
Salem
St. Elsewhere
American Horror Story
Six Feet Under
Robot Chicken
Phineas and Ferb
Seinfeld
Dancing with the Stars
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Massachusetts" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "5737037"^^xsd:double . ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Massachusetts
function: FilterNum
dependencies: 0
inputs: population
5737037
=
function: Relate
dependencies: 1
inputs: narrative location
backward
function: FilterConcept
dependencies: 2
inputs: television series
function: SelectAmong
dependencies: 3
inputs: number of seasons
smallest
Answer: Salem