Indent query string
Rename n to rowNum