Question: Which has more episodes, Christopher Columbus (the one that has Max von Sydow as a cast member) or The Phantom of the Opera (the one whose publication date is 1990-01-01)?
Choices:
A Streetcar Named Desire
All Quiet on the Western Front
The Phantom of the Opera
The Late Shift
Christopher Columbus
The Music Man
The Challenge
The Three Musketeers
The Goodbye Girl
A Christmas Carol
Answer: Christopher Columbus
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Christopher Columbus" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Max von Sydow" . } UNION { ?e <pred:name> "The Phantom of the Opera" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1990-01-01"^^xsd:date . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Max von Sydow
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Christopher Columbus
function: And
dependencies: 1
2
function: Find
inputs: The Phantom of the Opera
function: FilterDate
dependencies: 4
inputs: publication date
1990-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: number of episodes
greater