Question: Which has a longer run time The Cure (the one that mainly depicts alcoholism) or The Devil Wears Prada (the one whose production company is 20th Century Fox)?
Choices:
Rebecca
Pleasantville
The Cure
Talk to Her
The Fifth Element
The Devil Wears Prada
A Prairie Home Companion
Curse of the Golden Flower
Training Day
The Hunchback of Notre Dame
Answer: The Devil Wears Prada
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Cure" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "alcoholism" .   } UNION { ?e <pred:name> "The Devil Wears Prada" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "20th Century Fox" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: alcoholism
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: The Cure
function: And
dependencies: 1
2
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: The Devil Wears Prada
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater