I\'m working on a postgresql function to return "3 different queries" as a result using if-else conditions, without combining all the tables. This is my primary go