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

What is the type for Duke when the from is 512 bc?
SELECT "Type" FROM table_12472 WHERE "Title" = 'duke' AND "From" = '512 bc'
SELECT "Type" FROM "table_12472" WHERE "From" = '512 bc' AND "Title" = 'duke'