Query Method In Python Example