clause factory with adapter for inference engine