Question: What amount of professions exist which are either associated with Donald Trump's degree in academia (which uses the English language) or that have a 2411 as their ISCO occupation number?
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_1 <academic_degree> ?e . ?e_1 <pred:name> "Donald Trump" . ?e_1 <languages_spoken,_written_or_signed> ?e_2 . ?e_2 <pred:name> "English" .  } UNION { ?e <ISCO_occupation_code> ?pv . ?pv <pred:value> "2411" .  } }
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
backward
function: Find
inputs: Donald Trump
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: academic degree
forward
function: FilterConcept
dependencies: 4
inputs: profession
function: FindAll
function: FilterStr
dependencies: 6
inputs: ISCO occupation code
2411
function: FilterConcept
dependencies: 7
inputs: profession
function: Or
dependencies: 5
8
function: Count
dependencies: 9