Question: Does Natalie Portman or William Baldwin (who is a member of political party called the Democratic Party) have fewer children?
Choices: Natalie Portman
Paul Simon
Simon Cowell
James E. Reilly
Richard Gere
William Baldwin
Max Fleischer
David Byrne
William Henry Harrison
Sylvester Stallone
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Natalie Portman" .  } UNION { ?e <pred:name> "William Baldwin" . ?e <member_of_political_party> ?e_1 . ?e_1 <pred:name> "Democratic Party" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Natalie Portman
function: Find
inputs: Democratic Party
function: Relate
dependencies: 1
inputs: member of political party
backward
function: Find
inputs: William Baldwin
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
less
Answer: Natalie Portman