Question: Does Henry Gibson or Donal Logue have the greater number of children?
Choices:
Sylvester Stallone
David Byrne
Max Fleischer
Henry Gibson
William Henry Harrison
Simon Cowell
Paul Simon
Rahul Dev Burman
Richard Gere
Donal Logue
Program:
function: Find
inputs: Henry Gibson
function: Find
inputs: Donal Logue
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Henry Gibson" .  } UNION { ?e <pred:name> "Donal Logue" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Henry Gibson