First of all, there is not a single WHOIS database but rather many different WHOIS servers. Each WHOIS server usually provides data for one or more specific TLDs. Here's a rather comprehensive list of TLDs and the WHOIS server that handles each.
I'm not aware of a tool that can perform a WHOIS lookup and specify the Registrar as a criterion. You will likely need to create your own script to do that. This answer on StackOverflow may help you with that.
Be mindful that WHOIS servers use rate-limiting so you'll only be able to perform a relatively small number of lookups before you're throttled or blocked altogether.