How to merge the two queries

How to merge three queries in grafana also I need the distinct record with the sum of all query for example

one query result count 20 times
another query result count 4 times
another query result count 2 times

I have done the query but I need the distinct record and sum of all query