Document type fields are currently not supported in suiteQL.
Create a custom text field on whatever record you have the document type field, this field should source the internal id of the file from the document field.
Then you can do a join and get the filename based on the internalid of the new custom field.