What does this have to do with the query process, you ask? Some might argue that the query process is a variable ratio schedule. This carrot of publication success is dangled in front of us and as writers we have no way of knowing which query or which submission will be "the one." We never know when we're going to get a "yes" so we all keep sending out more queries and more submissions, inundating the market, thus making the reward schedule even more random.
Personally, I think that's a rather glum way of looking at things. To me, writing is more than just a behavior motivated by the reward of publication. Rather, it's a quiet act of persistence driven by the knowledge that if I do what needs to be done, something good will come of it. Maybe it won't be the thing I wanted or when I wanted, but if I show up at the page good things can happen.
What about you? How do you view the writing process?