Question: Which movie is longer, It Happened One Night or Julius Caesar (the one that has Michael Gough as a cast member)?
Choices:
Julius Caesar
The Fifth Element
Training Day
It Happened One Night
Pleasantville
Talk to Her
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
Rebecca
Program:
function: Find
inputs: It Happened One Night
function: Find
inputs: Michael Gough
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Julius Caesar
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "It Happened One Night" .  } UNION { ?e <pred:name> "Julius Caesar" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Michael Gough" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Julius Caesar