Okay, so you are thinking about having some kind of web form? Where someone can type in a query and press a submit button (or similar)? For that kind of application, you are going to have to use some amount of scripting, using PHP or another web language.
Setting up the table once (so that there is the static version for your own use) is easy, generating a dynamic table (based on the user input of your visitor) is much harder. I would advise looking for a plugin that provides similar functionality, or else get with the WP Pro mailing list to find someone who can help you with the code.
Alas, I am not a PHP person.... So I would have very little idea on what exactly to do to provide your desired end result.
All the same, I hope you can find a suitable solution.