Question: How many fictional humans are  the same as Tarzan (which was performed by Goldwyn) or have the religion Catholicism?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "fictional human" .  { ?e_1 <said_to_be_the_same_as> ?e . ?e_1 <pred:name> "Tarzan" . ?e_1 <performer> ?e_2 . ?e_2 <pred:name> "Tony Goldwyn" .  } UNION { ?e <religion> ?e_1 . ?e_1 <pred:name> "Catholicism" .  } }
Program:
function: Find
inputs: Tony Goldwyn
function: Relate
dependencies: 0
inputs: performer
backward
function: Find
inputs: Tarzan
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: said to be the same as
forward
function: FilterConcept
dependencies: 4
inputs: fictional human
function: Find
inputs: Catholicism
function: Relate
dependencies: 6
inputs: religion
backward
function: FilterConcept
dependencies: 7
inputs: fictional human
function: Or
dependencies: 5
8
function: Count
dependencies: 9