Core: Added basic SMO Query support