Take in mind that you can't use "?" anywhere in the SQL statement.
E.g. it does't work to set the field selection list in SELECT.
If you need to extend parameters to table structure, you may use "ETL Metadata Injection" step.
See more at https://wiki.pentaho.com/display/EAI/Table+Input
Luciano