Pattern property for q-input