Sorry @Craig and @Ooker to “invade” your post exchange. But I ask this: do the query through the “file.inlinks” it’s an important startpoint, right? I.e. you want the “inlinks” to the notes with key2 = "value"…
My point is: when we target the file.inlinks (by default a list/array) we get all the “inlinks” to that notes. No way to contour this. But we can “hide” some results from the output using the function filter(), i.e., selecting the values we want to see.
Try this test query (you can see both results: all the file.links and the filtered one - only the inlinks that have the field key1):
```dataview
TABLE
file.inlinks,
filter(file.inlinks, (i) => i.key1) as "Filtered results"
WHERE key2 = "value"
```
If I misinterpreted the goal, well, ignore me.