Leetcode Insert Into Sql With Where Clause In Join