Question: Who is taller, Kim Basinger or Ted Kennedy (the one whose date of death is 2009-08-14)?
Choices:
Paul Simon
Kim Basinger
Sylvester Stallone
Simon Cowell
Max Fleischer
David Byrne
Richard Gere
Ted Kennedy
Rahul Dev Burman
William Henry Harrison
Answer: Ted Kennedy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kim Basinger" . } UNION { ?e <pred:name> "Ted Kennedy" . ?e <date_of_death> ?pv_1 . ?pv_1 <pred:date> "2009-08-14"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Kim Basinger
function: Find
inputs: Ted Kennedy
function: FilterDate
dependencies: 1
inputs: date of death
2009-08-14
=
function: SelectBetween
dependencies: 0
2
inputs: height
greater