query keyword table first