Question: Which movie is longer, The Muppets or Alice (the one that origins from Czechoslovakia)?
Choices:
Holes
Alvin and the Chipmunks: Chipwrecked
Alice
The Flintstones in Viva Rock Vegas
G-Force
Old Dogs
The Flintstones
John Carter
The Muppets
Enchanted
Program:
function: Find
inputs: The Muppets
function: Find
inputs: Czechoslovakia
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Alice
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Muppets" .  } UNION { ?e <pred:name> "Alice" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Czechoslovakia" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Muppets