Question: Who had less children, Mark Harmon (born 1951-09-02) or Mary Tyler Moore?
Choices:
Paul Simon
Richard Gere
David Byrne
James E. Reilly
Simon Cowell
Sylvester Stallone
Mary Tyler Moore
Mark Harmon
Max Fleischer
Rahul Dev Burman
Program:
function: Find
inputs: Mark Harmon
function: FilterDate
dependencies: 0
inputs: date of birth
1951-09-02
=
function: Find
inputs: Mary Tyler Moore
function: SelectBetween
dependencies: 1
2
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mark Harmon" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1951-09-02"^^xsd:date . } UNION { ?e <pred:name> "Mary Tyler Moore" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mary Tyler Moore