title: Can't write SqlAlchemy query with contains operation
body: <p>Let's say that we have a two tables: <strong>Movie</strong> and <strong>Genre</strong>. Genre has an attribute <strong>genres</strong> which is a PostgreSQL ARRAY of genre ids. I have written a query to get all movie ids with genre names.</p>
  <pre><code>session.query(Movie.id, Genre.name).join(Genre, Movie.genres.contains([Genre.id])).all()
  </code></pre>
  <p>But sadly I am getting:</p>
  <pre><code>ProgrammingError: (psycopg2.ProgrammingError) can't adapt type 'InstrumentedAttribute'
  </code></pre>
  <p>So, how can I rewrite my query to get what I want?</p>