Question: How many ceremonial counties of England do we know where Michael Powell, the actor, died, or where G. K. Chesterton was buried ?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Michael Powell
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of death
forward
function: FilterConcept
dependencies: 4
inputs: ceremonial county of England
function: Find
inputs: G. K. Chesterton
function: Relate
dependencies: 6
inputs: place of burial
forward
function: FilterConcept
dependencies: 7
inputs: ceremonial county of England
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" .  { ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Michael Powell" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "actor" .  } UNION { ?e_1 <place_of_burial> ?e . ?e_1 <pred:name> "G. K. Chesterton" .  } }
Answer: 2