Question: Does Mary Tyler Moore or Shigeru Miyamoto have the less number of children?
Choices:
Mary Tyler Moore
Sylvester Stallone
Shigeru Miyamoto
William Henry Harrison
Paul Simon
David Byrne
James E. Reilly
Simon Cowell
Richard Gere
Rahul Dev Burman
Program:
function: Find
inputs: Mary Tyler Moore
function: Find
inputs: Shigeru Miyamoto
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mary Tyler Moore" .  } UNION { ?e <pred:name> "Shigeru Miyamoto" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mary Tyler Moore