Question: Does Hamlet (that has Anthony Hopkins as a cast member) or Independence Day (whose genre is romance film) have the longer runtime?
Choices:
Curse of the Golden Flower
The Fifth Element
A Prairie Home Companion
Hamlet
The Hunchback of Notre Dame
Talk to Her
Independence Day
Pleasantville
The Towering Inferno
Training Day
Answer: Hamlet
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hamlet" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Anthony Hopkins" .   } UNION { ?e <pred:name> "Independence Day" . ?e <genre> ?e_2 . ?e_2 <pred:name> "romance film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Anthony Hopkins
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hamlet
function: And
dependencies: 1
2
function: Find
inputs: romance film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Independence Day
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater