In textbooks you find diagrams about key squares and similar concepts. For example, white can promote a pawn if white's king can control three particular squares infront of the pawn. I would like to analyze tablebase evaluations of multiple positions to arrive at similar but more complicated conclusions, for example going through all possible positions of King and Queen vs King and Rooks pawn on the seventh rank and show all positions of the white king that win (this is also known already, but you get the idea).
Which software could be used to query a tablebase in such a way? I would be very glad for any suggestions, thanks a lot!