There are multiple issues with what you trying to implement:
There are lot of questions about how to get user ids of likes in a certain circumstances. The short answer is - if you spent too much time and have not found a solution - you can't get those likes easily, or can't get them at all. So, facebook won't let you have the user ids that liked a specific urls, and you won't find a simple solution or guided documentation from facebook regards it. similar issue reference
Lets think numbers. If you have 100 friends, and all of them liked at least 100 urls during their facebook life. It means that your "query2" query should result set of 10,000 urls, and this is not practical for fql query. There are a lot of posts about it on stackoverflow and even on facebook blog posts. You must limit such queries to a certain number that you have tested. Sometimes it might be thousands, and sometimes not more than few hundreds. In your case, i would use hundreds. So, one way accomplish your task is to limit query2 with "LIMIT 0,100" - try it and you'll see that the multyquery work. The next thing to do will be to "paginate" over the rest of the results by looping the offset parameter. So, you'll have to make 100 fql requests in order to get all the urls that your friends liked. Thus:
What you trying to do is not possible to accomplish in real time (one query).
If your access token has the user_likes and friends_likes permissions that is all you need to query the url_like table.