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