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