Question: Which is shorter: Bedknobs and Broomsticks or Alice (the one that origins from Switzerland)?
Choices:
Old Dogs
National Treasure: Book of Secrets
Alvin and the Chipmunks: Chipwrecked
Holes
Alice
The Muppets
Bedknobs and Broomsticks
G-Force
The Flintstones in Viva Rock Vegas
The Flintstones
Program:
function: Find
inputs: Bedknobs and Broomsticks
function: Find
inputs: Switzerland
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
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedknobs and Broomsticks" .  } UNION { ?e <pred:name> "Alice" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Switzerland" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Alice