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 20:43:29 (CDT)
Duration:
0s
Show/Hide answer
{
  "sql-query": [
    {
      "tag": "cd40018a-f76d-4afb-a9f6-b28399d78197",
      "uuid": "e834a355-43f7-46ea-8574-84f093d9f61e",
      "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": "ffe561bb-5ad4-4312-ae75-be388c2dc312",
      "uuid": "accfa177-4c81-4298-b496-10d460e1f8ae",
      "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": "dea07c28-bc36-4668-9774-fc7d4ae342ae",
      "uuid": "f7459822-9761-40ce-9615-ef732fbdbef1",
      "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": "fd4bd43e-c944-4623-90a6-b56361543dd4",
      "uuid": "a4f58384-47ba-4149-a409-e823fdf2994c",
      "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": "cc88bad1-9bc0-4cf4-a111-c7a9bfdc93a2",
      "uuid": "fa3896f6-52c2-4556-9bf6-c752b1c84874",
      "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": "edc48c72-3132-4405-bf05-f77b018200c9",
      "uuid": "ec97b7a9-8083-4ccf-b161-feb188c9f60d",
      "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": "bf866ce3-2cc1-464b-813e-a844a198f911",
      "uuid": "d19299f6-f558-4afc-b366-975db940a5e6",
      "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": "a5021cc5-8786-4159-9811-424cb64b79a2",
      "uuid": "c2c2d707-ca9c-4e1d-88d7-8deaf2bc2a70",
      "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