added required support for queries

Opened PR for feedback
Use 2 spaces for indentation in a hash, relative to the start of the line where the left curly brace is.