Question: Which is longer, Fear and Loathing in Las Vegas produced by Rhino Entertainment Company or Rise of the Planet of the Apes?
Choices:
Fear and Loathing in Las Vegas
A Prairie Home Companion
Pleasantville
Rebecca
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
The Towering Inferno
The Fifth Element
Rise of the Planet of the Apes
Program:
function: Find
inputs: Rhino Entertainment Company
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Fear and Loathing in Las Vegas
function: And
dependencies: 1
2
function: Find
inputs: Rise of the Planet of the Apes
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fear and Loathing in Las Vegas" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Rhino Entertainment Company" .   } UNION { ?e <pred:name> "Rise of the Planet of the Apes" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Fear and Loathing in Las Vegas