From my little research, pellets work wonders on nitrates, but as a by product, they reduce phosphate... this isn't to say it will eliminate it.
There are a lot of people that do pellets and GFO because of this.
But I only run 1/4-1/3 recommended pellets..... and no carbon or GFO and I don't have algae so i never test for phosphate...