`SELECT DISTINCT ON (x, y) x, y, color, "createdAt" FROM "Pixel" WHERE "createdAt" < $1 AND "deletedAt" IS NULL ORDER BY x, y, "createdAt" DESC`,
`SELECT DISTINCT ON (x, y) x, y, color, "createdAt" FROM "Pixel" WHERE "createdAt" < $1 AND ("deletedAt" IS NULL OR "deletedAt" >= $1) ORDER BY x, y, "createdAt" DESC`,