Writer Marcus Sakey gives a great summary of how to write a query and land a literary agent:

http://killeryear.wordpress.com/2007/08/02/the-query-go-round/