Question: Which movie is longer, A Streetcar Named Desire (the one whose duration is 115 minute) or Africa (the one that origins from United Kingdom)?
Choices:
The Late Shift
The Three Musketeers
Luther
The Goodbye Girl
All Quiet on the Western Front
A Streetcar Named Desire
Shackleton
The Challenge
Africa
The Music Man
Program:
function: Find
inputs: A Streetcar Named Desire
function: FilterNum
dependencies: 0
inputs: duration
115 minute
=
function: Find
inputs: United Kingdom
function: Relate
dependencies: 2
inputs: country of origin
backward
function: Find
inputs: Africa
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Streetcar Named Desire" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "115"^^xsd:double . } UNION { ?e <pred:name> "Africa" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United Kingdom" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: A Streetcar Named Desire