Question: Which movie is longer, Spy Game (the one whose genre is political thriller) or Julius Caesar (the one that has Richard Chamberlain as a cast member)?
Choices:
A Prairie Home Companion
Rebecca
Curse of the Golden Flower
Pleasantville
Julius Caesar
Training Day
The Fifth Element
The Towering Inferno
Spy Game
Talk to Her
Answer: Spy Game
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spy Game" . ?e <genre> ?e_1 . ?e_1 <pred:name> "political thriller" .   } UNION { ?e <pred:name> "Julius Caesar" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Richard Chamberlain" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: political thriller
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Spy Game
function: And
dependencies: 1
2
function: Find
inputs: Richard Chamberlain
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Julius Caesar
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater