Question: How many positions does the person that has the role of the president (the one that is said to be the same as chairperson) or whose Twitter username is POTUS have?
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 <subject_has_role> ?e_1 . ?e_1 <pred:name> "president" . ?e_2 <said_to_be_the_same_as> ?e_1 . ?e_2 <pred:name> "chairperson" .  } UNION { ?e <Twitter_username> ?pv . ?pv <pred:value> "POTUS" .  } }
Program:
function: Find
inputs: chairperson
function: Relate
dependencies: 0
inputs: said to be the same as
forward
function: Find
inputs: president
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: subject has role
backward
function: FilterConcept
dependencies: 4
inputs: position
function: FindAll
function: FilterStr
dependencies: 6
inputs: Twitter username
POTUS
function: FilterConcept
dependencies: 7
inputs: position
function: Or
dependencies: 5
8
function: Count
dependencies: 9