title: Why is my CAML query failing when it contains <Query>?
body: <p>I have a list with a lot of documents (> 5000). I need to retrieve one particular document from it. I use this query:</p>
  
  <pre><code>@"&lt;View&gt;
      &lt;Query&gt;
          &lt;Where&gt;
              &lt;Contains&gt;
                  &lt;FieldRef Name=""FileLeafRef""/&gt;
                  &lt;Value Type=""Text""&gt;MyDocumentName&lt;/Value&gt;
              &lt;/Contains&gt;
          &lt;/Where&gt;
      &lt;/Query&gt;
      &lt;RowLimit&gt;1&lt;/RowLimit&gt;
  &lt;/View&gt;"
  </code></pre>
  
  <p>And I get a ServerException stating that this operation is forbidden because it goes over the list treshold.</p>
  
  <p>But if I remove the <code>&lt;Query&gt;</code> tag:</p>
  
  <pre><code>@"&lt;View&gt;
      &lt;RowLimit&gt;1&lt;/RowLimit&gt;
  &lt;/View&gt;"
  </code></pre>
  
  <p>It works, and retrieve a single file, which sadly isn't the one I wanted, obviously.</p>
  
  <p>So I'm puzzled here. Why is it behaving like that?</p>