Question: How many entities of social science are there whose Universal Decimal Classification is 91 or that are practiced by a psychologist ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "social science" .  { ?e <Universal_Decimal_Classification> ?pv . ?pv <pred:value> "91" .  } UNION { ?e <practiced_by> ?e_1 . ?e_1 <pred:name> "psychologist" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Universal Decimal Classification
91
function: FilterConcept
dependencies: 1
inputs: social science
function: Find
inputs: psychologist
function: Relate
dependencies: 3
inputs: practiced by
backward
function: FilterConcept
dependencies: 4
inputs: social science
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2