Question: Which movie is longer, Alias (the one that has Iqbal Theba as a cast member) or Jane Eyre (the one whose publication date is 2006-09-24)?
Choices: Jane Eyre
Edge of Darkness
The Diary of Anne Frank
The Pacific
The Stand
Battlestar Galactica
The Civil War
The Ten Commandments
Alias
George Washington
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alias" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Iqbal Theba" . } UNION { ?e <pred:name> "Jane Eyre" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2006-09-24"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Iqbal Theba
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Alias
function: And
dependencies: 1
2
function: Find
inputs: Jane Eyre
function: FilterDate
dependencies: 4
inputs: publication date
2006-09-24
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Jane Eyre