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