Bricks Query "Is Main Archive" in PHP

Is there a code snippet to add if you are using custom PHP to make a query the “main archive” as you would just by selecting the UI in a normal query?