Made the queryplanner decide what kind of stream generate

The queryplanner right now returns ONLY a JoinStream, as there are
situation where the SortJoin is not applicable.