Select statement can fetch a subset of attributes
Adding a new query for counting items