Find all files with the extension ".sql" in the directory "/usr/local/bin", execute the "cat" command on each of them, and sort the output based on the third field, delimited by "::".
find /usr/local/bin -name "*.sql" -exec cat {} \; | sort -nt "::" -k3,3