Question: Which one, Alex Kingston or Adam Carolla, has a greater number of children?
Choices:
Adam Carolla
Max Fleischer
William Henry Harrison
Rahul Dev Burman
Richard Gere
Alex Kingston
Simon Cowell
Paul Simon
James E. Reilly
Sylvester Stallone
Program:
function: Find
inputs: Alex Kingston
function: Find
inputs: Adam Carolla
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alex Kingston" .  } UNION { ?e <pred:name> "Adam Carolla" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Adam Carolla