Combining two Postgresql queries

There are two queries, and your platform can combine them by the same column. The question is, how does it combine them? Help me figure out how to combine queries into one.