Added query snippets