One instance of where Sequel manifests this knowledge is when it come time to invert existing conditions.
Other database libraries that only understand SQL on a string level would probably just stick a NOT in front of the conditions.