-- DBMS: bigquery
CREATE TABLE `bigquery-public-data.stackoverflow.posts_answers`
(
  id INT64,
  title STRING,
  body STRING,
  accepted_answer_id STRING,
  answer_count STRING,
  comment_count INT64,
  community_owned_date TIMESTAMP,
  creation_date TIMESTAMP,
  favorite_count STRING,
  last_activity_date TIMESTAMP,
  last_edit_date TIMESTAMP,
  last_editor_display_name STRING,
  last_editor_user_id INT64,
  owner_display_name STRING,
  owner_user_id INT64,
  parent_id INT64,
  post_type_id INT64,
  score INT64,
  tags STRING,
  view_count STRING
);

INSERT INTO `bigquery-public-data.stackoverflow.posts_answers` (id, title, body, accepted_answer_id, answer_count, comment_count, community_owned_date, creation_date, favorite_count, last_activity_date, last_edit_date, last_editor_display_name, last_editor_user_id, owner_display_name, owner_user_id, parent_id, post_type_id, score, tags, view_count) VALUES (21048655, NULL, '<p>If you will not use strongSelf in the code suggested by Kevin Ballard then it might lead to a crash because of weak getting nilled out.</p>

<p>Also a good practice would be to even check for strong being non nil at the point of creating      </p>

<pre><code>strongSelf = weakSelf

   if(strongSelf)
   {
       // do your stuff here 
   }
</code></pre>', NULL, NULL, 0, 'NaT', '2014-01-10 15:53:33.090000+00:00', NULL, '2014-01-10 15:53:33.090000+00:00', 'NaT', NULL, NULL, NULL, 1785418, 14370325, 2, 0, NULL, NULL), (21048662, NULL, '<p>Every Draw object creates a new timer so you have the game running n times at the same time but the copies of the game share the state because ir is stored in static variables so the state is updated n-1 times faster than it should.</p>

<p>You may stop the timer <a href="https://stackoverflow.com/questions/1409116/how-to-stop-the-task-scheduled-in-java-util-timer-class">this way</a> or you may use a static timer and <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Timer.html#schedule%28java.util.TimerTask,%20long,%20long%29" rel="nofollow noreferrer">schedule/cancel the task</a> each time.</p>', NULL, NULL, 0, 'NaT', '2014-01-10 15:53:51.817000+00:00', NULL, '2014-01-10 15:53:51.817000+00:00', '2017-05-23 12:21:28.453000+00:00', NULL, -1, NULL, 270349, 21048393, 2, 0, NULL, NULL), (21048666, NULL, '<pre><code>a=[["A" for i in range(4)] for j in range(4)]

for i in range(len(a)):
  print()
  for j in a[i]:
     print("%c "%j,end='''')
</code></pre>

<p>it will print like this:</p>

<pre><code>A A A A
A A A A
A A A A
A A A A
</code></pre>', NULL, NULL, 0, 'NaT', '2014-01-10 15:54:03.450000+00:00', NULL, '2014-01-10 16:20:00.777000+00:00', '2014-01-10 16:20:00.777000+00:00', NULL, 1887779, NULL, 3182465, 16541973, 2, 0, NULL, NULL), (21048669, NULL, '<p>Using standard library:
</p>

<pre><code>&gt;&gt;&gt; from itertools import groupby 
&gt;&gt;&gt; groups = [list(g[1]) for g in groupby(a, lambda x: x &gt; 44)]
&gt;&gt;&gt; print groups

[[380.01874, 50.551693], [42.776562, 42.650467, 42.439999, 42.408905, 
42.260563, 42.108276, 42.168007, 42.118984, 42.124863, 42.043224, 
42.095177, 41.915165, 42.06472, 41.938156, 41.893482, 41.941589, 
41.8997, 41.925949, 41.819122, 41.86272, 41.75209, 41.802406, 41.760361], 
[45.260254, 46.825336, 46.500366, 44.3283], [41.763329, 41.780571, 
41.672211, 41.641739, 41.651295, 41.618404, 41.695488, 41.671284, 
41.621643, 41.441597, 41.66975, 41.577599, 41.615841, 41.495602, 
41.561581, 41.560726, 41.6759, 41.537495, 41.401688, 41.618671, 
41.560268, 41.503071, 41.528313], [45.30022, 48.274105], [41.432148, 
41.471291, 41.512859, 41.50565, 41.512371, 41.466312, 41.473175, 
41.515701, 41.500916, 41.439285, 41.492058, 41.4678, 41.40226, 
41.388351, 41.381634, 41.41087, 41.469292, 41.360497, 41.5056, 41.378258, 
41.513493, 41.330299, 41.396099, 41.402149, 41.358822], [44.038559, 
47.995853, 48.233227, 44.078781], [41.41098, 41.243141, 41.356258, 
41.455688, 41.244099, 41.360558, 41.313278, 41.463379, 41.245998, 
41.313683, 41.220814, 41.380154, 41.345943, 41.313438, 41.259727, 
41.361221, 41.238659, 41.397285]]
</code></pre>

<p>It is then straightforward to group this list into pairs if that''s what you need:</p>

<pre class="lang-py prettyprint-override"><code>pairs = zip(*[iter(groups)] * 2)
</code></pre>

<p>The result would be a a list of 2-tuples, each one consisting of two lists (values greater than 44 and values less than 44).</p>', NULL, NULL, 0, 'NaT', '2014-01-10 15:54:06.590000+00:00', NULL, '2014-01-10 15:54:06.590000+00:00', 'NaT', NULL, NULL, NULL, 1115659, 21045041, 2, 0, NULL, NULL), (21048684, NULL, '<p><code>time</code> function and <code>time_t</code> type granularity is usually seconds, so if your function returns in less than 1 second the diff will be zero.
For quick and dirty benchmarking you can use <code>clock()</code>.</p>', NULL, NULL, 0, 'NaT', '2014-01-10 15:54:40.657000+00:00', NULL, '2014-01-10 15:54:40.657000+00:00', 'NaT', NULL, NULL, NULL, 2382136, 21048465, 2, 0, NULL, NULL);