Question: Which is longer, the action film The Mummy Returns or Gettysburg, with the title of Gettysburg?
Choices:
The Fifth Element
The Mummy Returns
Pleasantville
Rebecca
Talk to Her
The Towering Inferno
Gettysburg
Training Day
Curse of the Golden Flower
A Prairie Home Companion
Answer: Gettysburg
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Mummy Returns" . ?e <genre> ?e_1 . ?e_1 <pred:name> "action film" . } UNION { ?e <pred:name> "Gettysburg" . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Gettysburg" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: action film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Mummy Returns
function: And
dependencies: 1
2
function: Find
inputs: Gettysburg
function: FilterStr
dependencies: 4
inputs: title
Gettysburg
function: SelectBetween
dependencies: 3
5
inputs: duration
greater