Question: What are the number of counties of California with population less than 73000 or which is an administrative division of California (the one that is the residence of Robert Zemeckis) ?
Choices: 39
40
41
42
43
44
45
46
47
48
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of California" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "73000"^^xsd:double ) .  } UNION { ?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: FindAll
function: FilterNum
dependencies: 0
inputs: population
73000
<
function: FilterConcept
dependencies: 1
inputs: county of California
function: Find
inputs: Robert Zemeckis
function: Relate
dependencies: 3
inputs: residence
forward
function: Find
inputs: California
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: county of California
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 40