Question: Which movie is longer, Full Metal Jacket or Happy Days (the one whose genre is musical film)?
Choices:
A Prairie Home Companion
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
The Towering Inferno
Full Metal Jacket
Talk to Her
Happy Days
Curse of the Golden Flower
Rebecca
Program:
function: Find
inputs: Full Metal Jacket
function: Find
inputs: musical film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Happy Days
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Full Metal Jacket" .  } UNION { ?e <pred:name> "Happy Days" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Full Metal Jacket