This should generate your second query:

q = s.query(Foo)\
    .join(
        Boo,
        Foo.id == Boo.id
    )\
    .join(
        Bar,
        Boo.id == Bar.id
    )\
    .first()


-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to