Question: Is "Dick Tracy," with a duration of 61 minutes, or "April," which is a romance film, longer?
Choices:
Curse of the Golden Flower
The Hunchback of Notre Dame
A Prairie Home Companion
The Towering Inferno
Training Day
Talk to Her
Rebecca
Dick Tracy
Pleasantville
The Fifth Element
Program:
function: Find
inputs: Dick Tracy
function: FilterNum
dependencies: 0
inputs: duration
61 minute
=
function: Find
inputs: romance film
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: April
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dick Tracy" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "61"^^xsd:double . } UNION { ?e <pred:name> "April" . ?e <genre> ?e_1 . ?e_1 <pred:name> "romance film" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dick Tracy