def validModuleStmt(stmt):
    return type(stmt) in [AndSearchStmt, OrSearchStmt, NotSearchStmt,
                          ModuleSearchStmt, TrueSearch]
Modules are only queried by name, and shown by default if
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/query/version.py/validModuleStmt