Question: Which movie is longer, Quo Vadis (the one whose title is Quo vadis?) or Annie (the one that has Cameron Diaz as a cast member)?
Choices: Training Day
Talk to Her
Pleasantville
The Towering Inferno
The Fifth Element
Quo Vadis
The Hunchback of Notre Dame
Annie
Rebecca
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quo Vadis" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Quo vadis?" . } UNION { ?e <pred:name> "Annie" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Cameron Diaz" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Quo Vadis
function: FilterStr
dependencies: 0
inputs: title
Quo vadis?
function: Find
inputs: Cameron Diaz
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Annie
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
Answer: Annie