Question: Which is shorter: Transformers, with Megan Fox as a cast member, or Airport, the Academy Award nominee for Best Supporting Actress?
Choices:
The Fifth Element
Pleasantville
Training Day
Curse of the Golden Flower
The Hunchback of Notre Dame
Rebecca
Airport
The Towering Inferno
Talk to Her
Transformers
Program:
function: Find
inputs: Megan Fox
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Transformers
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actress
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Airport
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Transformers" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Megan Fox" .   } UNION { ?e <pred:name> "Airport" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Supporting Actress" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Airport