Use sqlalchemy from gh
Reverse, use subquery.