def read_cols_query(col_names, table_name, schema_name):
    """
    Obtain the query to read the columns from a table

    :param col_names: (list of strs) list of cols names to read
    :param table_name: (str) table name to read from
    :param schema_name: (str) schema name of the table

    :return:
        A string having the pSQL query for the task
    """
    cols = ", ".join(col_names)
    query = f"SELECT {cols} FROM {schema_name}.{table_name}"
    return query