title: Compose a CAML Query to Query an SPList with Managed Metadata Column
body: <p>I have an SPList with a managed metadata column and here is my caml query.</p>
  
  <pre><code>/// This caml query doesn't work
  SPQuery oQuery = new SPQuery();
  string strQuery = @"&lt;Query&gt;&lt;Where&gt;&lt;In&gt;&lt;FieldRef LookupId=""TRUE"" Name=""TaxonomyColumn"" /&gt;&lt;Values&gt;&lt;Value Type=""Text""&gt;7392ec1d-3f35-4c5b-b6ad-f80ff15ed718&lt;/Value&gt;&lt;/Values&gt;&lt;/In&gt;&lt;/Where&gt;&lt;/Query&gt;";
  oQuery.Query = strQuery;
  
  
  /// This linq query works exactly fine
  var itms = (from SPListItem itm in oList.Items
          where itm["TaxonomyColumn"].ToString().Contains("7392ec1d-3f35-4c5b-b6ad-f80ff15ed718")
          select itm).ToList();
  </code></pre>
  
  <p>My problem is I need to use CAML Query for some reason and I can't just figure out a way on how to compose my CAML Query to work on querying a list where the column is a managed metadata column.</p>
  
  <p>Please help me. Thanks.</p>