A description of the problem can be found on Hackerrank.
Select all rows and filter by value if
ID column equals to
I created solution in:
All solutions are also available on my GitHub.
select * from City where ID = 1661;