Question: Which one has more children between George Washington (the member of the American Philosophical Society) and Gwen Stefani?
Choices: Richard Gere
Rahul Dev Burman
Paul Simon
Sylvester Stallone
George Washington
Simon Cowell
James E. Reilly
William Henry Harrison
Gwen Stefani
Max Fleischer
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "George Washington" . ?e <member_of> ?e_1 . ?e_1 <pred:name> "American Philosophical Society" .   } UNION { ?e <pred:name> "Gwen Stefani" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: American Philosophical Society
function: Relate
dependencies: 0
inputs: member of
backward
function: Find
inputs: George Washington
function: And
dependencies: 1
2
function: Find
inputs: Gwen Stefani
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
Answer: Gwen Stefani