Try this query:
SELECT MIN(ID) AS ID, X, Y
FROM table_name
GROUP BY X, Y