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