SPL to Lucene

Is there a guide or reference in how to convert SPL (Splunk processing language) to Kibana. For example what is the equivalent "stats count by" or "table" command in Kibana (lucene)?

Can you show the actual query you are running?