alter query to do a big joint. - for testing