CREATE TABLE table_12474 ("State" TEXT, "Type" TEXT, "Name" TEXT, "Title" TEXT, "Royal house" TEXT, "From" TEXT)

Which name has a state of Yan?
SELECT "Name" FROM table_12474 WHERE "State" = 'yan'
SELECT "Name" FROM "table_12474" WHERE "State" = 'yan'