Question: Does the Paul Williams born on 1971-03-26 or Lionel Messi weigh more?
Choices:
Simon Cowell
Max Fleischer
David Byrne
James E. Reilly
Paul Williams
Lionel Messi
Richard Gere
Sylvester Stallone
William Henry Harrison
Paul Simon
Program:
function: Find
inputs: Paul Williams
function: FilterDate
dependencies: 0
inputs: date of birth
1971-03-26
=
function: Find
inputs: Lionel Messi
function: SelectBetween
dependencies: 1
2
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paul Williams" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1971-03-26"^^xsd:date . } UNION { ?e <pred:name> "Lionel Messi" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Paul Williams