How about first using Column Aggregator node. Choose to Group on columns key1 and key 2, and for aggregation method choose Concatenate. You will now have an extra column with key1 and key2 combined, separated by a commna.
Now use Row Filter node, and filter to only include rows where "num" column is "x".
Now use Reference Row Filter node, and attach the table after the Column Aggregator node to the top port, and attach the table after the Row Filter node to the bottom port (i.e. your reference table). Choose to Exclude Rows from Reference table, and select the combined key1key2 column from both of the dropdowns (Data Table and Reference Table Columns).