SQL to Elasticsearch query parser