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