Question: Tell me wo has more kids, Raj Kapoor or Jason Lee (the one who was born on 1970-04-25)
Choices:
Raj Kapoor
Paul Simon
Sylvester Stallone
William Henry Harrison
Jason Lee
Rahul Dev Burman
Max Fleischer
James E. Reilly
Simon Cowell
David Byrne
Answer: Raj Kapoor
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Raj Kapoor" . } UNION { ?e <pred:name> "Jason Lee" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1970-04-25"^^xsd:date . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Raj Kapoor
function: Find
inputs: Jason Lee
function: FilterDate
dependencies: 1
inputs: date of birth
1970-04-25
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
greater