Find all files with the extension ".sql" in the current directory and up to three levels of subdirectories, and copy them to the /tmp/ directory.
find ~ -maxdepth 3 -type f -name "*.sql" -exec cp {} /tmp/ \;