def build_select(table, to_select, where):
    """
    Build an select request.

    Parameters
    ----------
    table : str
        Table where query will be directed.
    to_set: iterable
        The list of columns to select.
    where: iterable
        The list of conditions to constrain the query.

    Returns
    -------
    str
        Built query.

    """
    sql_q = "SELECT "
    sql_q += ', '.join('{0}'.format(w) for w in to_select)
    sql_q += ' FROM \"' + table + '\"'
    if len(where) > 0:
        sql_q += ' WHERE '
        sql_q += ' AND '.join('{0} = :{0}'.format(w) for w in where)

    return sql_q