Question: Does Abhishek Bachchan or Shahrukh Khan have more offspring?
Choices:
Paul Simon
Shahrukh Khan
Simon Cowell
Max Fleischer
Rahul Dev Burman
Sylvester Stallone
Richard Gere
James E. Reilly
William Henry Harrison
Abhishek Bachchan
Program:
function: Find
inputs: Abhishek Bachchan
function: Find
inputs: Shahrukh Khan
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Abhishek Bachchan" .  } UNION { ?e <pred:name> "Shahrukh Khan" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Shahrukh Khan