Question: Which romance genre film has the shortest run time, The Postman or Date Night?
Choices:
The Towering Inferno
The Fifth Element
Talk to Her
Pleasantville
The Hunchback of Notre Dame
A Prairie Home Companion
Training Day
Rebecca
Curse of the Golden Flower
Date Night
Program:
function: Find
inputs: romance film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Postman
function: And
dependencies: 1
2
function: Find
inputs: Date Night
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Postman" . ?e <genre> ?e_1 . ?e_1 <pred:name> "romance film" .   } UNION { ?e <pred:name> "Date Night" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Date Night