Question: Which person has the occupation of pastor and has the religion of Lutheranism?
Choices:
James Rebhorn
Dana Carvey
Andrew Jackson
Johann Sebastian Bach
John Quincy Adams
Martin Luther King Jr.
Emma Stone
Samuel Vincent
Edmund Husserl
Johannes Brahms
Answer: Andrew Jackson
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "pastor" .  ?e <religion> ?e_2 . ?e_2 <pred:name> "Lutheranism" .  }
Program:
function: Find
inputs: pastor
function: Relate
dependencies: 0
inputs: occupation
backward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: Lutheranism
function: Relate
dependencies: 3
inputs: religion
backward
function: FilterConcept
dependencies: 4
inputs: human
function: And
dependencies: 2
5
function: What
dependencies: 6