Question: How many California counties are the residence of Sam Rockwell or have the capital Auburn (whose Dewey Decimal Classification is 2--79438)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of California" .  { ?e_1 <residence> ?e . ?e_1 <pred:name> "Sam Rockwell" .  } UNION { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Auburn" . ?e_1 <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "2--79438" .  } }
Program:
function: Find
inputs: Sam Rockwell
function: Relate
dependencies: 0
inputs: residence
forward
function: FilterConcept
dependencies: 1
inputs: county of California
function: Find
inputs: Auburn
function: FilterStr
dependencies: 3
inputs: Dewey Decimal Classification
2--79438
function: Relate
dependencies: 4
inputs: capital of
forward
function: FilterConcept
dependencies: 5
inputs: county of California
function: Or
dependencies: 2
6
function: Count
dependencies: 7