Question: How many positions match a position of president (like the one of Donald M. Payne) or are entitled to appoint United States Secretary of State ?
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> "position" .  { ?e_1 <appointed_by> ?e . ?e_1 <pred:name> "United States Secretary of State" .  } UNION { ?e <subject_has_role> ?e_1 . ?e_1 <pred:name> "president" . ?e_2 <position_held> ?e_1 . ?e_2 <pred:name> "Donald M. Payne" .  } }
Program:
function: Find
inputs: United States Secretary of State
function: Relate
dependencies: 0
inputs: appointed by
forward
function: FilterConcept
dependencies: 1
inputs: position
function: Find
inputs: Donald M. Payne
function: Relate
dependencies: 3
inputs: position held
forward
function: Find
inputs: president
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: subject has role
backward
function: FilterConcept
dependencies: 7
inputs: position
function: Or
dependencies: 2
8
function: Count
dependencies: 9