title: Cohort query with Elasticsearch
body: <p>I'm trying to analyze a cohort using event data in Elasticsearch and have difficulties finding an efficient query to extract that data.</p>
  <p><a href="https://i.stack.imgur.com/ykHZC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ykHZC.png" alt="enter image description here" /></a></p>
  <p>Can anyone provide me some sample elasticsearch query or give me some idea how I can achieve this result with elasticsearch?</p>