Handle SELECTs with system variable fetch