Magento query get records in table

Here is code query get records in table of Magento.
When you need debug or get anything but want not initialize a model and create a module.
Below code is all you need. You can set this code to /index.php or anywhere you want.