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