fixed the query to pick up duplicate terms that end with a numeral

see https://github.com/GigaOM/legacy-pro/issues/2011