query6 descripttion optimzed postgres