Postgresql Json Build Object Distinct Sql Meaning