Clementine Audio Player is able to do such a thing. It has got a smart playlist feature ("Create smart playlists and dynamic playlists", as they say on their website). For this, click on the Library button in the left tool bar. At the top of the library panel, you have got a "smart playlists" section. Right-click on it, then click on "new smart playlist" to create the playlist of your dreams. It opens a creation window where you can set all the required conditions for your songs to be in that playlist. There is also a preview of your playlist at the bottom of the window. Follow the instructions and enjoy the songs you want to enjoy listening to your smart playlists.
Clementine is available for Windows, macOS and Linux. It is free, both as in "free beer" (gratis) and as in "free software" (under GPL v3.0 license). The latest update looks old (3 years ago) but the project is still active. You can still build Clementine from source (available on GitHub) if you want a more recent version.