Question: Which movie is longer, Sophie's Choice or Planet of the Apes (the one that mainly depicts time travel)?
Choices:
The Hunchback of Notre Dame
Planet of the Apes
Curse of the Golden Flower
Rebecca
Sophie's Choice
Pleasantville
Talk to Her
A Prairie Home Companion
Training Day
The Towering Inferno
Program:
function: Find
inputs: Sophie's Choice
function: Find
inputs: time travel
function: Relate
dependencies: 1
inputs: main subject
backward
function: Find
inputs: Planet of the Apes
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sophie's Choice" .  } UNION { ?e <pred:name> "Planet of the Apes" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "time travel" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Sophie's Choice