Question: Does Charles Bronson (whose religion is Islam) or Swizz Beatz have fewer children?
Choices:
Max Fleischer
Simon Cowell
David Byrne
James E. Reilly
Paul Simon
Swizz Beatz
Sylvester Stallone
Charles Bronson
Richard Gere
Rahul Dev Burman
Program:
function: Find
inputs: Islam
function: Relate
dependencies: 0
inputs: religion
backward
function: Find
inputs: Charles Bronson
function: And
dependencies: 1
2
function: Find
inputs: Swizz Beatz
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charles Bronson" . ?e <religion> ?e_1 . ?e_1 <pred:name> "Islam" .   } UNION { ?e <pred:name> "Swizz Beatz" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Charles Bronson