Question: Which has a less number of children, Aamir Khan or Anthony Kiedis?
Choices:
Aamir Khan
James E. Reilly
David Byrne
Paul Simon
Richard Gere
Rahul Dev Burman
Anthony Kiedis
Sylvester Stallone
William Henry Harrison
Max Fleischer
Program:
function: Find
inputs: Aamir Khan
function: Find
inputs: Anthony Kiedis
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aamir Khan" .  } UNION { ?e <pred:name> "Anthony Kiedis" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Anthony Kiedis