first cut at multiway join