One thing I didn't get about SQL API for BDB, how does something like
select * from users where name!='tom'