Question: Which had a longer run, The Office (which earned honors at the 13th Screen Actors Guild Awards) or Angel (which has Adam Baldwin in the cast)?
Choices:
Angel
American Horror Story
The Office
Dancing with the Stars
Saturday Night's Main Event
Game of Thrones
Phineas and Ferb
Six Feet Under
Bleak House
Seinfeld
Program:
function: Find
inputs: Adam Baldwin
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Angel
function: And
dependencies: 1
2
function: Find
inputs: 13th Screen Actors Guild Awards
function: Relate
dependencies: 4
inputs: award received
backward
function: Find
inputs: The Office
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Angel" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Adam Baldwin" .   } UNION { ?e <pred:name> "The Office" . ?e <award_received> ?e_2 . ?e_2 <pred:name> "13th Screen Actors Guild Awards" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Office