add join query