Question: Who is taller, Rafael Nadal or James Buchanan (the one whose date of death is 1868-06-01)?
Choices:
William Henry Harrison
Paul Simon
David Byrne
Simon Cowell
Sylvester Stallone
James E. Reilly
James Buchanan
Rahul Dev Burman
Max Fleischer
Rafael Nadal
Program:
function: Find
inputs: Rafael Nadal
function: Find
inputs: James Buchanan
function: FilterDate
dependencies: 1
inputs: date of death
1868-06-01
=
function: SelectBetween
dependencies: 0
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rafael Nadal" . } UNION { ?e <pred:name> "James Buchanan" . ?e <date_of_death> ?pv_1 . ?pv_1 <pred:date> "1868-06-01"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rafael Nadal