And it also works with flying on Alaska as well - an exception to the rule. PDX - PDX = 500 EQM and 500 EQP as I recall from my flights - though it is ~129 air miles (if flown as a stand-alone segment.)
To illustrate another, SFO - LAX is 337 air miles; in my on-line account on the line item relating to that flight it shows as "337 miles, 663 bonus miles." But in the totals up top, where it counts, it will add in as 500 EQM and 500 EQP.