Primitivetype query