Question: Which show has more episodes, George Washington (the one that uses the language English) or Love of Life?
Choices:
Saturday Night's Main Event
Six Feet Under
Game of Thrones
Robot Chicken
Dancing with the Stars
Phineas and Ferb
Seinfeld
Bleak House
Love of Life
American Horror Story
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: language of work or name
backward
function: Find
inputs: George Washington
function: And
dependencies: 1
2
function: Find
inputs: Love of Life
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "George Washington" . ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "Love of Life" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Love of Life