Question: Which movie is shorter, The X-Files (the one that has Xander Berkeley as a cast member) or Friends (the one that was nominated for Primetime Emmy Award for Outstanding Guest Actress in a Comedy Series)?
Choices:
Phineas and Ferb
American Horror Story
Bleak House
Robot Chicken
The X-Files
Six Feet Under
Saturday Night's Main Event
Dancing with the Stars
Seinfeld
Friends
Program:
function: Find
inputs: Xander Berkeley
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The X-Files
function: And
dependencies: 1
2
function: Find
inputs: Primetime Emmy Award for Outstanding Guest Actress in a Comedy Series
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Friends
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The X-Files" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Xander Berkeley" .   } UNION { ?e <pred:name> "Friends" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Primetime Emmy Award for Outstanding Guest Actress in a Comedy Series" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Friends