More efficient lpad query.