Hi Logan,
If you mean SQL queries, please pay attention to the following facts:
1. Working with databases is a complex task which can be implemented only in the script. So, I recommend that you create a corresponding script function via the TestComplete script editor and call the function from your test (you can use the Run Script Routine operation to call the function from a keyword-driven test). You might consider constructing the query dynamically via the concatenation of string variables. BTW, I recommend that you see the "Working With Databases" help topic for information on working with databases from TestComplete.
2. You can use SQL Designer to construct SQL queries from TestComplete. Please see the "SQL Designer" help topic for more information.