Question: How many California counties are administrative divisions of California, home of Robert Zemeckis?
Choices:
35
36
37
38
39
40
41
42
43
44
Answer: 40
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of California" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "California" . ?e_2 <residence> ?e_1 . ?e_2 <pred:name> "Robert Zemeckis" .   }
Program:
function: Find
inputs: Robert Zemeckis
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: California
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: county of California
function: Count
dependencies: 5