Question: How many songs are known for their duration of over 11.6 hours or are the theme music of Beauty and the Beast (the one whose release region is Ukraine) ?
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 <duration> ?pv . ?pv <pred:unit> "hour" . ?pv <pred:value> ?v . FILTER ( ?v > "11.6"^^xsd:double ) .  } UNION { ?e_1 <theme_music> ?e . ?e_1 <pred:name> "Beauty and the Beast" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Ukraine" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: duration
11.6 hour
>
function: FilterConcept
dependencies: 1
inputs: song
function: Find
inputs: Ukraine
function: Relate
dependencies: 3
inputs: film release region
backward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: theme music
forward
function: FilterConcept
dependencies: 7
inputs: song
function: Or
dependencies: 2
8
function: Count
dependencies: 9