Have tried multiple way and none of them has worked,Used : in:Test -is:starred and -is:starred in:TEST and other option, None of them worked, in:Test -is:starred has listed all started email in Test label, but the inverse is no working, please help me in resolving this.
Gmail search for unstarred emails in a label
gmail;gmail filters;gmail labels;gmail search
The issue is that the star is associated with a message, not the entire conversation.  So when you use:is:starred it returns all conversations where at least one message in the conversation has a star.-is:starred returns all conversations where at least one message is unstarred.Unfortunately  when you look at the list in the GUI all the Conversations in the first search have stars next to them. For the second search with -is:starred most will not have stars, but a few conversations will have stars because one or more of the messages has a star and at least one message doesn't have a star.As a test you can turn off conversations under settings, and then you will get the consistent results you expect.