Question: Which ran for more seasons: Street Fighter II V or Dynasty, with Joan Collins as a cast member?
Choices:
Saturday Night's Main Event
Game of Thrones
Seinfeld
Dynasty
Street Fighter II V
Bleak House
American Horror Story
Phineas and Ferb
Dancing with the Stars
Robot Chicken
Answer: Dynasty
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Street Fighter II V" .  } UNION { ?e <pred:name> "Dynasty" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Joan Collins" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Street Fighter II V
function: Find
inputs: Joan Collins
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Dynasty
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater