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