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