It's possible to pass configuration parameters to your Gatsby plugin. One use case is just allow the plugin to be used multiple times creating different queries that will be available for your site.
To do this you need to refactor the origin plugin code to accept this parameters and update the gatsby-config.js
file to set them there.