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