I'm trying to imitate such query in sqlalchemy: SELECT col1, COUNT(col1) FROM "table"
(simplified case)
According to this answer, I found how to count a single column, but not a column - COUNT(column) pair.
The answer from a link: session.query(MyTable.col1).count()
My current case: db.query(models.User.places).filter(models.User.id == 10).all()
(Also want to get a count of places)