Question: How many market towns are the residence of the human that is a cast member of Hans Christian Andersen (whose narrative location is Copenhagen)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "market town" . ?e_1 <residence> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <cast_member> ?e_1 . ?e_2 <pred:name> "Hans Christian Andersen" . ?e_2 <narrative_location> ?e_3 . ?e_3 <pred:name> "Copenhagen" .   }
Program:
function: Find
inputs: Copenhagen
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Hans Christian Andersen
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: residence
forward
function: FilterConcept
dependencies: 6
inputs: market town
function: Count
dependencies: 7
Answer: 0