select `X`,`Y` FROM `test`
where (X!=12 and Y!=12) or (X!=15 and Y!=15)