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