SELECT *
FROM tba AS a
JOIN tbb AS b ON a.id = b.id
JOIN tbc AS c ON b.id2 = c.id2
JOIN tbd AS d ON a.id = d.id AND c.id3 = d.id3 AND b.id4 = d.id4
WHERE
a.foo = 'Foo'
Though I'm having a hard time imagining any need for that. Bare to give an example, or eh more descriptive table names?