select query on enter, version