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