Query to find problems with missing row pairs given a partition

welcome to shbcf.ru