user: Question: What is the type for Duke when the from is 512 BC?
Columns: ['State', 'Type', 'Name', 'Title', 'Royal house', 'From']
Types: ['text', 'text', 'text', 'text', 'text', 'text']
Sample row: ['Cai', 'Sovereign', 'Zhao', 'Marquis', 'Ji', '518 BC']
SQL:

assistant: SELECT "Type" FROM "Table" WHERE "Title" = 'Duke' AND "From" = '512 BC';