Question: Who is shorter, Keith Urban or Stephen Graham (the one whose date of birth is 1982-06-11)?
Choices:
William Henry Harrison
Simon Cowell
Keith Urban
Sylvester Stallone
Paul Simon
David Byrne
Richard Gere
Stephen Graham
Max Fleischer
James E. Reilly
Program:
function: Find
inputs: Keith Urban
function: Find
inputs: Stephen Graham
function: FilterDate
dependencies: 1
inputs: date of birth
1982-06-11
=
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Keith Urban" . } UNION { ?e <pred:name> "Stephen Graham" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1982-06-11"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Keith Urban