# Query sample table To query a sample table: 1. Navigate to **Data Workbench > Queries**. 2. Select **New Query**. 3. Select **sample_datasets**. 4. Write a query of your choice against the table named "www_access". Here is one example query that counts and sorts HTTP requests by their status codes. ```sql SELECT code AS http_status_code, COUNT(1) AS num_requests FROM www_access GROUP BY code ORDER BY num_requests ``` ![](/assets/image-20190905-231536.746638ef902be3649c2d5f93f05a26508ec656b4fabe30ac7590521f9f9b5154.142841d8.png) 1. Select **Run**. You can monitor the query job status in the Query Result portion of the screen. For example: ![](/assets/image-20190905-231552.5d2ff6160c69bfb797d7af42d8d116f6b9ac0b4ae8b115946730f537c66ff91e.142841d8.png) 1. When the job is done, the status changes from RUNNING to SUCCESS. You can also view the results within the Jobs view. ![](/assets/image-20190905-231613.6d7ecd2f3a839ef9ba444110e7fa8a3aa5f88faec019cef3b4e788542d345124.142841d8.png)