Question: Who has fewer children, John Goodman (the one whose date of birth is 1952-06-20) or Woody Harrelson?
Choices: John Goodman
Rahul Dev Burman
Paul Simon
Woody Harrelson
Max Fleischer
James E. Reilly
William Henry Harrison
David Byrne
Sylvester Stallone
Simon Cowell
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Goodman" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1952-06-20"^^xsd:date . } UNION { ?e <pred:name> "Woody Harrelson" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: John Goodman
function: FilterDate
dependencies: 0
inputs: date of birth
1952-06-20
=
function: Find
inputs: Woody Harrelson
function: SelectBetween
dependencies: 1
2
inputs: number of children
less
Answer: John Goodman