Given an object and a part, decide whether the object has that part. For example if you are asked 'gun has barrel?', you need to decide if a gun has a barrel as one of its components or parts, indicating 1 or 0 as your answer respectively. All sentences strictly follow the template 'object has part?.'

[EX Q]: library has barrel?
[EX A]: 0

[EX Q]: sword has handle?
[EX A]: 1

[EX Q]: hat has ear?
[EX A]:
0