Question: Regarding Ben Harper (born 1969-10-28) and Lucy Lawless, which one has more children?
Choices: Ben Harper
Richard Gere
William Henry Harrison
Sylvester Stallone
David Byrne
Paul Simon
James E. Reilly
Lucy Lawless
Rahul Dev Burman
Simon Cowell
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lucy Lawless" . } UNION { ?e <pred:name> "Ben Harper" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1969-10-28"^^xsd:date . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Lucy Lawless
function: Find
inputs: Ben Harper
function: FilterDate
dependencies: 1
inputs: date of birth
1969-10-28
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
greater
Answer: Ben Harper