You can either select the columns and filter criteria in the query (via the setQuery
method), or you can specify a sheet range in the range
parameter of the URL.
// use setQuery
var query = new google.visualization.Query('http://spreadsheets.google.com/tq?key=0AnD0SFr9ooPgdG83Wm&transpose=0&headers=1&merge=COLS&gid=0&pub=1', opts);
query.setQuery('select a, b, c where d < 7');
or
// set range to A1:C10
var query = new google.visualization.Query('http://spreadsheets.google.com/tq?key=0AnD0SFr9ooPgdG83Wm&transpose=0&headers=1&merge=COLS&gid=0&pub=1&range=A1:C10', opts);