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