Question: Does the higher episode count belong to Joan of Arc, with Shirley MacLaine as a cast member, or Savannah, with 34 episodes?
Choices:
Phineas and Ferb
Seinfeld
Robot Chicken
Saturday Night's Main Event
Bleak House
Savannah
American Horror Story
Six Feet Under
Game of Thrones
Joan of Arc
Answer: Savannah
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Joan of Arc" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Shirley MacLaine" . } UNION { ?e <pred:name> "Savannah" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "34"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Shirley MacLaine
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Joan of Arc
function: And
dependencies: 1
2
function: Find
inputs: Savannah
function: FilterNum
dependencies: 4
inputs: number of episodes
34
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
greater