basic principal SQL test