I have a table looking like this in BigQuery:
The first field is id, the second field is url.
One line represents someone (an ID) who visited a URL.
Let's say my URLs are url1, url2, url3. I would like to know how many unique IDs visited at least once the following tuples of URLs:
(url1, url2)
(url1, url3)
(url2, url3)
(url1, url2, url3)
Basically, get the number of ids linked to all combinations of url from the urls list, but only when the number of urls visited is not 0. I expect it to give a very big output for a big list of urls. Is there a request I can write in BigQuery that would help with this problem ? May be an operator that can generate all combinations for my input ?
Thank you for your help

mark accepted answerby using the tick on the left of the posted answer, below the voting. See meta.stackexchange.com/questions/5234/… for why it is important! Also important tovote on answer. Vote up answers that are helpful. ... You can check about what to do when someone answers your question - stackoverflow.com/help/someone-answers. Following these simple rules you increase your own reputation score and at the same time you keep us motivated to answer your questions :o) please consider! - Mikhail Berlyant