Question: Which person is shorter in height, Shaquille O'Neal or Tom Brady (who was born on 1977-08-04)?
Choices:
James E. Reilly
William Henry Harrison
Richard Gere
David Byrne
Max Fleischer
Rahul Dev Burman
Shaquille O'Neal
Simon Cowell
Sylvester Stallone
Tom Brady
Answer: Tom Brady
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tom Brady" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1977-08-04"^^xsd:date . } UNION { ?e <pred:name> "Shaquille O'Neal" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Tom Brady
function: FilterDate
dependencies: 0
inputs: date of birth
1977-08-04
=
function: Find
inputs: Shaquille O'Neal
function: SelectBetween
dependencies: 1
2
inputs: height
less