EPAM Systems interview question

Write the python code to call the DB client and pass query