Question: Which one has more kids, Aamir Khan or Harlan Ellison?
Choices:
Aamir Khan
Sylvester Stallone
William Henry Harrison
Rahul Dev Burman
David Byrne
James E. Reilly
Simon Cowell
Paul Simon
Max Fleischer
Harlan Ellison
Program:
function: Find
inputs: Aamir Khan
function: Find
inputs: Harlan Ellison
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aamir Khan" .  } UNION { ?e <pred:name> "Harlan Ellison" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Aamir Khan