Table schema:
CREATE TABLE table_name_54 (type VARCHAR, title VARCHAR)

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