Question: Which program has the fewest seasons, the L.A.-set show called Heroes or the soap opera known as Loving?
Choices:
Phineas and Ferb
Game of Thrones
Six Feet Under
Heroes
American Horror Story
Bleak House
Seinfeld
Loving
Robot Chicken
Saturday Night's Main Event
Program:
function: Find
inputs: soap opera
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Loving
function: And
dependencies: 1
2
function: Find
inputs: Los Angeles
function: Relate
dependencies: 4
inputs: narrative location
backward
function: Find
inputs: Heroes
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Loving" . ?e <genre> ?e_1 . ?e_1 <pred:name> "soap opera" .   } UNION { ?e <pred:name> "Heroes" . ?e <narrative_location> ?e_2 . ?e_2 <pred:name> "Los Angeles" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Heroes