Ver originalselect count(*),* from tabla where hora<10:30:00 and hora>10:30:00 unionselect count(*),* from tabla where hora<11:30:00 and hora>11:30:00