You don't query another instance's database.
When your instance is federated with another, your instance will sync a local copy of threads and interactions from that instance.
You then query your own database and instantly have access to everyone else's interaction data.
This sounds like great news!
Firefox is already at the top of my list of preferred browsers on Android, but more extension support has always been on my feature wishlist.