Create a query for user

Create a query to retrieve basic info about the user