You can create new queries by right-clicking in Team Explorer. My work items are a popular request and may already be created for you. Try editing several existing queries to see how to structure them. Here is my view on VS 2012 - if you use 2010, the user interface will be different, but not the syntax:

source share