Question: Is James McAvoy or Gary Oldman a parent to few kids?
Choices:
Gary Oldman
Rahul Dev Burman
Max Fleischer
Richard Gere
Simon Cowell
Sylvester Stallone
David Byrne
William Henry Harrison
James McAvoy
James E. Reilly
Program:
function: Find
inputs: James McAvoy
function: Find
inputs: Gary Oldman
function: SelectBetween
dependencies: 0
1
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James McAvoy" .  } UNION { ?e <pred:name> "Gary Oldman" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: James McAvoy