min version of query