Question: Which has more seasons, Merlin (the one that has John Hurt as a cast member) or Adrian (the one whose start time is 2019-01-21)?
Choices: Six Feet Under
Adrian
Phineas and Ferb
Game of Thrones
Bleak House
Robot Chicken
Merlin
Saturday Night's Main Event
American Horror Story
Seinfeld
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Merlin" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "John Hurt" . } UNION { ?e <pred:name> "Adrian" . ?e <start_time> ?pv_1 . ?pv_1 <pred:date> "2019-01-21"^^xsd:date . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: John Hurt
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Merlin
function: And
dependencies: 1
2
function: Find
inputs: Adrian
function: FilterDate
dependencies: 4
inputs: start time
2019-01-21
=
function: SelectBetween
dependencies: 3
5
inputs: number of seasons
greater
Answer: Merlin