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