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