Make yourself familiar with SQL...
See this tutorial
And the query language documentation Query Language Reference (Version 0.7) | Charts | Google for Developers
Try this query (assiming there are only 2 columns A and B, for more columns add more OR statements):
SELECT * WHERE A CONTAINS '"UNIQUE ID OF JACK" OR B CONTAINS "UNIQUE ID OF JACK"
Taifun