Dmitry Timoshkov : sc: Add support for the 'query' command.