Question: Which has a greater number of children, Peter Tork or Dean Stockwell?
Choices:
Dean Stockwell
William Henry Harrison
Richard Gere
David Byrne
Peter Tork
Max Fleischer
Rahul Dev Burman
Paul Simon
Sylvester Stallone
Simon Cowell
Program:
function: Find
inputs: Peter Tork
function: Find
inputs: Dean Stockwell
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Peter Tork" .  } UNION { ?e <pred:name> "Dean Stockwell" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Peter Tork