How to get nodes that do not belong to a particular user role
Nodes are only associated with author's nids (not user roles)

Thus you should do a query first to get the userids that match your selected user roles.  Then use that array to filter out nodes with authors that belong to those user ids.