I have made an test table in sql with the following information schema as shown:
Now I extract this information using the python script the code of which is a