Question: How many politicians are distinct from the president whose job is in the management field?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "politician" . ?e <different_from> ?e_1 . ?e_1 <pred:name> "president" . ?e_1 <field_of_this_occupation> ?e_2 . ?e_2 <pred:name> "management" .   }
Program:
function: Find
inputs: management
function: Relate
dependencies: 0
inputs: field of this occupation
backward
function: Find
inputs: president
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: different from
backward
function: FilterConcept
dependencies: 4
inputs: politician
function: Count
dependencies: 5