Question: Which movie is shorter, Angel (the one that is a notable work of David Boreanaz) or Backstairs at the White House?
Choices:
Backstairs at the White House
American Horror Story
Bleak House
Seinfeld
Robot Chicken
Six Feet Under
Saturday Night's Main Event
Game of Thrones
Phineas and Ferb
Angel
Program:
function: Find
inputs: David Boreanaz
function: Relate
dependencies: 0
inputs: notable work
forward
function: Find
inputs: Angel
function: And
dependencies: 1
2
function: Find
inputs: Backstairs at the White House
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Angel" . ?e_1 <notable_work> ?e . ?e_1 <pred:name> "David Boreanaz" .   } UNION { ?e <pred:name> "Backstairs at the White House" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Angel