Sql Statement For Data Manipulation In Python