Question: Which has lower elevation above sea level, Brigitte Nielsen or Mel Gibson (the one whose date of birth is 1940-12-03)?
Choices:
Rahul Dev Burman
Mel Gibson
James E. Reilly
Paul Simon
Simon Cowell
Max Fleischer
Brigitte Nielsen
David Byrne
William Henry Harrison
Sylvester Stallone
Program:
function: Find
inputs: Brigitte Nielsen
function: Find
inputs: Mel Gibson
function: FilterDate
dependencies: 1
inputs: date of birth
1940-12-03
=
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brigitte Nielsen" . } UNION { ?e <pred:name> "Mel Gibson" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1940-12-03"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Brigitte Nielsen