Question: What is the native language name of James Mason (the one that is the citizen of Canada)?
Choices:
Friedrich Wilhelm Nietzsche
Maurice Jarre
Kristin Scott Thomas
James Mason
James Marshall Hendrix
Nino Rota
Saul Bellow
Lauryn Hill
James Ivory
Andy Warhol
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: James Mason
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: name in native language
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "James Mason" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "Canada" .  ?e <name_in_native_language> ?pv .  }
Answer: James Mason