equals 0 if

1 triples
GPTKB property

Random triples
Subject Object
gptkb:Legendre_symbol a ≡ 0 mod p