Question: Which movie is longer, The Three Musketeers (the one whose script is wrote by Douglas Fairbanks) or Phoenix (the one whose publication date is 2014)?
Choices:
The Towering Inferno
Phoenix
Talk to Her
The Three Musketeers
Rebecca
The Fifth Element
The Hunchback of Notre Dame
Pleasantville
Training Day
Curse of the Golden Flower
Program:
function: Find
inputs: Douglas Fairbanks
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 1
2
function: Find
inputs: Phoenix
function: FilterYear
dependencies: 4
inputs: publication date
2014
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <screenwriter> ?e_1 . ?e_1 <pred:name> "Douglas Fairbanks" . } UNION { ?e <pred:name> "Phoenix" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:year> 2014 . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Three Musketeers