KDB is an absolute nightmare, a barbaric piece of tech that should have never existed.
Here is a link on how you do queries: https://code.kx.com/q/basics/funsql/
TL;DR;
This is a select:
q)t:([] c1:`a`b`a`c`a`b`c; c2:101+til 7; c3:1.11+til 7)
And this is another select:
q)?[t; ((>;`c2;35);(in;`c1;enlist[`b`c])); 0b; ()]
Mind that these are the basic queries :)))))
The future of kdb+ is in the toilet.