How to query submission data from a spreadsheet