Postgresql Nested Query Vs Subquery Network