Query Where Relationship Does Not Exist

Got the same error. Do you got answer?