Question: I have a project on `Rails 5.1.4`. As it is said in the title of this question, reloading a page causes it to jump to the top of it. But I want the page to stay in the same position that was before reloading. In my `css` I have these styles:

```
html {
  overflow: hidden;
}

body {
  overflow-x: hidden;
}

```

If I comment them, the behaviour of `turbolinks` is exact as I need. Is there any way to leave these styles and force `turbolinks` after page reload stay in the same position? Thanks ahead.

Answer: 
@Eralper has one way but logically I think this describes what you want better

```
(SELECT COUNT(*) FROM PscData where SETTLEMENT_ID = T.SETTLEMENT_ID AND  (NO_OF_BUFFALO >= 1
            OR NO_OF_COW >= 1
            OR NO_OF_GOAT >= 1
            OR NO_OF_SHEEP >= 1
            ) ) as At_Least_1_Buffalo_Bullock_Cow_Goat_Sheep

```

Note the use of `OR` rather than `AND` for the separate conditions.
I think what you are looking for is below query

```
SELECT COUNT(*) 
FROM PscData 
where 
SETTLEMENT_ID = T.SETTLEMENT_ID AND 
( NO_OF_BUFFALO + NO_OF_COW + NO_OF_GOAT + NO_OF_SHEEP) >= 1
--SUM( NO_OF_BUFFALO + NO_OF_COW + NO_OF_GOAT + NO_OF_SHEEP) >= 1

```

Sorry for the typo, we don't need for the SUM() function here, I commented it out.