Query Method In Python Example Program