Keen query support

Added query support as per stubbed example file.