Question: Who weighs more, John Adams (the one whose date of birth is 1946-07-27) or John Carter (the one whose date of birth is 1963-05-03)?
Choices: John Carter
Max Fleischer
Simon Cowell
Rahul Dev Burman
John Adams
James E. Reilly
Paul Simon
David Byrne
Sylvester Stallone
Richard Gere
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Adams" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1946-07-27"^^xsd:date . } UNION { ?e <pred:name> "John Carter" . ?e <date_of_birth> ?pv_2 . ?pv_2 <pred:date> "1963-05-03"^^xsd:date . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: John Adams
function: FilterDate
dependencies: 0
inputs: date of birth
1946-07-27
=
function: Find
inputs: John Carter
function: FilterDate
dependencies: 2
inputs: date of birth
1963-05-03
=
function: SelectBetween
dependencies: 1
3
inputs: mass
greater
Answer: John Adams