My tables are:
Customers:
Phone | City
-------------------
1234 | Chicago
2345 | New York
1234 | Toronto
City:
City | Country
--------------------
Chicago | USA
New York | USA
Las Vegas | USA
Toronto | Canada
Montreal | Canada
User query: Phone = 1234, City = New York
If a phone number (1234) is searched in a city (New York). Even though there is no phone number (1234) that exists in the searched city (New York), But if that phone number (1234) exists in any city (Chicago) of the same country (USA) as of the searched city (New York), I want to fetch the details from Customers table because that phone number (1234) exists in any other city (Chicago) of the country (USA) which is the same country of the searched city (New York).
So, if user searches for phone = 1234, city = New York:
Result: Phone = 1234, city = Chicago
Unfortunately, user can not enter country name. He can only input phone and city
Update: Sorry, I forgot to mention that city name is primary key in City table. I purposely did it for the sake of simplicity. If there are 2 cities in 2 countries with same name, I only added the bigger one and did not add smaller one.