Question: Who has fewer kids, William Baldwin born on 1963-02-21 or George Clinton who has 6 kids?
Choices: Sylvester Stallone
Paul Simon
David Byrne
Simon Cowell
George Clinton
William Henry Harrison
Richard Gere
Rahul Dev Burman
James E. Reilly
William Baldwin
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "William Baldwin" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1963-02-21"^^xsd:date . } UNION { ?e <pred:name> "George Clinton" . ?e <number_of_children> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "6"^^xsd:double . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: William Baldwin
function: FilterDate
dependencies: 0
inputs: date of birth
1963-02-21
=
function: Find
inputs: George Clinton
function: FilterNum
dependencies: 2
inputs: number of children
6
=
function: SelectBetween
dependencies: 1
3
inputs: number of children
less
Answer: William Baldwin