Question: Which one has a bigger mass, Michael McDonald (who was born on 1969-02-13) or Paul Robeson
Choices:
Richard Gere
Simon Cowell
Paul Robeson
William Henry Harrison
David Byrne
Max Fleischer
Sylvester Stallone
Michael McDonald
Rahul Dev Burman
Paul Simon
Program:
function: Find
inputs: Michael McDonald
function: FilterDate
dependencies: 0
inputs: date of birth
1969-02-13
=
function: Find
inputs: Paul Robeson
function: SelectBetween
dependencies: 1
2
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Michael McDonald" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1969-02-13"^^xsd:date . } UNION { ?e <pred:name> "Paul Robeson" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Michael McDonald