T_P operator works with Horn clauses with variables now