Question: Is Happy Days (80 minutes in duration) or The Longest Yard (about American football) shorter in duration?
Choices:
The Towering Inferno
The Longest Yard
Pleasantville
Happy Days
Rebecca
A Prairie Home Companion
The Fifth Element
Curse of the Golden Flower
Training Day
The Hunchback of Notre Dame
Program:
function: Find
inputs: Happy Days
function: FilterNum
dependencies: 0
inputs: duration
80 minute
=
function: Find
inputs: American football
function: Relate
dependencies: 2
inputs: main subject
backward
function: Find
inputs: The Longest Yard
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Happy Days" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "80"^^xsd:double . } UNION { ?e <pred:name> "The Longest Yard" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "American football" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Happy Days