Unfortunately there is no such thing as the perfect pitch. Even worse, how do you boil all the awesome going on in your book into a query, or something shorter like a 35 word pitch. The short answer? You don't. You can't include every cool detail. You also can't answer every possible question asked. That's what the book is for. So how do you know what to include and what to toss?
The first question to ask yourself is what is the single most unique part of your book? What makes you book different from all the other ones out there with similarities? If you've found that bit then you have the basis for your pitch. Why start here? Because the point of your pitch is not to tell every little detail and plot point but to intrigue the reader, make them want to know more about your book.
From the unique piece, you can start crafting. Build outward from there. With that unique part, you should be able to tie to at least one important piece of your pitch, your inciting incident, your conflict, and/or your stakes. Once you have a link you should be able to weave all the details together into your pitch. Make sure you include enough detail that you can follow a logical progression through all of these things without leaving holes or too many confusing questions. But you also don't want so much detail that you are giving away your entire book or overloading the reader. Find the balance.
Now that you have a pitch, see what kind of questions people are asking about it. Questions aren't always a bad thing. Your reader should be asking questions after a pitch but they shouldn't be ones driven by confusion. They should want to know more about your story. Hopefully you planted a seed that makes them want to read and learn more about your book. So don't worry about trying to squeeze in every detail. Find what reels in the reader and ditch the rest.
Obviously a query is going to have more detail than a logline or short pitch but if you focus on the unique hook of your story first, that should help you bring in just enough detail to weave a great pitch.
What helps you construct your pitches?