Wrap sql parts by platform in QueryBuilder