Question: Who is taller, Neil Young (the one whose date of birth is 1944-02-17) or Craig Bellamy?
Choices:
David Byrne
Richard Gere
Craig Bellamy
James E. Reilly
William Henry Harrison
Max Fleischer
Simon Cowell
Paul Simon
Sylvester Stallone
Neil Young
Program:
function: Find
inputs: Neil Young
function: FilterDate
dependencies: 0
inputs: date of birth
1944-02-17
=
function: Find
inputs: Craig Bellamy
function: SelectBetween
dependencies: 1
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Neil Young" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1944-02-17"^^xsd:date . } UNION { ?e <pred:name> "Craig Bellamy" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Neil Young