Question: How many songs depict Nantes (whose elevation above sea level is 52 metres) or is the theme music of Inside Deep Throat?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "song" .  { ?e <depicts> ?e_1 . ?e_1 <pred:name> "Nantes" . ?e_1 <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> "52"^^xsd:double .  } UNION { ?e_1 <theme_music> ?e . ?e_1 <pred:name> "Inside Deep Throat" .  } }
Program:
function: Find
inputs: Nantes
function: FilterNum
dependencies: 0
inputs: elevation above sea level
52 metre
=
function: Relate
dependencies: 1
inputs: depicts
backward
function: FilterConcept
dependencies: 2
inputs: song
function: Find
inputs: Inside Deep Throat
function: Relate
dependencies: 4
inputs: theme music
forward
function: FilterConcept
dependencies: 5
inputs: song
function: Or
dependencies: 3
6
function: Count
dependencies: 7