Question: Does H. H. Asquith or Rani Mukherjee have more kids?
Choices:
Rahul Dev Burman
Sylvester Stallone
H. H. Asquith
David Byrne
Richard Gere
Rani Mukherjee
Simon Cowell
Max Fleischer
Paul Simon
James E. Reilly
Program:
function: Find
inputs: H. H. Asquith
function: Find
inputs: Rani Mukherjee
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "H. H. Asquith" .  } UNION { ?e <pred:name> "Rani Mukherjee" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: H. H. Asquith