Would it not be more efficient to move the where clause in to the subquery?
Note that this could return different results depending on the nature of your data: can one document name have more than one document type?
If so, and assuming you have the data
PQR HR 1.0 5
PQR FM 2.0 6
Would you want to return PQR in your result?
If the answer is yes, then put there where clause in the subquery.
If the answer is no, then leave it be
