Question: How is Mark Twain, member of the American Academy of Arts and Letters, related to the United States of America?
Choices:
killed by
honorific prefix
official residence
allegiance
dialect of
country of citizenship
godparent
Wikidata property
soundtrack album
nutrient
Answer: country of citizenship
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Mark Twain" . ?e_1 <member_of> ?e_3 . ?e_3 <pred:name> "American Academy of Arts and Letters" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: American Academy of Arts and Letters
function: Relate
dependencies: 0
inputs: member of
backward
function: Find
inputs: Mark Twain
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 3
4