select query + clang fix