Praveen Battula has released a new tool on his blog to work with CAML Queries. Not only you can export the plain CAML Query it self, the tool lets you generate code for C#, JavaScript, WebServices and PowerShell as well.
Have a look at his blog:
http://praveenbattula.blogspot.de/2015/02/download-caml-query-designer.html