Question: Who has more children, Michael Dobson who is a citizen of Canada or Kathleen Quinlan?
Choices:
Sylvester Stallone
Max Fleischer
Paul Simon
David Byrne
Rahul Dev Burman
Simon Cowell
William Henry Harrison
Kathleen Quinlan
Richard Gere
Michael Dobson
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Michael Dobson
function: And
dependencies: 1
2
function: Find
inputs: Kathleen Quinlan
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Michael Dobson" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "Canada" .   } UNION { ?e <pred:name> "Kathleen Quinlan" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Michael Dobson