Ok there are clearly some bugs.
You cant send the SQL type query through a key string I dont think. It was not designed or formatted for it.
https://firebase.google.com/docs/reference/rest/database/
You can use Firebase REST API found
You can use these blocks here