Question: What are the number of visual artworks whose composer is Lalo Schifrin or those that are inspired by Thunderball (the one whose genre is spy film) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" .  { ?e <composer> ?e_1 . ?e_1 <pred:name> "Lalo Schifrin" .  } UNION { ?e <inspired_by> ?e_1 . ?e_1 <pred:name> "Thunderball" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "spy film" .  } }
Program:
function: Find
inputs: Lalo Schifrin
function: Relate
dependencies: 0
inputs: composer
backward
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Find
inputs: spy film
function: Relate
dependencies: 3
inputs: genre
backward
function: Find
inputs: Thunderball
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: inspired by
backward
function: FilterConcept
dependencies: 7
inputs: visual artwork
function: Or
dependencies: 2
8
function: Count
dependencies: 9