It depends on how dynamic you're trying to be. The columns returned will probably need to always be the same data type, or you'll get unexpected errors. Here's a simple example:
I've got 3 string parameters defined:
1) {?a_Select},
2) {?b_From}, and
3) {?c_Where}
Here is the text of my SQL Command:
[tt]
{?a_Select}
{?b_From}
{?c_Where}
[/tt]
And this is what I enter for each prompt:
1) SELECT CollegeID, Name
2) FROM College
3) WHERE CollegeID > 5
Hope that helps you get started. Stating your intent will assist someone here in helping you more specifically.
-dave