
# 2번 형질 x, 1번 3번 형질 o
select count(*) as count
from ecoli_data
where ((genotype & 1 = True) or (genotype & 4 = True)) and (genotype & 2 = False)
비트연산자는 0,1를 반환하는 것이 아니다.
5 & 4 의 결과는 4임.

and (&) - 두개다 1이면 1
or (|) - 하나라도 1이면 1
xor (^) - 두개다 다르면 1
# 2번 형질 x, 1번 3번 형질 o
select count(*) as count
from ecoli_data
where ((genotype & 1 >= 1 ) or (genotype & 4 >= 4)) and (genotype & 2 != 2)