Question: Does Dynasty (that has 22 episodes) or Heroes (whose narrative location is New York City) have less episodes?
Choices: Seinfeld
Six Feet Under
Saturday Night's Main Event
Bleak House
Dancing with the Stars
Robot Chicken
Game of Thrones
Dynasty
American Horror Story
Heroes
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dynasty" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "22"^^xsd:double . } UNION { ?e <pred:name> "Heroes" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "New York City" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Dynasty
function: FilterNum
dependencies: 0
inputs: number of episodes
22
=
function: Find
inputs: New York City
function: Relate
dependencies: 2
inputs: narrative location
backward
function: Find
inputs: Heroes
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
less
Answer: Dynasty