support visibility in query

support visibility in query