Question: Does Tom Werner or Adam Carolla have more children?
Choices:
James E. Reilly
Max Fleischer
Rahul Dev Burman
Adam Carolla
Paul Simon
David Byrne
Richard Gere
Tom Werner
Simon Cowell
Sylvester Stallone
Program:
function: Find
inputs: Tom Werner
function: Find
inputs: Adam Carolla
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tom Werner" .  } UNION { ?e <pred:name> "Adam Carolla" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tom Werner