Question: How many chemical elements are named after Moon (the narrative location of 2001: A Space Odyssey) or use J41CSQ7QDS as UNII ?
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> "chemical element" .  { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Moon" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "2001: A Space Odyssey" .  } UNION { ?e <UNII> ?pv . ?pv <pred:value> "J41CSQ7QDS" .  } }
Program:
function: Find
inputs: 2001: A Space Odyssey
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: Moon
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: chemical element
function: FindAll
function: FilterStr
dependencies: 6
inputs: UNII
J41CSQ7QDS
function: FilterConcept
dependencies: 7
inputs: chemical element
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2