Question: Does Moulin Rouge! or Schindler's List (the one whose genre is biographical film) have greater duration ?
Choices:
Pleasantville
Curse of the Golden Flower
Moulin Rouge!
Talk to Her
A Prairie Home Companion
Training Day
The Fifth Element
Rebecca
Schindler's List
The Towering Inferno
Program:
function: Find
inputs: Moulin Rouge!
function: Find
inputs: biographical film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Schindler's List
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Moulin Rouge!" .  } UNION { ?e <pred:name> "Schindler's List" . ?e <genre> ?e_1 . ?e_1 <pred:name> "biographical film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Schindler's List