You can build any clause for a RAQL query dynamically using input parameters and the String Builder block, such as this example:
In this example, the Select clause is built dynamically in String Builder using an input parameter and the Path Selector list to pull in and combine dynamic content with the literal text of the clause. This is then assigned to Select in RAQL using the Path Selector.