Question: Which one is longer, Fair Game (the one whose production company is Entertainment One) or Superman (the one whose duration is 11 minute)?
Choices: Talk to Her
The Towering Inferno
Rebecca
The Hunchback of Notre Dame
Pleasantville
Curse of the Golden Flower
A Prairie Home Companion
Fair Game
Superman
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fair Game" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Entertainment One" . } UNION { ?e <pred:name> "Superman" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "11"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Entertainment One
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Fair Game
function: And
dependencies: 1
2
function: Find
inputs: Superman
function: FilterNum
dependencies: 4
inputs: duration
11 minute
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
Answer: Fair Game