Question: Which show has more episodes, Curb Your Enthusiasm or Mildred Pierce (the one whose genre is miniseries)?
Choices:
Curb Your Enthusiasm
Bleak House
Game of Thrones
Seinfeld
Mildred Pierce
Robot Chicken
American Horror Story
Dancing with the Stars
Saturday Night's Main Event
Phineas and Ferb
Program:
function: Find
inputs: Curb Your Enthusiasm
function: Find
inputs: miniseries
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Mildred Pierce
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Curb Your Enthusiasm" .  } UNION { ?e <pred:name> "Mildred Pierce" . ?e <genre> ?e_1 . ?e_1 <pred:name> "miniseries" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Curb Your Enthusiasm