Fixed a bug in Query
Added a tutorial