The second version of temporal first join