Question: Which movie is longer, San Francisco (the one whose genre is disaster film) or Iron Man (the one that mainly depicts boxing)?
Choices:
Rebecca
Pleasantville
The Fifth Element
The Hunchback of Notre Dame
The Towering Inferno
Curse of the Golden Flower
A Prairie Home Companion
Iron Man
Training Day
San Francisco
Answer: San Francisco
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "San Francisco" . ?e <genre> ?e_1 . ?e_1 <pred:name> "disaster film" .   } UNION { ?e <pred:name> "Iron Man" . ?e <main_subject> ?e_2 . ?e_2 <pred:name> "boxing" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: disaster film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: San Francisco
function: And
dependencies: 1
2
function: Find
inputs: boxing
function: Relate
dependencies: 4
inputs: main subject
backward
function: Find
inputs: Iron Man
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater