query = 'SELECT * FROM `%s` WHERE "%s" = "%s"' % (quote(domain), quote(key),
    quote(value))
response = client.select(SelectExpression=query)
How to escape Python boto's SelectExpression for Amazon SimpleDB