Question: Is the run-time shorter for Bedtime Stories, with Guy Pearce as a cast member, or for Alice, with exploitation visa number 72061?
Choices:
John Carter
Bedtime Stories
Alice
National Treasure: Book of Secrets
Alvin and the Chipmunks: Chipwrecked
Holes
Old Dogs
The Muppets
G-Force
The Flintstones in Viva Rock Vegas
Program:
function: Find
inputs: Guy Pearce
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Bedtime Stories
function: And
dependencies: 1
2
function: Find
inputs: Alice
function: FilterStr
dependencies: 4
inputs: exploitation visa number
72061
function: SelectBetween
dependencies: 3
5
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bedtime Stories" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Guy Pearce" . } UNION { ?e <pred:name> "Alice" . ?e <exploitation_visa_number> ?pv_1 . ?pv_1 <pred:value> "72061" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Alice