Question: How many works of literature are titled Dune or inspired Sense and Sensibility, which clocks in at 136 minutes?
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> "literary work" .  { ?e <title> ?pv . ?pv <pred:value> "Dune" .  } UNION { ?e_1 <based_on> ?e . ?e_1 <pred:name> "Sense and Sensibility" . ?e_1 <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> "136"^^xsd:double .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
Dune
function: FilterConcept
dependencies: 1
inputs: literary work
function: Find
inputs: Sense and Sensibility
function: FilterNum
dependencies: 3
inputs: duration
136 minute
=
function: Relate
dependencies: 4
inputs: based on
forward
function: FilterConcept
dependencies: 5
inputs: literary work
function: Or
dependencies: 2
6
function: Count
dependencies: 7