A huge win with a general pattern for Query optimization and have fixed the outE/inE/bothE corner case with VertexQueryPipe and optimization.