Question: Which US town headquarters University of Massachusetts Amherst?
Choices:
Bedford
Palm Beach
Uxbridge
Brookline
Westport
Greenwich
Chapel Hill
Kensington
Amherst
Newton
Program:
function: Find
inputs: University of Massachusetts Amherst
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: FilterConcept
dependencies: 1
inputs: town of the United States
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town of the United States" . ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "University of Massachusetts Amherst" .   }
Answer: Amherst