I would like to generalise What are examples of grandmaster games where both Black and White castle opposite sides and the queenside players loses?
Question: Is there a way I can search this up myself?
Like perhaps in the chessgames, chesstempo, lichess or chessdotcom database or perhaps youtube via chessvision (You can select the theme 'opposite site castling'), I plug in parameters like
Title/rating parameter: both (or at least 1 of the) players, say, Alice and Bob, obtained the title of GM or have a certain rating (either at the time of the game or later on in life)
Some middlegame parameter: Alice castled queenside while Bob castled kingside
Winning parameter: Alice lost.
Date parameter: games from date t to date t+X
Perhaps also some endgame parameter: Like they reached a rook endgame or a bishop vs knight endgame.
Ideal answer: I'm asking if there's a readily available way to do this. Like someone's already made this kind of thing where we can plug in these themes/parameters.
Next best thing/s: Well I suppose there's manually downloading perhaps some grandmaster database and then we write script in python or something that searches O-O vs O-O-O and then use the same way lichess or chessvision identifies 'rook endgame' or 'bishop vs knight endgame'. In this case, please give whatever suggestions you can.