Question: Who has more children, John Heard or Ben Harper who has 5?
Choices: Paul Simon
William Henry Harrison
Max Fleischer
Simon Cowell
James E. Reilly
Ben Harper
Sylvester Stallone
David Byrne
John Heard
Rahul Dev Burman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Heard" . } UNION { ?e <pred:name> "Ben Harper" . ?e <number_of_children> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "5"^^xsd:double . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: John Heard
function: Find
inputs: Ben Harper
function: FilterNum
dependencies: 1
inputs: number of children
5
=
function: SelectBetween
dependencies: 0
2
inputs: number of children
greater
Answer: Ben Harper