Elastic has sql extension.
I don't know much about rest query but this is how I will write sql
GET _sql?format=txt
{
"query": """
select uuid from "index-name" where keywords in ('google', 'microsoft','tesla') and
timestamp between 'date1' and 'date2' group by uuid
"""
}