Question: How many towns are the narrative location of The Time Machine (the one that origins from United Kingdom)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "The Time Machine" . ?e_1 <country_of_origin> ?e_2 . ?e_2 <pred:name> "United Kingdom" .   }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Time Machine
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: narrative location
forward
function: FilterConcept
dependencies: 4
inputs: town
function: Count
dependencies: 5