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