Question: Which human was born in Scotland (which has the capital Edinburgh) and whose native language name is James Stewart?
Choices: Max Fleischer
William Henry Harrison
Sylvester Stallone
James Stewart
Simon Cowell
David Byrne
Richard Gere
James E. Reilly
Rahul Dev Burman
Colin Wilson
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Scotland" . ?e_2 <capital_of> ?e_1 . ?e_2 <pred:name> "Edinburgh" .  ?e <name_in_native_language> ?pv . ?pv <pred:value> "James Stewart" .  }
Program:
function: Find
inputs: Edinburgh
function: Relate
dependencies: 0
inputs: capital of
forward
function: Find
inputs: Scotland
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
backward
function: FilterConcept
dependencies: 4
inputs: human
function: FindAll
function: FilterStr
dependencies: 6
inputs: name in native language
James Stewart
function: FilterConcept
dependencies: 7
inputs: human
function: And
dependencies: 5
8
function: What
dependencies: 9
Answer: James Stewart