SQL query for keyphraseTokens works with old PG