title: MongoDB - Java - what is Easiest way to combine logical OR and logical AND?
body: <p>I have the following query as an example:
  year = 2012 OR year = 2011 AND name = John OR name = Mike AND county = USA OR country = Canada</p>
  
  <p>What is the best way to construct this using the JAVA driver?
  Using the DBObject is a bit tricky as it's actually a Map so keys have to be distinct.
  I could not find a decent example with QueryBuilder either (i.e. one using a loop).</p>
  
  <p>Thanks.</p>