Query by complex key

Hey @martinesmann could you provide any light on this ?