Use format for whole query.