I have two line layers in a gas distribution gdb and I want to select all of the class 6 lines that are connected to a class 5 main line, class 2 lines are connected to a main line that is NOT class 2, etc. Specifically, it is the 'connected to' aspect of this that I cannot figure out.