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