This is actually more like how to write the synopsis/pitch part of the query–the actual full query itself contains a bit of other stuff as well–but it’s good advice for something I think pretty much every writer loathes doing.