For some reason, the outlook 2010 hides query builder.
Follow this procedure to make it visible:
1. Open registry editor (start < regedit)
2. Navigate to HKEY_CURRENT_USER < Software < Microsoft < Office < 14.0 < Outlook
3. Right click Outlook,creat new key and name it "QueryBuilder"
4. Close registry editor (regedit).
5. Open outlook and go to File < properties < customize tools
6. Mark "all commands" < Mark "advanced search < mark "Home (mail)" < add "new group" and name it "advanced search"
7. Shortcut should appear in the outlook tools bar.