Both upstream companies and pipeline stocks represent excellent opportunities for energy investors.