join order optimization: introducing join tree based on static analysis