Chapter 18 Exercises — Queen Endgames and Complex Endings
Difficulty: ⭐ recall · ⭐⭐ apply · ⭐⭐⭐ analyse and judge · ⭐⭐⭐⭐ open research.
Every position below with seven or fewer pieces was checked with the Syzygy tablebase (category, distance to zeroing and distance to mate, in plies); positions from games with more pieces were checked with Stockfish 19 at depths 20 and 24 (MultiPV 3). The verification output is in code/06_output.txt; evaluations are from White's point of view, in pawns.
Part A — Concepts ⭐
A1. Name the two factors that, in this chapter's principle, decide most queen endings. Why is "material" not one of them?
Answer
The most advanced passed pawn and the safety of the king that escorts it. Material matters less than in any other family because a queen with open checking lines can hold a pawn-down position by perpetual check, and a queen supporting a far-advanced passed pawn can win a pawn-down position. In our OTB classical games the side exactly one pawn up won only 54.6% of queen endings (n = 1,208) — the lowest of the families measured.
A2. State the corrected rule for queen against a pawn on its seventh rank supported by its king.
Answer
Against a b-, d-, e- or g-pawn the queen wins. Against an a-, c-, f- or h-pawn the defender has a stalemate resource, and the queen wins only if its own king is already close to the pawn. The commonly repeated version ("the queen wins against c-, d-, e-pawns but not against a- or b-pawns") is wrong about the b-pawn (it loses) and the c-pawn (it usually draws).
A3. What is the "tempo" that the queen's staircase of checks is trying to win against a centre pawn?
Answer
A free move for the attacking king. When the defending king is forced to stand on the queening square in front of its own pawn, the pawn cannot promote that move, so the attacker can spend one move bringing the king a square closer. Each cycle of checks buys one such step.
A4. Define the book's endgame start and explain why it uses a stable position.
Answer
The first position at or after the endgame threshold (combined non-pawn material of both sides ≤ 26, with N/B 3, R 5, Q 9) whose next move is not a capture. Using a stable position avoids measuring material halfway through an exchange — for example after a queen capture whose recapture comes on the next move.
A5. Why does the conversion table compute the confidence interval of a Lichess cell from the unweighted number of games?
Answer
Lichess rows are re-weighted (analysed games count once, the others eight times) so that the proportions estimate the full 4-million-game sample. The weights correct the mix of games; they do not create new games. Using weighted counts as the sample size would make the interval about eight times too confident for the down-weighted part of the data.
A6. What is the difference between the 50-move rule and the 75-move rule under the FIDE Laws?
Answer
After 50 moves by each side (100 plies) with no capture and no pawn move, a player may claim a draw (50-move rule). After 75 moves by each side (150 plies) the game is drawn automatically, without a claim (75-move rule, in the FIDE Laws since 2014). Online platforms apply the 50-move draw automatically.
A7. What does the tablebase category cursed win mean, and what happens to such a position in a real game?
Answer
A position that is a forced win with perfect play, but only if the 50-move rule is ignored: every winning line needs more than 100 plies without a capture or pawn move at some point. Under the rules the defender can claim a draw (or, online, the game is drawn automatically), so in practice it is a draw.
A8. In 18.1 queen endings were found to be short (median 27 plies after the endgame start in OTB classical games). Give two typical ways a queen ending ends quickly.
Answer
A perpetual check (the defender checks until a repetition), or a queen trade that turns the game into a pawn ending, which is then usually decided quickly. A third: a careless king move allows a fork or a mating net and the game ends at once.
Part B — Positions ⭐⭐
B1. Endgame technique. White to move.

♟️ Position: White Kh7, Qa8; Black Kd2, e2 — White to move. FEN:
Q7/7K/8/8/8/8/3kp3/8 w - - 0 1
Win or draw? Describe White's plan.
Answer
Tablebase: win (distance to zeroing 36 plies, distance to mate 41 plies). The best moves listed are 1.Qa2+, 1.Qg2, 1.Qa5+ and 1.Qd5+, all winning. An e-pawn is a centre pawn: there is no stalemate corner for Black's king. White checks and pins until Black's king must step onto e1 in front of the pawn; each time it does, White's king takes a step from h7 towards the pawn.
B2. Endgame technique. White to move.

