Question: Which movie is longer, Christopher Columbus (the one that origins from Germany) or That's My Boy (the one whose publication date is 1951-01-01)?
Choices:
Talk to Her
Rebecca
Pleasantville
The Hunchback of Notre Dame
A Prairie Home Companion
The Towering Inferno
That's My Boy
Christopher Columbus
The Fifth Element
Training Day
Answer: Christopher Columbus
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Christopher Columbus" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Germany" . } UNION { ?e <pred:name> "That's My Boy" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1951-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Christopher Columbus
function: And
dependencies: 1
2
function: Find
inputs: That's My Boy
function: FilterDate
dependencies: 4
inputs: publication date
1951-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: duration
greater