Selecting "name" value from firebase table

Hello everyone! I’m creating an simple app that simulates a registration with firebase database.

The problem is: I want to search for every user that has the same name in the database. But i’ve got no idea of how i should do it.

For those who knows a bit of SQL, it would look like this:

SELECT * FROM table WHERE name = “John”

If you have show us your firebase structure, then we could let you know

It is pretty simple:

firebase_1

The first field is the name, the second an identifier called “cpf”