Question: Who weighs less, Chris Brown (the one whose date of birth is 1984-12-11) or Blake Lively?
Choices:
James E. Reilly
Blake Lively
Simon Cowell
Paul Simon
William Henry Harrison
David Byrne
Rahul Dev Burman
Richard Gere
Max Fleischer
Chris Brown
Program:
function: Find
inputs: Chris Brown
function: FilterDate
dependencies: 0
inputs: date of birth
1984-12-11
=
function: Find
inputs: Blake Lively
function: SelectBetween
dependencies: 1
2
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Brown" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1984-12-11"^^xsd:date . } UNION { ?e <pred:name> "Blake Lively" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Blake Lively