Element pl-order-blocks: inline horizontal arrangement

This question illustrates the inline="true" attribute of pl-order-blocks, which creates a horizontal arrangement of blocks.


Create a SQL command that selects all students who are enrolled in computer science.

This example uses inline="true" to arrange blocks horizontally rather than vertically.

Note: This model of block arrangement, particularly for the context of computer science, is attributed to "Regex Parsons: Using Horizontal Parsons Problems to Scaffold Learning Regex"

Drag from here:
  • 1
    "computer science"
    
  • 1
    =
    
  • 1
    FROM
    
  • 1
    SELECT
    
  • 1
    WHERE
    
  • 1
    enrollments
    
  • 1
    major
    
  • 1
    students
    
Construct your solution here:

Correct answer

Student view placeholder

In student views this area is used for assessment and score info.
Tools

Staff information

Question

Title:
Element pl-order-blocks: inline horizontal arrangement

Variant

Started at:
2026-08-04 21:54:12 (CDT)
Duration:
0s
Show/Hide answer
{
  "sql-query": [
    {
      "tag": "c7eef430-1c4c-40b9-a580-389bb09ada92",
      "uuid": "e20c3403-107a-48da-98d1-cbeb2e384ff9",
      "final": false,
      "index": 0,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">SELECT</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "fc8dc2d4-64af-4944-ac91-3b255b77eef5",
      "uuid": "a0d7e97b-9499-4f89-a445-fd0492e2dc40",
      "final": false,
      "index": 1,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">students</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "d47754f4-7f82-47ff-aa2a-961b1b613922",
      "uuid": "fb1e3b7e-216b-4350-be15-29dcfc79b17f",
      "final": false,
      "index": 2,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">FROM</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "f2fe70d0-aeec-4497-b176-eee5ea04f107",
      "uuid": "ab235e8e-9c8a-4d28-ad64-0f827c585372",
      "final": false,
      "index": 3,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">enrollments</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "cc82c5ac-2232-42bb-9758-64c0ad489520",
      "uuid": "f4e19ef2-e390-4e12-8b6f-85c271f06ba9",
      "final": false,
      "index": 4,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">WHERE</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "ea681635-3fe9-4db5-bec1-09dbba8c02a2",
      "uuid": "e4935a2c-1be5-49e7-a549-0ecbf77c095f",
      "final": false,
      "index": 5,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">major</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "b15d2441-c80f-4019-87c5-cea1638009b6",
      "uuid": "d638129b-fb00-4610-b932-30aa3d83060a",
      "final": false,
      "index": 6,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">=</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "a92557ef-bcc4-4d45-ac65-c74565c3974e",
      "uuid": "cce56048-5c4a-446e-84c3-9e2fc668932d",
      "final": false,
      "index": 7,
      "indent": null,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"sql\">&quot;computer science&quot;</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    }
  ]
}
History
dec frac
rad deg