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