Is there a way to submit SQL style queries to retrieve files from the server?

I am an intern working for a company using the Workgroup PDM.  We would like perform SQL style queries on the server but don't know if its possible.

What we want to do:

Export pdfs of drawings that meet certain criteria.  Examples of criteria are things like matching project codes or selecting specific file types.  Essentially, we want to execute queries that are similar to "SELECT ... WHERE ..." queries in SQL.  Is there a way to do something like this with Workgroup PDM?  I apologize if this ends up being a confusing question, I'm just an intern and I've never touched SW myself.  I will do my best to provide any helpful information I can.  

SolidworksWorkgroup Pdm