Question: Who has fewer children, H.H. Asquith or Kajol?
Choices:
David Byrne
Richard Gere
Kajol
Sylvester Stallone
Paul Simon
H. H. Asquith
Max Fleischer
James E. Reilly
Simon Cowell
Rahul Dev Burman
Program:
function: Find
inputs: H. H. Asquith
function: Find
inputs: Kajol
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "H. H. Asquith" .  } UNION { ?e <pred:name> "Kajol" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kajol