Question: Who has less mass, Joe Jackson born on 1992-02-08 or Jonathan Forte?
Choices:
Simon Cowell
Jonathan Forte
James E. Reilly
Rahul Dev Burman
Sylvester Stallone
Paul Simon
Joe Jackson
David Byrne
William Henry Harrison
Max Fleischer
Program:
function: Find
inputs: Joe Jackson
function: FilterDate
dependencies: 0
inputs: date of birth
1992-02-08
=
function: Find
inputs: Jonathan Forte
function: SelectBetween
dependencies: 1
2
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Joe Jackson" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1992-02-08"^^xsd:date . } UNION { ?e <pred:name> "Jonathan Forte" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jonathan Forte