Your first step is to determine exactly what SQL you'd like to emit against your database using the "sqlite3" command line utility. Once you've identified the exact SQL conversation you'd like to have, it can be automated with SQLAlchemy through various means, possible features here include the func object as well as the "collate" function:
http://www.sqlalchemy.org/docs/core/expression_api.html#sqlalchemy.sql.expression.func
http://www.sqlalchemy.org/docs/core/expression_api.html?highlight=collate#sqlalchemy.sql.expression.collate
> --
> You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
> To post to this group, send email to sqlal...@googlegroups.com.
> To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
>