Postgres Function Return Row Of Vlookup With Multiple Criteria