# How to write this as a ES query for the below example

**URL:** <https://discuss.elastic.co/t/how-to-write-this-as-a-es-query-for-the-below-example/186855>\
**Category:** Elasticsearch\
**Created:** [June 21, 2019, 9:47am UTC](https://discuss.elastic.co/t/how-to-write-this-as-a-es-query-for-the-below-example/186855 "2019-06-21T09:47:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ek9boy](https://avatars.discourse-cdn.com/v4/letter/e/50afbb/32.png) [@ek9boy](https://discuss.elastic.co/u/ek9boy)\
**Post date:** [June 21, 2019, 9:47am UTC](https://discuss.elastic.co/t/how-to-write-this-as-a-es-query-for-the-below-example/186855/1 "2019-06-21T09:47:44Z")

</div>

Hi, I have the below query:

I wanted to know how i could write this in ES?

`(COUNT_of_People >= High_Threshold AND COUNT_of_People != 0), 8`

Please if you could help.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 19, 2019, 9:47am UTC](https://discuss.elastic.co/t/how-to-write-this-as-a-es-query-for-the-below-example/186855/2 "2019-07-19T09:47:46Z")

</div>

Closed on July 19, 2019, 9:47am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
