Question: Who has more children, John Cale or Zachary Taylor (the one that has the religion Episcopal Church)?
Choices:
James E. Reilly
Rahul Dev Burman
Max Fleischer
Sylvester Stallone
Richard Gere
Zachary Taylor
Paul Simon
David Byrne
William Henry Harrison
Simon Cowell
Program:
function: Find
inputs: John Cale
function: Find
inputs: Episcopal Church
function: Relate
dependencies: 1
inputs: religion
backward
function: Find
inputs: Zachary Taylor
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Cale" .  } UNION { ?e <pred:name> "Zachary Taylor" . ?e <religion> ?e_1 . ?e_1 <pred:name> "Episcopal Church" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Zachary Taylor