Finished with custom feature structure and have group by with having in query