Partner opens 1NT (15-17.) You hold 
J54 
987 
QJ8765 
2. What is your bid?
"Sign off in 3
, obviously!" you say. That was what I thought the answer was too until recently. Then I noticed that the BridgeGuys page for Trash Stayman commented, without explanation, that 3-3-6-1, 3-4-6-0, and 4-3-6-0 hands might respond 2
. It's certainly not what you see recommended in the standard bidding textbooks! (There are a handful of Internet sources, e.g. Harold Schachter's website, that  recommend Puppet Stayman on hands with 3-3 in the majors and a long diamond suit.)
Responding 2
 on weak 3-3-6-1 hands turns out to be a big winner. It can gain in two ways: you can play in a 4-3 major fit and ruff clubs in the short trump hand; or you can play in an 8- or 9-card minor fit at the 2-level instead of the 3 level, beating the pairs in 3
 if eight or fewer tricks are available.
The standard treatment, transferring to 3
, is also an improvement over playing in 1NT. But Stayman turns out to be even better. Let's compare them side by side, first at matchpoints, then at IMPs:
| HCP: | Results of Stayman vs. passing 1NT:  | Results of transferring to 3   vs. passing 1NT: | 
Results of Stayman vs. transferring to 3  : | In a three-way race, which contract scores highest:  | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| P(MP gain) | P(MP loss) | Net | P(MP gain) | P(MP loss) | Net | P(MP gain) | P(MP loss) | Net | 1NT | Stayman | 3![]()  | |
| 0 | 74% | 9% | +65% | 76% | 8% | +68% | 46% | 28% | +18% | 8% | 55% | 37% | 
| 1 | 70% | 12% | +58% | 73% | 11% | +63% | 43% | 30% | +13% | 10% | 51% | 38% | 
| 2 | 67% | 14% | +53% | 69% | 13% | +56% | 41% | 28% | +13% | 12% | 50% | 38% | 
| 3 | 66% | 17% | +49% | 68% | 16% | +52% | 38% | 28% | +10% | 15% | 47% | 38% | 
| 4 | 63% | 21% | +43% | 64% | 21% | +42% | 37% | 26% | +11% | 18% | 46% | 36% | 
| 5 | 64% | 24% | +40% | 63% | 26% | +37% | 37% | 22% | +14% | 21% | 46% | 33% | 
| 6 | 61% | 31% | +31% | 59% | 33% | +27% | 38% | 21% | +16% | 27% | 44% | 30% | 
| 7 | 59% | 36% | +23% | 54% | 39% | +14% | 41% | 19% | +21% | 32% | 43% | 25% | 
| 8 | 51% | 45% | + 6% | 45% | 48% | - 3% | 45% | 16% | +30% | 41% | 41% | 18% | 
| HCP: | Results of Stayman vs. passing 1NT:  | Results of transferring to 3   vs. passing 1NT: | 
Results of Stayman vs. transferring to 3  : | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Not vulnerable | Vulnerable | Not vulnerable | Vulnerable | Not vulnerable | Vulnerable | |||||||
| Net | SD | Net | SD | Net | SD | Net | SD | Net | SD | Net | SD | |
| 0 | +2.50±.09 | 2.6 | +3.97±.13 | 4.0 | +2.26±.08 | 2.3 | +3.66±.12 | 3.6 | +0.45±.09 | 2.4 | +0.56±.11 | 3.5 | 
| 1 | +2.30±.09 | 2.8 | +3.58±.13 | 4.2 | +2.13±.08 | 2.5 | +3.41±.12 | 3.9 | +0.34±.08 | 2.5 | +0.37±.11 | 3.6 | 
| 2 | +2.21±.09 | 2.9 | +3.29±.13 | 4.2 | +2.00±.08 | 2.7 | +3.06±.12 | 4.0 | +0.34±.08 | 2.6 | +0.38±.11 | 3.6 | 
| 3 | +2.01±.06 | 3.0 | +2.91±.09 | 4.3 | +1.86±.06 | 2.9 | +2.76±.08 | 4.1 | +0.23±.05 | 2.7 | +0.23±.07 | 3.6 | 
| 4 | +1.68±.06 | 3.1 | +2.29±.08 | 4.2 | +1.50±.06 | 2.9 | +2.11±.08 | 4.1 | +0.19±.05 | 2.5 | +0.20±.07 | 3.4 | 
| 5 | +1.45±.06 | 2.9 | +1.89±.08 | 3.9 | +1.20±.06 | 2.9 | +1.61±.08 | 3.9 | +0.22±.05 | 2.3 | +0.25±.06 | 3.0 | 
| 6 | +1.11±.06 | 2.8 | +1.37±.07 | 3.6 | +0.81±.06 | 2.8 | +1.06±.07 | 3.6 | +0.21±.05 | 2.1 | +0.23±.06 | 2.7 | 
| 7 | +0.88±.05 | 2.5 | +1.04±.06 | 3.1 | +0.49±.05 | 2.5 | +0.64±.06 | 3.1 | +0.26±.04 | 1.8 | +0.27±.05 | 2.3 | 
| 8 | +0.64±.05 | 2.2 | +0.73±.06 | 2.7 | +0.11±.05 | 2.2 | +0.20±.06 | 2.7 | +0.37±.03 | 1.5 | +0.38±.04 | 1.8 | 
[The fine print about the simulations: 1NT opener is 15-17, balanced or semibalanced (we allow 5-card majors freely). Responder is 3-3-6-1 with the designated number of HCP. I specifically excluded from the simulation hands where responder has two of the top three honours in diamonds, since with that holding, there is a compelling case to be in 3NT if opener has the third high honour and can run the suit. (Yes, my bidding system has a sequence specifically to show KQxxxx+ in a minor and nothing else, asking opener to choose between 3m and 3NT. Yours should too.) 10,000 repetitions (MP uncertainties ±1%) for 3-8HCP, 3,000 repetitions (MP uncertainties ±1.7%) for 0-2 HCP.]
Both alternatives do approximately equally well at beating 1NT. If your competition was passing out 1NT, it would be a wash whether you used Stayman or transferred to 3
. But your competition is not passing out 1NT; the field is playing in 3
 on these hands, and by using Stayman, you will beat the pairs in 3
 substantially more often than not. You will tie about 40% of the time - either by playing in diamonds either way, 2M making 2 when 3
 makes 3, or 2M and 3D down the same number of tricks. You gain when 3
 goes down, and when both contracts take 9 or more tricks; you lose when 3
 plays two tricks better than 2M does. Stayman outperforms diamonds all the way from 0 HCP up to 8, at IMPs and matchpoints. (With 9HCP or with near-solid diamonds, you raise to 3NT of course.) Here are a few illustrative deals:
  9 7 6  9 6 4  A 8 7 5 4 3  2 | ||
  A 8 5  A 7 5  Q T 6 2  K J 2 | 
 
 | 
  Q T 4 3  Q J T 2  9  Q T 8 6 | 
  K J 2  K 8 3  K J  A 9 7 4 3 | 
