In your Select Dynamic field definition set your Query to Free, and input your SQL query
Naturally, you would use some condition in where or lose the where part all together.
This is valid if you have defined your
city field in #_content table, otherwise substitute with table name #__cck_store_item_content or which ever table is your city field stored in.