Question: Which one, Happy Days (the one with Betty Grable as a cast member) or Anonymous, has less duration?
Choices:
The Fifth Element
The Towering Inferno
Curse of the Golden Flower
Training Day
The Hunchback of Notre Dame
Anonymous
Happy Days
A Prairie Home Companion
Talk to Her
Rebecca
Program:
function: Find
inputs: Betty Grable
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Happy Days
function: And
dependencies: 1
2
function: Find
inputs: Anonymous
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Happy Days" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Betty Grable" .   } UNION { ?e <pred:name> "Anonymous" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Happy Days