select * from fileList where type = 'File' and extenstion not in (#PreserveSingleQuotes(arguments.extenstions_excluded)#) and extenstion in (#PreserveSingleQuotes(arguments.extenstions_included)#) and directory not in (#PreserveSingleQuotes(arguments.directories_excluded)#) and directory in (#PreserveSingleQuotes(arguments.directories_included)#) and name not in (#PreserveSingleQuotes(arguments.files_excluded)#) and name in (#PreserveSingleQuotes(arguments.files_included)#)