Question: How many public offices are the occupation of James Garner (whose occupation is mayor) or have the native title Governor of Texas?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: mayor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: James Garner
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: occupation
forward
function: FilterConcept
dependencies: 4
inputs: public office
function: FindAll
function: FilterStr
dependencies: 6
inputs: native label
Governor of Texas
function: FilterConcept
dependencies: 7
inputs: public office
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> "public office" .  { ?e_1 <occupation> ?e . ?e_1 <pred:name> "James Garner" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "mayor" .  } UNION { ?e <native_label> ?pv . ?pv <pred:value> "Governor of Texas" .  } }
Answer: 2