<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def query(self, expression, vm='python'):
 """Evaluate expression and then use it to extract rows from the table. Parameters expression : string Expression to evaluate. vm : {'numexpr', 'python'} Virtual machine to use. Returns ------- result : structured array """


        condition = self.eval(expression, vm=vm)
        return self.compress(condition)