I have the Mega Database 2020 from ChessBase and ChessBase 15. I am using ChessBase 15 to search the Mega Database 2020, my search criterion being all games ended through a KPvK (king and pawn vs. king) up to white/black symmetry.
For this I open the Mega Database in ChessBase 15 and I do "Filter List --> Material". The best I can achieve so far is :
(If I click on "No pieces" as I should, it resets the "Total" four cases, and I don't understand why, so that I am not sure that my filter does exactly want I and gives me all games I really want. I checked on https://en.chessbase.com/support-kb/content/details/1053/Material_searches_with_ChessBase but it did not help very much, but that is another question ...)
This gives a list of games, and if I click on the line corresponding to a game, the position appears for instance as follows :
We see that the board is automatically set up to the position of game defined by the ply where the KPvK (up to colour symmetry) begins.
Is it possible to export all of these positions in a database, retaining the ply move plus players, dates and others usual information?
This could allow to create a KPvK training database. Of course, it is somewhat trivial regarding the nature of the ending, but the principle would be useful for other types of endings.