CREATE TABLE "list_of_daimy" (
  "name" text,
  "tenure" text,
  "courtesy_title" text,
  "court_rank" text,
  "revenues" text
);

Question: What is the tenure of the person whose courtesy title is yamashiro-no-kami?
SQL: SELECT "tenure" FROM "list_of_daimy" 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 "list_of_daimy" WHERE "tenure"='1766–1794';