@a_horse_with_no_name You are right. The very first post (21:50) had an extra set of parentheses in each query. Edit 2 (21:59) by the OP removed them. That's why I retracted your yesterday's edit. Still, it's a bit of a mess because if we reinstate the very first post, we invalidate the accepted answer. If we keep the current version, the other answer looks wrong while it was answering the very first version. —
ypercubeᵀᴹ 40 secs ago