Question: Which is shorter, A Bug's Life produced by Walt Disney Pictures or Tangled released in Malaysia?
Choices:
Aladdin
Tangled
Peter Pan
WALL·E
Beauty and the Beast
A Bug's Life
The Rescuers
Shrek 2
Renaissance
Winnie the Pooh
Program:
function: Find
inputs: Walt Disney Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: A Bug's Life
function: And
dependencies: 1
2
function: Find
inputs: Malaysia
function: Relate
dependencies: 4
inputs: film release region
backward
function: Find
inputs: Tangled
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "A Bug's Life" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Walt Disney Pictures" .   } UNION { ?e <pred:name> "Tangled" . ?e <film_release_region> ?e_2 . ?e_2 <pred:name> "Malaysia" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: A Bug's Life