constraining indexed pattern models by phrasetable