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