♟️ Position: White Kb5, Qa7; Black Kg2, f2 — White to move. FEN:
8/Q7/8/1K6/8/8/5pk1/8 w - - 0 1
Win or draw? Which earlier position in the chapter is this the mirror image of?
Answer
Tablebase: draw — every White move draws, including 1.Qxf2+ Kxf2. The f-pawn is the mirror of the c-pawn (18.2): Black's king hides in the h1 corner, next to the queening square f1's neighbour g1, and Qxf2 from the right square is stalemate. White's king on b5 is far outside the winning zone.
B3. Endgame technique. White to move.

♟️ Position: White Kb4, Qg1; Black Kb2, c2 — White to move. FEN:
8/8/8/8/1K6/8/1kp5/6Q1 w - - 0 1
This is the c-pawn from 18.2, but White's king stands on b4. Find the winning first move.
Answer
Tablebase: win (DTZ 5, DTM 11 plies). Best: 1.Qf2! (also 1.Qg2 and 1.Qh2): the queen pins the c-pawn against Black's king along the second rank, so ...c1=Q is illegal. White's king, already inside the winning zone (b4 was one of the nine winning squares in the chapter's map), arrives before the stalemate trick can be set up.
B4. Endgame technique. White to move.

♟️ Position: White Kc4, Qg1; Black Kb2, a2 — White to move. FEN:
8/8/8/8/2K5/8/pk6/6Q1 w - - 0 1
Answer
Tablebase: win (DTZ 3, DTM 9 plies). Best: 1.Qf2+ (also 1.Qg2+, 1.Qh2+ and 1.Qd1). With White's king on c4 — inside the a-pawn's winning zone from the chapter's map — the corner trick fails: after the check, Black's king cannot hide on a1 without being mated, because White's king covers b3 and b2's neighbourhood in time.
B5. Analyze this position. Botvinnik–Minev, Amsterdam Olympiad 1954, after 76...Qe8 77.Qf4+. Black to move.

♟️ Position: White Kh5, Qf4, g6; Black Ka4, Qe8 — Black to move. FEN:
4q3/8/6P1/7K/k4Q2/8/8/8 b - - 22 77
Four king moves are legal. Which one holds the draw?
Answer
Tablebase: 77...Ka3! is the only drawing move. 77...Ka5 (played), 77...Kb5 and 77...Kb3 all lose (the tablebase lists them as wins for White with DTZ 19, 17 and 3). Stockfish 19 agrees: before the move +0.21 (depth 24, best Ka3); after 77...Ka5 +4.05 (depth 24). The reason is geometric: from a3 Black's king stays off the lines White's queen will use for a cross-check or a queen-trade offer; on a5/b5 it walks into them.
B6. Find the move. Muzychuk–Divya Deshmukh, FIDE Women's Candidates 2026, after 59.a7 Qxa7 60.Qxh5. Black to move.

♟️ Position: White Kh3, Qh5, g3, d5; Black Kf8, Qa7, d6, f6, e7 — Black to move. FEN:
5k2/q3p3/3p1p2/3P3Q/8/6PK/8/8 b - - 0 60
Answer
Stockfish 19, MultiPV 3: depth 20 — 60...Qd7+ −2.77, 60...Qa6 −1.23, 60...Qe3 −0.73; depth 24 — 60...Qd7+ −3.05, 60...Qa6 −2.12, 60...Qa4 −0.96. The check 60...Qd7+ forces White's king to a worse square and keeps Black's queen covering the kingside, after which Black's extra pawn and safer king tell. The game move 60...Qe3 let White back into the game (−0.52 at depth 24 after it). Black went on to win anyway — see Case Study 1.
B7. Engine analysis. Praggnanandhaa–Vachier-Lagrave, GCT Romania 2026, after 121...Kf8. White to move.

♟️ Position: White Kh4, Qd5, a4, g4, f6; Black Kf8, Qg6, a5, h6 — White to move. FEN:
5k2/8/5Pqp/p2Q4/P5PK/8/8/8 w - - 53 122
Find a move that keeps a large advantage. What did the game move 122.Qe6 throw away? Note the halfmove clock.
Answer
Stockfish 19, MultiPV 3 at depth 24: 122.Qc5+ +2.07, 122.Qd6+ +1.68, 122.Qd8+ +1.68 (at depth 20 all three are +1.24). A single-line search at depth 24 prefers 122.Qd8+ at +2.59. The common idea: check first, drive Black's king to the back rank, and only then improve the queen with the f-pawn supported. 122.Qe6 allowed 122...Qg5+ and the checks began again: +0.17 at depth 24. The halfmove clock already stood at 53 plies; another 47 without a capture or pawn move and Black could claim a draw regardless.
B8. Endgame technique. White to move.

♟️ Position: White Kc3, Qe1; Black Kc5, Rb6 — White to move. FEN:
8/8/1r6/2k5/8/2K5/8/4Q3 w - - 0 1
Is K+Q vs K+R a win here? How long does perfect play take?
Answer
Tablebase: win, distance to zeroing 35 plies, distance to mate 45 plies. Best moves listed: 1.Qf2+, 1.Qe5+, 1.Qg1+, 1.Qe3+. The plan is to drive the defending king to the edge, separate rook from king, and win the rook with a fork (a check that also attacks the rook) — the rook falls well inside the 50-move limit. Section 18.6 shows how often players actually manage it.
B9. Analyze this position. Botvinnik–Minev 1954 after 63.Kg4. Black to move.

♟️ Position: White Kg4, Qf5, g5; Black Ka4, Qh8 — Black to move. FEN:
7q/8/8/5QP1/k5K1/8/8/8 b - - 6 63
Minev played 63...Qh1. Without a tablebase, explain what is wrong with putting the queen on h1, and name a square from which the queen keeps more checking lines.
Answer
On h1 the queen sits close to White's king, where a single interposition or king step ends the checks, and it gives up the long back-rank and diagonal checks from h8. After 64.Qf4+ Ka5 65.Qe5+ White's queen took the long diagonal and the king and pawn advanced. The tablebase calls 63...Qh1 a loss (White mates in 77 plies with best play); only three of Black's 24 legal moves draw — 63...Qd8, 63...Ka3 and 63...Kb3; Stockfish 19 prefers 63...Ka3 (+0.21 at depth 24, against +4.17 after 63...Qh1). Both keep the defence's checking distance — the queen far away on the back rank, the king off the lines where a cross-check could arise.
B10. Build the plan. Praggnanandhaa–Vachier-Lagrave 2026 after 53...Qf1. White to move.

♟️ Position: White Kh2, Qd8, f2, a3, g3, h3; Black Kg7, Qf1, g5, a6, h6 — White to move. FEN:
3Q4/6k1/p6p/6p1/8/P5PP/5P1K/5q2 w - - 1 54
White is a pawn up. Describe a three-stage plan, and say what Black's drawing plan is.
Answer
White: (1) secure the king against checks (it is on h2 behind the g- and h-pawns); (2) create a passed f-pawn with the kingside majority, three pawns against two — in the game this happened with h4 and later f4–f5–f6; (3) escort the f-pawn with the queen while keeping the king near shelter, and look for the moment when Black's checks run out. Stockfish 19 gave +1.04 at depth 24 (54.Qd4+ best). Black: keep the queen active and check whenever White's king leaves its shelter, blockade the passed pawn with the king, and aim for perpetual check or a trade into a drawn pawn race — exactly what happened after 129.Qxb4+.
Part C — Data & Code ⭐⭐–⭐⭐⭐
C1. Engine analysis (⭐⭐). Extend code/01_queen_vs_pawn.py to the e-, f-, g- and h-pawns (Black's king beside the pawn on its second rank, White's queen on a square that does not give check, White to move). Print the number of winning king squares for each file. Expected output: one line per file, "N of M White-king squares win". Check: by mirror symmetry the f-pawn should reproduce the c-pawn's pattern and the h-pawn the a-pawn's, if you mirror the queen's square too.
C2. Database research (⭐⭐). From project/outpost/data/endgame_conversion.csv, build the band profile of the queen + minor family a pawn up in OTB classical play (win % and n per band). Does it fall at 2400+ like the pure queen ending? Expected shape: a 6-row table (bands) with n, win %, draw %, interval. Hint: the heat map in 18.1 shows the values; reproduce them from the CSV.
C3. Database research (⭐⭐⭐). Run outpost.endgame_stats.perpetual_check over the Lichess drawn games whose final position has both queens and is a book endgame (use lichess_moves, and weight by sample_weight). Compare the perpetual-check share with the OTB figure in 18.4. Expected output: n, weighted share, Wilson interval on the unweighted n.
C4. Database research (⭐⭐⭐). Using code/qp_vs_q_cases.csv (written by 03_queen_endings_practice.py), split the Q+P vs Q positions by the pawn's file (centre / bishop / knight / rook pawn) and compare the share that are theoretical wins. Is the file effect for Q+P vs Q similar to the Q vs pawn rule of 18.2? Expected shape: 4 rows × (n, % tablebase wins, % won in practice).
C5. Engine analysis (⭐⭐⭐). Take the Praggnanandhaa–Vachier-Lagrave game (broadcast game id 178069) and evaluate the positions after plies 204–212 at depths 12, 16, 20, 24 and 28. Plot evaluation against depth for each position. Expected: evaluations that change by more than a pawn between depths 16 and 24 in some positions. Explain why queen endings are depth-sensitive.
C6. Code (⭐⭐⭐). Write ever_family(sans, family) in your own copy of endgame_stats.py: does a game pass through a stable position of the given family at any point after the endgame starts? Use it to count how many OTB classical games ever reach a pure queen ending (not only start in one). Expected: a share a good deal larger than the 1.9% of games that start in one.
Part D — Judgment & Transfer ⭐⭐⭐
D1. You are a pawn up with queens and rooks on at move 40, FIDE 1800 OTB classical. Your opponent offers a rook trade that leaves a pure queen ending a pawn up. Using the chapter's numbers, argue for and against accepting.
Answer
Against: in our OTB classical games the pure queen ending a pawn up was won 53.4% at 1800–1999 (n = 247), the single-rook ending 62.9% (n = 426); across all bands 54.6% vs 60.6%. Trading into a queen ending hands the defender the perpetual-check resource. For: if your extra pawn is a far-advanced passed pawn and your king has a shelter, the general rate understates your chances; and a queen trade later may give a pawn ending (the first pawn ending reached a pawn up was won 71.9% OTB, all speeds, n = 8,895; see 18.5). The decision rests on the specific pawn and king, but the default is to keep the rooks and trade the queens.
D2. A 1200-rated Lichess blitz player and a 2400 FIDE player both reach a level queen ending. What should each expect, and what should each be careful of?
Answer
The Lichess blitz player should expect a decisive result most of the time: with level pawns the queen ending was drawn 20.2% in Lichess blitz (all bands), and a careless king walk is usually punished by checks, forks or a mate. Priority: king safety on every move. The 2400 OTB player should expect a draw: at 2400+ the level-pawn queen ending was drawn 71.4% (n = 140). Priority: precision, patience and the 50-move clock.
D3. Stockfish shows +2.59 at depth 24 in a queen ending, but only +1.96 at depth 20 and the evaluation in the game kept swinging. How much would you trust the number when choosing a move, and how would you check it?
Answer
Trust the direction (White is better) more than the size. Queen endings have long forcing sequences of checks that sit at the edge of the search horizon, so the number can move by a pawn between depths. Check it by (a) running two or three deeper depths, (b) looking at MultiPV to see whether several moves keep the advantage (in the Praggnanandhaa position, three checks kept +1.68 to +2.07 at depth 24), and (c) when the position simplifies to seven pieces or fewer, asking the tablebase.
D4. The conversion table says a queen ending a pawn up is won 37.0% at 2400+. A student concludes "queen endings are 'basically drawn' for strong players, so don't bother learning them". What is wrong with that conclusion?
Answer
Two things. First, 37.0% wins plus 58.7% draws means the pawn-up side still scores 66.3% — a big edge, worth playing for. Second, the low conversion is because the defenders know the technique (checking distance, shelter, cross-checks); a player who does not know it will lose positions that strong players hold. Technique is what produces the number.
Part M — Mixed / Interleaved ⭐⭐–⭐⭐⭐
M1. (Chapter 15 + this chapter.) In Muzychuk–Divya, Black ended the game with 83...Qf5+, forcing a queen trade into a pawn ending (Case Study 1). Using the key-square ideas of Chapter 15, explain why Black was happy to trade, then confirm with the tablebase verdict printed by 05_annotated_games.py.
Answer
After the trade Black has king and two pawns (d6, e7) against king and one pawn (d5), with Black's king already active on f5/g4 and White's king on f1/e2 far from the e-pawn's path. Black's king can reach the key squares in front of the e-pawn while White's king must also watch d6–d5. The tablebase confirms the position before 83...Qf5+ is a win for Black (Black to move: win, DTZ 3), and Stockfish 19 gives −6.33 at depth 24.
M2. (Chapter 6 + this chapter.) Chapter 6 studied queen versus two rooks in the middlegame. Using the imbalance rows of 02_output.txt, find how the endgame-start version (RRm-Qm: two rooks + minor vs queen + minor) scored for the side with the two rooks in OTB classical games. Is it consistent with Chapter 6's finding?
Answer
RRm-Qm (the side with two rooks and a minor is "ahead" by one point on the 1/3/3/5/9 scale): OTB classical n = 1,439, win 32.3%, draw 18.1%, score 41.4%. So the side with the two rooks scored below 50% at the endgame start, despite the extra point. Chapter 6 found no measurable edge either way for Q vs R+R with level pawns in OTB data. The two are not directly comparable (Chapter 6's sample is stable middlegame imbalances; here pawns are not held level and a minor piece is present on each side), but neither supports the folk claim that the rooks are better.
M3. (Chapter 13 + this chapter.) Chapter 13 defined critical moments as large win-% swings. In the Praggnanandhaa–Vachier-Lagrave queen ending, depth-16 analysis labels 13 moves as "blunders". Explain why that count overstates the real number of critical moments, and how you would correct it.
Answer
At depth 16 the engine's evaluation in a queen ending oscillates as the horizon moves through long check sequences: a position can read +2.7 one ply and +0.2 the next without anyone having made a real mistake. Several flagged moves were the same missed idea repeated, and some swings reverse at depth 24. Correct it by re-evaluating each flagged position at depth 24 (or deeper), counting a critical moment only if the deeper swing survives, and by asking the tablebase once seven pieces or fewer remain.
M4. (Chapter 14 + this chapter.) Chapter 14 built outpost.tablebase and a library of essential positions. Add the four queen-vs-pawn base positions (a-, b-, c-, d-pawn) from 18.2 to such a library, with their tablebase categories. Which two belong under "theoretical draws"?
Answer
The a-pawn (7K/8/8/8/8/8/pk6/6Q1 w - - 0 1) and the c-pawn (7K/8/8/8/8/8/1kp5/6Q1 w - - 0 1) are draws with White to move; the b-pawn (DTM 43) and d-pawn (DTM 49) are wins.
M5. (Chapter 4 + this chapter.) Chapter 4 measured king safety through pawn shelter and attackers. Which of its ideas transfers to queen endings, and which does not?
Answer
Transfers: a king with open lines towards it is in danger; shelter squares behind pawns matter. Does not transfer directly: in queen endings there are few attackers to count — one queen is enough to check — and the most useful shelter is often next to the enemy queen or king (cross-check and interposition squares), not behind a castled pawn chain. King safety becomes a question of checking lines, not attacker counts.
Part E — Research & Extension ⭐⭐⭐⭐
E1. Queen-ending conversion by passed pawn. Re-run the conversion table for queen endings, splitting "one pawn up" into "the extra pawn is passed" vs "no passed pawn" (use structures.pawn_features at the endgame start). Does the passed pawn explain most of the gap between queen and rook endings? Report n, intervals and the balanced-games version.
E2. Longest practical endings. Find the 20 OTB games in the broadcast data with the longest stretch of plies without a capture or pawn move. Classify their material, probe each final position with a fresh count, and write up how many were theoretical wins that ended drawn. Discuss whether the 50-move rule mattered in each.
E3. A defensive-technique study. For the Q+P vs Q positions in code/qp_vs_q_cases.csv that were theoretical draws but were lost, replay the games and find the move where the tablebase verdict changed. Classify the defender's error: king walked into a cross-check, queen trade allowed, stopped checking, or time trouble (use the clock data where available).