Question: What is the tenure of the person whose courtesy title is Yamashiro-no-kami?
SQL: SELECT "Tenure" FROM "2-12803398-3" WHERE "Courtesy title" = 'Yamashiro-no-kami';

Question: What is the courtesy title of the person whose tenure goes from 1766–1794?
SQL: SELECT "Courtesy title" FROM "2-12803398-3" WHERE "Tenure" = '1766–1794';