CourseInsights / test / resources / queries / valid / simpleNOTAND.json
simpleNOTAND.json
Raw
{
	"title": "simpleNOTAND",
	"input": {
		"WHERE": {
			"NOT": {
				"AND": [
					{
						"IS": {
							"sections_dept": "*"
						}
					},
					{
						"GT": {
							"sections_avg": 1
						}
					}
				]
			}
		},
		"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
		}
	]
}