Question: Which one of two personalities—Alan Hume or Terry Crews—has more children?
Choices:
David Byrne
Rahul Dev Burman
Alan Hume
James E. Reilly
William Henry Harrison
Terry Crews
Sylvester Stallone
Simon Cowell
Max Fleischer
Richard Gere
Program:
function: Find
inputs: Alan Hume
function: Find
inputs: Terry Crews
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alan Hume" .  } UNION { ?e <pred:name> "Terry Crews" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Terry Crews