Question: Which one has greater number of seasons between Brideshead Revisited (the one that has Claire Bloom as a cast member) or Hercules (the one whose end time is 1999-03-01)?
Choices:
The Venture Bros.
Hercules
Brideshead Revisited
Batman Beyond
South Park
American Dad!
Tiny Toon Adventures
The Cleveland Show
Phineas and Ferb
Aladdin
Answer: Hercules
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brideshead Revisited" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Claire Bloom" . } UNION { ?e <pred:name> "Hercules" . ?e <end_time> ?pv_1 . ?pv_1 <pred:date> "1999-03-01"^^xsd:date . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Claire Bloom
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Brideshead Revisited
function: And
dependencies: 1
2
function: Find
inputs: Hercules
function: FilterDate
dependencies: 4
inputs: end time
1999-03-01
=
function: SelectBetween
dependencies: 3
5
inputs: number of seasons
greater