Question: Is the Marie Antoinette scripted by Sofia Coppola or Step Up Revolution the longer of the two?
Choices:
Marie Antoinette
Curse of the Golden Flower
Talk to Her
Training Day
Step Up Revolution
The Towering Inferno
The Fifth Element
Rebecca
The Hunchback of Notre Dame
Pleasantville
Program:
function: Find
inputs: Sofia Coppola
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Marie Antoinette
function: And
dependencies: 1
2
function: Find
inputs: Step Up Revolution
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Marie Antoinette" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Sofia Coppola" .   } UNION { ?e <pred:name> "Step Up Revolution" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Marie Antoinette