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