Question: Regarding the movie that has David Banner as a character (the one who died on 2002), is the duration over 40 minutes?
Choices:
yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
Answer: yes
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <characters> ?e_1 . ?e_1 <pred:name> "David Banner" . ?e_1 <date_of_death> ?pv_1 . ?pv_1 <pred:year> 2002 . ?e <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> ?v . FILTER ( ?v > "40"^^xsd:double ) .  }
Program:
function: Find
inputs: David Banner
function: FilterYear
dependencies: 0
inputs: date of death
2002
=
function: Relate
dependencies: 1
inputs: characters
backward
function: FilterConcept
dependencies: 2
inputs: film
function: QueryAttr
dependencies: 3
inputs: duration
function: VerifyNum
dependencies: 4
inputs: 40 minute
>