Haven't used N/Query yet but in the new Analytics ...
# suitescript
j
Haven't used N/Query yet but in the new Analytics WorkBook in the UI, Main Line as a field is available under Transaction Line so based on that maybe tranline.mainline