Question: Does Katherine Heigl or Barbara Hershey have more children?
Choices:
Barbara Hershey
William Henry Harrison
Paul Simon
Simon Cowell
Rahul Dev Burman
James E. Reilly
Max Fleischer
Richard Gere
Katherine Heigl
David Byrne
Program:
function: Find
inputs: Katherine Heigl
function: Find
inputs: Barbara Hershey
function: SelectBetween
dependencies: 0
1
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Katherine Heigl" .  } UNION { ?e <pred:name> "Barbara Hershey" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Katherine Heigl