Question: Who has more children, Hayden Panettiere or Jimmy Carter (the one whose date of birth is 1924-10-01)?
Choices:
Richard Gere
William Henry Harrison
Paul Simon
Hayden Panettiere
Rahul Dev Burman
Sylvester Stallone
Simon Cowell
Max Fleischer
Jimmy Carter
James E. Reilly
Answer: Jimmy Carter
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hayden Panettiere" . } UNION { ?e <pred:name> "Jimmy Carter" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1924-10-01"^^xsd:date . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hayden Panettiere
function: Find
inputs: Jimmy Carter
function: FilterDate
dependencies: 1
inputs: date of birth
1924-10-01
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
greater