Fixed the topn() - it was not doing anylysis for the query inside the brackets