Where [CastleType] is set as data type \"text\" in SQL Server and the query is:
SELECT * FROM [Village] WHERE [CastleType] = \'foo\'
I
Another option would be:
SELECT * FROM [Village] WHERE PATINDEX('foo', [CastleType]) <> 0