query line increase and decrease