Question: Does Chris Carter whose date of birth is 1989-04-06) or James Brown whose date of birth is 1988-11-30 weigh more?
Choices: Richard Gere
William Henry Harrison
James E. Reilly
David Byrne
Chris Carter
Max Fleischer
Sylvester Stallone
James Brown
Simon Cowell
Paul Simon
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Carter" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1989-04-06"^^xsd:date . } UNION { ?e <pred:name> "James Brown" . ?e <date_of_birth> ?pv_2 . ?pv_2 <pred:date> "1988-11-30"^^xsd:date . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Chris Carter
function: FilterDate
dependencies: 0
inputs: date of birth
1989-04-06
=
function: Find
inputs: James Brown
function: FilterDate
dependencies: 2
inputs: date of birth
1988-11-30
=
function: SelectBetween
dependencies: 1
3
inputs: mass
greater
Answer: James Brown