How to find attribute Id's for defined type attributes?
Example provided by Kate Quinn:
SELECT *
FROM Attribute
WHERE EntityTypeId = 31
AND EntityTypeQualifierColumn = 'DefinedTypeId'
AND EntityTypeQualifierValue = 117