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