LPS-47159 Add comparation columns to select columns

Add these three columns to SELECT as the sql will order by these three columns finally.