Global Top SQL by any Metric

This is a global script that will return the Top SQL from all instances being monitored. It's the global version of this script: Top SQL by any Metric (single instance)