Line numbers for queries