Proper join and cogroup