57 lines
1.6 KiB
JSON
57 lines
1.6 KiB
JSON
{
|
|
"db_name": "SQLite",
|
|
"query": "SELECT\n q.text as q_text,\n q.section,\n a.label as chosen_label,\n a.text as chosen_text,\n sa.correct as \"is_correct: bool\",\n correct_a.label as correct_label,\n correct_a.text as correct_text\n FROM student_answers sa\n JOIN questions q ON q.id = sa.question_id\n JOIN answers a ON a.id = sa.answer_id\n JOIN answers correct_a ON correct_a.question_id = sa.question_id\n AND correct_a.correct = 1\n WHERE sa.submission_id = ?\n ORDER BY q.position",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"name": "q_text",
|
|
"ordinal": 0,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "section",
|
|
"ordinal": 1,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "chosen_label",
|
|
"ordinal": 2,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "chosen_text",
|
|
"ordinal": 3,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "is_correct: bool",
|
|
"ordinal": 4,
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"name": "correct_label",
|
|
"ordinal": 5,
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"name": "correct_text",
|
|
"ordinal": 6,
|
|
"type_info": "Text"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Right": 1
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true
|
|
]
|
|
},
|
|
"hash": "7291781f8aa6a64540c52f31dd1f7140fc847963f33098dc6f7bf6a9662aec48"
|
|
}
|