title: Firebase nested query on timestamp range
body: <p>I am having issues with nested queries:</p>
  
  <pre><code>firebase.database().ref().child('panels').child('qa')
        .orderByChild('completed')
        .startAt(firstDay.getTime()) // January 1st, 2016
        .endAt(lastDay.getTime()) // current date (aug, 25th 2016)
        .once('value', function(snapshot) {
          $log.log(snapshot.numChildren());
        });
  </code></pre>
  
  <p>returns 0</p>
  
  <p>If I place completed in first level of node it works:</p>
  
  <pre><code>firebase.database().ref().child('panels')
        .orderByChild('completed')
        .startAt(firstDay.getTime()) // January 1st, 2016
        .endAt(lastDay.getTime()) // current date (aug, 25th 2016)
        .once('value', function(snapshot) {
          $log.log(snapshot.numChildren());
        });
  </code></pre>
  
  <p>returns 10;</p>
  
  <p>Any ideas why the nested solution does not work?</p>