123456SELECT l.v, count(c.u)FROM chain_l l LEFT JOIN chain_r r ON l.k = r.k LEFT JOIN chain_c c ON c.k = l.kGROUP BY l.vORDER BY 1, 2;