select * from tabela where relacionamentos like '%.10648.%' and data like '%/1871' and (tipo=11 or tipo=1) order by data asc 29216-01/01/1871 7708-01/01/1871 12279-20/02/1871 7537-07/03/1871 7540-12/05/1871 10879-15/05/1871 10957-25/05/1871 18352-29/05/1871 18680-12/06/1871 11337-10/07/1871 11802-28/08/1871 7643-30/08/1871 11860-04/09/1871 11874-06/09/1871 7539-28/09/1871 BANO:6129216517708611227951753751754061108796110957611835261186806111337611180251764361118606111874517539