Permitting query