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