Edit Based Grading of SQL Queries

被引:4
|
作者
Chandra, Bikash [1 ]
Banerjee, Ananyo [2 ]
Hazra, Udbhas [3 ]
Joseph, Mathew [4 ]
Sudarshan, S. [5 ]
机构
[1] Ecole Polytech Fed Lausanne, Lausanne, Switzerland
[2] Oracle India, Bombay, Maharashtra, India
[3] Apple India, Bangalore, Karnataka, India
[4] Raymour & Flanigan Furnitures, Liverpool, NY USA
[5] Indian Inst Technol, Bombay, Maharashtra, India
关键词
FEEDBACK GENERATION;
D O I
10.1145/3430984.3431012
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Grading student SQL queries manually is a tedious and error-prone process. Earlier work on testing correctness of student SQL queries, such as the XData system, can be used to test the correctness of a student query. However, in case a student query is found to be incorrect there is currently no way to automatically assign partial marks. Partial marking is important so that small errors are penalized less than large errors. Manually awarding partial marks is not scalable for classes with large number of students, especially MOOCs, and is also prone to human errors. In this paper, we discuss techniques to find a minimum cost set of edits to a student query that would make it correct, which can help assign partial marks, and to help students understand exactly where they went wrong. Given the limitations of current formal methods for checking equivalence, our approach is based on finding the nearest query from a set of instructor provided correct queries, that is found to be equivalent based on query canonicalization. We show that exhaustive techniques are expensive, and propose a greedy heuristic approach that works well both in terms of runtime and accuracy on queries in real-world datasets. Our system can also be used in a learning mode where query edits can be suggested as feedback to students to guide them towards a correct query. Our partial marking system has been successfully used in courses at IIT Bombay and IIT Dharwad.
引用
收藏
页码:56 / 64
页数:9
相关论文
共 50 条
  • [1] Automated Grading of SQL Queries
    Chandra, Bikash
    Banerjee, Ananyo
    Hazra, Udbhas
    Joseph, Mathew
    Sudarshan, S.
    [J]. 2019 IEEE 35TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING (ICDE 2019), 2019, : 1630 - 1633
  • [2] Data generation for testing and grading SQL queries
    Bikash Chandra
    Bhupesh Chawda
    Biplab Kar
    K. V. Maheshwara Reddy
    Shetal Shah
    S. Sudarshan
    [J]. The VLDB Journal, 2015, 24 : 731 - 755
  • [3] Data generation for testing and grading SQL queries
    Chandra, Bikash
    Chawda, Bhupesh
    Kar, Biplab
    Reddy, K. V. Maheshwara
    Shah, Shetal
    Sudarshan, S.
    [J]. VLDB JOURNAL, 2015, 24 (06): : 731 - 755
  • [4] Partial Marking for Automated Grading of SQL Queries
    Chandra, Bikash
    Joseph, Mathew
    Radhakrishnan, Bharath
    Acharya, Shreevidhya
    Sudarshan, S.
    [J]. PROCEEDINGS OF THE VLDB ENDOWMENT, 2016, 9 (13): : 1541 - 1544
  • [5] Revamping SQL Queries for Cost Based Optimization
    Myalapalli, Vamsi Krishna
    Chakravarthy, A. S. N.
    [J]. 2016 INTERNATIONAL CONFERENCE ON CIRCUITS, CONTROLS, COMMUNICATIONS AND COMPUTING (I4C), 2016,
  • [6] Auditing SQL queries
    Motwani, Rajeev
    Nabar, Shubha U.
    Thomas, Dilys
    [J]. 2008 IEEE 24TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, VOLS 1-3, 2008, : 287 - +
  • [7] Expressing and optimizing similarity-based queries in SQL
    Gao, L
    Wang, M
    Wang, XS
    Padmanabhan, S
    [J]. CONCEPTUAL MODELING - ER 2004, PROCEEDINGS, 2004, 3288 : 464 - 478
  • [8] Proving the safety of SQL queries
    Brass, S
    Goldberg, C
    [J]. QSIC 2005: FIFTH INTERNATIONAL CONFERENCE ON QUALITY SOFTWARE, PROCEEDINGS, 2005, : 197 - 204
  • [9] VENN DIAGRAMS AND SQL QUERIES
    HALPIN, TA
    [J]. AUSTRALIAN COMPUTER JOURNAL, 1989, 21 (01): : 27 - 32
  • [10] XML queries via SQL
    Chen, CX
    Malhotra, A
    [J]. WEB-AGE INFORMATION MANAGEMENT, PROCEEDINGS, 2000, 1846 : 53 - 60