Added universal query function to sandbox