Question: Who has more children, Sienna Guillory or James Buchanan of the 23rd United States Congress?
Choices: James Buchanan
Richard Gere
Sienna Guillory
Rahul Dev Burman
Max Fleischer
David Byrne
James E. Reilly
Paul Simon
Simon Cowell
Sylvester Stallone
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sienna Guillory" .  } UNION { ?e <pred:name> "James Buchanan" . ?e_1 <participant> ?e . ?e_1 <pred:name> "23rd United States Congress" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Sienna Guillory
function: Find
inputs: 23rd United States Congress
function: Relate
dependencies: 1
inputs: participant
forward
function: Find
inputs: James Buchanan
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
Answer: James Buchanan