Skip to content

Magento 2 How to print SQL Query when user search from admin product grid

Magento 2.3.4 version using.
Can we print SQL query when product search from admin product grid?
i can print sql query in our custom or product collection in frontend using $collection->getSelect()->__toString();

but I want to print the SQL query in the admin product grid.