Question: What is the number of museums that are registered with the Internal Revenue Service or have a member called Hercules (that is from Marvel Universe)?
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> "museum" .  { ?e <registered_with> ?e_1 . ?e_1 <pred:name> "Internal Revenue Service" .  } UNION { ?e_1 <member_of> ?e . ?e_1 <pred:name> "Hercules" . ?e_1 <from_fictional_universe> ?e_2 . ?e_2 <pred:name> "Marvel Universe" .  } }
Program:
function: Find
inputs: Internal Revenue Service
function: Relate
dependencies: 0
inputs: registered with
backward
function: FilterConcept
dependencies: 1
inputs: museum
function: Find
inputs: Marvel Universe
function: Relate
dependencies: 3
inputs: from fictional universe
backward
function: Find
inputs: Hercules
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: member of
forward
function: FilterConcept
dependencies: 7
inputs: museum
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2