Question: Which is longer, Fort Worth that is 80 minutes long or Brazil produced by 20th Century Fox?
Choices:
A Prairie Home Companion
Pleasantville
Talk to Her
Brazil
The Fifth Element
Rebecca
Fort Worth
Training Day
The Hunchback of Notre Dame
The Towering Inferno
Answer: Brazil
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fort Worth" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "80"^^xsd:double . } UNION { ?e <pred:name> "Brazil" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "20th Century Fox" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Fort Worth
function: FilterNum
dependencies: 0
inputs: duration
80 minute
=
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 2
inputs: production company
backward
function: Find
inputs: Brazil
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater