Question: Which one is taller, Robert Smith (who was born on 1972-03-04) or Pete Townshend?
Choices:
Max Fleischer
James E. Reilly
David Byrne
William Henry Harrison
Pete Townshend
Robert Smith
Paul Simon
Sylvester Stallone
Simon Cowell
Richard Gere
Program:
function: Find
inputs: Robert Smith
function: FilterDate
dependencies: 0
inputs: date of birth
1972-03-04
=
function: Find
inputs: Pete Townshend
function: SelectBetween
dependencies: 1
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Robert Smith" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1972-03-04"^^xsd:date . } UNION { ?e <pred:name> "Pete Townshend" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Robert Smith