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