1NT has no chance when the diamonds don't run. Playing in diamonds, you can make 8 tricks. If you use Stayman, that's +90; if you sign off in diamonds, that's -50.
  K 9 3  T 6 4   9 8 7 6 5 2  9 | ||
  J T 7 5 2   K 8 3 2  T  K T 7 | 
 
 | 
  Q  J 9  K Q J 3  A J 6 4 3 2 | 
  A 8 6 4  A Q 7 5   A 4  Q 8 5 | 
What a disaster - nothing makes at all your way! But 2
 can go down just one while 3
 is going down two, possibly doubled. (East can double your Stayman bid to show clubs, and they likely will compete to 3
 over 2
 -- but letting them have their clubs is better than being down in 3
X.)
  T 9 8   9 5 3  K T 9 7 4 2  9 | ||
  A 6 2   A K 6 4  J 3  J 6 4 3 | 
 
 | 
  5 4 3  Q 7 2  8 6 5  K Q T 5 | 
  K Q J 7  J T 8   A Q  A 8 7 2 | 
 makes effortlessly, losing the obvious 3 hearts and a spade. But if you use Stayman -- 2
 makes too, and with a few lucky breaks you can make an overtrick to beat the pairs in diamonds rather than just tie them.
It is safe to conclude that using Stayman on weak 3-4-6-0 and 4-3-6-0 hands is even more to your advantage. Further investigation is needed to settle which bid is better with a 7-card diamond suit.
If your system causes you to play 3
 from responder's side rather than transferring to opener's side, your gains from using Stayman will be larger than reported above. If you play very classical 1NT openings (always balanced / rarely contain a 5-card major), your gains from Stayman will be considerably smaller.