Question: Who weighs more, Dwyane Wade or Wayne Dyer (the one whose date of birth is 1977-11-24)?
Choices: James E. Reilly
Simon Cowell
William Henry Harrison
Rahul Dev Burman
Richard Gere
Dwyane Wade
Wayne Dyer
Sylvester Stallone
Max Fleischer
Paul Simon
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dwyane Wade" . } UNION { ?e <pred:name> "Wayne Dyer" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1977-11-24"^^xsd:date . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dwyane Wade
function: Find
inputs: Wayne Dyer
function: FilterDate
dependencies: 1
inputs: date of birth
1977-11-24
=
function: SelectBetween
dependencies: 0
2
inputs: mass
greater
Answer: Dwyane Wade