My table looks like this:
SampleID AttributeID Value
163 black
263 black
265 west
365 east
463 white
465 west
563 black
565 west
I want to get the sampleID's whose attributes are 65 and value = 'west', who also have an attribute of 63 with a value of 'black'. So the result should be SampleID's 2 and 5 only.