refactoring
generating all query options for eval