sql compatibility with patstat 2014 a for existing tables