title: Select pair that is used for another table
body: <p>I have two tables:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>ID1</th>
  <th>ID2</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>111</td>
  <td>1111</td>
  </tr>
  <tr>
  <td>222</td>
  <td>2222</td>
  </tr>
  </tbody>
  </table>
  </div><div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>ID1</th>
  <th>ID2</th>
  <th>events</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>111</td>
  <td>1111</td>
  <td>aaaa</td>
  </tr>
  <tr>
  <td>222</td>
  <td>2222</td>
  <td>bbbb</td>
  </tr>
  <tr>
  <td>333</td>
  <td>3333</td>
  <td>cccc</td>
  </tr>
  <tr>
  <td>444</td>
  <td>4444</td>
  <td>dddd</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>How to get all rows from second table where the ID pair is from first table.
  The result should return</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>ID1</th>
  <th>ID2</th>
  <th>events</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>111</td>
  <td>1111</td>
  <td>aaaa</td>
  </tr>
  <tr>
  <td>222</td>
  <td>2222</td>
  <td>bbbb</td>
  </tr>
  </tbody>
  </table>
  </div>