Number all wildcards (=> preparation for nested selects)