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