<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run_query(self, collection_name, query):
 """ method runs query on a specified collection and return a list of filtered Job records """

        cursor = self.ds.filter(collection_name, query)
        return [Job.from_json(document) for document in cursor]