Question: Who has more kids, Zachary Taylor who is in the United States Army or Matt Damon?
Choices:
Zachary Taylor
David Byrne
William Henry Harrison
Max Fleischer
Rahul Dev Burman
Richard Gere
Sylvester Stallone
Paul Simon
Matt Damon
James E. Reilly
Program:
function: Find
inputs: United States Army
function: Relate
dependencies: 0
inputs: military branch
backward
function: Find
inputs: Zachary Taylor
function: And
dependencies: 1
2
function: Find
inputs: Matt Damon
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Zachary Taylor" . ?e <military_branch> ?e_1 . ?e_1 <pred:name> "United States Army" .   } UNION { ?e <pred:name> "Matt Damon" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Zachary Taylor