Question: Which one, Akkineni Nagarjuna or David Newman (the one that was born in Los Angeles), has a greater number of children?
Choices: William Henry Harrison
Simon Cowell
Akkineni Nagarjuna
Paul Simon
David Newman
Rahul Dev Burman
Sylvester Stallone
Max Fleischer
James E. Reilly
Richard Gere
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Akkineni Nagarjuna" .  } UNION { ?e <pred:name> "David Newman" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Los Angeles" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Akkineni Nagarjuna
function: Find
inputs: Los Angeles
function: Relate
dependencies: 1
inputs: place of birth
backward
function: Find
inputs: David Newman
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
Answer: David Newman