CourseInsights / test / resources / queries / valid / simpleNOTORSingle.json
simpleNOTORSingle.json
Raw
{
	"title": "simpleNOTORSingle",
	"input": {
		"WHERE": {
			"NOT": {
				"OR": [
					{
						"GT": {
							"sections_avg": 5
						}
					}
				]
			}
		},
		"OPTIONS": {
			"COLUMNS": [
				"sections_dept",
				"sections_id",
				"sections_avg"
			],
			"ORDER": "sections_avg"
		}
	},
	"errorExpected": false,
	"orderExpected": true,
	"orderBy": "sections_avg",
	"expected": [
		{
			"sections_dept": "lfs",
			"sections_id": "100",
			"sections_avg": 0
		},
		{
			"sections_dept": "lfs",
			"sections_id": "100",
			"sections_avg": 0
		},
		{
			"sections_dept": "frst",
			"sections_id": "202",
			"sections_avg": 0
		},
		{
			"sections_dept": "wood",
			"sections_id": "475",
			"sections_avg": 1
		},
		{
			"sections_dept": "busi",
			"sections_id": "330",
			"sections_avg": 4
		},
		{
			"sections_dept": "busi",
			"sections_id": "330",
			"sections_avg": 4
		},
		{
			"sections_dept": "fopr",
			"sections_id": "362",
			"sections_avg": 4.5
		}
	]
}