Convert the following SQL statement into equivalent Python code
SELECT *
FROM table
ORDER BY col1, col2 DESC
def query_table(table):
    query = """SELECT * 
            FROM %s 
            ORDER BY col1, col2 DESC""" % table
    return query