Question: How many professions come with ROME Occupation Code (v3) is N1202 or are held by Stephen Harper?
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> "profession" .  { ?e <ROME_Occupation_Code_(v3)> ?pv . ?pv <pred:value> "N1202" .  } UNION { ?e <officeholder> ?e_1 . ?e_1 <pred:name> "Stephen Harper" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ROME Occupation Code (v3)
N1202
function: FilterConcept
dependencies: 1
inputs: profession
function: Find
inputs: Stephen Harper
function: Relate
dependencies: 3
inputs: officeholder
backward
function: FilterConcept
dependencies: 4
inputs: profession
function: Or
dependencies: 2
5
function: Count
dependencies: 6