Question: How many soundtrack albums are there for Dune (the film directed by David Lynch) or that have the title Mulan?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "soundtrack album" .  { ?e_1 <soundtrack_album> ?e . ?e_1 <pred:name> "Dune" . ?e_1 <director> ?e_2 . ?e_2 <pred:name> "David Lynch" .  } UNION { ?e <title> ?pv . ?pv <pred:value> "Mulan" .  } }
Program:
function: Find
inputs: David Lynch
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Dune
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: soundtrack album
forward
function: FilterConcept
dependencies: 4
inputs: soundtrack album
function: FindAll
function: FilterStr
dependencies: 6
inputs: title
Mulan
function: FilterConcept
dependencies: 7
inputs: soundtrack album
function: Or
dependencies: 5
8
function: Count
dependencies: 9