Question: Is Tyler Perry or William Powell, who was born on March 9, 1988, shorter?
Choices:
Sylvester Stallone
James E. Reilly
Tyler Perry
William Henry Harrison
Paul Simon
Rahul Dev Burman
William Powell
Simon Cowell
Max Fleischer
David Byrne
Program:
function: Find
inputs: Tyler Perry
function: Find
inputs: William Powell
function: FilterDate
dependencies: 1
inputs: date of birth
1988-03-09
=
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tyler Perry" . } UNION { ?e <pred:name> "William Powell" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1988-03-09"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: William Powell