Use identify for query tool

This is related to the number of maximum attributes not the number of features. (I mean indirectly)