CREATE TABLE table_name_54 (type VARCHAR, title VARCHAR)

What type of state did the ruler have a title?
SELECT type FROM table_name_54 WHERE title = "ruler"
SELECT "type" FROM "table_name_54" WHERE "ruler" = "title"