Question: How many academic discipline that is a performer of The Lion King or whose Universal Decimal Classification is 72?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "academic discipline" .  { ?e_1 <performer> ?e . ?e_1 <pred:name> "The Lion King" . ?e_1 <performer> ?e_2 . ?e_2 <pred:name> "Nathan Lane" .  } UNION { ?e <Universal_Decimal_Classification> ?pv . ?pv <pred:value> "72" .  } }
Program:
function: Find
inputs: Nathan Lane
function: Relate
dependencies: 0
inputs: performer
backward
function: Find
inputs: The Lion King
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: performer
forward
function: FilterConcept
dependencies: 4
inputs: academic discipline
function: FindAll
function: FilterStr
dependencies: 6
inputs: Universal Decimal Classification
72
function: FilterConcept
dependencies: 7
inputs: academic discipline
function: Or
dependencies: 5
8
function: Count
dependencies: 9