Question: Does Australia (that has David Wenham as a cast member) or Zack and Miri Make a Porno have the longer runtime?
Choices:
The Fifth Element
A Prairie Home Companion
The Towering Inferno
Curse of the Golden Flower
Zack and Miri Make a Porno
Talk to Her
Australia
Rebecca
Pleasantville
Training Day
Program:
function: Find
inputs: David Wenham
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Find
inputs: Zack and Miri Make a Porno
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Australia" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "David Wenham" .   } UNION { ?e <pred:name> "Zack and Miri Make a Porno" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Australia