Question: Which movie is shorter, Cyrano de Bergerac (the one whose genre is drama film) or Tripoli (the one whose title is Tripoli)?
Choices:
The Hunchback of Notre Dame
A Prairie Home Companion
Training Day
The Fifth Element
Curse of the Golden Flower
Cyrano de Bergerac
The Towering Inferno
Talk to Her
Tripoli
Pleasantville
Answer: Tripoli
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cyrano de Bergerac" . ?e <genre> ?e_1 . ?e_1 <pred:name> "drama film" . } UNION { ?e <pred:name> "Tripoli" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Tripoli" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: drama film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Cyrano de Bergerac
function: And
dependencies: 1
2
function: Find
inputs: Tripoli
function: FilterStr
dependencies: 4
inputs: title
Tripoli
function: SelectBetween
dependencies: 3
5
inputs: duration
less