title: JavaScript Boolean Search Query Builder Interface Library?
body: <p>Are there any (good/usable/not ugly) JavaScript/interface libraries for managing the creation of custom boolean style queries, similar to the Google Analytics Advanced Segment interface? </p>
  
  <p>Basically, a dynamic interface for query building that can be used to connect to a custom query builder on the backend (in my case, MySQL, but it needn't be database specific). </p>
  
  <p>I've searched around, and haven't found anything helpful or usable. </p>
  
  <p><img src="https://i.stack.imgur.com/5xLfL.png" alt="Google Analytics Query Builder"></p>