Add selection group parsing.
Add selection group codegen.