Add select version to query