Add sql coverage test for three table outer join feature