Getting "data outside time range"

We are working with PostgreSQL and grafana integration , connection and other thing are working fine.

  1. When we remove the where clause from the query we are getting “Data outside time range”,
    please refer the below snip.

  1. Also we are not getting graphs sometime though we are getting values for min and max.

  1. Also one more query if we add multiple Query like A and B so which query grafana gives the priority.

  2. Please share some docs , steps to fix the x and y axis as per our our column in DB.

Please find the below query