Put visibility and wildcard in query language