3. Problem: Querying
Spreadsheets3
Spreadsheets are generally used to store
information
Much like database systems
Have no way to query what data they contain
Attempts have been made to replicate traditional
querying systems for spreadsheets
MS-Query
Google QUERY Function
4. Problem: Querying
Spreadsheets4
Highly restrict user’s spreadsheet data
Requires data to be in a tabular format
Requires header to be present (in first row)
Column letters ≠ Column labels
Counter intuitive queries
Data evolution not supported
20. QuerySheet: Architecture
20
SELECT Pilots.*, Sum(Hours)
WHERE Destination = ‘LIS’
GROUP BY Pilots.*
LABEL Sum(Hours) ‘Total Hours’
=query(A1:F53;
“SELECT B, SUM(F)
WHERE D = ‘LIS’
GROUP BY B
LABEL SUM(F) ‘Total Hours’”
conforms to
conforms to
denormalization
model inference
execution
translation
23. Preliminary Study
23
After each question, students were asked to
choose which system they preferred in regards to
being:
Intuitive
Faster to write
Easier to write
Understandable
Almost all prefered QuerySheet on every aspect
25. Contributions
25
Querying Model-Driven Spreadsheets, Jácome Cunha, João Fernandes, Jorge Mendes,
Rui Pereira, and João Saraiva. In proceedings of the IEEE Sym po sium o n Visua l
Lang uag e s and Hum an-Ce ntric Co m puting (VL/HCC 20 1 3), San Jose, CA, USA. IEEE
Computer Society, September 2013.
QuerySheet: A Bidirectional Query Environment forModel-Driven Spreadsheets, Orlando
Belo, Jácome Cunha, João Fernandes, Jorge Mendes, Rui Pereira, and João Saraiva. In
proceedings of the IEEE Sym po sium o n Visua lLang uag e s and Hum an-Ce ntric
Co m puting (VL/HCC 20 1 3), San Jose, CA, USA. IEEE Computer Society, September
2013.
Spreadsheet Querying, Rui Pereira. In proceedings of the 5th
International School on
Domain Specific Languages (DSL’2013), Cluj-Napoca, Romania, 2013. (to appear)
Graphical Querying of Model-Driven Spreadsheet, Jácome Cunha, João Paulo
Fernandes, Rui Pereira, and João Saraiva. In proceedings of the 16th
International
Conference on Human-Computer Interaction (HCI2014), Heraklion, Crete, Greece, June
2014. (submitted extended abstract)
QuerySheet Software Prototype. (Available at ssaapp.di.uminho.pt)
27. Conclusion
27
Spreadsheet querying is more:
Humanized
Understandable
Robust
Productive
More functionality
Automatically deal with pro ble m s caused by
querying denormalized data