Question: Which celebrity has fewer children, Naomi Watts or Hugh Grant (whose birthdate is 1960-09-09)?
Choices:
Max Fleischer
James E. Reilly
Naomi Watts
Paul Simon
William Henry Harrison
David Byrne
Simon Cowell
Hugh Grant
Sylvester Stallone
Richard Gere
Program:
function: Find
inputs: Naomi Watts
function: Find
inputs: Hugh Grant
function: FilterDate
dependencies: 1
inputs: date of birth
1960-09-09
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Naomi Watts" . } UNION { ?e <pred:name> "Hugh Grant" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1960-09-09"^^xsd:date . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Naomi Watts