title: How do I search (SELECT and WHERE) in firebase database?
body: <p>I have a database like the following:</p>
  
  <pre><code>{
      "message" : "Hello, World!",
      "reserva" : [ null, {
          "codreserva" : 123,
          "email" : "teste@teste.com",
          "status" : "check in"
      }, {
          "codreserva" : 124,
          "email" : "fabio@ciaf.com.br",
          "status" : "check out"
      } ]
  }
  </code></pre>
  
  <p>And I have code to search for the status of <code>reserva</code>:</p>
  
  <pre><code>public void ProcuraReserva(String codigodareserva){
      // Read from the database
      myRef = database.getReference("reserva/"+codigodareserva+"/status");
      myRef.addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              String value = dataSnapshot.getValue(String.class);
              textview1.setText("Status da reserva "+ value);
          }
  
          @Override
          public void onCancelled(DatabaseError error) {
          textview1.setText("Status com falha");
          }
      });
  }
  </code></pre>
  
  <p>Assuming <code>codigodareserva == 124</code> I want this function to print <code>check out</code>.</p>