where, again, the innermost query is wrong (there's no x in a).
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных