Question: Which movie is longer, Enid (the one whose original language is English) or Iron Man 2 (the one whose publication date is 2010-04-29)?
Choices:
Enid
Talk to Her
Rebecca
Training Day
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
The Fifth Element
Pleasantville
Iron Man 2
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: original language of film or TV show
backward
function: Find
inputs: Enid
function: And
dependencies: 1
2
function: Find
inputs: Iron Man 2
function: FilterDate
dependencies: 4
inputs: publication date
2010-04-29
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Enid" . ?e <original_language_of_film_or_TV_show> ?e_1 . ?e_1 <pred:name> "English" . } UNION { ?e <pred:name> "Iron Man 2" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2010-04-29"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Iron Man 2