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