title: Sqlalchemy query: select using list of tuples
body: <p>So I have a list of tuples like <code>[('Alex', 20), ('Steve', 50)]</code></p>
  
  <p>Now I need to fire a select query on Users table to get matching records.</p>
  
  <p>I tried it like:-</p>
  
  <pre><code>users = [('Alex', 20), ('Steve', 50)]
  names = [r[0] for r in users]
  ages = [r[1] for r in users]
  
  query = self.session.query(Users).filter(
                        and_(Users.name.in_(names),
                        Users.age.in_(ages)))
  </code></pre>
  
  <p>I want the records with <code>Alex</code> user of age <code>20</code> and <code>Steve</code> user of age <code>50</code>, but this query would also give me <code>Alex</code> user of age <code>50</code>.</p>
  
  <p>So this query doesn't really work out. Need some help figuring out this query.</p>