add line query