This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attach 'props.db' as props; | |
select type, count(type) as cnt, l.value | |
from relations r | |
join props.labels l on r.type=l.property | |
group by type, l.value | |
order by cnt desc | |
limit 200; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
┌───────┬───────────┬──────────────────────────────────────────────────┐ | |
│ type │ cnt │ value │ | |
├───────┼───────────┼──────────────────────────────────────────────────┤ | |
│ 2860 │ 296522832 │ cites work │ | |
│ 31 │ 117443387 │ instance of │ | |
│ 1433 │ 45655528 │ published in │ | |
│ 50 │ 33099215 │ author │ | |
│ 921 │ 31212176 │ main subject │ | |
│ 407 │ 23502631 │ language of work or name │ | |
│ 17 │ 18087948 │ country │ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN { LETTERS = "abcdefghijklmnopqrstuvwxyz" } | |
{ | |
len = length($0); | |
if (len == 5) { | |
for (i = 1; i <= len; i++) { | |
c = substr($0, i, 1); | |
ltr = index(LETTERS, c); | |
if (ltr > 0) { |