def get_the_child_processes(process_cursor, pid):
    """Return children of the process."""
    process_id_query = """
            SELECT id
            FROM processes
            WHERE parent = %s
            """
    process_cursor.execute(process_id_query % pid)
    return process_cursor.fetchall()
