From 5585af98c12048daa7d9c5b65b92f4f95a73ea5d Mon Sep 17 00:00:00 2001
From: p9malino26 <pm3g19@soton.ac.uk>
Date: Fri, 7 May 2021 09:12:44 +0100
Subject: [PATCH] added alternative solution

---
 pr7.cql | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pr7.cql b/pr7.cql
index e69de29..22810a6 100644
--- a/pr7.cql
+++ b/pr7.cql
@@ -0,0 +1,9 @@
+.in
+F:3,
+G:3
+
+.out
+F x G;
+filter (\(r) -> not(isEmpty(r[2])) and not(isEmpty(r[3])) and [r[2], r[3]] == [r[4], r[5]]);
+#alternatively: filter (\(r) -> not(isEmpty(r[2])) and not(isEmpty(r[3])) and r[2]==r[4] and r[3]==r[5]);
+map (\(r) -> r[1,6]);
\ No newline at end of file
-- 
GitLab