Question: Of two people—Michael Clayton (birth date: 1982-10-13) or Brett Favre—who has more mass?
Choices:
Simon Cowell
Sylvester Stallone
David Byrne
William Henry Harrison
Michael Clayton
Brett Favre
Max Fleischer
James E. Reilly
Rahul Dev Burman
Richard Gere
Program:
function: Find
inputs: Brett Favre
function: Find
inputs: Michael Clayton
function: FilterDate
dependencies: 1
inputs: date of birth
1982-10-13
=
function: SelectBetween
dependencies: 0
2
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brett Favre" . } UNION { ?e <pred:name> "Michael Clayton" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1982-10-13"^^xsd:date . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Brett Favre