How To Change Base URLs in Magento 2.x By Database Query

There are following database SQL query need to run