Question: Which movie is longer, Cobra (the one that has David Rasche as a cast member) or Austin Powers: The Spy Who Shagged Me?
Choices:
A Prairie Home Companion
The Hunchback of Notre Dame
Curse of the Golden Flower
The Towering Inferno
Pleasantville
Training Day
Talk to Her
The Fifth Element
Rebecca
Austin Powers: The Spy Who Shagged Me
Program:
function: Find
inputs: David Rasche
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Cobra
function: And
dependencies: 1
2
function: Find
inputs: Austin Powers: The Spy Who Shagged Me
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cobra" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "David Rasche" .   } UNION { ?e <pred:name> "Austin Powers: The Spy Who Shagged Me" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Austin Powers: The Spy Who Shagged Me