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