System and method for generating substitutable queries | AMiner