Gmail: How to filter unread mails from the Primary tab?

If you search for “unread” mails you will get mails that are in all the tabs.

The search query you have to use is:

is:inbox -category:(updates OR promotions OR social OR forums) is:unread

 

As seen on: http://techwelkin.com/search-unread-emails-primary-tab-gmail