How to use AQL in python script


How to use AQL such as select statement,update statement and insert statement in python script.
It returned error when I executed sdb.query(‘select * from A’) in python script.
So I do not know how to deal with it, any help would be much appreciated!!!