Coupling Query Languages with Structural Indexes 1