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