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