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