How to get related taxonomies based on a category with mysql query?

How to get related taxonomies based on a category with mysql query?