Correspondence between Fore- and After-Blessings

There is no essential connection between fore-blessings and after-blessings.
Examples Rice
The fore-blessing is borei minei mezonot, so you might expect the after-blessing to be al ha'michya.  But the correct after-blessing is borei nefashot.
Apple
The fore-blessing is borei pri ha'eitz, so you might expect the after-blessing to be al ha'eitz.  But the correct after-blessing is borei nefashot.