Question: Who has fewer chldren, George Clinton (the one that is in the military branch British Army) or Lily Allen?
Choices:
Richard Gere
George Clinton
Lily Allen
Rahul Dev Burman
David Byrne
William Henry Harrison
Paul Simon
James E. Reilly
Sylvester Stallone
Simon Cowell
Program:
function: Find
inputs: British Army
function: Relate
dependencies: 0
inputs: military branch
backward
function: Find
inputs: George Clinton
function: And
dependencies: 1
2
function: Find
inputs: Lily Allen
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "George Clinton" . ?e <military_branch> ?e_1 . ?e_1 <pred:name> "British Army" .   } UNION { ?e <pred:name> "Lily Allen" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lily Allen