title: unexpected loop cycles with jq
body: <p>I'm trying to print a table in bash to stdout from json with <code>jq</code>:</p>
  
  <pre><code>[
      {
        "key": "name",
        "doc_count": 1000,
        "values_over_time": {
          "buckets": [
            {
              "key_as_string": "2019-05-01 11:00:00.000",
              "key": 1556708400000,
              "doc_count": 50
            },
            {
              "key_as_string": "2019-05-02 12:00:00.000",
              "key": 1556798400000,
              "doc_count": 40
            },
            {
              "key_as_string": "2019-05-02 13:00:00.000",
              "key": 1556802000000,
              "doc_count": 30
            }
          ]
        }
      }
  ]
  </code></pre>
  
  <p>With <code>jq -r '(.[].key + " " + .[].values_over_time[][].key_as_string) + " " + (.[].values_over_time[][].doc_count|tostring)'</code> I get these results:</p>
  
  <pre><code>"name 2019-05-01 11:00:00.000 50"
  "name 2019-05-02 12:00:00.000 50"
  "name 2019-05-02 13:00:00.000 50"
  "name 2019-05-01 11:00:00.000 40"
  "name 2019-05-02 12:00:00.000 40"
  "name 2019-05-02 13:00:00.000 40"
  "name 2019-05-01 11:00:00.000 30"
  "name 2019-05-02 12:00:00.000 30"
  "name 2019-05-02 13:00:00.000 30"
  </code></pre>
  
  <p>There is something strange with additional loop level as I expect to see only 3 lines:</p>
  
  <pre><code>"name 2019-05-01 11:00:00.000 50"
  "name 2019-05-02 12:00:00.000 40"
  "name 2019-05-02 13:00:00.000 30"
  </code></pre>
  
  <p>Read <code>jq</code> docs but wasn't able to understand the right way to iterate in a proper in a neat way. Do you have any clues? </p>
  
  <p><a href="https://jqplay.org/s/d9Lo9Wu--y" rel="nofollow noreferrer">JQplay code sample</a></p>