Not sure how it is possible but maybe others can help. As shown below the A music is in a minor key and the B in a major key and not the relative major of the minor of the A. The B also has three separate accidentals which would also not be available on a 1 row.
X:1
T:the Teddy Bears' Picnic
C:John W. Bratton (c.1907)
M:6/8
L:1/8
K:Em
"B7"B,3 | "Em"E2G "B7"FGF | "Em"E2G "B7"F2G | "Em"EFG "B7"F2G | "Em"E3- "D7"E2D
| "G"G2B "D7"ABA | "G"G2B "D7"A2B | "G"GAB "D7"A2B | "G"G3- G2d |
| "D7"e2d e2d | ABd B2A | "G"A2G A2G | DEG E2D |
"C"E2G "G"D2D | "C"EFG "G"D2B | "D7"A6 | "G"G3 :|
K:Cmaj
[| "G7"z3 | "C"G,3 E3 | ^D3 E3 | A2E G3- | G2E ^D2E |
A2E G2E | AGE ^D2E | "G7"G2G F3- | F6 |
| "G7"G,3 F3 | ^C3 D3 | B2B A3- | A2F E2F |
B2A G2F | BAF E2F | "C"A2A G3- | G3- "G7"G3 |
| "C"G,3 E3 | ^D3 E3 | A2E G3- | G2E ^D2E |
A2E G2E | AGE "C7"D2C | "F"c6- | c3- cAB |
| "F"c2B c2B | "D7"cBc dcA | "C"G2^F G2A |
"Am"G2C D2E | "Dm"F3 G2A | "G7"E3 D3 | "C"C6- | Cz2 |]