How to query in Discover's ES|QL mode

In ES|QL mode, you write a query in ES|QL, the Elasticsearch query language, and Discover shows the results. The query says which data to read and can also filter, calculate, and summarize it. For example, FROM kibana_sample_data_logs | WHERE bytes > 5000 returns the sample web log entries that transferred more than 5,000 bytes.