title: Do these SQL queries make sense for the given tables?
body: <p><a href="https://i.stack.imgur.com/1XYOz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1XYOz.png" alt="enter image description here"></a></p>
  
  <p>Give the following two SQL tables I want to run two queries (venue_id is a foreign key with id from the venues table):</p>
  
  <p><code>SELECT venues.name FROM venues INNER JOIN users ON venues.venue_id = users.venue_id WHERE users.id = {param}</code></p>
  
  <p>To return the venue name associated with the user_id that was passed in</p>
  
  <p><code>SELECT users.name FROM users WHERE users.venue_id = {param] AND users.expiration_time &gt; CURRENT_TIMESTAMP</code></p>
  
  <p>To return all the current users with a given venue_id where the expiration_time is after the current time.</p>
  
  <p>Do both these queries do what I expect them to do?</p>
  
  <p>Thanks!</p>