Query Method In Python Example Programs