def METHOD_NAME(self):
    """
    Test cluster SQL statement
    """
    query = urllib.parse.quote("select count(*), min(indexid), max(indexid), avg(indexid) from txtai where text='This is a test'")
    self.assertEqual(
        self.client.get(f"search?query={query}").json(), [{"count(*)": 28, "min(indexid)": 0, "max(indexid)": 14, "avg(indexid)": 6.5}]
    )
    query = urllib.parse.quote("select count(*), text txt from txtai group by txt order by count(*) desc")
    self.assertEqual(
        self.client.get(f"search?query={query}").json(),
        [{"count(*)": 28, "txt": "And another test"}, {"count(*)": 24, "txt": "This is a test"}],
    )
    query = urllib.parse.quote("select count(*), text from txtai group by text order by count(*) asc")
    self.assertEqual(
        self.client.get(f"search?query={query}").json(),
        [{"count(*)": 24, "text": "This is a test"}, {"count(*)": 28, "text": "And another test"}],
    )
    query = urllib.parse.quote("select count(*) from txtai group by id order by count(*)")
    self.assertEqual(self.client.get(f"search?query={query}").json(), [{"count(*)": 52}])