Question: How many scientists either have the Portuguese Job Code CPP-2010 of 2111.2 or practice biology?
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> "scientist" .  { ?e <Portuguese_Job_Code_CPP-2010> ?pv . ?pv <pred:value> "2111.2" .  } UNION { ?e_1 <practiced_by> ?e . ?e_1 <pred:name> "biology" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Portuguese Job Code CPP-2010
2111.2
function: FilterConcept
dependencies: 1
inputs: scientist
function: Find
inputs: biology
function: Relate
dependencies: 3
inputs: practiced by
forward
function: FilterConcept
dependencies: 4
inputs: scientist
function: Or
dependencies: 2
5
function: Count
dependencies: 6