I was playing with bigquery and ran into a problem, my Query was:
SELECT * FROM (
SELECT a.title, a.counter , MAX(b.num_characters) as max
FROM (
SELECT title, count(*) as counter FROM publicdata:samples.wikipedia
GROUP EACH BY title
ORDER BY counter DESC
LIMIT 10
) a JOIN
(SELECT title,num_characters FROM publicdata:samples.wikipedia
) b ON a.title = b.title
GROUP BY a.title, a.counter)
LIMIT 1;
Although this is valid, I'm getting response too large to return. The first Subquery is running fine, what I want to do is get a bit more column for it. But I fail.