Question: Is Mahatma Gandhi or Robert Taylor (whose date of birth is 1901-01-01) shorter in height?
Choices:
Paul Simon
Rahul Dev Burman
Robert Taylor
James E. Reilly
William Henry Harrison
Sylvester Stallone
Mahatma Gandhi
Simon Cowell
Max Fleischer
David Byrne
Program:
function: Find
inputs: Mahatma Gandhi
function: Find
inputs: Robert Taylor
function: FilterDate
dependencies: 1
inputs: date of birth
1901-01-01
=
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mahatma Gandhi" . } UNION { ?e <pred:name> "Robert Taylor" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1901-01-01"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mahatma Gandhi