Question: Who has fewer children, Tilda Swinton or Zachary Taylor (the one that is the member of political party Whig Party)?
Choices:
David Byrne
Paul Simon
Rahul Dev Burman
Zachary Taylor
William Henry Harrison
Sylvester Stallone
Max Fleischer
Tilda Swinton
Simon Cowell
Richard Gere
Program:
function: Find
inputs: Tilda Swinton
function: Find
inputs: Whig Party
function: Relate
dependencies: 1
inputs: member of political party
backward
function: Find
inputs: Zachary Taylor
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tilda Swinton" .  } UNION { ?e <pred:name> "Zachary Taylor" . ?e <member_of_political_party> ?e_1 . ?e_1 <pred:name> "Whig Party" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Tilda Swinton