select tabA.aa,tabA.bb from tabA,tabB,tabC where tabA.aa=tabB.aa and tabA.bb=tabc.bb and tabB.x=1 and tabC.y=1