Question: Does Gossip Girl or Charlie's Angels (whose genre is crime fiction) have more seasons?
Choices:
American Horror Story
Six Feet Under
Seinfeld
Bleak House
Saturday Night's Main Event
Game of Thrones
Robot Chicken
Gossip Girl
Phineas and Ferb
Dancing with the Stars
Answer: Gossip Girl
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gossip Girl" .  } UNION { ?e <pred:name> "Charlie's Angels" . ?e <genre> ?e_1 . ?e_1 <pred:name> "crime fiction" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Gossip Girl
function: Find
inputs: crime fiction
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Charlie's Angels
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater