Question: Who has fewer children, Richard Roxburgh or Patrick Doyle (the one that is the citizen of United Kingdom)?
Choices:
James E. Reilly
Paul Simon
Richard Roxburgh
William Henry Harrison
Simon Cowell
Richard Gere
David Byrne
Sylvester Stallone
Max Fleischer
Patrick Doyle
Program:
function: Find
inputs: Richard Roxburgh
function: Find
inputs: United Kingdom
function: Relate
dependencies: 1
inputs: country of citizenship
backward
function: Find
inputs: Patrick Doyle
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richard Roxburgh" .  } UNION { ?e <pred:name> "Patrick Doyle" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Richard Roxburgh