Table:
0
A
B
C
D
E
1
Country
Laws against homosexuality
Penalty
Same-sex Unions
Laws against discrimination
2
Afghanistan
Yes
Death
No
No
3
Egypt
No*
Prison
No
No
4
Indonesia
No*
—
—
No
5
Iraq
No*
—
—
No
6
Malaysia
Yes
Fine to 20 years
—
No
7
Nigeria
Yes*
5–14 years / death
—
No
8
Pakistan
Yes*
2 years to life
—
No
9
Turkey
No
—
—
No
10
Uzbekistan
Male only*
Fine* to 3 years*
—
No

Questions and formulas:
Question: What law has a penalty of — in Iraq?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,(C1="—")*(A1="iraq")),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,(C2:C10="—")*(A2:A10="iraq")),2))
Level: medium
Question: What are the laws against homosexuality in Malaysia?
Formula: UNIQUE(CHOOSECOLS(FILTER(A1:E1,A1="malaysia"),2))
Formula2: UNIQUE(CHOOSECOLS(FILTER(A2:E10,A2:A10="malaysia"),2))
Level: medium