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 条
  • [41] A Scalable Randomized Algorithm for Triangle Enumeration on Graphs Based on SQL Queries
    Farouzi, Abir
    Bellatreche, Ladjel
    Ordonez, Carlos
    Pandurangan, Gopal
    Malki, Mimoun
    [J]. BIG DATA ANALYTICS AND KNOWLEDGE DISCOVERY (DAWAK 2020), 2020, 12393 : 141 - 156
  • [42] LexEQUAL: Supporting multilexical queries in SQL
    Kumaran, A
    Haritsa, JR
    [J]. 20TH INTERNATIONAL CONFERENCE ON DATA ENGINEERING, PROCEEDINGS, 2004, : 845 - 845
  • [43] Unrolling SQL: 1999 Recursive Queries
    Boniewicz, Aleksandra
    Stencel, Krzystof
    Wisniewski, Piotr
    [J]. COMPUTER APPLICATIONS FOR DATABASE, EDUCATION, AND UBIQUITOUS COMPUTING, 2012, 352 : 345 - 354
  • [44] Observing SQL Queries in their Natural Habitat
    Grust, Torsten
    Rittinger, Jan
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 2013, 38 (01):
  • [45] Optimization of Linear Recursive Queries in SQL
    Ordonez, Carlos
    [J]. IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2010, 22 (02) : 264 - 277
  • [46] Implementation of Projected Clustering based on SQL queries and UDFs in Relational Databases
    Harikumar, Sandhya
    Haripriya, H.
    Kaimal, M. R.
    [J]. 2013 IEEE RECENT ADVANCES IN INTELLIGENT COMPUTATIONAL SYSTEMS (RAICS), 2013, : 7 - 12
  • [48] ACL-SQL: Generating SQL Queries from Natural Language
    Kaoshik, Ronak
    Patil, Rohit
    Prakash, R.
    Agarawal, Shaurya
    Jain, Naman
    Singh, Mayank
    [J]. CODS-COMAD 2021: PROCEEDINGS OF THE 3RD ACM INDIA JOINT INTERNATIONAL CONFERENCE ON DATA SCIENCE & MANAGEMENT OF DATA (8TH ACM IKDD CODS & 26TH COMAD), 2021, : 423 - 423
  • [49] Automatic Grading System on SQL Programming
    Ke, Haifeng
    Zhang, Gaoyan
    Yan, Hui
    [J]. 2009 INTERNATIONAL CONFERENCE ON SCALABLE COMPUTING AND COMMUNICATIONS & EIGHTH INTERNATIONAL CONFERENCE ON EMBEDDED COMPUTING, 2009, : 537 - +
  • [50] Machine Learning Based Intrusion Detection on Complex Nested Transactional SQL Queries
    Aliyu, Garba
    Thandekkattu, George
    Abdulmumin, Idris
    Baba, Usman A.
    Yusuf, Aminat Bolatito
    Nasir, Mustapha
    [J]. 2022 IEEE NIGERIA 4TH INTERNATIONAL CONFERENCE ON DISRUPTIVE TECHNOLOGIES FOR SUSTAINABLE DEVELOPMENT (IEEE NIGERCON), 2022, : 146 - 150