Add query functionality to ':set'