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