Question: Between Juhi Chawla and Terry Gilliam, who has more offspring?
Choices:
Max Fleischer
Sylvester Stallone
Simon Cowell
James E. Reilly
Rahul Dev Burman
William Henry Harrison
Terry Gilliam
David Byrne
Juhi Chawla
Paul Simon
Program:
function: Find
inputs: Juhi Chawla
function: Find
inputs: Terry Gilliam
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Juhi Chawla" .  } UNION { ?e <pred:name> "Terry Gilliam" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Terry Gilliam