title: Firebase multiple where clause query in Android
body: <p>Can anyone convert below query to firebase query in Android. I am familiar with firebase but did not know how to use it with multiple where clause</p>
  
  <pre><code>public static ParseQuery&lt;ParseUser&gt; getSearchSurvivorQuery(String keyword) {
      ParseQuery&lt;ParseUser&gt; query1 = ParseUser.getQuery();
      query1.whereContains(DbConstants.NAME, keyword);
      query1.whereNotEqualTo(DbConstants.TYPE,
              Constants.USER_TYPE.SUPPORTER.ordinal());
      query1.whereNotEqualTo(DbConstants.ID, ParseUser.getCurrentUser()
              .getObjectId());
      query1.whereNotEqualTo(DbConstants.VISIBILITY, Constants.PRIVATE);
      query1.whereNotEqualTo(DbConstants.DEACTIVATED, true);
  
      ParseQuery&lt;ParseUser&gt; query2 = ParseUser.getQuery();
      query2.whereContains(DbConstants.NAME_LOWERCASE, keyword.toLowerCase());
      // query2.whereEqualTo(DbConstants.TYPE,
      // Constants.USER_TYPE.SURVIVOR.ordinal());
      query1.whereNotEqualTo(DbConstants.TYPE,
              Constants.USER_TYPE.SUPPORTER.ordinal());
      query2.whereNotEqualTo(DbConstants.ID, ParseUser.getCurrentUser()
              .getObjectId());
      query2.whereNotEqualTo(DbConstants.VISIBILITY, Constants.PRIVATE);
      query2.whereNotEqualTo(DbConstants.DEACTIVATED, true);
  
      List&lt;ParseQuery&lt;ParseUser&gt;&gt; queries = new ArrayList&lt;ParseQuery&lt;ParseUser&gt;&gt;();
      queries.add(query1);
      queries.add(query2);
  
      ParseQuery&lt;ParseUser&gt; mQuery = ParseQuery.or(queries);
  
      return mQuery;
  }
  </code></pre>