Table:
0
A
B
C
D
1
attribute id
attribute name
attribute data type
attribute definitions
2
1
Green
Bool
3
2
Black
Bool
4
3
Yellow
Bool
5
4
Sweet
Bool

Questions and formulas:
Question: Type and id for the green attribute.
Formula: LET(query1,FILTER(A1:D1,B1="green"),UNIQUE(CHOOSECOLS(query1,3,1)))
Formula2: LET(query1,FILTER(A2:D5,B2:B5="green"),UNIQUE(CHOOSECOLS(query1,3,1)))
Level: hard
Question: What is green's attribute data type?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:D1,B1="green"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:D5,B2:B5="green"),3))
Level: medium
Question: What is the attribute data type with the name of green?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:D1,B1="green"),3))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:D5,B2:B5="green"),3))
Level: medium