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