Question: Who has fewer children, Fergie or James Marsden?
Choices:
James E. Reilly
Simon Cowell
Fergie
Sylvester Stallone
Paul Simon
William Henry Harrison
Richard Gere
James Marsden
Max Fleischer
David Byrne
Program:
function: Find
inputs: Fergie
function: Find
inputs: James Marsden
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fergie" .  } UNION { ?e <pred:name> "James Marsden" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fergie