Separate document file following query method