Question: Which has more seasons, Charlie's Angels (which includes cast member Farrah Fawcett) or Tin Man (whose number of episodes is 3)?
Choices:
Seinfeld
Saturday Night's Main Event
Robot Chicken
Bleak House
Charlie's Angels
Dancing with the Stars
Six Feet Under
Game of Thrones
Phineas and Ferb
Tin Man
Answer: Charlie's Angels
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlie's Angels" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Farrah Fawcett" . } UNION { ?e <pred:name> "Tin Man" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Farrah Fawcett
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Charlie's Angels
function: And
dependencies: 1
2
function: Find
inputs: Tin Man
function: FilterNum
dependencies: 4
inputs: number of episodes
3
=
function: SelectBetween
dependencies: 3
5
inputs: number of seasons
greater