//sentence[:::n = 68] | %(text = ::; chapter = \\?section::lemma)
//sentence[:::n = 68]/token | %(form = ::; ::lemma; ::upos; ::deprel; head = (->head::); chain = :::entity)
//token @| count
//token[:::entity] @| unique_by($_; :::mention) @| count
//token[:::entity] | :::entity @| unique @| count
//token[:::entity][::upos = "PROPN"] @| unique_by($_; :::mention) | %(e = :::entity; m = ::mention) | .e(:e) | .m(:m) @|{.e; .m} count | %($.e; $.m; n = $_) @| top(14; :n)
//token[:::entity = "e44"][::deprel = "nsubj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(8; :n)
//token[:::entity = "e44"][::deprel = "dobj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(8; :n)
//token[:::entity = "e44"][::deprel = "dobj"]->head<-head[::deprel = "nsubj"][:::entity] | :::entity | .e($_) @|{.e} count | %($.e; n = $_) @| top(6; :n)
/cast/*[::name != "Mary"] | .m(::mention) | .e((^/book//token[::mention = $.m][:::entity] | :::entity @| first)) | [$.e] | %(::name; ::gender; ::age; agent = (^/book//token[:::entity = $.e][::deprel = "nsubj"] @| count); patient = (^/book//token[:::entity = $.e][::deprel = "dobj" || ::deprel = "nsubjpass"] @| count)) | %(:name; :gender; :age; :agent; :patient; total = :agent + :patient) | %(:name; :gender; :age; :agent; :patient; share = round(100 * :patient div :total)) @| top(16; :agent)
/book//token[:::entity = "e44"][::deprel = "nsubj"]->head | .v(::lemma) | %(c = (^/classes/*[::lemma = $.v]::class @| first)) | [:c] | .c(:c) @|{.c} count | %($.c; n = $_) @| top(6; :n)
/book//token[:::entity = "e43"][::deprel = "nsubj"]->head | .v(::lemma) | %(c = (^/classes/*[::lemma = $.v]::class @| first)) | [:c] | .c(:c) @|{.c} count | %($.c; n = $_) @| top(6; :n)
/book//token[:::entity = "e46"][::deprel = "nsubj"]->head | .v(::lemma) | %(c = (^/classes/*[::lemma = $.v]::class @| first)) | [:c] | .c(:c) @|{.c} count | %($.c; n = $_) @| top(6; :n)
//token[:::entity = "e43"][::deprel = "nsubj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(8; :n)
//token[:::entity = "e101"][::deprel = "nsubj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(8; :n)
/cast/*[::name != "Mary"] | .m(::mention) | .e((^/book//token[::mention = $.m][:::entity] | :::entity @| first)) | [$.e] | %(::gender; ::age; agent = (^/book//token[:::entity = $.e][::deprel = "nsubj"] @| count); patient = (^/book//token[:::entity = $.e][::deprel = "dobj" || ::deprel = "nsubjpass"] @| count)) | .gender(::gender) @|{.gender} %($.gender; agent = sum(:agent); patient = sum(:patient)) | %(:gender; :agent; :patient; total = :agent + :patient) | %(:gender; :agent; :patient; share = round(100 * :patient div :total; 1))
/cast/*[::name != "Mary"] | .m(::mention) | .e((^/book//token[::mention = $.m][:::entity] | :::entity @| first)) | [$.e] | %(::gender; ::age; agent = (^/book//token[:::entity = $.e][::deprel = "nsubj"] @| count); patient = (^/book//token[:::entity = $.e][::deprel = "dobj" || ::deprel = "nsubjpass"] @| count)) | .age(::age) @|{.age} %($.age; agent = sum(:agent); patient = sum(:patient)) | %(:age; :agent; :patient; total = :agent + :patient) | %(:age; :agent; :patient; share = round(100 * :patient div :total; 1))
/cast/*[::name != "Mary"][::name != "Tom Sawyer"] | .m(::mention) | .e((^/book//token[::mention = $.m][:::entity] | :::entity @| first)) | [$.e] | %(::gender; agent = (^/book//token[:::entity = $.e][::deprel = "nsubj"] @| count); patient = (^/book//token[:::entity = $.e][::deprel = "dobj" || ::deprel = "nsubjpass"] @| count)) | .gender(::gender) @|{.gender} %($.gender; agent = sum(:agent); patient = sum(:patient)) | %(:gender; :agent; :patient; total = :agent + :patient) | %(:gender; :agent; :patient; share = round(100 * :patient div :total; 1))
//section[::lemma *= "CHAPTER"] | %(ch = ::lemma; tom = (//token[:::entity = "e44"][::deprel = "nsubj"] @| count); huck = (//token[:::entity = "e43"][::deprel = "nsubj"] @| count); joe = (//token[:::entity = "e101"][::deprel = "nsubj"] @| count); becky = (//token[:::entity = "e90"][::deprel = "nsubj"] @| count)) @| top(5; :huck)
//section[::lemma *= "CHAPTER"] | %(ch = ::lemma; tom = (//token[:::entity = "e44"][::deprel = "nsubj"] @| count); huck = (//token[:::entity = "e43"][::deprel = "nsubj"] @| count); joe = (//token[:::entity = "e101"][::deprel = "nsubj"] @| count); becky = (//token[:::entity = "e90"][::deprel = "nsubj"] @| count)) @| top(5; :becky)
//section[::lemma *= "CHAPTER"] | %(ch = ::lemma; agent = (//token[:::entity = "e101"][::deprel = "nsubj"] @| count); patient = (//token[:::entity = "e101"][::deprel = "dobj" || ::deprel = "nsubjpass"] @| count)) @| top(4; :patient)
/lit//token[:::entity = "e5152"] @| unique_by($_; :::mention) | ::mention | .m($_) @|{.m} count | %(m = $.m; lit = $_; book = (^/book//token[:::n <= 2033][:::entity = "e44"] @| unique_by($_; :::mention) | [::mention = $.m] @| count)) @| top(10; :lit)
//token[:::entity = "e5152"] @| unique_by($_; :::mention) @| count
//token[:::n <= 2033][:::entity = "e44"] @| unique_by($_; :::mention) @| count
/lit//token[:::entity = "e5153"] @| unique_by($_; :::mention) | ::mention | .m($_) @|{.m} count | %(m = $.m; lit = $_; book = (^/book//token[:::n <= 2033][:::entity = "e46"] @| unique_by($_; :::mention) | [::mention = $.m] @| count)) @| top(8; :lit)
//token[:::entity = "e5153"] @| unique_by($_; :::mention) @| count
//token[:::n <= 2033][:::entity = "e46"] @| unique_by($_; :::mention) @| count
/book | %(chapters = (//section[::lemma == (/^CHAPTER/)] @| count); words = (//token<word> @| count); places = (//place @| count); mentions = (//token[::chora] @| count))
//place | %(::onym; ::lemma; ::country; ::lat; ::lon) @| [..3]
//place | %(::lemma; ::country; mentions = (<-place @| count); chapters = (<-place | %(c = ::cite) | :c @| unique @| count)) @| top(8; :mentions)
//token[::chora] | %(c = ->place::country) | .c($_:c) @|{.c} count | %(country = $.c; mentions = $_) @| top(6; :mentions)
//section[::lemma = "CHAPTER I"] | %(places = (//token[::chora]->place::lemma @| unique @| count); first = (//token[::chora]->place::lemma @| unique @| [..6] @| join(", ")))
//place | [(<-place | [::cite = "The Innocents Abroad / CHAPTER I"] @| count) = 0] | %(::lemma; mentions = (<-place @| count)) @| top(5; :mentions)
//place[::onym != "new-york"] | .v((<-place | [::cite != "The Innocents Abroad / CHAPTER I"] | %(c = ::cite) | .c($_:c) @|{.c} %(c = $.c; n = ($_ @| count)) | [:n >= 3] @| top(1; :n) | :c @| first)) | [$.v] | %(place = ::lemma; chapter = ($.v | substr(23..)); at = (<-place | [::cite = $.v] | :::n @| min)) @| sort_by(:at) | %(place = :place; chapter = :chapter)
//place[::onym != "new-york"] | .v((<-place | [::cite != "The Innocents Abroad / CHAPTER I"] | %(c = ::cite) | .c($_:c) @|{.c} %(c = $.c; n = ($_ @| count)) | [:n >= 3] @| top(1; :n) | :c @| first)) | [$.v] | %(p = ::lemma; lat = ::lat; lon = ::lon; at = (<-place | [::cite = $.v] | :::n @| min)) @| sort_by(:at) @| window(2) | %(from = ($_ | :p @| first); to = ($_ | :p @| last); km = (haversine(($_ | :lat @| first); ($_ | :lon @| first); ($_ | :lat @| last); ($_ | :lon @| last)) | round)) | [:km > 0] @| top(5; :km)
//place[::onym != "new-york"] | .v((<-place | [::cite != "The Innocents Abroad / CHAPTER I"] | %(c = ::cite) | .c($_:c) @|{.c} %(c = $.c; n = ($_ @| count)) | [:n >= 3] @| top(1; :n) | :c @| first)) | [$.v] | %(p = ::lemma; lat = ::lat; lon = ::lon; at = (<-place | [::cite = $.v] | :::n @| min)) @| sort_by(:at) @| window(2) | %(km = (haversine(($_ | :lat @| first); ($_ | :lon @| first); ($_ | :lat @| last); ($_ | :lon @| last)))) | :km @| sum | round
//section[::lemma == (/^CHAPTER (X|XX|XXX|XL|L|LX)$/)] | %(ch = ::lemma; km = (//token[::chora] | %(d = (haversine(40.71; -74.01; ->place::lat; ->place::lon))) | :d @| median | round))
//place | %(::lemma; km = (haversine(40.71; -74.01; ::lat; ::lon) | round)) @| top(3; :km)
//section[::lemma == (/^CHAPTER/)] | %(ch = ::lemma; per10k = ((((//token[::chora] @| count) * 10000) div (//token<word> @| count)) | round)) @| top(4; :per10k)
//place | %(name = ::lemma; lon = ::lon; lat = ::lat; mentions = (<-place @| count)) @| top(2; :mentions) | .k("all") @|{.k} %(type = "FeatureCollection"; features = ($_ | %(type = "Feature"; geometry = ($_ | %(type = "Point"; coordinates = @((:lon + 0); (:lat + 0)))); properties = ($_ | %(name = :name; mentions = :mentions))))) | json
//place | %(::lemma; ::lat; ::lon; mentions = (<-place @| count)) @| top(3; :mentions)
/play | %(acts = (//section[::lemma == (/^ACT/)] @| count); scenes = (//section[::lemma == (/^SCENE/)] @| count); speeches = (//dialogue @| count); words = (//token<word> @| count); directions = (//paragraph<stage-direction> @| count); inline = (//stage-direction @| count))
//character | %(::onym; ::lemma; ::role) @| [..4]
//character | %(::lemma; speeches = (<-character[:name = "dialogue"] @| count); words = (<-character[:name = "dialogue"]//token<word> @| count)) @| top(8; :words)
//dialogue | %(a = ->character::onym; b = (>dialogue->character::onym)) | [:b] | .a($_:a) | .b($_:b) @|{.a; .b} count | %(a = $.a; b = $.b; n = $_) @| top(8; :n)
//dialogue | %(a = ->character::onym; b = (>dialogue->character::onym)) | [:b] | %(x = ((:a < :b) ? :a : :b); y = ((:a < :b) ? :b : :a)) | .x($_:x) | .y($_:y) @|{.x; .y} count | %(a = $.x; b = $.y; n = $_) @| top(8; :n)
//dialogue | %(a = ->character::onym; b = (>dialogue->character::onym)) | [:b] | .a($_:a) | .b($_:b) @|{.a; .b} count | %(a = $.a; b = $.b; n = $_; back = (^//dialogue | [->character::onym = $.b] | [>dialogue->character::onym = $.a] @| count)) | [:n > 15] | %(:a; :b; :n; :back; d = (:n - :back)) @| top(5; :d)
//dialogue[::lemma = "GHOST"] | >dialogue::lemma | .w($_) @|{.w} count | %(w = $.w; n = $_)
//dialogue[>dialogue->character::onym = "ophelia"] | %(w = ->character::onym) | .w($_:w) @|{.w} count | %(w = $.w; n = $_) @| top(5; :n)
//section[::lemma == (/^SCENE/)] | .cast(//dialogue->character::onym @| unique) | $.cast | ... | .a($_) | $.cast | ... | [$_ > $.a] | %(a = $.a; b = $_) | .a($_:a) | .b($_:b) @|{.a; .b} count | %(a = $.a; b = $.b; scenes = $_) @| top(8; :scenes)
//section[::lemma == (/^SCENE/)] | .cast(//dialogue->character::onym @| unique) | $.cast | ... | .a($_) | $.cast | ... | [$_ > $.a] | %(a = $.a; b = $_) | .a($_:a) | .b($_:b) @|{.a; .b} count | %(a = $.a; b = $.b; scenes = $_; replies = (^//dialogue | [(->character::onym = $.a && >dialogue->character::onym = $.b) || (->character::onym = $.b && >dialogue->character::onym = $.a)] @| count)) | [:replies = 0] @| top(6; :scenes)
//paragraph<stage-direction>[:: == (/^(Enter|Re-enter)/)] | //token | %(w = ->character::onym) | [:w] | .w($_:w) @|{.w} count | %(who = $.w; n = $_) @| top(6; :n)
//paragraph<stage-direction>[:: == (/^(Exit|Exeunt)/)] | //token | %(w = ->character::onym) | [:w] | .w($_:w) @|{.w} count | %(who = $.w; n = $_) @| top(6; :n)
//dialogue | [(<paragraph<stage-direction>::) == (/^Exeunt/)] | %(who = ::lemma; w = (//token<word> @| count); after = ((<paragraph<stage-direction>::) | substr(..40))) | [:w > 60]
//dialogue | %(who = ::lemma; words = (//token<word> @| count); at = (::cite | substr(29..))) @| top(5; :words)
//section[::lemma == (/^ACT/)] | %(act = ::lemma; scenes = (/section @| count); speeches = (//dialogue @| count); words = (//token<word> @| count); hamlet = (//dialogue[->character::onym = "hamlet"]//token<word> @| count))
//dialogue | %(a = ->character::onym; b = (>dialogue->character::onym)) | [:b] | .a($_:a) | .b($_:b) @|{.a; .b} count | %(a = $.a; b = $.b; n = $_) @| top(3; :n)
//dialogue | %(a = ->character::onym; b = (>dialogue->character::onym)) | [:b] | .a($_:a) | .b($_:b) @|{.a; .b} count | %(a = $.a; b = $.b; n = $_) @| top(2; :n)
/letters/* @| count
/letters/* | %(::x-letter; ::to; d = (:::date | isodate); ::subject) @| [..3]
/letters/* | %(t = ::to) | .t($_:t) @|{.t} count | %(to = $.t; letters = $_) @| top(4; :letters)
/letters/* | %(y = (:::date | year)) | .y($_:y) @|{.y} count | %(year = $.y; letters = $_) @| sort_by(:year)
/letters/* | %(p = ::x-place) | .p($_:p) @|{.p} count | %(place = $.p; letters = $_) @| top(6; :letters)
/letters/* | %(l = ::x-letter; d = :::date) @| sort_by(:d) @| window(2) | %(from = ($_ | :l @| first); to = ($_ | :l @| last); days = ((($_ | :d @| last) - ($_ | :d @| first)) | days)) @| top(3; :days)
/letters/* | %(y = (:::date | year); w = (:: | wc)) | .y($_:y) @|{.y} [($_ @| count) >= 4] | %(year = $.y; letters = ($_ @| count); words = ($_ | :w @| median | round)) @| sort_by(:year)
/letters/* | %(y = (:::date | year); n = (:: | lower | s/[^\p{L}]/ /g | words | [$_ = "ball" || $_ = "balls" || $_ = "dance" || $_ = "danced" || $_ = "dancing"] @| count)) | .y($_:y) @|{.y} %(year = $.y; dancing = ($_ | :n @| sum)) @| sort_by(:year)
/letters/* | %(l = ::x-letter; d = (:::date | isodate); fi = (:: *= "First Impressions"); ss = (:: *= "Sense and Sensibility"); pp = (:: *= "Pride and Prejudice"); mp = (:: *= "Mansfield Park")) | [:fi || :ss || :pp || :mp] @| [..5]
/letters/* | %(::x-letter; said = ::x-weekday; calendar = (:::date | strftime("%A"))) @| [..2]
/letters/*[::x-weekday != ""][::x-year-printed = "yes"][::x-day-printed = "yes"] | [(:::date | strftime("%A")) = ::x-weekday] @| count
/letters/*[::x-weekday != ""][::x-year-printed = "yes"][::x-day-printed = "yes"] | [(:::date | strftime("%A")) != ::x-weekday] | %(::x-letter; ::x-dateline; calendar = (:::date | strftime("%A")))
/letters/*[::x-year-printed = "no"][::x-day-printed = "yes"][::x-weekday != ""] | %(agree = ((:::date | strftime("%A")) = ::x-weekday)) | .agree($_:agree) @|{.agree} count | %(agree = $.agree; letters = $_)
/letters/*[::x-year-printed = "no"][::x-day-printed = "yes"][::x-weekday != ""] | .md((:::date | strftime("-%m-%d"))) | .wd(::x-weekday) | .y0((:::date | year)) | [(:::date | strftime("%A")) != $.wd] | %(::x-letter; ::x-dateline; taken = $.y0; calendar = ("1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817" | words | [$_ >= $.y0] | [(datetime("${$_}${$.md}T12:00:00Z") | strftime("%A")) = $.wd] @| first))
/letters/* | %(p = ::x-place) | .p($_:p) @|{.p} count | %(place = $.p; letters = $_) @| top(3; :letters)
//section::lemma
//section[::lemma = "References"]//ordered-item @| count
//section[::lemma = "References"]//ordered-item[1]::
//section[::lemma = "References"]//ordered-item | :: | bibref(cmos) | %(:author; :title; :year)
//section[::lemma = "References"]//ordered-item[1] | :: | bibref(cmos)
= "This closing line is prose, not a reference." | bibref(cmos) | %(ссылка = ($_ != null))
//bib | %(номер = ::onym; автор = ::author; год = ::year; род = :::genus)
//cit | %(цель = ::target; место = ::locator; найдена = :::resolved)
//cit[::locator]-->::title
//bib[!<-cit]::onym
//cit[!:::resolved] @| count
//paragraph @| count
//bib | %(номер = ::onym; автор = ::author; заглавие = ::title; год = ::year; род = :::genus)
//bib<article> | %(номер = ::onym; журнал = ::journal; том = ::volume; страницы = ::pages)
//cit | %(цель = ::target; место = ::locator)
//bib<article> | %(номер = ::onym; журнал = ::journal; выпуск = ::number; страницы = ::pages)
//bib[6] | %(url = ::url; обращение = ::urldate; носитель = ::medium; год = ::year)
//bib[3] | %(журнал = ::journal; том = ::volume; выпуск = ::number; страницы = ::pages)
//bib[5] | %(носитель = ::medium; обращение = ::urldate; url = ::url)
//bib::onym @| join(" ")
//section[::lemma = "References"]//ordered-item | %(текст = (:: | substr(..32)); cmos = (:: | bibref(cmos) | :genus); ams = (:: | bibref(ams) | :genus))
= "Ibid." | bibref(apa)
= "This closing line is prose, not a reference." | bibref(cmos) | %(reference = ($_ != null))
//bib | %(n = ::onym; author = ::author; year = ::year; genus = :::genus)
//cit | %(t = ::target; loc = ::locator; ok = :::resolved)
//bib | %(n = ::onym; author = ::author; title = ::title; year = ::year; genus = :::genus)
//bib<article> | %(n = ::onym; journal = ::journal; volume = ::volume; pages = ::pages)
//cit | %(t = ::target; loc = ::locator)
//bib<article> | %(n = ::onym; journal = ::journal; number = ::number; pages = ::pages)
//bib[6] | %(url = ::url; seen = ::urldate; medium = ::medium; year = ::year)
//bib[3] | %(journal = ::journal; volume = ::volume; number = ::number; pages = ::pages)
//bib[5] | %(medium = ::medium; seen = ::urldate; url = ::url)
//section[::lemma = "References"]//ordered-item | %(text = (:: | substr(..32)); cmos = (:: | bibref(cmos) | :genus); ams = (:: | bibref(ams) | :genus))
/*<type>:name
//field::signature
//asdict::doc
//_process_class<-definition
//*<call>[::callee = "JSONDecoder"]
//*<function> @| count
//*<function>[:::n-params > 9] | %(:name; :::n-params)
//*<function> @| top(3; :::end-line - :::start-line)
//*<function>[!::doc] @| count
//loads//*<call>::callee @| unique @| sort
//*[::doc == (/[Dd]eprecated/)] | %(:name; ::start-line)
//tok_get::signature
//verify_identifier::doc
//tok_get<-definition
//PyLong_FromLong
//ERROR @| count
//assignment[::left = "scanstring"] | %(::left; :::start-line)
//*<type> @| top(5; :::n-children) | %(:name; :::n-children)
//Searcher/search_path::signature
//*<call>[::callee == (/(unwrap|expect)$/)] @| count
/*:name
//section[::lemma = "Ben Rogers"]/paragraph::
//*<cell>[::lemma = "Price"]::
//*<deixis>->footnote::
//*<note><-footnote\::
//*<deixis>->endnote::
//*<note> @| count
//*<note>[:::form = "margin"]::
//*<deixis>->aside::
/aside[::onym = "1"]<-aside\::
//index-mark::term
//index-mark | .term(::term) @|{.term} count | .marks | %.
//section[::lemma = "Ben Rogers"]/line | %(text = ::; page = :::page)
/objects/catalog->Pages->Kids @| count
//section[::lemma = "Index"]/line::
//section[::lemma = "Index"]/line | [:: == (/^(.+), ([0-9]+)$/)] | %(term = $1; page = $2)
//section[::lemma == *"Pattern"*]::lemma
//*<note>[1]::
def &gregorian: | tp("%Y-%m-%d") | ($_ + 12d); //*[::passenger_id] | .born(( ::year_rumi ? ::year_rumi + 584 : ::quarter ? (::quarter | s/ Q.*$//) * 1 : ::date ? (::date | s/^.*\s//) * 1 : ::född ? (::född | s/-.*$//) * 1 : ::né_le ? (::né_le | s/-.*$//) * 1 : ::date_of_birth ? (::date_of_birth | s/-.*$//) * 1 : ::natus ? (::natus | s/-.*$//) * 1 : ::nata ? (::nata | s/-.*$//) * 1 : ((::data_rozhdeniya | &gregorian) | s/-.*$//) * 1 )) | %(::passenger_id; born = $.born)
/titanic-birth-records//födda/* <=> /titanic/row[::PassengerId = $$0::passenger_id] <=> /titanic-birth-records//födda/*[::fader = $$0::fader && ::moder = $$0::moder && ::passenger_id > $$0::passenger_id] | [$$1::Name *= "Mrs."] | %(aboard_as = $$1::Name; sibling = $$2::namn)
def &gregorian: | tp("%Y-%m-%d") | ($_ + 12d); /archives/metricheskie_knigi/*[::familiya = "Abelzon"] | %(::familiya; julian = ::data_rozhdeniya; gregorian = (::data_rozhdeniya | &gregorian))
/result/* | .age_source(::age_source) @|{.age_source} count | .n | %.
/entry[::service_name = "checkout"][::latency_ms]::latency_ms | .m((::timestamp | strftime("%H:%M"))) @|{.m} mean | %($.m; mean_ms = ($_ | round))
/entry[::service_name = "checkout"][::latency_ms]::latency_ms | .m((::timestamp | strftime("%H:%M"))) @|{.m} mean | .now($_) @| shift(1) | %($.m; delta = (($.now - $_) | round))
/entry<error>[::service_name = "checkout"] <=> /entry[::service_name = "gateway"][::trace = $$0::trace] <=>? /entry[::service_name = "payments-worker"][::trace = $$0::trace] | %(::order; edge_ms = ($$1::latency | s/s$//); retry = $$2::attempt) @| [..4]
/entry<critical> | %(at = (::timestamp | strftime("%H:%M:%S")); ::service_name; what = ::)
/entry[::service_name = "gateway"][::status >= 500] <=>? /entry[::service_name = "checkout"][::trace = $$0::trace] | [!$$1::trace] | %(at = (::timestamp | strftime("%H:%M:%S")); req = ::; ms = (::latency | s/s$//) * 1000)
/entry<error>[::timestamp > 2026-07-25T14:16:10Z] @| count
/entry[::service_name = "checkout"][::latency_ms] [::timestamp >= 2026-07-25T14:17:00Z]::latency_ms @| mean | round
/orders/17/payload/customer/geo/city::
/orders/17/payload::total
/orders/*/payload/*:name @| unique
/orders/* | (/payload/total::) | .city((/payload/customer/geo/city::)) @|{.city} sum | round(2) | .revenue | %.
/orders/* | .city((/payload/customer/geo/city::) | default((/payload/city::))) | (/payload/total::) @|{.city} sum | round(2) | .revenue | %.
//div[:::classes *= "card"] | %(title = /h3::; price = /span[:::classes *= "price"]::; isbn = ::data-isbn) @| [..2]
//div[:::classes *= "card"] @| count
//*[:: == (/^\d+\.\d\d$/)]:: @| mean
//*[:: == (/^\d+\.\d\d$/)]\\?[:: == (/Binding: /)] | [!(::style == (/none/))] | //*[:: == (/^\d+\.\d\d$/)]:: @| mean
//*[:: == (/Wandering Almanac/)]\\?[::data-isbn]::data-isbn
//*[:: == (/Wandering Almanac/)]\\?[::data-isbn]::data-isbn @| count
//*[:::classes *= "za0d8e"]\\?[:: == (/Binding: /)] | [!(::style == (/none/))] | %(title = //*<link>::; price = //*[:::classes *= "za0d8e"]::) @| [..2]
//*[:: == (/^\d+\.\d\d$/)]:::classes @| unique
macro &tok!($shape): /data//*[:: == $shape]:::classes @| unique | "\"${$_}\""; //*[:::classes *= &tok!((/^\d+\.\d\d$/))]::
def &vis: [!(::style == (/none/))]; macro &tok!($shape): /data//*[:: == $shape]:::classes @| unique | "\"${$_}\""; //*[:::classes *= &tok!((/^\d+\.\d\d$/))]\\?[:: == (/Binding: /)] | &vis @| count
macro &ids!: /data//*:::attrs | ... | [$_ == (/^data-/)] @| unique | "//*[::${$_}][!(::style == (/none/))]::${$_}"; &ids!() @| count
macro &all!: /data/* | .g(:name) | .t(//*[:: == (/^\d+\.\d\d$/)]:::classes @| unique) | "/${$.g}//*[:::classes *= \"${$.t}\"]\\\\?*[:: == (/Binding: /)]" @| join(" || "); &all!() | [!(::style == (/none/))] @| count
): continue cmd = [lines[0][2:]] i = 1 # A command continues until the line carrying the store argument. while
//page @| count
/tags/tag[:: = "kaiv"]<-page::title
/sites/quarb.org/tags/kaiv<-page::title
//page<beautifulsoup> @| count
/sites/quarb.org/pages/capsa.html<-link @| count
/sites/quarb.org/pages/capsa.html::in_degree
//page<orphan>::path
/sites/quarb.org/pages/index.html//paragraph//ref-->::title
//page::pagerank @| sum | round(6)
//h2::
//div[:::classes *= "mw-heading2"]
//section[:: == (/injun joe/i)]
//section | %(::lemma; :::level)
//section[::lemma = "See also"]::
//section[:: == (/fence/i)]::lemma
//section[:: *= "Injun Joe"]::lemma
//section[:: *= "Injun Joe"][!/section]::lemma
//paragraph[:: *= "Hannibal"]
//paragraph[:: *= "Hannibal"]\\?section::lemma
//section[::lemma *= "CHAPTER"][:: *= "Injun Joe"]::lemma
//section[::lemma *= "CHAPTER"][:: *= "Becky"] | %(chapter = ::lemma; n = (//paragraph[:: *= "Becky"] @| count))
//section[::lemma *= "CHAPTER"] [//paragraph[:: *= "Injun Joe"][:: *= "Huck"]]::lemma
//*<table>::lemma
//*<cell>[::lemma = "Author"]::
//*<row>[::taxis = 3]::
//*<table>//*[:: == (/Author|Genre|Publication date|Followed by/)][!/*]::
//section[::lemma = "See also"] | markdown
//section[::lemma = "See also"] | html
/paragraph:: @| [..6]
::
/row[5] | %(::ip; ::cookie)
/row[5]::body
/row[::ip = (^/row[5]::ip) || ::cookie = (^/row[5]::cookie)] | %(::id; ::ip; ::cookie)
/row[::cookie = (^/row[::ip = (^/row[5]::ip)]::cookie)] | %(::id; ::cookie)
/ips/ip @| count
/cookies/cookie @| count
/posts/post[5]--cookie::
/cookies/cookie[:: = "c7a02"] (--post--ip--post--cookie)::
/cookies/cookie[:: = "c7a02"]--ip::
/cookies/cookie[:: = "c7a02"](--ip[(--cookie @| count) < 5]--cookie)+::
//*<cell>[::lemma = "Цена"]::
//section[::lemma = "Собакевич"]/paragraph::
//section[::lemma = "Собакевич"]/line | %(text = ::; :::page)
//section[::lemma = "Указатель"]/line::
//section[::lemma = "Указатель"]/line | [:: == (/^(.+), ([0-9]+)$/)] | %(term = $1; page = $2)
//section[::lemma == (/шаблон/i)]::lemma
//div[:::classes *= "mw-heading2"] @| [..3]
//section[:: == (/ноздр/i)]
//section[::lemma = "См. также"]::
//section[:: == (/тройк/i)]::lemma
//section[:: *= "Ноздр"]::lemma
//section[:: *= "Ноздр"][!/section]::lemma
//paragraph[:: *= "поэма"]
//paragraph[:: *= "поэма"]\\?section::lemma
//section[::lemma *= "ГЛАВА"][:: *= "Ноздр"]::lemma
//paragraph[:: *= "Плюшкин"] | %(chapter = \\?section::lemma; text = substr(::; 1..60)) @| [1]
//paragraph[:: *= "Коробочк"] | %(chapter = \\?section::lemma; text = substr(::; 1..60)) @| [1]
//paragraph[:: *= "Ноздр"] | %(chapter = \\?section::lemma; text = substr(::; 1..60)) @| [1]
//section[::lemma *= "ГЛАВА"][:: *= "Собакевич"] | %(chapter = ::lemma; n = (//paragraph[:: *= "Собакевич"] @| count))
//section[::lemma *= "ГЛАВА"] [//paragraph[:: *= "Ноздр"][:: *= "Собакевич"]]::lemma
//*<cell>[::lemma = "Автор"]::
//*<table>[::lemma = "Мёртвые души"]/*<row>[::taxis = 4]::
/paragraph:: @| [..5]
//section[::lemma = "См. также"] | markdown
//section[::lemma = "См. также"] | html
&books | %(::mount; ::author; ::title; ::year) @| [..4]
&books @| count
&texts | (//token<word> @| count) @| sum
&texts | .b(:name) | .n(//token<word> @| count) | .t(//token @| count) | %(book = $.b; year = ((^/catalogue/*[::mount = $.b]::year @| first) + 0); words = $.n; mean = ((//sentence | (/token<word> @| count) @| mean) | round(1)); median = (//sentence | (/token<word> @| count) @| median); semi = ((//token[:: = ";"] @| count) * 1000 div $.t | round(1)); quotes = ((//token<quote> @| count) * 1000 div $.t | round(1)); which = ((//token[::lower = "which"] @| count) * 1000 div $.n | round(2)); upon = ((//token[::lower = "upon"] @| count) * 1000 div $.n | round(2)); thou = ((//token[::lower = "thou"] @| count) * 1000 div $.n | round(2)))
/measures/* | %(::year; ::book; ::words; ::mean; ::median; ::semi; ::quotes; ::which) @| sort_by(:year)
/measures/* | .all(1) @|{.all} %(mean = (($_ @| spearman(::year; ::mean)) | round(2)); median = (($_ @| spearman(::year; ::median)) | round(2)); semi = (($_ @| spearman(::year; ::semi)) | round(2)); quotes = (($_ @| spearman(::year; ::quotes)) | round(2)); which = (($_ @| spearman(::year; ::which)) | round(2)); upon = (($_ @| spearman(::year; ::upon)) | round(2)))
/measures/* | .from((::year div 50 | floor) * 50) @|{.from} %(from = $.from; books = ($_ @| count); mean = (($_ | ::mean @| mean) | round(1)); quotes = (($_ | ::quotes @| mean) | round(1)); which = (($_ | ::which @| mean) | round(1))) @| sort_by(:from)
/measures/* @| sort_by(::year) | .y(::year) | .b(::book) | ::mean @| window(5) | %(year = $.y; book = $.b; mean5 = ($_ @| mean | round(1)))
/measures/* @| bottom(4; ::mean) | %(::year; ::book; ::mean)
/measures/* @| top(4; ::mean) | %(::year; ::book; ::mean)
/measures/* | [::thou > 1] | %(::year; ::book; ::thou)
&texts | .b(:name) | .year((^/catalogue/*[::mount = $.b]::year @| first) + 0) | .tot(//token<word> @| count) | //token<word>::lower | .w($_) @|{.b; .year; .tot; .w} count | %(book = $.b; year = $.year; w = $.w; f = ($_ * 1000 div $.tot); n = $_) | .w($_:w) @|{.w} [($_ @| count) = 17] @| top(100; ($_ | :n @| sum)) @| ungroup | .r | :f @| zscore($.r:w) | %(book = $.r:book; year = $.r:year; w = $.r:w; z = ($_ | round(3)))
/scores/* | .w(::w) @|{.w} %(w = $.w; rho = (($_ @| spearman(::year; ::z)) | round(2))) @| top(6; :rho)
/scores/* | .w(::w) @|{.w} %(w = $.w; rho = (($_ @| spearman(::year; ::z)) | round(2))) @| bottom(6; :rho)
/scores/* | .a(::book) | .ya(::year) | .w(::w) | .za(::z) | ^/scores/* | [::w = $.w] | [::book > $.a] | %(a = $.a; b = ::book; gap = abs(::year - $.ya); d = abs(::z - $.za)) | .a($_:a) | .b($_:b) | .gap($_:gap) @|{.a; .b; .gap} %(a = $.a; b = $.b; gap = $.gap; delta = (($_ | :d @| mean) | round(3)))
/pairs/* @| bottom(5; ::delta) | %(::a; ::b; ::gap; ::delta)
/pairs/* @| spearman(::gap; ::delta) | round(2)
/pairs/* | .band((::gap div 50 | floor) * 50) @|{.band} %(gap = $.band; pairs = ($_ @| count); delta = (($_ | ::delta @| mean) | round(2))) @| sort_by(:gap)
/c/* | .m(::mount) | .y(::year) | (^/s/pairs/* | [::a = $.m || ::b = $.m] @| bottom(1; ::delta) | %(nearest = (::a = $.m ? ::b : ::a); years = ::gap)) | %(book = $.m; year = $.y; nearest = :nearest; years = :years)
/measures/* | %(::year; ::book; ::mean; ::which) @| sort_by(:year) @| [..4]
/* | %(book = :name; verses = (//milestone[::value == (/\d+\.\d+$/)] @| count); words = (//token<word> @| count); notes = (//footnote<deixis> @| count))
/* | //token<word> | ::lower | .v(::cite) @|{.v} %(verse = $.v; text = ($_ @| join(" "))) @| [..2]
/* | .b(:name) | //token<word> | ::lower | .v(::cite) @|{.v; .b} %(b = $.b; c = $.v; t = ($_ @| join(" "))) | .r | :t | ngrams(8) | %(g = $_; b = $.r:b; c = $.r:c) | .g($_:g) @|{.g} %(books = ($_ | :b @| unique @| sort @| join("+")); g = $.g) | [:books *= "+"] | .books($_:books) @|{.books} %(books = $.books; phrases = ($_ @| count)) @| sort_by(:books)
/* | .b(:name) | //token<word> | ::lower | .v(::cite) @|{.v; .b} %(b = $.b; c = $.v; t = ($_ @| join(" "))) | .r | :t | ngrams(8) | %(g = $_; b = $.r:b; c = $.r:c) | .g($_:g) @|{.g} [($_ | :b @| unique @| count) = 3] | %(phrase = $.g; at = ($_ | :c @| join(" "))) @| [..4]
/* | .b(:name) | //token<word> | ::lower | .v(::cite) @|{.v; .b} %(b = $.b; c = $.v; t = ($_ @| join(" "))) | .r | :t | ngrams(8) | %(g = $_; b = $.r:b; c = $.r:c) | .g($_:g) @|{.g} [($_ | :b @| unique @| count) = 2] @| ungroup | [:b = "mark"] | :c @| unique @| count
/* | .b(:name) | //token<word> | ::lower | .v(::cite) @|{.v; .b} %(b = $.b; c = $.v; t = ($_ @| join(" "))) | .r | :t | ngrams(8) | %(g = $_; b = $.r:b; c = $.r:c) | .g($_:g) @|{.g} [($_ | :b @| unique @| count) = 2] @| ungroup | [:b = "matthew"] | :c @| unique @| count
/mark | .s(//token<word>[::cite = "mrk.1.4"] | ::lower @| join(" ") | ngrams(3)) | ^/matthew//token<word> | ::lower | .v(::cite) @|{.v; .s} %(cite = $.v; t = ($_ @| join(" ")); s = $.s) | .r | :t | ngrams(3) | [$_ = $.r:s] | .c($.r:cite) | .t($.r:t) @|{.c; .t} count | %($.c; shared = $_; text = $.t) @| top(2; :shared)
/mark | .s(//token<word>[::cite = "mrk.2.17"] | ::lower @| join(" ") | ngrams(3)) | ^/luke//token<word> | ::lower | .v(::cite) @|{.v; .s} %(cite = $.v; t = ($_ @| join(" ")); s = $.s) | .r | :t | ngrams(3) | [$_ = $.r:s] | .c($.r:cite) | .t($.r:t) @|{.c; .t} count | %($.c; shared = $_; text = $.t) @| top(2; :shared)
/* | %(издание = :name; главы = (/section @| count); абзацы = (//paragraph @| count))
/section[7]/paragraph[:: *= "Лондона, въ среду"] | :: | modernize("ru-1918") | timex(ru)
/section[7]/paragraph[:: *= "Quitté Londres"] | :: | timex(fr)
//paragraph | :: | modernize("ru-1918") | timex(ru) | :kind | .вид($_) @|{.вид} count | .n | %.
//paragraph | :: | timex(fr) | :kind | .вид($_) @|{.вид} count | .n | %.
/section[3]/paragraph[:: *= "De Londres à Suez"] | :: | timex(fr) | :value @| join(" ")
/section[3]/paragraph[:: *= "De Londres à Suez"] | :: | timex(fr) | :value | duration @| [..8] @| sum
/section[3]/paragraph[:: *= "Отъ " && :: *= "дней"] | %(строка = (:: | substr(1..60)); значение = (:: | modernize("ru-1918") | timex(ru) | :value))
/section | .c(:index) | /paragraph | :: | modernize("ru-1918") | timex(ru) | [:kind = "date" && :text == (/^(в |во )?(понедельник|вторник|сред|серед|четверг|пятниц|суббот|воскресень)/)] | %(глава = $.c; :text; календарь = ($_ | time_anchor(1872) | datetime | strftime("%A"; "ru")))
/section | .c(:index) | /paragraph | :: | timex(fr) | [:kind = "date" && :text == (/di /)] | %(глава = $.c; :text; календарь = ($_ | time_anchor(1872) | datetime | strftime("%A"; "fr")))
/section | .c(:index) | /paragraph | :: | modernize("ru-1918") | timex(ru) | %(chapter = $.c; :text; :kind; :value; when = ($_ | time_anchor(1872)))
/section | .c(:index) | /paragraph | :: | timex(fr) | %(chapter = $.c; :text; :kind; :value; when = ($_ | time_anchor(1872)))
/ru/row[::kind = "date" && ::when == (/^1872-\d\d-\d\d$/)] | %(французский = ((^/fr/row[::chapter = $$__::chapter && ::when = $$__::when] @| count) > 0)) | .k($_:французский) @|{.k} count | %(французский = $.k; дат = $_)
/ru/row[::kind = "date" && ::when == (/^1872-\d\d-\d\d$/)] | [(^/fr/row[::chapter = $$__::chapter && ::when = $$__::when] @| count) = 0] | %(глава = ::chapter; ::text; ::when; французский = (^/fr/row[::chapter = $$__::chapter && ::when == (/^1872-\d\d-\d\d$/)]::when @| unique @| join(" ")))
/fr/row[::kind = "date" && ::when == (/^1872-\d\d-\d\d$/)] | %(русский = ((^/ru/row[::chapter = $$__::chapter && ::when = $$__::when] @| count) > 0)) | .k($_:русский) @|{.k} count | %(русский = $.k; дат = $_)
/fr/row[::kind = "date" && ::when == (/^1872-\d\d-\d\d$/)] | [(^/ru/row[::chapter = $$__::chapter && ::when = $$__::when] @| count) = 0] | %(глава = ::chapter; ::text; ::when)
/row[::kind = "date" && ::value == (/^XXXX-XX/)] @| count
/ru/row[::kind = "time"] | %(французский = ((^/fr/row[::chapter = $$__::chapter && ::kind = "time" && ::value = $$__::value] @| count) > 0)) | .k($_:французский) @|{.k} count | %(французский = $.k; времён = $_)
/fr/row[::kind = "time"] | %(русский = ((^/ru/row[::chapter = $$__::chapter && ::kind = "time" && ::value = $$__::value] @| count) > 0)) | .k($_:русский) @|{.k} count | %(русский = $.k; времён = $_)
/row[::kind = "time" && ::text == (/35 минут/)] | %(глава = ::chapter; ::text; ::value)
/row[::value = "T20:45"] | %(глава = ::chapter; ::text)
/row[::value = "P8D" || ::value = "P7D" || ::value = "+P1W" || ::value = "P1W"] | %(k = ::kind; v = ::value) | .k($_:k) | .v($_:v) @|{.k; .v} count | %(вид = $.k; значение = $.v; n = $_)
/ru/row[::kind = "relative" && ::text == (/^[Чч]ерез /)] | %(dans = (^/fr/row[::chapter = $$__::chapter && ::kind = "relative" && ::value = $$__::value] @| count); en = (^/fr/row[::chapter = $$__::chapter && ::kind = "duration" && (_::value | substr(2..)) = ::value] @| count)) | %(французский = (:dans > 0) ? "dans" : ((:en > 0) ? "en" : "ни то ни другое")) | .k($_:французский) @|{.k} count | %(французский = $.k; оборотов = $_)
= "+P80D" | time_anchor(1872-10-02T20:45) | %(день = $_; неделя = ($_ | datetime | strftime("%A"; "ru")))
= "+P79D" | time_anchor(1872-10-02T20:45) | %(день = $_; неделя = ($_ | datetime | strftime("%A"; "ru")))
/section[37]/paragraph[:: *= "erreur de jour"] | :: | timex(fr) | %(:text; :kind; :value)
/section[37]/paragraph[:: *= "ошибиться"] | :: | modernize("ru-1918") | timex(ru) | %(:text; :kind; :value)
/* | %(edition = :name; chapters = (/section @| count); paragraphs = (//paragraph @| count))
/section[7]/paragraph[:: *= "Left London"] | :: | timex(en)
//paragraph | :: | timex(en) | :kind | .kind($_) @|{.kind} count | .n | %.
//paragraph | :: | timex(fr) | :kind | .kind($_) @|{.kind} count | .n | %.
/section[3]/paragraph[:: *= "From London to Suez"] | :: | timex(en) | %(:text; :value)
/section | .c(:index) | /paragraph | :: | timex(en) | [:kind = "date" && :text == (/day,? /)] | %(ch = $.c; :text; calendar = ($_ | time_anchor(1872) | datetime | strftime("%A")))
/section | .c(:index) | /paragraph | :: | timex(fr) | [:kind = "date" && :text == (/di /)] | %(ch = $.c; :text; calendar = ($_ | time_anchor(1872) | datetime | strftime("%A"; "fr")))
/section | .c(:index) | /paragraph | :: | timex(en) | %(chapter = $.c; :text; :kind; :value; when = ($_ | time_anchor(1872)))
/en/row[::kind = "date" && ::when == (/^1872-\d\d-\d\d$/)] | %(french = ((^/fr/row[::chapter = $$__::chapter && ::when = $$__::when] @| count) > 0)) | .k($_:french) @|{.k} count | %(french = $.k; dates = $_)
/en/row[::kind = "date" && ::when == (/^1872-\d\d-\d\d$/)] | [(^/fr/row[::chapter = $$__::chapter && ::when = $$__::when] @| count) = 0] | %(ch = ::chapter; ::text; ::when; french = (^/fr/row[::chapter = $$__::chapter && ::when == (/^1872-\d\d-\d\d$/)]::when @| unique @| join(" ")))
/fr/row[::kind = "date" && ::when == (/^1872-\d\d-\d\d$/)] | %(english = ((^/en/row[::chapter = $$__::chapter && ::when = $$__::when] @| count) > 0)) | .k($_:english) @|{.k} count | %(english = $.k; dates = $_)
/section | .c(:index) | /paragraph | :: | timex(en) | [:kind = "date"] @| timeline($_; 1872) | [:value == (/^XXXX-XX/)] | %(ch = $.c; :text; :when)
/section | .c(:index) | .a(/paragraph | :: | timex(en) | [:kind = "date" && :grain = "day" && !(:value == (/XX-\d\d$/)) && :value != "XXXX-12-21"] @| first | time_anchor(1872)) | /paragraph | :: | timex(en) | [:kind = "date"] @| timeline($_; $.a) | [:value == (/^XXXX-XX/)] | %(chapter = $.c; anchor = $.a; :text; :when)
/placed/row | %(ch = ::chapter; ::anchor; ::text; ::when; french = (^/fr/row[::chapter = $$__::chapter && ::kind = "date" && ::when = $$__::when]::text @| unique @| join(", ")))
/en/row[::kind = "time"] | %(french = ((^/fr/row[::chapter = $$__::chapter && ::kind = "time" && ::value = $$__::value] @| count) > 0)) | .k($_:french) @|{.k} count | %(french = $.k; times = $_)
/fr/row[::kind = "time"] | %(english = ((^/en/row[::chapter = $$__::chapter && ::kind = "time" && ::value = $$__::value] @| count) > 0)) | .k($_:english) @|{.k} count | %(english = $.k; times = $_)
/en/row[::kind = "time" && (::chapter = 33 || ::chapter = 34)] | [(^/fr/row[::chapter = $$__::chapter && ::kind = "time" && ::value = $$__::value] @| count) = 0] | %(ch = ::chapter; ::text; ::value)
/fr/row[::kind = "time" && (::chapter = 33 || ::chapter = 34)] | [(^/en/row[::chapter = $$__::chapter && ::kind = "time" && ::value = $$__::value] @| count) = 0] | %(ch = ::chapter; ::text; ::value)
/row[::value = "P8D" || ::value = "P1W" || ::value = "P15D" || ::value = "P2W"] | ::value | .value($_) @|{.value} count | .n | %.
/en/row[::kind = "duration" && ::text == (/^[Ii]n /)] | %(en = (^/fr/row[::chapter = $$__::chapter && ::kind = "duration" && ::value = $$__::value] @| count); dans = (^/fr/row[::chapter = $$__::chapter && ::kind = "relative" && (::value | substr(2..)) = $$__::value] @| count)) | %(french = (:dans > 0) ? "dans" : ((:en > 0) ? "en" : "neither")) | .k($_:french) @|{.k} count | %(french = $.k; phrases = $_)
= "+P80D" | time_anchor(1872-10-02T20:45) | %(day = $_; weekday = ($_ | datetime | strftime("%A")))
= "+P79D" | time_anchor(1872-10-02T20:45) | %(day = $_; weekday = ($_ | datetime | strftime("%A")))
/section[37]/paragraph[:: *= "error of a day"] | :: | timex(en) | %(:text; :kind; :value)
/section[37]/paragraph[:: *= "error of a day"] | ::
/sites/*/pages/wiki/*<dir> | %(work = :name; pages = (//page @| count))
/sites/*/pages/wiki/*<page>::title
/sites/*/pages/wiki/"Мёртвые_души_(Гоголь)"/*<dir> | %(tom = :name; chapters = (//page @| count))
//page | .depth(:depth) @|{.depth} count | %($.depth; pages = $_)
//page[::title = "Мёртвые души (Гоголь)/Том I/Глава I"]->link::title
//page[::title = "Мёртвые души (Гоголь)/Том I/Глава II"]<-link::title
//page @| top(4; ::in_degree) | %(::title; ::in_degree; ::out_degree)
//page[::title = "Автор:Николай Васильевич Гоголь"]->link::title
//page[::title = "Автор:Николай Васильевич Гоголь"] | %(::redlinks; ::out_degree)
//page<orphan>::title
//page @| top(3; ::mutual_degree) | %(::title; ::mutual_degree)
//page[::title = "Мёртвые души (Гоголь)/Том I/Глава I"](->link[::title == *"/Глава"*])+ @| count
//page[::title = "Мёртвые души (Гоголь)/Том I/Глава I"](->link[::title == *"/Глава"*])+!::title
//page[::title = "Мёртвые души (Гоголь)/Том I/Глава XI"]->link::title
//page[::title = "Мёртвые души (Гоголь)/Том I/Глава I"]/*[..4] | %(k = :name; t = substr(::; 1..44))
/sites/*/pages/wiki/*<dir> | %(work = :name; whole = (//page<целый>//paragraph:: | words | ... @| count); parts = (//page<!целый && !редакция-1835>[::title == *"/Глава"* || ::title == *"/Действие"*]//paragraph:: | words | ... @| count))
//page[::title == *"/Глава I"][::title == *"Бульба"*] | %(::title; words = (//paragraph:: | words | ... @| count); opening = (//paragraph[(:: | words | ... @| count) > 8][1]:: | substr(1..44)))
/sites/*/pages/wiki/*<dir> | %(work = :name; words = (//page<!целый>//paragraph:: | words | ... @| count))
//page[::title == *"/Глава I" || ::title == *"/Действие I"] | %(::title; opening = (//paragraph[(:: | words | ... @| count) > 12][1]:: | substr(1..50)))
/sites/*/pages/wiki/*<dir> | %(work = :name; w = (//page<!целый>//paragraph:: | words | ... @| count); d = (//page<!целый>//paragraph:: | words | ... | [$_ == (/^душ[аиуеоы]/i)] @| count)) | %(:work; per_10k = round(10000 * :d div :w; 1))
/sites/*/pages/wiki/*<dir> | %(novel = :name; chapters = (//page @| count))
/sites/*/pages/wiki/"Emma_(Austen)"/*<dir> | %(volume = :name; chapters = (//page @| count))
//page[::title = "Pride and Prejudice (1817)/Chapter 1"]->link::title
//page[::title = "Pride and Prejudice (1817)/Chapter 2"]<-link::title
//page[::title = "Author:Jane Austen"]->link::title
//page[::title = "Author:Jane Austen"] | %(::redlinks; ::out_degree)
//page<orphan> @| count
//page[::title = "Pride and Prejudice (1817)/Chapter 1"](->link[::title == *"/Chapter"*])+ @| count
//page[::title = "Pride and Prejudice (1817)/Chapter 1"](->link[::title == *"/Chapter"*])+!::title
//page[::title = "Pride and Prejudice (1817)/Chapter 1"]//paragraph[..8] | %(c = (:: | cc); t = substr(::; 1..48))
//paragraph<furniture> @| count
//paragraph<!furniture> @| count
/sites/*/pages/wiki/*<dir> | %(novel = :name; chapters = (//page @| count); words = (//paragraph<!furniture>:: | words | ... @| count))
//page[:depth >= 6] | %(::title; words = (//paragraph<!furniture>:: | words | ... @| count)) @| top(3; :words)
//page[:depth >= 6][::title == *"/Chapter 1" || ::title == *"/Chapter I"] | %(::title; opening = (//paragraph<!furniture>[(:: | words | ... @| count) > 12][1]:: | substr(1..60)))
/sites/*/pages/wiki/*<dir> | %(novel = :name; w = (//paragraph<!furniture>:: | words | ... @| count); m = (//paragraph<!furniture>:: | words | ... | [$_ == (/^marriage/i)] @| count)) | %(:novel; per_10k = round(10000 * :m div :w; 1))
/repo | %(commits = (/commits/* @| count); pages = (/HEAD/pages/* @| count); authors = (/commits/* | ::author @| unique @| count); first = (/commits/* | ::date @| min | isodate); last = (/commits/* | ::date @| max | isodate))
/repo/commits/* | %(::short; ::author; d = (::date | isodate); ::subject) @| [..3]
/repo/commits/* | %(a = ::author) | .a($_:a) @|{.a} count | %(who = $.a; commits = $_) @| top(5; :commits)
/repo/commits/* | %(y = (::date | year)) | .y($_:y) @|{.y} count | %(year = $.y; commits = $_) @| sort_by(:year)
/repo/commits/* | %(s = (::subject | s/^page \d+: //)) | .s($_:s) @|{.s} count | %(summary = $.s; n = $_) @| top(6; :n)
/log/* | %(l = ::level) | .l($_:l) @|{.l} count | %(level = $.l; revisions = $_) @| sort_by(:level)
/log/*[::level = 4] | %(u = ::user) | .u($_:u) @|{.u} count | %(who = $.u; validated = $_) @| top(4; :validated)
/log/*[::level = 3] | %(p = ::page) | .p($_:p) @|{.p} %(who = ($_ | ::user @| first)) | .who($_:who) @|{.who} count | %(who = $.who; pages = $_) @| top(4; :pages)
/log/*[::level = 4] | %(p = ::page) | .p($_:p) @|{.p} count @| count
/repo/commits/* | %(a = ::author; f = (::changed @| first)) | [:f] | .a($_:a) | .f($_:f) @|{.a; .f} %(a = $.a) | .a($_:a) @|{.a} count | %(who = $.a; pages = $_) @| top(4; :pages)
/repo/commits/* | [(::changed @| count) = 0] @| count
/repo/commits/*[/pages/27.txt<changed>] | %(::short; ::author; d = (::date | isodate); ::subject)
/log/*[::page = 27] | %(::revid; ::commit; ::user; ::level; ::size)
/repo/HEAD/pages/27.txt:: | lines | [$_ != ""] | .p($_) | %(l = substr($.p; 1..32); since = (^/repo/commits/*[/pages/27.txt<changed>] | [/pages/27.txt:: *= $.p] @| last | ::short)) @| [..5]
/log/*[::level > 0][::level < 3] | %(p = ::page) | .p($_:p) | .f@{.p}(("${$.p}.txt")) | .c(($_ | ::commit @| first)) | .set(^/repo/HEAD/pages/*[:name = $.f]:: | lower | s/[^\p{L}\p{N}’']/ /g | words) | ^/repo/commits/*[::short = $.c]/pages/*[:name = $.f]:: | lower | s/[^\p{L}\p{N}’']/ /g | words | [$_ != $.set] | .w($_) @|{.w} count | %(word = $.w; pages = $_) @| top(8; :pages)
/log/*[::level = 4] | %(p = ::page) | .p($_:p) | .f@{.p}(("${$.p}.txt")) | .b((^/log/*[::page = $.p][::level = 3] | ::commit @| last)) | [$.b] | %(page = $.p; changed = levenshtein((^/repo/commits/*[::short = $.b]/pages/*[:name = $.f]::); (^/repo/HEAD/pages/*[:name = $.f]::))) @| top(5; :changed)
/log/*[::level = 4] | %(p = ::page) | .p($_:p) | .f@{.p}(("${$.p}.txt")) | .b((^/log/*[::page = $.p][::level = 3] | ::commit @| last)) | [$.b] | %(page = $.p; changed = levenshtein((^/repo/commits/*[::short = $.b]/pages/*[:name = $.f]::); (^/repo/HEAD/pages/*[:name = $.f]::))) | [:changed = 0] @| count
/log/*[::page = 290][::level = 3] @| last | .b(::commit) | .set(^/repo/HEAD/pages/290.txt:: | lower | s/[^\p{L}\p{N}’']/ /g | words) | .set2(^/repo/commits/*[::short = $.b]/pages/290.txt:: | lower | s/[^\p{L}\p{N}’']/ /g | words) | %(before = (^/repo/commits/*[::short = $.b]/pages/290.txt:: | lower | s/[^\p{L}\p{N}’']/ /g | words | [$_ != $.set] @| unique @| join(" ")); after = (^/repo/HEAD/pages/290.txt:: | lower | s/[^\p{L}\p{N}’']/ /g | words | [$_ != $.set2] @| unique @| join(" ")))
/log/*[::level = 4] | %(p = ::page) | .p($_:p) @|{.p} %(days = (((($_ | ::timestamp @| min | datetime)) - (^/log/*[::page = $.p][::level > 0] | ::timestamp @| min | datetime)) | days)) | .k("all") @|{.k} %(pages = ($_ @| count); min = ($_ | :days @| min | round); median = ($_ | :days @| median | round); max = ($_ | :days @| max | round))
/log/*[::level = 4] | %(p = ::page) | .p($_:p) @|{.p} %(page = $.p; days = (((($_ | ::timestamp @| min | datetime)) - (^/log/*[::page = $.p][::level > 0] | ::timestamp @| min | datetime)) | days | round)) @| sort_by(:days) @| [..3]
/log/*[::level > 0] | %(p = ::page) | .p($_:p) @|{.p} %(y = ($_ | ::timestamp @| min | substr(..4))) | .y($_:y) @|{.y} count | %(year = $.y; pages = $_) @| sort_by(:year)
/log/*[::level = 4] | %(u = ::user) | .u($_:u) @|{.u} count | %(who = $.u; validated = $_) @| top(3; :validated)
//section[:depth = 2] | ::lemma | timex(ru) @| timeline($_) | %(:text; :when; :from)
//section[:depth = 2] | ::lemma | timex(ru) @| timeline($_; 1833-01-01) | %(:text; :when; :from)
//section[:depth = 2] | :: | timex(ru) | [:kind = "date" || :kind = "relative"] @| timeline($_; 1833-01-01) | %(:text; :kind; :when; :from)
= "30 декабря 1833 года. 2 января." | timex(ru) @| timeline($_) | %(:text; :when)
= "30 декабря 1833 года. 2 января." | timex(ru) @| timeline($_; forward) | %(:text; :when)
//section[:depth = 2] | ::lemma | timex(ru) @| timeline($_; 1833-01-01) | (:when | period(month)) | .month($_) @|{.month} count | %($.month; entries = $_)
//section[:depth = 2] | ::lemma | timex(en) @| timeline($_) | %(:text; :when; :from) @| [..5]
//section[:depth = 2] | ::lemma | timex(en) @| timeline($_) | %(:text; :when) @| [9..12]
//section[:depth = 2] | ::lemma | timex(en) @| timeline($_; forward) | %(:text; :when) @| [9..12]
//section[:depth = 2] | :: | timex(en) | [:kind != "vague"] @| timeline($_; forward) | %(:text; :kind; :when; :from) @| [8..12]
= "Two days later he sailed. The next day it rained." | timex(en) @| timeline($_; 1659-10-01) | %(:text; :when; :from)
//section[:depth = 2] | ::lemma | timex(en) @| timeline($_; forward) | (:when | period(month)) | .month($_) @|{.month} count | %($.month; entries = $_)
//section | .s(::lemma) | /paragraph | %(sec = $.s; n = (:: | words @| count))
//section | .s(::lemma) | /paragraph | [$.s = "Побег"] | :: | substr(1..40)
//section | .s(::lemma) | /paragraph | :: | words | .s($.s) @|{.s} count | %($.s; n = $_)
//section | %(::lemma; n = (/paragraph | :: | words @| count))
//section | .s(::lemma) | /paragraph | [$.s = "The law"] | :: | substr(1..40)
/f/hosts/* <=>? /m/*[::host = $$0::name] | %(::name; $$1::cpu)
/f/hosts/* <=>? /m/*[::host = $$0::name] | [!$$1] | %(::name; ::tier)
//*<function>[!<-definition]:name
/* | %(draft = :name; words = (:: | wc); paragraphs = (//paragraph @| count))
/old//paragraph <=> /new//paragraph[:: = $$0::] @| count
/old//paragraph <=>? /new//paragraph[:: = $$0::] | [!$$1] | :: | substr(1..50)
/new//paragraph <=>? /old//paragraph[:: = $$0::] | [!$$1] | :: | substr(1..50)
/old//paragraph <=> /new//paragraph[:: != $$0:: && substr(::; 1..30) = substr(_::; 1..30)] | %(before = (:: | wc); after = ($$1:: | wc); opens = substr(::; 1..30))
/old//section <=>? /new//section[::lemma = $$0::lemma] | %(section = ::lemma; before = (:: | wc); after = ($$1:: | wc))
/new//section <=>? /old//section[::lemma = $$0::lemma] | [!$$1] | ::lemma
/old//unordered-item <=>? /new//unordered-item[:: = $$0::] | [!$$1] | ::
/new//unordered-item <=>? /old//unordered-item[:: = $$0::] | [!$$1] | ::
/idx/* | .f(::find) | %(entry = ::entry; tales = (^/book//section[!/section] | [:: *= $.f] | ::lemma @| join(", "))) | [:tales != ""] @| sort_by(lower(:entry))
/idx/* | .f(::find) | %(entry = ::entry; n = (^/book//section[!/section] | [:: *= $.f] @| count)) | [:n = 0]
/idx/* | .f(::find) | %(entry = ::entry; principal = (^/book//section[!/section] | [(//paragraph | [:: *= $.f] @| count) >= 5] | ::lemma @| join(", "))) | [:principal != ""] @| sort_by(lower(:entry))
/idx/*[::entry = "гусары"] | .f(::find) | ^/book//section[!/section] | %(tale = ::lemma; paragraphs = (//paragraph | [:: *= $.f] @| count)) | [:paragraphs > 0]
/idx/* | .f(::find) | %(entry = ::entry; first = (^/book//section[!/section] | [:: *= $.f] | ::lemma @| first); tales = (^/book//section[!/section] | [:: *= $.f] @| count); mentions = (^/book//paragraph | [:: *= $.f] @| count)) @| top(4; :mentions)
/idx/* | .f(::find) | %(entry = ::entry; chapters = (^/book//section[!/section] | [:: *= $.f] | ::lemma | s/CHAPTER // @| join(", "))) | [:chapters != ""] @| sort_by(lower(:entry))
/idx/* | .f(::find) | %(entry = ::entry; principal = (^/book//section[!/section] | [(//paragraph | [:: *= $.f] @| count) >= 5] | ::lemma | s/CHAPTER // @| join(", "))) | [:principal != ""] @| sort_by(lower(:entry))
/idx/*[::entry = "cave"] | .f(::find) | ^/book//section[!/section] | %(chapter = ::lemma; paragraphs = (//paragraph | [:: *= $.f] @| count)) | [:paragraphs > 0]
/idx/* | .f(::find) | %(entry = ::entry; first = (^/book//section[!/section] | [:: *= $.f] | ::lemma @| first); chapters = (^/book//section[!/section] | [:: *= $.f] @| count); mentions = (^/book//paragraph | [:: *= $.f] @| count)) @| top(4; :mentions)
/лица/* | .a(::id) | .sa(::stem) | ^/лица/*[::id > $.a] | .b(::id) | .sb(::stem) | %(a = $.a; b = $.b; n = (^/книга//paragraph | [:: *= $.sa] | [:: *= $.sb] @| count)) | [:n > 0] @| count
/лица/* | .a(::id) | .sa(::stem) | ^/лица/*[::id > $.a] | .b(::id) | .sb(::stem) | %(a = $.a; b = $.b; n = (^/книга//paragraph | [:: *= $.sa] | [:: *= $.sb] @| count)) | [:n > 0] @| top(5; :n)
/лица/* | .a(::id) | .sa(::stem) | ^/лица/*[::id > $.a] | .b(::id) | .sb(::stem) | %(a = $.a; b = $.b; n = (^/книга//paragraph | [:: *= $.sa] | [:: *= $.sb] @| count)) | [:n > 0]
/рёбра/* @| count
/лица/* | %(::name; степень = (<--(::a) @| count) + (<--(::b) @| count); вес = ((<--(::a)::n @| sum) | default(0)) + ((<--(::b)::n @| sum) | default(0))) @| top(5; :степень)
/лица/* | %(::name; степень = (<--(::a) @| count) + (<--(::b) @| count)) | [:степень = 0] @| count
/лица/*[::id = "коробочка"]<--(::a)::b-->::name
/лица/*[::id = "коробочка"]<--(::b)::a-->::name
/лица/*[::id = "плюшкин"]<--(::b)::a--><--(::a)::b-->::name @| unique
/лица/*[::id = "ноздрёв"]<--(::a) | %(с = ::b-->::name; ::n) @| top(3; :n)
/лица/* | .a(::id) | .sa(::stem) | ^/лица/*[::id > $.a] | .b(::id) | .sb(::stem) | %(a = $.a; b = $.b; n = (^/книга//paragraph | [:: *= $.sa] | [:: *= $.sb] @| count); глава = (^/книга//section[::lemma *= "ГЛАВА"] | [(//paragraph | [:: *= $.sa] | [:: *= $.sb] @| count) > 0] | ::lemma @| first)) | [:n > 0] @| top(4; :n)
/лица/* | .a(::id) | .sa(::stem) | ^/лица/*[::id > $.a] | .b(::id) | .sb(::stem) | %(a = $.a; b = $.b; n = (^/книга//sentence | [:: *= $.sa] | [:: *= $.sb] @| count)) | [:n > 0] @| top(3; :n)
/рёбра/* | %(::a; ::b; ::n) @| top(3; :n)
/cast/* | .a(::mention) | ^/cast/*[::mention > $.a] | .b(::mention) | %(a = $.a; b = $.b; n = (^/book//paragraph | [:: *= $.a] | [:: *= $.b] @| count)) | [:n > 0] @| count
/cast/* | .a(::mention) | ^/cast/*[::mention > $.a] | .b(::mention) | %(a = $.a; b = $.b; n = (^/book//paragraph | [:: *= $.a] | [:: *= $.b] @| count)) | [:n > 0] @| top(5; :n)
/cast/* | .a(::mention) | ^/cast/*[::mention > $.a] | .b(::mention) | %(a = $.a; b = $.b; n = (^/book//paragraph | [:: *= $.a] | [:: *= $.b] @| count)) | [:n > 0]
/edges/* @| count
/cast/* | %(::name; degree = (<--(::a) @| count) + (<--(::b) @| count); strength = ((<--(::a)::n @| sum) | default(0)) + ((<--(::b)::n @| sum) | default(0))) @| top(5; :degree)
/cast/* | %(::name; degree = (<--(::a) @| count) + (<--(::b) @| count)) | [:degree = 0] @| count
/cast/*[::mention = "Becky"]<--(::a)::b-->::name
/cast/*[::mention = "Becky"]<--(::b)::a-->::name
/cast/*[::mention = "Becky"]<--(::b)::a--><--(::a)::b-->::name @| unique
/cast/*[::mention = "Huck"]<--(::a) | %(with = ::b-->::name; ::n) @| top(3; :n)
/cast/* | .a(::mention) | ^/cast/*[::mention > $.a] | .b(::mention) | %(a = $.a; b = $.b; n = (^/book//paragraph | [:: *= $.a] | [:: *= $.b] @| count); first = (^/book//section[::lemma *= "CHAPTER"] | [(//paragraph | [:: *= $.a] | [:: *= $.b] @| count) > 0] | ::lemma @| first)) | [:n > 0] @| top(4; :n)
/cast/* | .a(::mention) | ^/cast/*[::mention > $.a] | .b(::mention) | %(a = $.a; b = $.b; n = (^/book//sentence | [:: *= $.a] | [:: *= $.b] @| count)) | [:n > 0] @| top(3; :n)
/edges/* | %(::a; ::b; ::n) @| top(3; :n)
/employees/* | %(::name; ::title; ::manager_id)
/employees/*<-manager_id::name
/employees/* | %(::name; reports = (<-manager_id::name))
/employees/* | %(::name; n = (<-manager_id @| count))
/employees/*[<-manager_id] | %(::name; reports = (<-manager_id::name @| join(", ")))
/employees/*[::id > 5] | %(::name; chain = (->manager_id)+::name)
//milestone | %(::scheme; ::value) @| [..3]
//milestone @| count
//token[:: = "возлюбил"] | %(слово = ::; ::cite) @| [..5]
//token<word>[::cite = "jhn.11.35"]::
//sentence[::cite = "jhn.1.1"]::
//token<word>::cite | s/^jhn\.(\d+)(\..*)?$/$1/ | .глава($_) @|{.глава} count | %($.глава; слов = $_) @| top(3; :слов)
//token<word>[::lower *= "люб"]::cite | s/\.\d+$// | .глава($_) @|{.глава} count | %($.глава; n = $_) @| top(3; :n)
//token[::lower = "свет"] | %(::cite; до = (<<token[..3]:: @| join(" ")); слово = ::; после = (>>token[..3]:: @| join(" "))) @| [..3]
//token[::lemma = "отьць"] | %(форма = ::; ::cite) @| [..3]
//section | %(::lemma; ::cite)
//token[:: = "loved"] | %(w = ::; ::cite) @| [..5]
//token<word>::cite | s/^jhn\.(\d+)(\..*)?$/$1/ | .chapter($_) @|{.chapter} count | %($.chapter; words = $_) @| top(3; :words)
//token<word>[::lower = "love"]::cite | s/\.\d+$// | .chapter($_) @|{.chapter} count | %($.chapter; n = $_) @| top(3; :n)
//token[::lower = "light"] | %(::cite; before = (<<token[..3]:: @| join(" ")); w = ::; after = (>>token[..3]:: @| join(" "))) @| [..3]
//footnote<deixis> @| count
//footnote<deixis>[::cite = "jhn.3.16"]::
//token<word>[::cite = "jhn.3.16"] @| count
//token[::lemma = "Ἰώ"] | %(w = ::; ::cite)
//ordered-item @| count
//bib[::url] | %(n = ::onym; url = ::url; seen = ::urldate; medium = ::medium; year = ::year)
/employees/*[::id > 5](->manager_id)+::name
/employees/*[::manager_id] | .c((->manager_id)+::name) | %(::name; top = ($.c | last); up = ($.c | ... @| count))
/employees/*[::manager_id] | %(::name; chain = ((->manager_id)+::name @| join(" > ")))
/employees/*[::manager_id] | %(::name; depth = ((->manager_id)+ @| count)) @| top(3; :depth)
/employees/*[::manager_id](->manager_id)+ @| count
/employees/* | %(::name; reports = ((<-manager_id)+ @| count)) @| top(3; :reports)
/* | %(n = (//token<word> @| count); fx = (//token[::lower = "не"] @| count))
= mi(13; 424; 24; 18999) | round(2)
= 13 | mi(415; 24; 19068) | round(2)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "не"] @| count) | //token[::lower = "не"]>token<word>::lower | .y($_) @|{.y; .n; .fx} count | [$_ >= 4] | .fxy | .fy(^//token[::lower = $.y] @| count) | %(y = $.y; fxy = $.fxy; fy = $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2)); dice = (log_dice($.fxy; $.fx; $.fy) | round(2))) @| top(5; :t)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "не"] @| count) | //token[::lower = "не"]>token<word>::lower | .y($_) @|{.y; .n; .fx} count | [$_ >= 4] | .fxy | .fy(^//token[::lower = $.y] @| count) | %(y = $.y; fxy = $.fxy; fy = $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2))) @| top(5; :mi)
/* | //token[::lower = "не"]>token<word>::lower | .y($_) @|{.y} count | %(y = $.y; fxy = $_) @| top(5; :fxy)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "не"] @| count) | //token[::lower = "не"]<token<word>::lower | .y($_) @|{.y; .n; .fx} count | [$_ >= 4] | .fxy | .fy(^//token[::lower = $.y] @| count) | %(y = $.y; fxy = $.fxy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2))) @| top(3; :mi)
/* | %(n = (//token<word> @| count); said = (//token[::lower = "said"] @| count); tom = (//token[::lower = "tom"] @| count))
= mi(22; 355; 689; 71198) | round(2)
= 22 | mi(355; 689; 71198) | round(2)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "said"] @| count) | //token[::lower = "said"]>token<word>::lower | .y($_) @|{.y; .n; .fx} count | [$_ >= 5] | .fxy | .fy(^//token[::lower = $.y] @| count) | %(y = $.y; fxy = $.fxy; fy = $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2)); dice = (log_dice($.fxy; $.fx; $.fy) | round(2))) @| top(5; :t)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "said"] @| count) | //token[::lower = "said"]>token<word>::lower | .y($_) @|{.y; .n; .fx} count | [$_ >= 5] | .fxy | .fy(^//token[::lower = $.y] @| count) | %(y = $.y; fxy = $.fxy; fy = $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2)); dice = (log_dice($.fxy; $.fx; $.fy) | round(2))) @| top(5; :mi)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "said"] @| count) | //token[::lower = "said"]>token<word>::lower | .y($_) @|{.y; .n; .fx} count | [$_ >= 5] | .fxy | .fy(^//token[::lower = $.y] @| count) | %(y = $.y; fxy = $.fxy; fy = $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2)); dice = (log_dice($.fxy; $.fx; $.fy) | round(2))) @| top(5; :dice)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "tom"] @| count) | //token[::lower = "tom"]>token<word>::lower | .y($_) @|{.y; .n; .fx} count | [$_ >= 5] | .fxy | .fy(^//token[::lower = $.y] @| count) | %(y = $.y; fxy = $.fxy; fy = $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2)); dice = (log_dice($.fxy; $.fx; $.fy) | round(2))) @| top(5; :t)
= log_dice(25; 689; 32) | round(2)
//section[::lemma = "ВЫСТРЕЛ"]/paragraph[1]/sentence[1]/token | %(form = ::; ::class; n = :::n) @| [..6]
//section[::lemma = "ВЫСТРЕЛ"]/paragraph[3]/sentence[1]/token<word>[1] | %(word = ::; next = >token::; after = (>token){2}::)
//section[!/section]//token<word>[>token<word>] | "${::lower} ${>token::lower}" | .bigram($_) @|{.bigram} count | %($.bigram; n = $_) @| top(5; :n)
//section[::lemma = "СТАНЦИОННЫЙ СМОТРИТЕЛЬ"]//token<word>[>token<word>] | "${::lower} ${>token::lower}" | .bigram($_) @|{.bigram} count | %($.bigram; n = $_) @| top(3; :n)
//section[!/section]//token[::lower = "сильвио"]>token<word>::lower | .next($_) @|{.next} count | %($.next; n = $_) @| top(6; :n)
//section[!/section]//token[::lower = "сильвио"]<token<word>::lower | .before($_) @|{.before} count | %($.before; n = $_) @| top(6; :n)
//section[!/section]//token<word>[>token<word>][(>token){2}[::class = "word"]] | "${::lower} ${>token::lower} ${(>token){2}::lower}" | .trigram($_) @|{.trigram} count | %($.trigram; n = $_) @| top(5; :n)
//section[!/section]//token[::lower = "сильвио"] | \\?sentence/token<word> | ::lower | [cc($_) > 3] | [$_ != "сильвио"] | .w($_) @|{.w} count | %($.w; n = $_) @| top(6; :n)
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | ngrams(2) | .bigram($_) @|{.bigram} count | %($.bigram; n = $_) @| top(5; :n)
//section[::lemma = "CHAPTER I"]/paragraph[9]/sentence[1]/token | %(form = ::; ::class; n = :::n) @| [..6]
//section[::lemma = "CHAPTER I"]/paragraph[9]/sentence[1]/token<word>[1] | %(word = ::; next = >token::; after = (>token){2}::)
//section[::lemma *= "CHAPTER"]//token<word>[>token<word>] | "${::lower} ${>token::lower}" | .bigram($_) @|{.bigram} count | %($.bigram; n = $_) @| top(5; :n)
//section[::lemma = "CHAPTER I"]//token<word>[>token<word>] | "${::lower} ${>token::lower}" | .bigram($_) @|{.bigram} count | %($.bigram; n = $_) @| top(3; :n)
//section[::lemma *= "CHAPTER"]//token[::lower = "tom"]>token<word>::lower | .next($_) @|{.next} count | %($.next; n = $_) @| top(6; :n)
//section[::lemma *= "CHAPTER"]//token[::lower = "tom"]<token<word>::lower | .before($_) @|{.before} count | %($.before; n = $_) @| top(6; :n)
//section[::lemma *= "CHAPTER"]//token<word>[>token<word>][(>token){2}[::class = "word"]] | "${::lower} ${>token::lower} ${(>token){2}::lower}" | .trigram($_) @|{.trigram} count | %($.trigram; n = $_) @| top(5; :n)
//section[::lemma *= "CHAPTER"]//token[::lower = "huck"] | \\?sentence/token<word> | ::lower | [!($_ = "the" || $_ = "and" || $_ = "a" || $_ = "to" || $_ = "of" || $_ = "he" || $_ = "was" || $_ = "it" || $_ = "in" || $_ = "that" || $_ = "his" || $_ = "i" || $_ = "you" || $_ = "had" || $_ = "with" || $_ = "huck" || $_ = "huckleberry" || $_ = "huck’s")] | .w($_) @|{.w} count | %($.w; n = $_) @| top(6; :n)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | ngrams(2) | .bigram($_) @|{.bigram} count | %($.bigram; n = $_) @| top(5; :n)
/crew/0 | %(prop = ::name; core = :name)
//article::id
//p[1] | %(text = ::; classes = :::classes)
//merge | %(:name; construct = :::construct; kind = :::kind; line = :::start-line)
//merge[::construct = "function"]:name
//*<heading>:name
/crew/0 | json
/* | %(folder = :name; files = (//*<file> @| count); size = (//*<file> | ::size @| sum))
/new//*<file> <=>? /old//*<file>[:name = $$0:name] | [!$$1] | :name
/new//*<file> | .d(\:name) | . <=>? /old//*<file>[:name = $$0:name][\:name = $.d] | [!$$1] | %(in = $.d; :name)
/old//*<file> | .d(\:name) | . <=>? /new//*<file>[:name = $$0:name][\:name = $.d] | [!$$1] | %(in = $.d; :name)
/new//*<file> | .d(\:name) | . <=> /old//*<file>[:name = $$0:name][\:name = $.d][::size != $$0::size] | %(in = $.d; :name; new = ::size; old = $$1::size)
/new//*<file> | .d(\:name) | . <=> /old//*<file>[:name = $$0:name][\:name = $.d][::modified < $$0::modified] | %(:name; new = ::modified; old = $$1::modified)
/new//*<file> | .d(\:name) | . <=> /old//*<file>[:name = $$0:name][\:name = $.d][::size = $$0::size][::modified = $$0::modified][(:: | sha256) != (_:: | sha256)] | %(in = $.d; :name; ::size)
/new//*<file> | .d(\:name) | . <=> /old//*<file>[:name = $$0:name][\:name = $.d][(:: | sha256) = (_:: | sha256)] @| count
/* | %(who = :name; chapters = (//section[!/section] @| count); paras = (//paragraph @| count); sents = (//sentence @| count); words = (//token<word> @| count))
/* | %(who = :name; mean = ((//sentence | (/token<word> @| count) @| mean) | round(1)); median = (//sentence | (/token<word> @| count) @| median); sd = ((//sentence | (/token<word> @| count) @| std) | round(1)); p90 = (//sentence | (/token<word> @| count) @| percentile(90) | round(1)); max = (//sentence | (/token<word> @| count) @| max))
/* | %(who = :name; longest = (//sentence | %(n = (/token<word> @| count); text = substr(::; 1..60)) @| top(1; :n)))
/* | .types(//token<word>::lower @| unique @| count) | %(who = :name; wlen = ((//token<word>:: | cc @| mean) | round(2)); types = $.types; ttr = ($.types div (//token<word> @| count) | round(3)); hapax = ((//token<word>::lower | .w($_) @|{.w} count | [$_ = 1] @| count) div $.types | round(2)))
/* | .who(:name) | //token<word> | .w(::lower) @|{.who; .w} count | %(who = $.who; w = $.w; n = $_) @| top(6; :n)
/* | .who(:name) | //token<word> | .w(::lower) @|{.who; .w} count | %(who = $.who; w = $.w; n = $_) | [:who = "толстой"] @| top(5; :n)
/* | .n(//token<word> @| count) | %(who = :name; i = ((//token[::lower = "и"] @| count) * 1000 div $.n | round(1)); v = ((//token[::lower = "в"] @| count) * 1000 div $.n | round(1)); ne = ((//token[::lower = "не"] @| count) * 1000 div $.n | round(1)); ya = ((//token[::lower = "я"] @| count) * 1000 div $.n | round(1)); on = ((//token[::lower = "он"] @| count) * 1000 div $.n | round(1)); ona = ((//token[::lower = "она"] @| count) * 1000 div $.n | round(1)); ochen = ((//token[::lower = "очень"] @| count) * 1000 div $.n | round(1)))
/* | .who(:name) | .tot(//token<word> @| count) | //token<word>::lower | .w($_) @|{.who; .tot; .w} count | %(who = $.who; w = $.w; f = ($_ * 1000 div $.tot); n = $_) | .w($_:w) @|{.w} [($_ @| count) = 4] @| top(100; ($_ | :n @| sum)) @| ungroup | .r | :f @| zscore($.r:w) | %(who = $.r:who; w = $.r:w; z = ($_ | round(2))) @| [..8]
/* | .who(:name) | .tot(//token<word> @| count) | //token<word>::lower | .w($_) @|{.who; .tot; .w} count | %(who = $.who; w = $.w; f = ($_ * 1000 div $.tot); n = $_) | .w($_:w) @|{.w} [($_ @| count) = 4] @| top(100; ($_ | :n @| sum)) @| ungroup | .r | :f @| zscore($.r:w) | %(w = $.r:w; d = ($.r:who = "пушкин" ? $_ : null); t = ($.r:who = "толстой" ? $_ : null); l = ($.r:who = "лермонтов" ? $_ : null); u = ($.r:who = "гончаров" ? $_ : null)) | .w($_:w) @|{.w} %(dt = abs(($_ | :d @| max) - ($_ | :t @| max)); dl = abs(($_ | :d @| max) - ($_ | :l @| max)); du = abs(($_ | :d @| max) - ($_ | :u @| max)); tl = abs(($_ | :t @| max) - ($_ | :l @| max)); tu = abs(($_ | :t @| max) - ($_ | :u @| max)); lu = abs(($_ | :l @| max) - ($_ | :u @| max))) | .all(1) @|{.all} %(пушкин_толстой = (($_ | :dt @| mean) | round(2)); пушкин_лермонтов = (($_ | :dl @| mean) | round(2)); пушкин_гончаров = (($_ | :du @| mean) | round(2)); толстой_лермонтов = (($_ | :tl @| mean) | round(2)); толстой_гончаров = (($_ | :tu @| mean) | round(2)); лермонтов_гончаров = (($_ | :lu @| mean) | round(2)))
/* | .who(:name) | .tot(//token<word> @| count) | //token<word>::lower | .w($_) @|{.who; .tot; .w} count | %(who = $.who; w = $.w; f = ($_ * 1000 div $.tot); n = $_) | .w($_:w) @|{.w} [($_ @| count) = 4] @| top(100; ($_ | :n @| sum)) @| ungroup | .r | :f @| zscore($.r:w) | %(w = $.r:w; d = ($.r:who = "пушкин" ? $_ : null); t = ($.r:who = "толстой" ? $_ : null); l = ($.r:who = "лермонтов" ? $_ : null); u = ($.r:who = "гончаров" ? $_ : null)) | .w($_:w) @|{.w} %(d = ($_ | :d @| max); t = ($_ | :t @| max); l = ($_ | :l @| max); u = ($_ | :u @| max)) | .all(1) @|{.all} %(пушкин_толстой = (($_ @| delta(:d; :t)) | round(2)); пушкин_лермонтов = (($_ @| delta(:d; :l)) | round(2)); пушкин_гончаров = (($_ @| delta(:d; :u)) | round(2)); толстой_лермонтов = (($_ @| delta(:t; :l)) | round(2)); толстой_гончаров = (($_ @| delta(:t; :u)) | round(2)); лермонтов_гончаров = (($_ @| delta(:l; :u)) | round(2)))
/* | .who(:name) | .tot(//token<word> @| count) | //token<word>::lower | .w($_) @|{.who; .tot; .w} count | %(who = $.who; w = $.w; f = ($_ * 1000 div $.tot); n = $_) | .w($_:w) @|{.w} [($_ @| count) = 4] @| top(100; ($_ | :n @| sum)) @| ungroup | %(w = $_:w; d = ($_:who = "пушкин" ? $_:f : null); t = ($_:who = "толстой" ? $_:f : null); l = ($_:who = "лермонтов" ? $_:f : null); u = ($_:who = "гончаров" ? $_:f : null)) | .w($_:w) @|{.w} %(d = ($_ | :d @| max); t = ($_ | :t @| max); l = ($_ | :l @| max); u = ($_ | :u @| max)) | .all(1) @|{.all} %(пушкин_толстой = (($_ @| cosine(:d; :t)) | round(4)); пушкин_лермонтов = (($_ @| cosine(:d; :l)) | round(4)); пушкин_гончаров = (($_ @| cosine(:d; :u)) | round(4)); толстой_лермонтов = (($_ @| cosine(:t; :l)) | round(4)); толстой_гончаров = (($_ @| cosine(:t; :u)) | round(4)); лермонтов_гончаров = (($_ @| cosine(:l; :u)) | round(4)))
/* | .who(:name) | .all(^//token<word> @| count) | .tot(//token<word> @| count) | //token<word>::lower | .w($_) @|{.who; .tot; .all; .w} count | %(w = $.w; a = ($.who = "пушкин" ? $_ : 0); na = ($.who = "пушкин" ? $.tot : 0); b = ($.who != "пушкин" ? $_ : 0); nb = $.all) | .w($_:w) @|{.w} %(w = $.w; a = ($_ | :a @| sum); na = ($_ | :na @| max); b = ($_ | :b @| sum); nb = (($_ | :nb @| max) - ($_ | :na @| max))) | %(w = :w; a = :a; b = :b; g = (loglik(:a; :na; :b; :nb) | round(1))) @| top(6; :g)
/* | .who(:name) | .all(^//token<word>[:: = ::lower] @| count) | .tot(//token<word>[:: = ::lower] @| count) | //token<word>[:: = ::lower]::lower | .w($_) @|{.who; .tot; .all; .w} count | %(w = $.w; a = ($.who = "пушкин" ? $_ : 0); na = ($.who = "пушкин" ? $.tot : 0); b = ($.who != "пушкин" ? $_ : 0); nb = $.all) | .w($_:w) @|{.w} %(w = $.w; a = ($_ | :a @| sum); na = ($_ | :na @| max); b = ($_ | :b @| sum); nb = (($_ | :nb @| max) - ($_ | :na @| max))) | %(w = :w; a = :a; b = :b; g = (loglik(:a; :na; :b; :nb) | round(1))) @| top(6; :g)
/* | .who(:name) | .all(^//token<word>[:: = ::lower] @| count) | .tot(//token<word>[:: = ::lower] @| count) | //token<word>[:: = ::lower]::lower | .w($_) @|{.who; .tot; .all; .w} count | %(w = $.w; a = ($.who = "толстой" ? $_ : 0); na = ($.who = "толстой" ? $.tot : 0); b = ($.who != "толстой" ? $_ : 0); nb = $.all) | .w($_:w) @|{.w} %(w = $.w; a = ($_ | :a @| sum); na = ($_ | :na @| max); b = ($_ | :b @| sum); nb = (($_ | :nb @| max) - ($_ | :na @| max))) | %(w = :w; a = :a; b = :b; g = (loglik(:a; :na; :b; :nb) | round(1))) @| top(6; :g)
/* | .who(:name) | .all(^//token<word>[:: = ::lower] @| count) | .tot(//token<word>[:: = ::lower] @| count) | //token<word>[:: = ::lower]::lower | .w($_) @|{.who; .tot; .all; .w} count | %(w = $.w; a = ($.who = "лермонтов" ? $_ : 0); na = ($.who = "лермонтов" ? $.tot : 0); b = ($.who != "лермонтов" ? $_ : 0); nb = $.all) | .w($_:w) @|{.w} %(w = $.w; a = ($_ | :a @| sum); na = ($_ | :na @| max); b = ($_ | :b @| sum); nb = (($_ | :nb @| max) - ($_ | :na @| max))) | %(w = :w; a = :a; b = :b; g = (loglik(:a; :na; :b; :nb) | round(1))) @| top(6; :g)
/* | .who(:name) | .all(^//token<word>[:: = ::lower] @| count) | .tot(//token<word>[:: = ::lower] @| count) | //token<word>[:: = ::lower]::lower | .w($_) @|{.who; .tot; .all; .w} count | %(w = $.w; a = ($.who = "гончаров" ? $_ : 0); na = ($.who = "гончаров" ? $.tot : 0); b = ($.who != "гончаров" ? $_ : 0); nb = $.all) | .w($_:w) @|{.w} %(w = $.w; a = ($_ | :a @| sum); na = ($_ | :na @| max); b = ($_ | :b @| sum); nb = (($_ | :nb @| max) - ($_ | :na @| max))) | %(w = :w; a = :a; b = :b; g = (loglik(:a; :na; :b; :nb) | round(1))) @| top(6; :g)
/* | .who(:name) | .h(//token<word>::lower | .w($_) @|{.w} count @| entropy) | .k(//token<word>::lower | .w($_) @|{.w} count @| yule_k) | .m(//token<word>::lower @| mtld) | %(who = $.who; entropy = ($.h | round(2)); yule_k = ($.k | round(1)); mtld = ($.m | round(1)))
/* | .n(//token @| count) | %(who = :name; semi = ((//token[:: = ";"] @| count) * 1000 div $.n | round(1)); colon = ((//token[:: = ":"] @| count) * 1000 div $.n | round(1)); dash = ((//token[:: = "—"] @| count) * 1000 div $.n | round(1)); bang = ((//token[:: = "!"] @| count) * 1000 div $.n | round(1)); q = ((//token[:: = "?"] @| count) * 1000 div $.n | round(1)); quotes = ((//token<quote> @| count) * 1000 div $.n | round(1)); dots = ((//token[:: = "…"] @| count) * 1000 div $.n | round(1)))
/* | .n(//token<word> @| count) | %(who = :name; hyphen = ((//token[:: = "-"] @| count) * 1000 div $.n | round(1)); slovoers = ((//token[:: = "с"][<token[:: = "-"]] @| count) * 1000 div $.n | round(2)); to = ((//token[:: = "то"][<token[:: = "-"]] @| count) * 1000 div $.n | round(1)))
/* | .who(:name) | //token<word>[<token[:: = "-"]] | .w(::lower) @|{.who; .w} count | %(who = $.who; w = $.w; n = $_) | [:who = "пушкин"] @| top(5; :n)
//section[!/section] | %(chapter = ::lemma; words = (//token<word> @| count); mean = ((//sentence | (/token<word> @| count) @| mean) | round(1))) @| top(3; :mean)
/* | %(who = :name; speeches = (//dialogue-line @| count); spoken = ((//dialogue-line//token<word> @| count) div (//token<word> @| count) | round(2)); speech = ((//dialogue-line//sentence | (/token<word> @| count) @| mean) | round(1)); narration = ((//paragraph//sentence | (/token<word> @| count) @| mean) | round(1)))
/* | %(who = :name; unknown = ((//dialogue-line[::prosopon = "неизвестно"] @| count) div (//dialogue-line @| count) | round(2)))
/лица/* | .id(::id) | %(::name; speeches = (^/книга//dialogue-line[::prosopon = $.id] @| count); words = (^/книга//dialogue-line[::prosopon = $.id]//token<word> @| count)) @| top(5; :words)
/лица/* | .id(::id) | %(::name; speeches = (^/книга//dialogue-line[::prosopon = $.id] @| count); words = (^/книга//dialogue-line[::prosopon = $.id]//token<word> @| count)) @| top(3; :words)
/лица/* | .id(::id) | %(::name; named = (^/книга//annotation<persname>[::prosopon = $.id] @| count); speeches = (^/книга//dialogue-line[::prosopon = $.id] @| count)) @| top(5; :named)
/лица/* | .id(::id) | %(::name; words = (^/книга//dialogue-line[::prosopon = $.id]//token<word> @| count); sentence = ((^/книга//dialogue-line[::prosopon = $.id]//sentence | (/token<word> @| count) @| mean) | round(1))) @| top(3; :words)
/* | %(who = :name; chapters = (//section[::lemma == (/^chapter/i)] @| count); paras = (//paragraph @| count); sents = (//sentence @| count); words = (//token<word> @| count))
/* | .who(:name) | //token<word> | .w(::lower) @|{.who; .w} count | %(who = $.who; w = $.w; n = $_) | [:who = "austen"] @| top(5; :n)
/* | .n(//token<word> @| count) | %(who = :name; the = ((//token[::lower = "the"] @| count) * 1000 div $.n | round(1)); and = ((//token[::lower = "and"] @| count) * 1000 div $.n | round(1)); of = ((//token[::lower = "of"] @| count) * 1000 div $.n | round(1)); i = ((//token[::lower = "i"] @| count) * 1000 div $.n | round(1)); he = ((//token[::lower = "he"] @| count) * 1000 div $.n | round(1)); she = ((//token[::lower = "she"] @| count) * 1000 div $.n | round(1)); very = ((//token[::lower = "very"] @| count) * 1000 div $.n | round(1)))
/* | .who(:name) | .tot(//token<word> @| count) | //token<word>::lower | .w($_) @|{.who; .tot; .w} count | %(who = $.who; w = $.w; f = ($_ * 1000 div $.tot); n = $_) | .w($_:w) @|{.w} [($_ @| count) = 4] @| top(100; ($_ | :n @| sum)) @| ungroup | .r | :f @| zscore($.r:w) | %(w = $.r:w; t = ($.r:who = "twain" ? $_ : null); c = ($.r:who = "conrad" ? $_ : null); l = ($.r:who = "london" ? $_ : null); a = ($.r:who = "austen" ? $_ : null)) | .w($_:w) @|{.w} %(tc = abs(($_ | :t @| max) - ($_ | :c @| max)); tl = abs(($_ | :t @| max) - ($_ | :l @| max)); ta = abs(($_ | :t @| max) - ($_ | :a @| max)); cl = abs(($_ | :c @| max) - ($_ | :l @| max)); ca = abs(($_ | :c @| max) - ($_ | :a @| max)); la = abs(($_ | :l @| max) - ($_ | :a @| max))) | .all(1) @|{.all} %(twain_conrad = (($_ | :tc @| mean) | round(2)); twain_london = (($_ | :tl @| mean) | round(2)); twain_austen = (($_ | :ta @| mean) | round(2)); conrad_london = (($_ | :cl @| mean) | round(2)); conrad_austen = (($_ | :ca @| mean) | round(2)); london_austen = (($_ | :la @| mean) | round(2)))
/* | .who(:name) | .tot(//token<word> @| count) | //token<word>::lower | .w($_) @|{.who; .tot; .w} count | %(who = $.who; w = $.w; f = ($_ * 1000 div $.tot); n = $_) | .w($_:w) @|{.w} [($_ @| count) = 4] @| top(100; ($_ | :n @| sum)) @| ungroup | .r | :f @| zscore($.r:w) | %(w = $.r:w; t = ($.r:who = "twain" ? $_ : null); c = ($.r:who = "conrad" ? $_ : null); l = ($.r:who = "london" ? $_ : null); a = ($.r:who = "austen" ? $_ : null)) | .w($_:w) @|{.w} %(t = ($_ | :t @| max); c = ($_ | :c @| max); l = ($_ | :l @| max); a = ($_ | :a @| max)) | .all(1) @|{.all} %(twain_conrad = (($_ @| delta(:t; :c)) | round(2)); twain_london = (($_ @| delta(:t; :l)) | round(2)); twain_austen = (($_ @| delta(:t; :a)) | round(2)); conrad_london = (($_ @| delta(:c; :l)) | round(2)); conrad_austen = (($_ @| delta(:c; :a)) | round(2)); london_austen = (($_ @| delta(:l; :a)) | round(2)))
/* | .who(:name) | .tot(//token<word> @| count) | //token<word>::lower | .w($_) @|{.who; .tot; .w} count | %(who = $.who; w = $.w; f = ($_ * 1000 div $.tot); n = $_) | .w($_:w) @|{.w} [($_ @| count) = 4] @| top(100; ($_ | :n @| sum)) @| ungroup | %(w = $_:w; t = ($_:who = "twain" ? $_:f : null); c = ($_:who = "conrad" ? $_:f : null); l = ($_:who = "london" ? $_:f : null); a = ($_:who = "austen" ? $_:f : null)) | .w($_:w) @|{.w} %(t = ($_ | :t @| max); c = ($_ | :c @| max); l = ($_ | :l @| max); a = ($_ | :a @| max)) | .all(1) @|{.all} %(twain_conrad = (($_ @| cosine(:t; :c)) | round(4)); twain_london = (($_ @| cosine(:t; :l)) | round(4)); twain_austen = (($_ @| cosine(:t; :a)) | round(4)); conrad_london = (($_ @| cosine(:c; :l)) | round(4)); conrad_austen = (($_ @| cosine(:c; :a)) | round(4)); london_austen = (($_ @| cosine(:l; :a)) | round(4)))
/* | .who(:name) | .all(^//token<word> @| count) | .tot(//token<word> @| count) | //token<word>::lower | .w($_) @|{.who; .tot; .all; .w} count | %(w = $.w; a = ($.who = "austen" ? $_ : 0); na = ($.who = "austen" ? $.tot : 0); b = ($.who != "austen" ? $_ : 0); nb = $.all) | .w($_:w) @|{.w} %(w = $.w; a = ($_ | :a @| sum); na = ($_ | :na @| max); b = ($_ | :b @| sum); nb = (($_ | :nb @| max) - ($_ | :na @| max))) | %(w = :w; a = :a; b = :b; g = (loglik(:a; :na; :b; :nb) | round(1))) @| top(6; :g)
/* | .who(:name) | .all(^//token<word>[:: = ::lower] @| count) | .tot(//token<word>[:: = ::lower] @| count) | //token<word>[:: = ::lower]::lower | .w($_) @|{.who; .tot; .all; .w} count | %(w = $.w; a = ($.who = "austen" ? $_ : 0); na = ($.who = "austen" ? $.tot : 0); b = ($.who != "austen" ? $_ : 0); nb = $.all) | .w($_:w) @|{.w} %(w = $.w; a = ($_ | :a @| sum); na = ($_ | :na @| max); b = ($_ | :b @| sum); nb = (($_ | :nb @| max) - ($_ | :na @| max))) | %(w = :w; a = :a; b = :b; g = (loglik(:a; :na; :b; :nb) | round(1))) @| top(6; :g)
/* | .who(:name) | .all(^//token<word>[:: = ::lower] @| count) | .tot(//token<word>[:: = ::lower] @| count) | //token<word>[:: = ::lower]::lower | .w($_) @|{.who; .tot; .all; .w} count | %(w = $.w; a = ($.who = "twain" ? $_ : 0); na = ($.who = "twain" ? $.tot : 0); b = ($.who != "twain" ? $_ : 0); nb = $.all) | .w($_:w) @|{.w} %(w = $.w; a = ($_ | :a @| sum); na = ($_ | :na @| max); b = ($_ | :b @| sum); nb = (($_ | :nb @| max) - ($_ | :na @| max))) | %(w = :w; a = :a; b = :b; g = (loglik(:a; :na; :b; :nb) | round(1))) @| top(6; :g)
/* | .who(:name) | .all(^//token<word>[:: = ::lower] @| count) | .tot(//token<word>[:: = ::lower] @| count) | //token<word>[:: = ::lower]::lower | .w($_) @|{.who; .tot; .all; .w} count | %(w = $.w; a = ($.who = "conrad" ? $_ : 0); na = ($.who = "conrad" ? $.tot : 0); b = ($.who != "conrad" ? $_ : 0); nb = $.all) | .w($_:w) @|{.w} %(w = $.w; a = ($_ | :a @| sum); na = ($_ | :na @| max); b = ($_ | :b @| sum); nb = (($_ | :nb @| max) - ($_ | :na @| max))) | %(w = :w; a = :a; b = :b; g = (loglik(:a; :na; :b; :nb) | round(1))) @| top(6; :g)
/* | .who(:name) | .all(^//token<word>[:: = ::lower] @| count) | .tot(//token<word>[:: = ::lower] @| count) | //token<word>[:: = ::lower]::lower | .w($_) @|{.who; .tot; .all; .w} count | %(w = $.w; a = ($.who = "london" ? $_ : 0); na = ($.who = "london" ? $.tot : 0); b = ($.who != "london" ? $_ : 0); nb = $.all) | .w($_:w) @|{.w} %(w = $.w; a = ($_ | :a @| sum); na = ($_ | :na @| max); b = ($_ | :b @| sum); nb = (($_ | :nb @| max) - ($_ | :na @| max))) | %(w = :w; a = :a; b = :b; g = (loglik(:a; :na; :b; :nb) | round(1))) @| top(6; :g)
/* | .n(//token @| count) | %(who = :name; semi = ((//token[:: = ";"] @| count) * 1000 div $.n | round(1)); colon = ((//token[:: = ":"] @| count) * 1000 div $.n | round(1)); dash = ((//token[:: = "—"] @| count) * 1000 div $.n | round(1)); bang = ((//token[:: = "!"] @| count) * 1000 div $.n | round(1)); q = ((//token[:: = "?"] @| count) * 1000 div $.n | round(1)); quotes = ((//token<quote> @| count) * 1000 div $.n | round(1)))
/* | .n(//token<word> @| count) | %(who = :name; contractions = ((//token<word>[:: *= "’"][!(:: == *"’s")] @| count) * 1000 div $.n | round(1)))
/* | .who(:name) | //token<word>[:: *= "’"][!(:: == *"’s")] | .w(::lower) @|{.who; .w} count | %(who = $.who; w = $.w; n = $_) | [:who = "austen"] @| top(4; :n)
//section[::lemma == (/^chapter/i)] | %(chapter = ::lemma; words = (//token<word> @| count); mean = ((//sentence | (/token<word> @| count) @| mean) | round(1))) @| top(3; :mean)
/* | %(who = :name; unknown = ((//dialogue-line[::prosopon = "unknown"] @| count) div (//dialogue-line @| count) | round(2)))
/cast/* | .id(::id) | %(::name; speeches = (^/book//dialogue-line[::prosopon = $.id] @| count); words = (^/book//dialogue-line[::prosopon = $.id]//token<word> @| count)) @| top(5; :words)
/cast/* | .id(::id) | %(::name; speeches = (^/book//dialogue-line[::prosopon = $.id] @| count); words = (^/book//dialogue-line[::prosopon = $.id]//token<word> @| count)) @| top(3; :words)
/cast/* | .id(::id) | %(::name; named = (^/book//annotation<persname>[::prosopon = $.id] @| count); speeches = (^/book//dialogue-line[::prosopon = $.id] @| count)) @| top(5; :named)
/cast/* | .id(::id) | %(::name; words = (^/book//dialogue-line[::prosopon = $.id]//token<word> @| count); sentence = ((^/book//dialogue-line[::prosopon = $.id]//sentence | (/token<word> @| count) @| mean) | round(1))) @| top(3; :words)
//читатель | %(читатель = ::; выдач = (<--(::читатель) @| count))
//читатель[:: = "Маша"]<--(::читатель)::книга-->::название
//книга | %(::название; выдач = (<--(::книга) @| count)) @| top(3; :выдач)
//жанр | %(жанр = ::; выдач = (<-книга<--(::книга) @| count))
//полка | %(полка = ::; книг = (<-книга @| count))
/* | :name
//reader | %(reader = ::; loans = (<--(::reader) @| count))
//reader[:: = "Polly"]<--(::reader)::book-->::title
//book | %(::title; loans = (<--(::book) @| count)) @| top(3; :loans)
//genre | %(genre = ::; loans = (<-book<--(::book) @| count))
//shelf | %(shelf = ::; books = (<-book @| count))
//paragraph[:: *= "гусар"] @| count
//paragraph | :: | sentences | [$_ *= "гусар"] @| count
//paragraph | :: | sentences | [$_ == (/гусар/i)] @| count
//paragraph | :: | sentences | [$_ == (/(.{0,30})гусар(.{0,30})/)] | %(left = $1; right = $2) @| [..5]
//paragraph | :: | sentences | [$_ == (/(гусар\w*)/)] | $1 | .f($_) @|{.f} %(f = $.f; n = ($_ @| count)) @| top(8; :n)
//paragraph | :: | sentences | [$_ == (/\bгусар\b/)] @| count
//paragraph[:: *= "гусар"] | %(at = :index; text = substr(::; 1..50)) @| first
//paragraph[:: == (/^[А-ЯЁ][А-ЯЁ -]+$/)] @| count
//paragraph[:: *= "гусар"] | .i(:index) | %(tale = (^//paragraph[:: == (/^[А-ЯЁ][А-ЯЁ -]+$/)] | [:index < $.i] | :: @| last); text = substr(::; 1..50)) @| first
//paragraph[:: *= "гусар"] | %(tale = \\?section::lemma; text = substr(::; 1..50)) @| first
//section[:: *= "гусар"][!/section] | %(tale = ::lemma; n = (//paragraph[:: *= "гусар"] @| count)) @| top(3; :n)
//section[::lemma = "СТАНЦИОННЫЙ СМОТРИТЕЛЬ"]//paragraph | :: | sentences | [$_ *= "гусар"] | substr(1..60) @| [..4]
//paragraph[:: *= "whitewash"] @| count
//paragraph | :: | sentences | [$_ *= "whitewash"] @| count
//paragraph | :: | sentences | [$_ == (/(.{0,30})whitewash(.{0,30})/)] | %(left = $1; right = $2) @| [..5]
//paragraph[:: *= "Injun Joe"] | %(at = :index; text = substr(::; 1..50)) @| first
//paragraph[:: == (/^CHAPTER [IVXL]+$/)] @| count
//paragraph[:: *= "Injun Joe"] | .i(:index) | %(chapter = (^//paragraph[:: == (/^CHAPTER [IVXL]+$/)] | [:index < $.i] | :: @| last); text = substr(::; 1..50)) | [:chapter] @| first
//paragraph[:: *= "Injun Joe"] | %(chapter = \\?section::lemma; text = substr(::; 1..50)) @| first
//section[:: *= "Injun Joe"][!/section] | %(chapter = ::lemma; n = (//paragraph[:: *= "Injun Joe"] @| count)) @| top(3; :n)
//section[::lemma = "CHAPTER IX"]//paragraph | :: | sentences | [$_ *= "Injun Joe"] | substr(1..60) @| [..3]
/rows/* | .class(::class) @|{.class} count | .n | %.
/* | .class(::class) @|{.class} count | .n | %.
//*<function> | .lang(::lang) @|{.lang} count | .n | %.
/rows/*::class @| unique
/rows/*::class @| unique @| count
/row::service @| unique
/row | .service(::service) @|{.service} count | .n | %.
/tickets/*::assignee-->::team
/tickets/* | %(::title; team = ::assignee-->::team)
//*<function>::lang @| unique
:: | cc
:: | wc
:: | bc
:: | s/\s+//g | cc
= 2000 - (:: | cc)
. | %(words = (:: | wc); chars = (:: | cc); sentences = (//paragraph | :: | sc @| sum); paragraphs = (//paragraph @| count); sections = (//section @| count))
//* | .name(:name) @|{.name} count | .n | %.
//section | %(title = ::lemma; words = (:: | wc); chars = (:: | cc))
//section[!/section][(:: | cc) > 350] | ::lemma
//paragraph | %(words = (:: | wc); opens = substr(::; 1..30))
//paragraph | :: | wc @| mean
//unordered-item | %(item = ::; chars = (:: | cc))
//paragraph | :: | cc @| sum
/* | %(file = :name; words = (:: | wc); chars = (:: | cc))
//section[!/section][(:: | cc) > 400] | ::lemma
/* | %(::книга; выдано = (::выдано | strptime("%d %B %Y г."; ru-RU)))
/*[2] | ::выдано | strptime("%d %b %Y г."; ru-RU)
/*[3] | ::выдано | strptime("%d.%m.%Y")
/*[4] | ::выдано | strptime("%A, %d %B %Y г."; ru-RU)
/*[1] | ::выдано | strptime("%d %B %Y г."; fi)
/* | %(::книга; вернуть = (::вернуть | strptime("%B %Y"; ru-RU)))
/* | ::вернуть | strptime("%B %Y"; ru-RU) @| sort @| unique
/* | ::вернуть | strptime("%B %Y"; ru-RU) @| max | strftime("%B %Y"; ru-RU)
/*[2] | ::выдано | strptime("%d %b %Y г."; ru-RU) | strftime("%A, %e %B %Y г."; ru-RU)
/*[2] | ::выдано | strptime("%d %b %Y г."; ru-RU) | strftime("%A, %e de %B de %Y"; pt)
/*[2] | ::выдано | strptime("%d %b %Y г."; ru-RU) | strftime("%A %e %B %Y"; fr)
/*[2] | ::выдано | strptime("%d %b %Y г."; ru-RU) | strftime("%d.%m.%Y")
/* | %(::title; lent = (::lent | strptime("%d %B %Y"; en)))
/*[2] | ::lent | strptime("%b %d, %Y"; en)
/*[3] | ::lent | strptime("%d. %B %Y"; de)
/*[4] | ::lent | strptime("%d %B %Y"; fr)
/*[5] | ::lent | strptime("%d de %B de %Y"; pt)
/*[6] | ::lent | strptime("%Y年%B%d日"; zh)
/*[1] | ::lent | strptime("%d %B %Y")
/*[1] | ::lent | strptime("%d %B %Y"; fi)
/* | %(::title; due = (::due | strptime("%B %Y"; en)))
/* | ::due | strptime("%B %Y"; en) @| max | strftime("%B %Y"; en)
/*[2] | ::lent | strptime("%b %d, %Y"; en) | strftime("%A, %e %B %Y"; fr)
/*[2] | ::lent | strptime("%b %d, %Y"; en) | strftime("%A, %e %B %Y"; de)
/*[2] | ::lent | strptime("%b %d, %Y"; en) | strftime("%Y年%B%d日 %A"; zh)
/knigi/* <=> /avtory/*[::id = $$0::автор] | %(::название; автор = $$1::имя) @| [..3]
//книга | %(::название; автор = (->автор::имя)) @| [..4]
//книга[->автор::id = "гоголь"]::название
//автор[::id = "толстой"]<-книга::название
//автор | %(::имя; книг = (<-книга @| count))
//книга[!->автор] | %(::название; ::автор)
//книга[::id = "ревизор"]::автор-->::имя
/books/* <=> /authors/*[::id = $$0::author] | %(::title; author = $$1::name) @| [..3]
//book | %(::title; author = (->author::name)) @| [..4]
//book[->author::language = "Greek"]::title
//author[::id = "twain"]<-book::title
//author | %(::name; books = (<-book @| count))
//book[!->author] | %(::title; ::author)
//book[::id = "hamlet"]::author-->::name
//книга<раннее>::название
//книга<без-даты>::название
//книга<пушкин>::название
//книга<раннее><стихи>::название
//книга<!раннее><!без-даты> @| count
//книга<раннее || без-даты> @| count
//книга<ранние-стихи>::название
//книга | %(::название; traits = (:traits | join(" "))) @| [..4]
//автор[<-книга<раннее>]::имя
//книга @| count
//book<classic>::title
//book<undated>::title
//book<greek>::title
//book<classic><drama>::title
//book<!classic><!undated> @| count
//book<classic || undated> @| count
//book<stage-classic>::title
//book | %(::title; traits = (:traits | join(" "))) @| [..4]
//author[<-book<classic>]::name
//book @| count
/* | ::цена @| sum
/* @| count
/* | ::цена
/* | %(::название; ::цена)
^:::delimiter
^:::decimal
= "1 234,56" | number(ru-RU)
= "1.234,56" | number(de-DE)
= "1,234.56" | number(en-US)
/* | %(::название; ::цена) @| csv(";"; название; цена)
^:::encoding
/*[::цена > 12,50]::название
/* | ::price @| sum
/* | ::price
/* | %(::title; ::price)
/* | %(::title; ::price) @| csv(";"; title; price)
^:::title
^:::languages
//entry::lemma
//entry[::lemma = "ПЕ́РО"]/sense | %(::taxis; text = ::)
//entry[::lemma = "КНИ́ГА"]/sense @| count
//entry | %(::lemma; grammar = (//grammar::); lat = (//equivalent[::lang = "la"]::))
//label | %(entry = (\\?entry::lemma); text = ::; ::kind)
//citation | %(entry = (\\?entry::lemma); sense = (\\?sense::taxis); text = ::)
//ref | %(entry = (\\?entry::lemma); text = ::; lands = (-->::lemma))
//entry[::lemma = "Liberal"]/sense | %(::taxis; text = ::)
//entry[::lemma = "Liberal"]/sense[2]/sense::
//entry[::lemma = "Liberal"] | %(grammar = (//grammar::); said = (//pronunciation::); etym = (//etymology::))
//entry[::lemma = "Liberal"]//citation | %(sense = (\\?sense::taxis); text = ::)
//unordered-list/unordered-item | %(::lemma; text = ::)
//label | %(text = ::; ::kind; lands = (-->::))
//entry[//label:: = "Obs."]::lemma
//entry[::lemma = "Liberal"]//ref | %(text = ::; lands = (-->::lemma))
//entry | %(::lemma; variant = (/variant::); sort = (/inflection[::kind = "sort"]::))
//section[!/section] | %(tale = ::lemma; n = (/paragraph | :: | lower | s/[^\p{L}]/ /g | words | [$_ = "сказал"] @| count); size = (:: | wc)) | [:n > 0] | %(:tale; :n; per1000 = round(:n * 1000 div :size; 1))
//section[!/section] | %(n = (/paragraph | :: | lower | s/[^\p{L}]/ /g | words | [$_ = "сильвио"] @| count); size = (:: | wc)) @| dp(:n; :size) | round(2)
//section[!/section] | %(n = (/paragraph | :: | lower | s/[^\p{L}]/ /g | words | [$_ = "сказал"] @| count); size = (:: | wc)) @| dp(:n; :size) | round(2)
/list/* | .w(::word) | %(word = $.w; n = (^/book//paragraph | :: | lower | s/[^\p{L}]/ /g | words | [$_ = $.w] @| count); range = (^/book//section[!/section] | [(/paragraph | :: | lower | s/[^\p{L}]/ /g | words | [$_ = $.w] @| count) > 0] @| count); dp = (^/book//section[!/section] | %(n = (/paragraph | :: | lower | s/[^\p{L}]/ /g | words | [$_ = $.w] @| count); size = (:: | wc)) @| dp(:n; :size) | round(2)))
//section[!/section] | %(chapter = ::lemma; n = (/paragraph | :: | lower | s/[^\p{L}’]/ /g | words | [$_ = "cave"] @| count); size = (:: | wc)) | [:n > 0] | %(:chapter; :n; per1000 = round(:n * 1000 div :size; 1))
//section[!/section] | %(n = (/paragraph | :: | lower | s/[^\p{L}’]/ /g | words | [$_ = "cave"] @| count); size = (:: | wc)) @| dp(:n; :size) | round(2)
//section[!/section] | %(n = (/paragraph | :: | lower | s/[^\p{L}’]/ /g | words | [$_ = "said"] @| count); size = (:: | wc)) @| dp(:n; :size) | round(2)
/list/* | .w(::word) | %(word = $.w; n = (^/book//paragraph | :: | lower | s/[^\p{L}’]/ /g | words | [$_ = $.w] @| count); range = (^/book//section[!/section] | [(/paragraph | :: | lower | s/[^\p{L}’]/ /g | words | [$_ = $.w] @| count) > 0] @| count); dp = (^/book//section[!/section] | %(n = (/paragraph | :: | lower | s/[^\p{L}’]/ /g | words | [$_ = $.w] @| count); size = (:: | wc)) @| dp(:n; :size) | round(2)))
/knigi/*::жанр @| unique
//жанр::
//жанр | %(жанр = ::; книг = (<-книга @| count))
//жанр[:: = "поэма"]<-книга::название
//жанр[:: = "роман"]<-книга->автор::имя @| unique
//автор[::id = "гоголь"]<-книга->жанр::
//жанр[<-книга->автор::id = "гоголь"]::
/books/*::genre @| unique
//genre::
//genre | %(genre = ::; books = (<-book @| count))
//genre[:: = "epic"]<-book::title
//genre[:: = "novel"]<-book->author::name @| unique
//author[::id = "shakespeare"]<-book->genre::
//genre[<-book->author::language = "Greek"]::
//* | :name @| unique
//section | %(::title; stanzas = (//strophe @| count); lines = (//stichos @| count))
//blockquote | %(::hypograph)
//strophe | %(first = (/stichos[1]::); lines = (/stichos @| count))
//stichos[:: == *"наука"*]::
//sentence @| count
//title::
//author::
^ | %(:::title; :::author)
//book-title::
//stanza @| count
/onegin.fb2//stichos @| count
/* | %(:name; title = (//title::); author = (//author::))
/kapitanskaya-dochka.fb2//section::title
/* | %(:name; sections = (//section @| count); paragraphs = (//paragraph @| count); lines = (//stichos @| count))
/* | %(:name; sentences = (//sentence @| count); tokens = (//token @| count))
/* | %(:name; hits = (//sentence[:: == *"господин"*] @| count))
/*[//sentence[:: == *"бричк"*]]:name
//section[::title == "Глава"*] | %(book = (\:name); ::title)
//sentence | :: | lower | s/[^\p{L}]/ /g | words | .w($_) @|{.w} count | %($.w; n = $_) @| top(8; :n)
/zametki/*[::"$ref" == "http"* || ::"$ref" == "urn:"*] | %(key = :name; ref = ::"$ref")
/zametki/skhema-->
/zametki/skhema-->::description
/zametki/isbn-->
/zametki/isbn-->::publisher
/zametki/* | %(key = :name; lands = (-->))
/notes/*[::"$ref" == "http"* || ::"$ref" == "urn:"*] | %(key = :name; ref = ::"$ref")
/notes/schema-->
/notes/schema-->::description
/notes/isbn-->
/notes/isbn-->::publisher
/notes/* | %(key = :name; lands = (-->))
//стихотворение | %(::заглавие; text = ::)
//title | ::
/title::
//paragraph | ::
/* | %(::subject; :::encoding)
/*[::subject = "Krepost"] | ::
/*[::subject = "Тулуп"] | %(::from; ::subject)
//section::title
//paragraph[3] | :: | substr(1..60)
//paragraph[2] | ::
/*<file> | %(:name; :::encoding)
/* | %(:name; :::encoding)
//песнь | ::
/*[::subject = "The fence"] | ::
/*[::subject = "Побелка"] | %(::from; ::subject)
//*.md
//глава-*
/черновики/*.md | :name
//(/^письмо-.*\.txt$/) | :name
//*<dir> | :name
//*<file> @| count
//*<file> | .ext(::extension) @|{.ext} count | %($.ext; n = $_) @| sort_by(:ext)
//* @| count
//.cache/*
//*<hidden> | :name
//*<!hidden> @| count
//chapter-*
/drafts/*.md | :name
//(/^to-.*\.txt$/) | :name
//сканы/* | %(:name; ::size)
//*<file>[::size > 200kB] | :name
//*<file>[::size > 1MB] | %(:name; size = (::size | convert("MB")))
//*<file>[::size < 100B] | %(:name; ::size)
//*<file> @| top(3; ::size) | %(:name; size = (::size | convert("kB")))
//*<file> | ::size @| sum | convert("MB")
//*<dir> | %(dir = :name; files = (//*<file> @| count); size = (//*<file> | ::size @| sum | convert("kB")))
//*<file> | .ext(::extension) @|{.ext} %($.ext; files = ($_ @| count); size = ($_ | ::size @| sum)) @| top(3; :size)
//*<file>[::size > 100kB][::modified < 2025-06-01] | %(:name; ::size; ::modified)
//scans/* | %(:name; ::size)
//черновики/* | %(:name; ::modified)
//*<file>[::modified > now() - 3d] | %(:name; ::modified)
//*<file>[::modified > now() - 1w] @| count
//*<file>[::modified < 2025-06-01] | %(:name; ::modified)
//*<file>[::modified >= 2026-03-01][::modified < 2026-04-01] | :name
//*<file> @| top(3; ::modified) | %(:name; ::modified)
//*<file> @| bottom(2; ::modified) | %(:name; ::modified)
//*<file> | %(:name; age = (now() - ::modified)) @| top(3; :age)
//*<file>[::modified > ^//глава-01.md::modified] | :name
//*<file> | .month((::modified | isomonth)) @|{.month} count | %($.month; n = $_) @| sort_by(:month)
//*<dir> | %(dir = :name; latest = (/*<file> | ::modified @| max))
//drafts/* | %(:name; ::modified)
//*<file>[::modified > ^//chapter-01.md::modified] | :name
//*[:name == *".md"] | %(file = :name; sentences = (//sentence @| count); words = (//token<word> @| count))
//token<word> | ::lower | .word($_) @|{.word} count | %($.word; n = $_) @| top(3; :n)
//token<word> | ::lower @| unique @| count
//*[:name == *".md"] | %(file = :name; сильвио = (//token[::lower = "сильвио"] @| count))
//sentence[//token[::lower = "пистолета"]] | %(file = (\\*[:name == *".md"] | :name); sentence = substr(::; 1..50))
//*[:name == *".md"] | %(file = :name; longest = (//sentence | (//token<word> @| count) @| max))
//*[:name == *".md"] | %(file = :name; tom = (//token[::lower = "tom"] @| count))
//sentence[//token[::lower = "whitewash"]] | %(file = (\\*[:name == *".md"] | :name); sentence = substr(::; 1..50))
//* | :name | indent(:depth - 1)
//*<dir> | %(dir = :name; files = (/*<file> @| count); newest = (/*<file> @| top(1; ::modified) | :name); size = (/*<file> | ::size @| sum))
//*<dir>[!/*] | :name
//*<symlink> | %(:name; lands = (->* | :name))
//*<symlink>[!->*] | :name
/текущая.md->*
/текущая.md | %(:name; words = (:: | wc))
/черновики/глава-02.md | %(:name; words = (:: | wc))
/свежее->*/* | :name
/свежее/глава-01.md
/свежее->*/глава-01.md
//*<file> | .name(:name) @|{.name} count | [$_ > 1] | %($.name; n = $_)
//*<file> | .size(::size) @|{.size} [($_ @| count) > 1] | %(size = $.size; files = ($_ | :name @| join(", ")))
//*<file> | .hash((:: | sha256)) @|{.hash} [($_ @| count) > 1] | %(hash = ($.hash | substr(1..12)); files = ($_ | :name @| join(", ")))
/current.md->*
/current.md | %(:name; words = (:: | wc))
/drafts/chapter-02.md | %(:name; words = (:: | wc))
/latest->*/* | :name
/latest/chapter-01.md
/latest->*/chapter-01.md
/orders/1->customer_id
/orders/1::customer_id-->::name
/orders/1::customer_id-->customers::name
/customers/2<--(::customer_id)::total
/staff/2--manager_id::name
/tickets/* | %(::title;
/people/person[::name = "ada"]<--(::assignee)::title
//helper<-definition
//is_name_char<-definition | %(line = ::start-line)
/*<symlink> | %(:name;
//paragraph[1..2] | :: | words @| [..5]
//paragraph[1..2] | :: | words @| count
//paragraph[1..3] | %(n = (:: | words @| count); text = (:: | substr(1..30)))
//paragraph[1..3] | .n(:: | words @| count) | %(n = $.n; text = (:: | substr(1..30)))
//paragraph | %(s = (:: | sentences | substr(1..25)))
//paragraph[1..2] | :: | sentences | substr(1..25)
//paragraph | %(p = (:: | substr(1..20)); s = (:: | sentences @| count))
//paragraph | :: | sentences @| count
//paragraph[2..3] | :: | words @| [..5]
//paragraph[2..3] | :: | words @| count
//paragraph[2..4] | %(n = (:: | words @| count); text = (:: | substr(1..30)))
//paragraph[2..4] | .n(:: | words @| count) | %(n = $.n; text = (:: | substr(1..30)))
//paragraph[2..3] | :: | sentences | substr(1..25)
def &above($col, $min): /rows/*[$col >= $min]; &above(::fare, 500)::name
def &above($col, $min): [$col >= $min]; /rows/*&above(::fare, 500)::name
def &above($col, $min): [$col >= $min]; /*&above(::fare, 500)::name
def &above($col, $min): [$col >= $min]; //*<function>&above(::n-params, 3):name
/data/inventory.json/items/*[::qty < 5]::sku
/data/inventory.json/items/*[::qty < 5]
/data/inventory.json/items/*[::qty < 5] .i \\data/orders.csv/*[::sku = $$.i::sku]::order
/events/*/payload/user[::mfa = false]/name::
//*<function> | %(:name; ::lang)
//section @| count
//paragraph @| cc
//paragraph | cc @| sum
//paragraph:: | wc @| sum
//paragraph:: | cc @| sum
//paragraph:: | sc @| sum
//paragraph:: | words @| count
//page | %(title = ::title; sections = (//section @| count); words = (//paragraph:: | wc @| sum)) @| top(5; :words)
//page | (//paragraph:: | wc @| sum) @| mean | round(0)
//page[(//paragraph:: | wc @| sum) < 100] | %(title = ::title; words = (//paragraph:: | wc @| sum))
//entry @| count
//entry[::lemma = "кни́га"] | %(::lemma; grammar = (//grammar::); en = (//equivalent[::lang = "en"]::))
//entry[//inflection:: = "книги"]::lemma
//entry[::lemma = "кни́га"]//inflection:: @| join(", ")
//entry[::lemma = "кни́га"]::
= "книги лежали на столе у окна" | words | %(form = $_; lemma = (^//entry[//inflection:: = $_]::lemma); en = (^//entry[//inflection:: = $_]//equivalent[::lang = "en"]::))
//entry[//inflection:: = "столе" || //inflection:: = "окна" || //inflection:: = "лежали"] | %(::lemma; en = (//equivalent[::lang = "en"]::))
//equivalent[::lang = "en"] @| count
//entry[//equivalent:: *= "house"] | %(::lemma; en = (//equivalent::))
//a-->
//a | %(text = ::; lands = (-->):name)
//a | %(text = ::; page = (-->)//title::)
//a[(-->):name = "h2"] | %(text = ::; heading = (-->)::)
//a[!(-->)] | %(text = ::; href = ::href)
//*.html | %(page = :name; links = (//a @| count); dead = (//a[!(-->)] @| count))
//paragraph | :: | sentences | wc @| median
//paragraph | :: | wc @| median
//paragraph | :: | sentences | [wc($_) > 40] @| count
//paragraph | .ch(\\?section::lemma) | :: | sentences | [wc($_) > 60] | %(tale = $.ch; words = wc($_); opens = substr($_; 1..40))
//section[!/section] | %(tale = ::lemma; long = (//paragraph | :: | sentences | [wc($_) > 40] @| count); all = (//paragraph | :: | sc @| sum)) | %(:tale; :long; share = round(:long div :all; 2)) @| top(3; :share)
//paragraph | :: | sentences | [cc($_) > 400] | %(chars = cc($_); opens = substr($_; 1..40))
//paragraph[(:: | wc) > 350] | %(tale = \\?section::lemma; words = (:: | wc); sentences = (:: | sc); opens = substr(::; 1..40))
//paragraph[(:: | sc) = 1][(:: | wc) > 40] | %(tale = \\?section::lemma; words = (:: | wc); opens = substr(::; 1..40))
//paragraph | :: | sentences | [wc($_) > 20] | %(words = wc($_); opens = substr($_; 1..40))
//paragraph | :: | sentences | [wc($_) > 60] @| count
//paragraph | .ch(\\?section::lemma) | :: | sentences | [wc($_) > 100] | %(chapter = $.ch; words = wc($_); opens = substr($_; 1..40))
//section[!/section] | %(chapter = ::lemma; long = (//paragraph | :: | sentences | [wc($_) > 40] @| count); all = (//paragraph | :: | sc @| sum)) | %(:chapter; :long; share = round(:long div :all; 2)) @| top(3; :share)
//paragraph | :: | sentences | [cc($_) > 600] | %(chars = cc($_); opens = substr($_; 1..40))
//paragraph[(:: | wc) > 350] | %(chapter = \\?section::lemma; words = (:: | wc); sentences = (:: | sc); opens = substr(::; 1..40))
//paragraph[(:: | sc) = 1][(:: | wc) > 60] | %(chapter = \\?section::lemma; words = (:: | wc); opens = substr(::; 1..40))
//paragraph | :: | sentences | [wc($_) > 30] | %(words = wc($_); opens = substr($_; 1..40))
//письмо-пете.txt::
//*.txt[:: *= "мельниц"] | :name
//настройки.json/версия::
//настройки.json/редактор/имя
//настройки.json | %(folder = \:name; версия = /версия::; редактор = /редактор/имя::)
//*.json[/редактор/шрифт:: = "mono"]
//*.csv | %(file = :name; rows = (/row @| count))
//книги.csv/row[::жанр = "поэма"]::название
//paragraph[:: *= "мученик"] | %(file = (\\*[:name == *".md"] | :name); opens = substr(::; 1..30))
//to-becky.txt::
//*.txt[:: *= "cave"] | :name
//settings.json/version::
//settings.json/editor/name
//settings.json | %(folder = \:name; version = /version::; editor = /editor/name::)
//*.json[/editor/font:: = "mono"]
//books.csv/row[::genre = "epic"]::title
//paragraph[:: *= "whitewash"] | %(file = (\\*[:name == *".md"] | :name); opens = substr(::; 1..30))
//*[:name == *".md"] | %(file = :name; words = (:: | wc); paragraphs = (//paragraph @| count))
//*[:name == *".md"] | :: | wc @| sum
/*[:name == *".md"] | %(file = :name; words = (:: | wc)) | %(:file; :words; left = 500 - :words)
//*[:name == *".md"][!//paragraph] | :name
//paragraph[:: *= "пистолет"] | %(file = (\\*[:name == *".md"] | :name); opens = substr(::; 1..40))
/zametki//unordered-item::
//paragraph[:: *= "whitewash"] | %(file = (\\*[:name == *".md"] | :name); opens = substr(::; 1..40))
/notes//unordered-item::
//a | %(text = ::; href = ::href; lands = (-->):name)
/docs//a | %(text = ::; lands = (-->):name)
/docs//*.html | %(page = :name; dead = (//a[!(-->)]::href))
/zametki/spravka-->//h1::
/docs//a-->
/notes/guide-->//h1::
/crew/*::shift
/crew/*[::shift = null]::name
/*[::temp = null]::sensor
/crew/*[::shift]::name
/crew/*[!(::shift)]::name
/crew/* | ::shift | default("unassigned")
/crew/* | %(::name; next = ::badge + 100)
/crew/*::badge @| sum
/crew/*[::shift != "day"]::name
/crew/*::shift @| count
/crew/*/shift @| count
/* | %(:name; title = (::title); author = (::author))
/* | %(:name; sections = (//section @| count); first = (/section[1]::lemma))
/*/section[::lemma = "Book the Second"]/section::lemma
/* | %(:name; notes = (//footnote<note> @| count); words = (//paragraph | :: | wc @| sum))
/* | %(:name; tokens = (//token<word> @| count))
/* | .f(:name) | //section[:: *= "pestilence"] | %(file = $.f; ::lemma)
//sentence[1] | %(id = ::id; text = ::)
//token[:::sentence = 1] | %(form = ::; lemma = ::lemma; pos = ::upos; rel = ::deprel; head = (->head::))
//token[::upos = "NOUN"]::Case | .c($_) @|{.c} count | %($.c; n = $_) @| top(5; :n)
//token[::upos = "VERB"]::Mood | .m($_) @|{.m} count | %($.m; n = $_) @| top(4; :n)
//token[::upos = "VERB"]::Voice | .t($_) @|{.t} count | %($.t; n = $_) @| top(3; :n)
//token[::Case = "Voc"] | %(form = ::; lemma = ::lemma; text = substr(::sentence; 1..48)) @| [..5]
//token[::deprel = "vocative"]::lemma | .l($_) @|{.l} count | %($.l; n = $_) @| top(3; :n)
//token[::deprel = "vocative"] | %(vocative = ::; verb = (->head::lemma)) @| [..5]
//token[::lemma = "Ἀχιλλεύς"] | %(form = ::; case = ::Case; rel = ::deprel) @| [..5]
//token[::lemma = "Ἀχιλλεύς"]::Case | .c($_) @|{.c} count | %($.c; n = $_)
//token[::lemma = "Ἀχιλλεύς"][::Case = "Nom"]->head::lemma @| unique
//token[::Mood = "Opt"] | %(form = ::; lemma = ::lemma; tense = ::Tense; voice = ::Voice) @| [..4]
//token[::upos = "VERB"][::person = "1"][::number = "Sing"]::lemma | .l($_) @|{.l} count | %($.l; n = $_) @| top(4; :n)
//sentence[//token[::Mood = "Imp"]] @| count
//sentence[//token[::Mood = "Imp"]]:: @| [..2]
//автор[::id = "гоголь"]<-книга::название
/vydachi/* <=> //книга[::id = $$0::книга] | %(::читатель; книга = $$1::название) @| [..3]
//author[::language = "Greek"]<-book::title
/loans/* <=> //book[::id = $$0::book] | %(::reader; book = $$1::title) @| [..3]
/web-*::tier
//*.rs//token:name
*//* @| count
//(/web-0[12]/):name
//*<javascript>//handler:name
//row @| count
//автор::имя
//роман::название
//книга[::id = "онегин"] | %(::название; ::год; ::полка)
//author::name
//novel::title
//book[::id = "emma"] | %(::title; ::year; ::shelf)
//section | %(глава = ::lemma; слов = (//token<word> @| count); предложение = ((//sentence | (/token<word> @| count) @| mean) | round(1)); диалог = ((//dialogue-line//token<word> @| count) * 100 div (//token<word> @| count) | round(0))) @| [..6]
//section | (//sentence | (/token<word> @| count) @| mean) @| window(3) | mean | round(1) @| [..6]
//section | .гл(::lemma) | ((//dialogue-line//token<word> @| count) * 100 div (//token<word> @| count)) @| window(2) | %(глава = $.гл; было = ($_ @| first | round(0)); стало = ($_ @| last | round(0)); сдвиг = ((($_ @| last) - ($_ @| first)) | round(0))) @| top(3; :сдвиг)
//section | %(глава = ::lemma; ноздрев = (//token[::lower *= "ноздрев"] @| count); плюшкин = (//token[::lower *= "плюшкин"] @| count)) @| [..6]
//section[//token[::lower *= "плюшкин"]] | ::lemma @| first
//section[//token[::lower *= "плюшкин"]] | ::lemma @| last
//section[//token[::lower *= "плюшкин"]] @| count
//section | (//token[::lower *= "ноздрев"] @| count) @| window(..0) | sum
//token[::lower *= "ноздрев"]:::n @| window(2) | (($_ @| max) - ($_ @| min)) @| max
//token[::lower *= "ноздрев"] | .n(:::n) | .гл(\\?section::lemma) | :::n @| window(2) | %(разрыв = (($_ @| max) - ($_ @| min)); глава = $.гл; позиция = $.n) @| top(2; :разрыв)
//token<word> | %(bin = ((:::n div 10000) | floor); ноздрев = (::lower *= "ноздрев" ? 1 : 0); чичиков = (::lower *= "чичиков" ? 1 : 0)) | .bin($_:bin) @|{.bin} %(bin = $.bin; слов = ($_ @| count); ноздрев = ($_ | :ноздрев @| sum); чичиков = ($_ | :чичиков @| sum))
//token<word> | %(bin = ((:::n div 10000) | floor); w = (::lower *= "ноздрев" ? 1 : 0)) | .bin($_:bin) @|{.bin} %(n = ($_ | :w @| sum); size = ($_ @| count)) @| dp(:n; :size) | round(2)
//token<word> | %(bin = ((:::n div 10000) | floor); w = (::lower *= "чичиков" ? 1 : 0)) | .bin($_:bin) @|{.bin} %(n = ($_ | :w @| sum); size = ($_ @| count)) @| dp(:n; :size) | round(2)
//section[::lemma *= "CHAPTER"] | %(ch = ::lemma; words = (//token<word> @| count); sentence = ((//sentence | (/token<word> @| count) @| mean) | round(1)); dialogue = ((//dialogue-line//token<word> @| count) * 100 div (//token<word> @| count) | round(0))) @| [..6]
//section[::lemma *= "CHAPTER"] | (//sentence | (/token<word> @| count) @| mean) @| window(3) | mean | round(1) @| [..6]
//section[::lemma *= "CHAPTER"] | .ch(::lemma) | ((//dialogue-line//token<word> @| count) * 100 div (//token<word> @| count)) @| window(2) | %(ch = $.ch; from = ($_ @| first | round(0)); to = ($_ @| last | round(0)); change = ((($_ @| last) - ($_ @| first)) | round(0))) @| top(3; :change)
//section[::lemma *= "CHAPTER"] | %(ch = ::lemma; huck = (//token[::lower = "huck"] @| count); becky = (//token[::lower = "becky"] @| count); joe = (//token[::lower = "joe"] @| count)) @| [..8]
//section[::lemma *= "CHAPTER"][//token[::lower = "becky"]] | ::lemma @| first
//section[::lemma *= "CHAPTER"][//token[::lower = "becky"]] | ::lemma @| last
//section[::lemma *= "CHAPTER"][//token[::lower = "becky"]] @| count
//section[::lemma *= "CHAPTER"] | (//token[::lower = "huck"] @| count) @| window(..0) | sum @| [..6]
//token[::lower = "huck"]:::n @| window(2) | (($_ @| max) - ($_ @| min)) @| max
//token[::lower = "huck"] | .n(:::n) | .ch(\\?section::lemma) | :::n @| window(2) | %(gap = (($_ @| max) - ($_ @| min)); ch = $.ch; at = $.n) @| top(2; :gap)
//token<word> | %(bin = ((:::n div 10000) | floor); huck = (::lower = "huck" ? 1 : 0); tom = (::lower = "tom" ? 1 : 0)) | .bin($_:bin) @|{.bin} %(bin = $.bin; words = ($_ @| count); huck = ($_ | :huck @| sum); tom = ($_ | :tom @| sum))
//token<word> | %(bin = ((:::n div 10000) | floor); w = (::lower = "huck" ? 1 : 0)) | .bin($_:bin) @|{.bin} %(n = ($_ | :w @| sum); size = ($_ @| count)) @| dp(:n; :size) | round(2)
//token<word> | %(bin = ((:::n div 10000) | floor); w = (::lower = "tom" ? 1 : 0)) | .bin($_:bin) @|{.bin} %(n = ($_ | :w @| sum); size = ($_ @| count)) @| dp(:n; :size) | round(2)
//section @| outline(:depth; ::lemma)
//footnote<note> @| count
//*<note>[:: *= "imperfect tense"]<-footnote\::
//section::onym
//section[::onym = "the-quarrel"]/paragraph @| count
//token<word> @| count
::author
//token<word>[:: *= "ѣ"] @| count
//token<word>[:: *= "ъ"] @| count
//token[::lower = "ехал"] @| count
//token[::lower = "ехал"] | %(w = ::; ::modern) @| [..2]
//token<word>[:: *= "ѳ"] | %(w = ::; ::modern) @| [..2]
//token[::lower = "печорин"] | %(до = (<<token[..3]:: @| join(" ")); w = ::; после = (>>token[..3]:: @| join(" "))) @| [..3]
//token<word>::lower | .w($_) @|{.w} count | %($.w; n = $_) @| top(5; :n)
/* | .n(//token<word> @| count) | %(издание = :name; n = $.n; я = ((//token[::lower = "я"] @| count) * 1000 div $.n | round(1)); не = ((//token[::lower = "не"] @| count) * 1000 div $.n | round(1)); был = ((//token[::lower = "был"] @| count) * 1000 div $.n | round(1)); ничего = ((//token[::lower = "ничего"] @| count) * 1000 div $.n | round(1)))
= "Я ѣхалъ на перекладныхъ изъ Тифлиса." | modernize("дореформенная")
= "объѣхалъ міръ" | modernize("ru-1918")
= "ſo ſhall the firſt be laſt" | modernize("long-s")
//token<word>[:: *= "ſ"] @| count
//token[::lower = "said"] @| count
//token[::lower = "said"]:: | .form($_) @|{.form} count | %($.form; n = $_)
//token[::lower = "said"] | %(before = (<<token[..3]:: @| join(" ")); w = ::; ::modern; after = (>>token[..3]:: @| join(" "))) @| [..3]
//token<word>::lower | .w($_) @|{.w} count @| count
//token[::lower = "unto"] @| count
//token<word>[::lower == (/^v[^aeiouy]/)]::lower | .w($_) @|{.w} count | %($.w; n = $_) @| top(4; :n)
//token<word>::lower | s/^v([^aeiouy])/u$1/ | [$_ = "unto"] @| count
= "Heauen and Earth" | modernize("long-s")
= "Повѣсти Бѣлкина" | modernize("ru-1918")
//section @| outline(:depth; ::lemma; "1.")
//section[:depth <= 2] @| outline(:depth; ::lemma; "1.")
//section[::lemma = "Метель"]//section @| outline(:depth; ::lemma; "1.")
//section | .t(::lemma) | .w(:: | wc) | :depth @| number | %(no = $_; title = $.t; words = $.w)
//section[!/paragraph][!/section] | ::lemma
//section[:::level > :depth] | %(heading = ::lemma; level = :::level; depth = :depth)
//section @| outline(:::level; ::lemma; "1.")
//section[!/section] @| outline(:depth; ::lemma; "1.") @| [..4]
//section | ::lemma | indent(:depth - 1; "· ")
//* | :name | indent(:depth - 1) @| [..7]
//section[::lemma = "The graveyard"]//section @| outline(:depth; ::lemma; "1.")
//ref | %(text = ::; target = ::target) @| [..5]
. | %(links = (//ref @| count); web = (//ref[::target == "http"*] @| count); anchors = (//ref[::target == "#"*] @| count))
//ref[::target == "http"*] | ::target | s/^https?:\/\/([^\/]+)\/.*$/$1/ | .site($_) @|{.site} count | %($.site; n = $_)
//section[!/section] | %(section = ::lemma; links = (//ref @| count))
//ref | .target(::target) @|{.target} count | [$_ > 1] | %($.target; n = $_)
//ref[::target = "https://ru.wikisource.org/wiki/Пиковая_дама_(Пушкин)"] | ::
//ref[:: = "здесь" || :: = "тут" || :: == "http"*] | %(text = ::; target = ::target)
//ref<dangling> | %(text = ::; target = ::target)
//ref[::target == "#"*] | %(text = ::; lands = (->* | ::lemma))
/doc//ref[!(::target == "http"*)][!(::target == "#"*)] <=>? /dir/*[:name = $$0::target] | %(target = ::target; found = ($$1 ? "yes" : "no"))
//ref[::target = "https://www.gutenberg.org/ebooks/245"] | ::
//ref[:: = "here" || :: = "this" || :: == "http"*] | %(text = ::; target = ::target)
//row[::жанр = "поэма"] | ::название @| pairs
//row | ::название @| pairs @| count
//row[::жанр = "поэма"] | ::название @| pairs | %(a = ($_ | first); b = ($_ | last))
//row[::полка = "Б1"] | ::название @| pairs | join(" + ")
/cast/* | ::stem @| pairs | .p | %(pair = ($.p | join(" + ")); together = (^/book//paragraph | [:: *= ($.p | first)] | [:: *= ($.p | last)] @| count)) @| top(5; :together)
//row[::жанр = "поэма"] | ::название @| triples
//row[::полка = "А1"] | ::название @| combinations(3) | join(" + ")
//row | ::название @| combinations(3) @| count
//row[::genre = "novel"] | ::title @| pairs
//row | ::title @| pairs @| count
//row[::genre = "novel"] | ::title @| pairs | %(a = ($_ | first); b = ($_ | last)) @| [..3]
//row[::shelf = "A1"] | ::title @| pairs | join(" + ")
/cast/*[::mention != "Joe"] | ::mention @| pairs | .p | %(pair = ($.p | join(" + ")); together = (^/book//paragraph | [:: *= ($.p | first)] | [:: *= ($.p | last)] @| count)) @| top(5; :together)
//row[::genre = "epic"] | ::title @| triples
//row[::genre = "novel"] | ::title @| combinations(3) | join(" + ")
//row | ::title @| combinations(3) @| count
/* | %(::читатель; ::книга; месяц = (::выдана | period(month))) @| [..4]
/*[(::выдана | period(month)) = 2026-03] | %(::читатель; ::книга; ::выдана)
/*[(::выдана | period) = 2026-03] @| count
/* | (::выдана | period(month)) | .месяц($_) @|{.месяц} count | %($.месяц; выдач = $_)
/* | (::выдана | period(year)) @| unique
= 2026-03-15 | period(month) | grain
= "Журнал окончен в марте 1833 года." | timex(ru) | %(:text; :value; :grain)
/* | %(::reader; ::book; month = (::out | period(month))) @| [..4]
/*[(::out | period(month)) = 2026-03] | %(::reader; ::book; ::out)
/*[(::out | period) = 2026-03] @| count
/* | (::out | period(month)) | .month($_) @|{.month} count | %($.month; loans = $_)
/* | (::out | period(year)) @| unique
= "It was finished in March 1660." | timex(en) | %(:text; :value; :grain)
/книга//token[::entity = "LOC"] @| unique_by($_; :::mention) | ::lemma | .место($_) @|{.место} count | %($.место; n = $_) @| top(8; :n)
/места/* | %(::название; ::вид; ::широта; ::примечание) @| [..3]
/книга//token[::entity = "LOC"] @| unique_by($_; :::mention) | ::lemma | .лемма($_) @|{.лемма} count | .n | %(место = (^/места/*[::лемма = $.лемма]::название @| first); n = $.n; широта = (^/места/*[::лемма = $.лемма]::широта @| first); долгота = (^/места/*[::лемма = $.лемма]::долгота @| first)) | [:место] @| top(8; :n)
/книга//token[::entity = "LOC"] @| unique_by($_; :::mention) @| count
/книга//token[::entity = "LOC"] @| unique_by($_; :::mention) | ::lemma | [$_ = (^/места/*::лемма)] @| count
/книга//section[::lemma *= "ГЛАВА"] | %(глава = ::lemma; места = (//token[::entity = "LOC"] @| unique_by($_; :::mention) | ::lemma | [$_ = (^/места/*::лемма)] @| unique @| join(", "))) | [:места] @| [..6]
/книга//token[::entity = "LOC"][::lemma = "казань"] | \\?section::lemma @| unique
/книга//token[::entity = "LOC"] @| unique_by($_; :::mention) | ::lemma | .лемма($_) @|{.лемма} count | .n | %(место = (^/места/*[::лемма = $.лемма]::название @| first); n = $.n; широта = (^/места/*[::лемма = $.лемма]::широта @| first); долгота = (^/места/*[::лемма = $.лемма]::долгота @| first)) | [:широта] @| top(5; :n)
/book//token[::entity = "GPE" || ::entity = "LOC"] @| unique_by($_; :::mention) | ::mention | .place($_) @|{.place} count | %($.place; n = $_) @| top(6; :n)
/places/* | %(::name; ::kind; ::lat; ::lon) @| [..3]
/book//token[::entity = "GPE" || ::entity = "LOC"] @| unique_by($_; :::mention) | ::mention | .place($_) @|{.place} count | .n | %(place = $.place; n = $.n; lat = (^/places/*[::name = $.place]::lat @| first); lon = (^/places/*[::name = $.place]::lon @| first)) | [:lat] @| top(8; :n)
/book//token[::entity = "GPE" || ::entity = "LOC"] @| unique_by($_; :::mention) @| count
/book//token[::entity = "GPE" || ::entity = "LOC"] @| unique_by($_; :::mention) | ::mention | [$_ = (^/places/*::name)] @| count
/book//section[::lemma *= "CHAPTER"] | %(ch = ::lemma; places = (//token[::entity = "GPE" || ::entity = "LOC"] @| unique_by($_; :::mention) | ::mention | [$_ = (^/places/*::name)] @| unique @| join(", "))) | [:places] @| [..6]
/book//token[::entity = "GPE" || ::entity = "LOC"][::mention = "Cardiff Hill"] | \\?section::lemma @| unique
/book//token[::entity = "GPE" || ::entity = "LOC"] @| unique_by($_; :::mention) | ::mention | .place($_) @|{.place} count | .n | %(place = $.place; n = $.n; lat = (^/places/*[::name = $.place]::lat @| first); lon = (^/places/*[::name = $.place]::lon @| first)) | [:lat] @| top(5; :n)
//section | %(глава = ::lemma; предложений = (//sentence[::id] @| count); слов = (//token<word> @| count))
//sentence[::id = "50665"]::
//token[:: = "остави"][1] | %(::lemma; ::upos; ::feats; ::deprel; head = (->head::))
//token<word>::upos | .часть($_) @|{.часть} count | %($.часть; n = $_) @| top(5; :n)
//token<word>[::upos = "Nb"]::lemma | .лемма($_) @|{.лемма} count | %($.лемма; n = $_) @| top(5; :n)
//token[::upos = "V-"][::feats *= "spma"] @| count
//token[::upos = "V-"][::feats *= "spma"]::lemma | .лемма($_) @|{.лемма} count | %($.лемма; n = $_) @| top(5; :n)
//token[::lemma = "дати"] | %(глагол = ::; дополнение = (<-head[::deprel = "obj"]::lemma)) | [:дополнение] @| [..4]
//token[::lemma = "отьць"] | %(форма = ::; ::feats; ::deprel; head = (->head::lemma)) @| [..4]
//token[::upos = "V-"] | %(глагол = ::; ::lemma; зависимых = (<-head @| count)) @| top(3; :зависимых)
//milestone::value @| [..3]
//section[1]//paragraph | %(стих = (//milestone[1]::value); слов = (//token<word> @| count)) @| [..4]
//sentence[::id] | %(::id; t = ::)
//token[::Case = "Gen"] | %(w = ::; ::lemma; ::Gender)
//token[::upos = "VERB"] | %(w = ::; ::Aspect; ::Tense)
//token<word>[::lemma] | %(w = ::; ::lemma; ::upos; ::feats) @| [..3]
//token[::alt] | %(w = ::; ::feats; ::alt)
//token[::sem] | %(w = ::; ::sem)
//section | %(chapter = ::lemma; sentences = (//sentence[::id] @| count); words = (//token<word> @| count))
//sentence[::id = "64362"]::
//token[:: = "Ἡροδότου"] | %(::lemma; ::upos; ::feats; ::deprel; head = (->head::))
//token<word>::upos | .pos($_) @|{.pos} count | %($.pos; n = $_) @| top(5; :n)
//token<word>[::upos = "Nb"]::lemma | .lemma($_) @|{.lemma} count | %($.lemma; n = $_) @| top(5; :n)
//token[::lemma = "ἁρπάζω"] | %(verb = ::; object = (<-head[::deprel = "obj"]::lemma)) | [:object]
//token[::lemma = "Ἰώ"] | %(w = ::; ::feats; ::deprel; head = (->head::lemma))
//token[::upos = "V-"] | %(verb = ::; ::lemma; dependents = (<-head @| count)) @| top(3; :dependents)
//section[1]//paragraph | %(cite = (//milestone[1]::value); words = (//token<word> @| count)) @| [..4]
//token[::upos = "VERB"] | %(w = ::; ::Tense; ::VerbForm)
//token[::Number = "Plur"]::
/продажи/* | %(::город; ::книг; ::выручка)
/продажи/*[1] | %(::город; ::книг; ::выручка)
/продажи/* | %(::город; когда = (::когда | datetime))
/продажи/*[1] | ::когда | datetime
/продажи/*[1] | %(::книг; ::выручка)
/продажи/* | ::выручка @| sum
/продажи/* | %(::город; ::выручка) @| csv | sha256
/продажи/* | %(::город; ::выручка) @| pretty
/продажи/* | %(::город; ::выручка) @| csv
/продажи/* | %(::город; ::выручка) @| csv(","; город; выручка)
/продажи/* | %(::город; ::выручка) @| jsonl
/продажи/* | ::город @| sort
/продажи/*[1]::выручка
/продажи/*[1]::книг
/sales/* | %(::city; ::books; ::takings)
/sales/*[1] | %(::city; ::books; ::takings)
/sales/* | %(::city; at = (::at | datetime))
/sales/*[1] | ::at | datetime
/sales/*[1] | %(::books; ::takings)
/sales/* | ::takings @| sum
/sales/* | %(::city; ::takings) @| csv | sha256
/sales/* | %(::city; ::takings) @| pretty
/sales/* | %(::city; ::takings) @| csv
/sales/* | %(::city; ::takings) @| csv(","; city; takings)
/sales/* | %(::city; ::takings) @| jsonl
/sales/* | ::city @| sort
/sales/*[1]::takings
/sales/*[1]::books
/rows/*
/rows/*::name
/* | %(::name; ::fare)
/*<function> | %(:name; span = ::end-line - ::start-line)
/rows/* | %(::fare - 100)
/* | @(::name; ::fare)
/* | @(::name; ::fare) | join(": ")
//row[::полка = "Б1"] | %(::название; ::жанр; ::полка)
//row[::полка = "Б1"] | %(::название; ::жанр; ::полка) @| pretty
//row[::год < 1840] | %(::название; ::жанр; ::год) @| pretty(год; название)
//row[::год < 1840] | %(::название; ::год) @| csv
//row[::жанр = "поэма"] | %(::название; ::полка) @| json
//row | .жанр(::жанр) @|{.жанр} count | %($.жанр; книг = $_) @| top(3; :книг) @| pretty
//row[::жанр = "поэма"] | %(::название; ::полка)
//row[::полка = "Б1"] | %(::название; ::жанр) @| pretty @| count
//row[::shelf = "A1"] | %(::title; ::genre; ::shelf)
//row[::shelf = "A1"] | %(::title; ::genre; ::shelf) @| pretty
//row[::year] | %(::title; ::genre; ::year) @| pretty(year; title)
//row[::year] | %(::title; ::year) @| csv
//row[::genre = "epic"] | %(::title; ::shelf) @| json
//row | .genre(::genre) @|{.genre} count | %($.genre; books = $_) @| top(3; :books) @| pretty
//row[::genre = "epic"] | %(::title; ::shelf)
//row[::shelf = "A1"] | %(::title; ::genre) @| pretty @| count
//paragraph[:: = >paragraph::]::
//paragraph[:: = (>paragraph){2}::] | :: | substr(1..40)
//paragraph[:: = (>paragraph){1;4}::] | %(text = substr(::; 1..40); at = :index)
//paragraph[substr(::; 1..13) = substr(>paragraph::; 1..13)] | :: | substr(1..40)
//section[::lemma = "ВЫСТРЕЛ"]/paragraph[12] | :: | sentences
//paragraph[(:: | sentences @| count) > (:: | sentences @| unique @| count)] | :: | substr(1..50)
//paragraph | :: | sentences | .sentence($_) @|{.sentence} count | [$_ > 1] | %($.sentence; times = $_)
//paragraph | :: | sentences | %(words = ($_ | words @| count); s = substr($_; 1..30)) @| top(2; :words)
//section[!/*] | %(empty = ::lemma; after = <section::lemma)
//unordered-item[:: = >unordered-item::]::
//paragraph[(split(::; "«") @| count) != (split(::; "»") @| count)] | :: | substr(1..40)
//section[::lemma = "CHAPTER I"]/paragraph[9] | :: | sentences
//paragraph[(split(::; "“") @| count) != (split(::; "”") @| count)] | :: | substr(1..40)
/staff/4(->manager_id)+?::name
/staff/4(->manager_id)+!::name
/staff/4(->manager_id)+[::title = "Director"]?::name
(/replies/*)+?::who
(/replies/*)+!::who
(/replies/* .(::who))+! | @. | join(" > ")
//if(\)+[::construct = "function"]?:name
/rows/* | .who(::name) | .paid(::fare) | %.
/rows/* | .(::fare) | .who(::name) | %%.
/* | .who(::name) | .paid(::fare) | %.
//sentence | ::
/anchar.txt | ::
//anchar.txt | ::
//* | :name
/*/* | :name
//*[:name == *".txt"] | %(:name; :::encoding)
//пушкин.txt | ::
^:::replaced
/gnev.txt | ::
//gnev.txt | ::
//гнев.txt | ::
//row[::полка = "Б1"]
//row[::полка = "Б1"] | ::название
//row[::полка = "Б1"] | %(::название; ::жанр)
//row[::полка = "Б1"] | @(::название; ::жанр)
//row[::год] | %(::название; возраст = 2026 - ::год; раннее = ::год < 1840) @| [..3]
//row[::год] | %(::название; возраст = 2026 - ::год) | [:возраст > 185] | :название
//row[::год] | %(::название; возраст = 2026 - ::год) @| top(2; :возраст)
//row[::полка = "Б1"] | @(::название; ::жанр; ::полка) | first
//row[::полка = "Б1"] | @(::название; ::жанр; ::полка) | join(" / ")
//row[::id = "ревизор"] | @(::название; ::жанр; ::полка) | ...
//row[::жанр = "комедия"] | %(::название; место = @(::полка; ::жанр); источник = (. | %(::автор; ::год)))
//row[::жанр = "комедия"] | %(::название; источник = (. | %(::автор; ::год))) | :источник | :год
//книги/* | %(::название; ::метки)
//книги/* | %(::название; меток = (::метки | ... @| count))
//row | .полка(::полка) @|{.полка} %($.полка; названия = ($_ | ::название)) @| [..2]
//row[::полка = "Б1"] | %(::название; ::жанр) @| json
//row[::полка = "Б1"] | @(::название; ::жанр) @| json
//row[::жанр = "комедия"] | %(::название; место = @(::полка; ::жанр); источник = (. | %(::автор; ::год))) @| json
//row[::полка = "Б1"] | %(::название; ::жанр) | json
//row[::shelf = "A1"]
//row[::shelf = "A1"] | ::title
//row[::shelf = "A1"] | %(::title; ::genre)
//row[::shelf = "A1"] | @(::title; ::genre)
//row[::year] | %(::title; age = 2026 - ::year; old = ::year < 1800) @| [..3]
//row[::year] | %(::title; age = 2026 - ::year) | [:age > 200] | :title
//row[::year] | %(::title; age = 2026 - ::year) @| top(2; :age)
//row[::shelf = "A1"] | @(::title; ::genre; ::shelf) | first
//row[::shelf = "A1"] | @(::title; ::genre; ::shelf) | join(" / ")
//row[::id = "hamlet"] | @(::title; ::genre; ::shelf) | ...
//row[::genre = "tragedy"] | %(::title; place = @(::shelf; ::genre); source = (. | %(::author; ::year)))
//row[::genre = "tragedy"] | %(::title; source = (. | %(::author; ::year))) | :source | :year
//books/* | %(::title; ::tags)
//books/* | %(::title; tags = (::tags | ... @| count))
//row | .shelf(::shelf) @|{.shelf} %($.shelf; titles = ($_ | ::title)) @| [..2]
//row[::shelf = "A1"] | %(::title; ::genre) @| json
//row[::shelf = "A1"] | @(::title; ::genre) @| json
//row[::genre = "tragedy"] | %(::title; place = @(::shelf; ::genre); source = (. | %(::author; ::year))) @| json
//row[::shelf = "A1"] | %(::title; ::genre) | json
//section[::lemma = "Литература"]//ordered-item[1]::
//section[::lemma = "Литература"]//ordered-item[1] | :: | bibref(gost)
//section[::lemma = "Литература"]//ordered-item | :: | bibref(gost) | %(:author; :title; :year)
//section[::lemma = "Литература"]//ordered-item | :: | bibref(gost) | [:genus = "article"] | %(:author; :journal; :number; :pages)
//section[::lemma = "Литература"]//ordered-item | :: | bibref(gost) | [:url] | %(:url; :urldate; :medium; :year)
= "См. предисловие ко второму изданию." | bibref(gost) | %(reference = ($_ != null))
= "Там же." | bibref(apa)
= "See the preface to the second edition." | bibref(cmos) | %(reference = ($_ != null))
//section[::lemma = "A. Bibliography"]//ordered-item | :: | bibref(ams) | %(:author; :title; :year; :genus)
//section[::lemma = "A. Bibliography"]//ordered-item | :: | bibref(ams) | [:genus = "article"] | %(:journal; :volume; :pages)
/zametki/chtenie-->
/zametki/chtenie-->::title
/zametki/avtor-->::
/z/chtenie-->
/zametki/* | %(key = :name; title = (-->)::title)
/zametki/*[(-->)]:name
/zametki/*[!(-->)] | %(key = :name; ref = ::"$ref")
/notes/reading-->
/notes/reading-->::title
/notes/author-->::
/n/reading-->
/notes/* | %(key = :name; title = (-->)::title)
/notes/*[(-->)]:name
/notes/*[!(-->)] | %(key = :name; ref = ::"$ref")
//cit | %(mark = ::; key = ::target)
//cit | ::target @| unique
//bib | %(key = ::onym; ::author; ::year)
/paper//cit <=>? /refs//bib[::onym = $$0::target] | [!$$1] | ::target @| unique
/refs//bib <=>? /paper//cit[::target = $$0::onym] | [!$$1] | %(key = ::onym; ::title)
/paper//cit <=> /refs//bib[::onym = $$0::target] | %(key = ::target; author = $$1::author; year = $$1::year) @| [..3]
//cit | .key(::target) @|{.key} count | %($.key; n = $_) @| top(3; :n)
//cit[::target = "karamzin1818"] | %(section = \\section::lemma; opens = (\paragraph | :: | substr(1..50)))
/notes//cit <=>? /refs//bib[::onym = $$0::target] | [!$$1] | ::target @| unique
/*[:name != "refs"] | .d(:name) | //cit | . <=>? ^/refs//bib[::onym = $$0::target] | [!$$1] | %(draft = $.d; key = ::target) @| unique
/refs//bib <=>? /*[:name != "refs"]//cit[::target = $$0::onym] | [!$$1] | ::onym
//cit | %(key = ::target; resolved = :::resolved)
//cit<dangling>::target
//bib[!<-cit] | %(key = ::onym; ::title)
//cit->* | %(::onym; ::author; ::year) @| [..3]
//cit[::locator] | %(key = ::target; ::locator)
//cit[::target = "karamzin1818"] | %(key = ::target; ::locator; author = (->*::author))
//cit | .key(::target) @|{.key} count | %($.key; n = $_) @| top(2; :n)
//bib[!<-cit] | %(n = ::onym; ::author)
//cit[::target = "gibbon1776"] | %(section = \\section::lemma; opens = (\paragraph | :: | substr(1..50)))
//cit[::target = "gibbon1776"] | %(key = ::target; ::locator; author = (->*::author))
/rows/* | .fare(::fare) | ($.fare * 2)
/rows/* | .f(::fare) | .n(::name) | [$.f > 300] | $.n
/rows/* | .band((::fare > 500 ? "high" : "low")) @|{.band} count | .n | %.
/rows/* | .name(::name) | .c(::class) | .peers(\/*[::class = $.c] @| count) | %.
/rows/* .me | .name(::name) | .same(\/*[::class = $$.me::class] @| count) | .peers($.same - 1) | %.
//*<call> .c ->definition | %(
//*<call> .c ->definition | %(:name; distance = $$.c::start-line - ::start-line)
//section[!/section]/paragraph | :: | lower | s/[^\p{L}-]/ /g | ngrams(4) | .phrase($_) @|{.phrase} count | %($.phrase; n = $_) @| top(6; :n)
//section[!/section]/paragraph | :: | lower | s/[^\p{L}-]/ /g | ngrams(5) | .phrase($_) @|{.phrase} count | [$_ > 1] | %($.phrase; n = $_)
//section[!/section] | .ch(::lemma) | /paragraph | :: | lower | s/[^\p{L}-]/ /g | ngrams(4) | %(g = $_; tale = $.ch) | .g($_:g) @|{.g} %(phrase = $.g; n = ($_ @| count); tales = ($_ | :tale @| unique @| count)) @| top(5; :tales)
//section[!/section] | [(:: | lower) *= "стал ходить взад и вперед"] | ::lemma
/* | .b(:name) | //section[!/section]/paragraph | :: | lower | s/[^\p{L}-]/ /g | ngrams(4) | %(g = $_; b = $.b) | .g($_:g) @|{.g} [($_ | :b @| unique @| count) = 2] | %(phrase = $.g; n = ($_ @| count)) @| top(6; :n)
/* | .b(:name) | //section[!/section]/paragraph | :: | lower | s/[^\p{L}-]/ /g | ngrams(4) | %(g = $_; b = $.b) | .g($_:g) @|{.g} [($_ | :b @| unique @| count) = 2] @| count
//section[!/section]/paragraph | :: | lower | s/[^\p{L}’-]/ /g | ngrams(5) | .phrase($_) @|{.phrase} count | %($.phrase; n = $_) @| top(6; :n)
//section[!/section]/paragraph | :: | lower | s/[^\p{L}’-]/ /g | ngrams(8) | .phrase($_) @|{.phrase} count | [$_ > 1] | %($.phrase; n = $_)
//section[!/section] | .ch(::lemma) | /paragraph | :: | lower | s/[^\p{L}’-]/ /g | ngrams(5) | %(g = $_; ch = $.ch) | .g($_:g) @|{.g} %(phrase = $.g; n = ($_ @| count); chapters = ($_ | :ch @| unique @| count)) @| top(5; :chapters)
//section[!/section] | [(:: | lower) *= "the black avenger of the spanish main"] | ::lemma
/* | .b(:name) | //section[!/section]/paragraph | :: | lower | s/[^\p{L}’-]/ /g | ngrams(6) | %(g = $_; b = $.b) | .g($_:g) @|{.g} [($_ | :b @| unique @| count) = 2] | %(phrase = $.g; n = ($_ @| count)) @| top(6; :n)
/* | .b(:name) | //section[!/section]/paragraph | :: | lower | s/[^\p{L}’-]/ /g | ngrams(6) | %(g = $_; b = $.b) | .g($_:g) @|{.g} [($_ | :b @| unique @| count) = 2] @| count
//article/p::
//article/p[2]::
//if
/merge/for/if[2]::start-line
/Lexer
//helper
//article/*[2]:name
/Lexer | %(::construct; line = ::start-line)
/Lexer[::construct = "impl"]/helper::start-line
&на_руках | %(::читатель; книга = ::книга-->::название; ::выдана)
&на_руках @| count
&книги_автора("Толстой") | ::название
&книги_автора("Пушкин") | &карточка
//книга[::жанр = "поэма"] | &карточка
&out | %(::reader; book = ::book-->::title; ::out)
&out @| count
&by("Twain") | ::title
&by("Austen") | &card
//book[::genre = "epic"] | &card
/*
^ | %(:::n-pages; :::text-layer; ::title)
//page | %(:::page; :::width; :::height; :::dpi; :::text-layer)
/page[1]//line | :: @| [..4]
/page[2]//line | %(t = ::; :::y; :::x; :::width) @| [5..8]
/page[2]//column | %(:::y; :::height; lines = (//line @| count))
/scan/page[2]//line | .t(::) | . <=> /canon/*[levenshtein(::; $.t) < 6] | %(scan = $.t; canon = $$1::; d = levenshtein($.t; $$1::)) @| [3..8]
/scan/page[2]//line | .t(::) | . <=>? /canon/*[levenshtein(::; $.t) < 6] | [!$$1] | %(scan = $.t; :::y)
def &pricey: /rows/*[::fare > 300]; &pricey::name
def &pricey: /rows/*[::fare > 300]; macro &agg($q): //step[1] | "&pricey @| ${::matcher}"; &agg(/count)
/orders/*[::total > 100]::total
/orders/*[::total > 100]::customer_id-->::name
&nope::name
//paragraph | :: | sc @| sum
//section[!/section] | %(tale = ::lemma; sentences = (:: | sc)) @| top(3; :sentences)
//section[!/section] | %(tale = ::lemma; mean = round((:: | sentences | wc @| mean); 1); median = (:: | sentences | wc @| median); sd = round((:: | sentences | wc @| stddev); 1)) @| [..3]
//section[!/section] | %(tale = ::lemma; mean = round((:: | sentences | wc @| mean); 1)) @| top(6; :mean)
//paragraph | :: | sentences | %(words = wc($_); text = substr($_; 1..50)) @| top(3; :words)
//paragraph | :: | sentences | [$_ == (/\?»?$/)] @| count
//paragraph | :: | sentences | [$_ == (/!»?$/)] @| count
//section[!/section] | %(tale = ::lemma; questions = (:: | sentences | [$_ == (/\?»?$/)] @| count)) @| top(3; :questions)
//section[!/section] | %(tale = ::lemma; spoken = round((//paragraph[:: == "—"*] @| count) div (//paragraph @| count); 2)) @| top(6; :spoken)
//section[!/section] | %(tale = ::lemma; spoken = round((//paragraph[:: == "—"* || :: == "«"*] @| count) div (//paragraph @| count); 2)) @| top(6; :spoken)
//section[!/section] | %(tale = ::lemma; words = (:: | wc); sentences = (:: | sc))
/result/*[::sentences > 300] | %(::tale; ::words)
/result/* | %(::tale; per = round(::words div ::sentences; 1)) @| top(3; :per)
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; sentences = (:: | sc)) @| top(3; :sentences)
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; mean = round((:: | sentences | wc @| mean); 1); median = (:: | sentences | wc @| median); sd = round((:: | sentences | wc @| stddev); 1)) @| [..3]
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; mean = round((:: | sentences | wc @| mean); 1)) @| bottom(3; :mean)
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; mean = round((:: | sentences | wc @| mean); 1)) @| top(3; :mean)
//paragraph | :: | sentences | [$_ == (/\?”?$/)] @| count
//paragraph | :: | sentences | [$_ == (/!”?$/)] @| count
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; questions = (:: | sentences | [$_ == (/\?”?$/)] @| count)) @| top(3; :questions)
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; spoken = round((//paragraph[:: == "“"*] @| count) div (//paragraph @| count); 2)) @| top(3; :spoken)
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; spoken = round((//paragraph[:: == "“"*] @| count) div (//paragraph @| count); 2)) @| bottom(3; :spoken)
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; words = (:: | wc); sentences = (:: | sc))
/result/*[::sentences > 300] | %(::chapter; ::words)
/result/* | %(::chapter; per = round(::words div ::sentences; 1)) @| top(3; :per)
//row | %(form = (::слово | stress(::ударение)); ::значение)
= "молоко" | stress(-1)
= "замо́к" | stress_at
= "замо́к" | unstress
= "молоко" | vowels
//row[::слово = "замок"] | %(upper = (::слово | stress(::ударение) | accent("upper")); apostrophe = (::слово | stress(::ударение) | accent("apostrophe")))
//row | %(::имя; latin = (::имя | translit))
//row[::язык = "русский"] | %(::имя; scientific = (::имя | translit("scientific")); bgn = (::имя | translit("bgn")); passport = (::имя | translit("passport")))
//row | ::слово @| unique @| sort(atergo)
//row | ::слово @| unique | %(word = $_; ending = substr($_; -2..)) | .ending($_:ending) @|{.ending} [($_ @| count) > 1] | %($.ending; words = ($_ | :word @| join(", ")))
//row | %(form = (::word | stress(::stress)); ::gloss)
//row[::word = "замок"] | %(upper = (::word | stress(::stress) | accent("upper")); apostrophe = (::word | stress(::stress) | accent("apostrophe")))
//row | %(::name; latin = (::name | translit))
//row[::language = "Russian"] | %(::name; scientific = (::name | translit("scientific")); bgn = (::name | translit("bgn")); passport = (::name | translit("passport")))
//row | ::word @| unique @| sort(atergo)
//row | ::word @| unique | %(word = $_; ending = substr($_; -2..)) | .ending($_:ending) @|{.ending} [($_ @| count) > 1] | %($.ending; words = ($_ | :word @| join(", ")))
/sheet/* | .w(::слово) | %(word = $.w; instead = ::взамен; n = (^/book//paragraph | :: | lower | s/[^\p{L}]/ /g | words | [$_ = $.w] @| count))
/sheet/* | .w(::слово) | %(word = $.w; n = (^/book//paragraph | :: | lower | s/[^\p{L}]/ /g | words | [$_ = $.w] @| count)) | [:n = 0]
/sheet/* | .w(::слово) | ^/book//paragraph | [:: *= $.w] | .word($.w) @|{.word} count | %($.word; paragraphs = $_)
/sheet/* | .w(::слово) | ^/book//section[!/section] | .ch(::lemma) | /paragraph | :: | lower | s/[^\p{L}]/ /g | words | [$_ = $.w] | .word($.w) | .tale($.ch) @|{.word; .tale} count | %($.word; $.tale; n = $_) @| top(4; :n)
/sheet/*[::слово = "дабы"] | .w(::слово) | .i(::взамен) | ^/book//section[!/section] | .ch(::lemma) | /paragraph | :: | sentences | [($_ | lower | s/[^\p{L}]/ /g | words | [$_ = $.w] @| count) > 0] | %(word = $.w; instead = $.i; tale = $.ch; opens = substr($_; 1..60))
//paragraph | :: | sentences | [$_ == (/^И\b/)] @| count
//section[!/section] | %(tale = ::lemma; n = (//paragraph | :: | sentences | [$_ == (/^И\b/)] @| count)) @| top(3; :n)
/sheet/* | .w(::word) | %(word = $.w; instead = ::instead; n = (^/book//paragraph | :: | lower | s/[^\p{L}’]/ /g | words | [$_ = $.w] @| count))
/sheet/* | .w(::word) | %(word = $.w; n = (^/book//paragraph | :: | lower | s/[^\p{L}’]/ /g | words | [$_ = $.w] @| count)) | [:n = 0]
/sheet/* | .w(::word) | ^/book//paragraph | [:: *= $.w] | .word($.w) @|{.word} count | %($.word; paragraphs = $_)
/sheet/* | .w(::word) | ^/book//section[!/section] | .ch(::lemma) | /paragraph | :: | lower | s/[^\p{L}’]/ /g | words | [$_ = $.w] | .word($.w) | .chapter($.ch) @|{.word; .chapter} count | %($.word; $.chapter; n = $_) @| top(4; :n)
/sheet/*[::word = "whilst"] | .w(::word) | .i(::instead) | ^/book//section[!/section] | .ch(::lemma) | /paragraph | :: | sentences | [($_ | lower | s/[^\p{L}’]/ /g | words | [$_ = $.w] @| count) > 0] | %(word = $.w; instead = $.i; chapter = $.ch; opens = substr($_; 1..60))
//paragraph | :: | sentences | [$_ == (/^And\b/)] @| count
//section[!/section] | %(chapter = ::lemma; n = (//paragraph | :: | sentences | [$_ == (/^And\b/)] @| count)) @| top(3; :n)
/commits/* | %(::short; ::author; date = (::date | isodate); ::subject)
/tags/* | %(tag = :name; at = ::short; ::subject)
/HEAD/vystrel.txt:: | lines | [$_ != ""] | substr(1..50) @| [..4]
/commits/* | %(::short; paragraphs = (/vystrel.txt:: | lines | [$_ != ""] @| count) - 1)
/commits/* | .v(::short) | /vystrel.txt:: | lines | [$_ != ""] | %(v = $.v; l = $_) | .l($_:l) @|{.l} [($_ @| count) < 4] | %(l = substr($.l; 1..40); in = ($_ | :v @| join(" ")))
/HEAD(->parent)* | [/vystrel.txt:: *= "Сильвио"] @| last | %(::short; ::author; ::subject)
/HEAD(->parent)* | [/vystrel.txt:: *= "Сильвіо"] | %(::short; ::author; ::subject)
/HEAD/vystrel.txt:: | lines | [$_ != ""] | .p($_) | %(l = substr($.p; 1..40); since = (^/HEAD(->parent)* | [/vystrel.txt:: *= $.p] @| last | ::short)) @| [..5]
/commits/*[/vystrel.txt<changed>] | ::short
/HEAD | %(::n-changed; ::changed)
/tags/издание-1/vystrel.txt:: | lines | [$_ *= "ещё"] @| count
/HEAD/vystrel.txt:: | lines | [$_ *= "ещё"] @| count
/HEAD/chapter-1.txt:: | lines | [$_ != ""] | substr(1..50) @| [..3]
/commits/* | %(::short; paragraphs = (/chapter-1.txt:: | lines | [$_ != ""] @| count) - 1)
/commits/* | .v(::short) | /chapter-1.txt:: | lines | [$_ != ""] | %(v = $.v; l = $_) | .l($_:l) @|{.l} [($_ @| count) < 4] | %(l = substr($.l; 1..40); in = ($_ | :v @| join(" ")))
/HEAD(->parent)* | [/chapter-1.txt:: *= "jimpson"] @| last | %(::short; ::author; ::subject)
/HEAD(->parent)* | [/chapter-1.txt:: *= "jimson"] | %(::short; ::subject)
/HEAD/chapter-1.txt:: | lines | [$_ != ""] | .p($_) | %(l = substr($.p; 1..40); since = (^/HEAD(->parent)* | [/chapter-1.txt:: *= $.p] @| last | ::short)) @| [..4]
/commits/*[/chapter-1.txt<changed>] | ::short
/tags/edition-1/chapter-1.txt:: | lines | [$_ == (/“/)] @| count
/HEAD/chapter-1.txt:: | lines | [$_ == (/“/)] @| count
//token[::entity]::entity | .t($_) @|{.t} count | %($.t; n = $_) @| top(5; :n)
//token[::entity = "PER"] @| unique_by($_; :::mention) | ::mention @| unique
//token[::entity = "PER"] @| unique_by($_; :::mention) | ::lemma | .l($_) @|{.l} count | %($.l; n = $_) @| top(6; :n)
//token[::entity = "PER"] @| unique_by($_; :::mention) | ::lemma | .l($_) @|{.l} count | %($.l; n = $_) @| top(8; :n)
//token[::lower == (/^чичиков/)][::deprel = "nsubj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token[::lower == (/^ноздрев/)][::deprel = "nsubj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//sentence[//token[::lower == (/^чичиков/)]][//token[::lower == (/^ноздрев/)]] @| count
//sentence[//token[::lower == (/^чичиков/)]] @| count
//sentence[//token[::lower == (/^чичиков/)]][//token[::lower == (/^ноздрев/)]]:: @| first
//token[::entity = "PERSON"] @| unique_by($_; :::mention) | ::mention | .m($_) @|{.m} count | %($.m; n = $_) @| top(6; :n)
//token[::entity = "PERSON"] @| unique_by($_; :::mention) | ::mention @| unique
//token[:::entity] @| unique_by($_; :::mention) | :::entity | .e($_) @|{.e} count | %($.e; n = $_) @| top(3; :n)
//token[:::entity = "e5152"] @| unique_by($_; :::mention) | [::upos != "PRON"] | ::mention @| unique
//token[:::entity = "e5153"] @| unique_by($_; :::mention) | ::mention | .m($_) @|{.m} count | %($.m; n = $_) @| top(5; :n)
//character | %(::lemma; ::role; mentions = (<-character @| count))
//token[::prosopon = "tom"]::lower | .w($_) @|{.w} count | %($.w; n = $_) @| top(5; :n)
//token[::prosopon = "tom"][::deprel = "nsubj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token[:::entity = "e5152"][::deprel = "nsubj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token[:::entity = "e5153"][::deprel = "nsubj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//sentence[//token[:::entity = "e5152"]][//token[:::entity = "e5153"]] @| count
//token[:::entity = "e5152"][:::mention] | :::sentence @| unique @| count
//sentence[//token[:::entity = "e5152"]][//token[:::entity = "e5153"]]:: @| first
/* | %(who = :name; sents = (//sentence @| count); tokens = (//token @| count); words = (//token[::upos != "PUNCT"] @| count))
/* | .who(:name) | //token | .p(::upos) @|{.who; .p} count | %(who = $.who; p = $.p; n = $_) @| top(6; :n)
/* | .n(//token[::upos != "PUNCT"] @| count) | %(who = :name; noun = ((//token[::upos = "NOUN"] @| count) * 1000 div $.n | round); verb = ((//token[::upos = "VERB"] @| count) * 1000 div $.n | round); adj = ((//token[::upos = "ADJ"] @| count) * 1000 div $.n | round); adv = ((//token[::upos = "ADV"] @| count) * 1000 div $.n | round); pron = ((//token[::upos = "PRON"] @| count) * 1000 div $.n | round); propn = ((//token[::upos = "PROPN"] @| count) * 1000 div $.n | round); vn = ((//token[::upos = "VERB"] @| count) div (//token[::upos = "NOUN"] @| count) | round(2)))
/* | .v(//token[::upos = "VERB"] @| count) | .p(//token[::upos = "PRON"] @| count) | %(who = :name; past = ((//token[::upos = "VERB"][::tense = "Past"] @| count) div $.v | round(2)); present = ((//token[::upos = "VERB"][::tense = "Pres"] @| count) div $.v | round(2)); perf = ((//token[::upos = "VERB"][::aspect = "Perf"] @| count) div $.v | round(2)); first = ((//token[::upos = "PRON"][::person = "First"] @| count) div $.p | round(2)); third = ((//token[::upos = "PRON"][::person = "Third"] @| count) div $.p | round(2)))
/* | %(who = :name; mean = ((//token[::deprel != "ROOT"][::upos != "PUNCT"] | (abs(::id - (->head::id))) @| mean) | round(2)); p90 = (//token[::deprel != "ROOT"][::upos != "PUNCT"] | (abs(::id - (->head::id))) @| percentile(90)); max = (//token[::deprel != "ROOT"][::upos != "PUNCT"] | (abs(::id - (->head::id))) @| max))
//token[::deprel != "ROOT"][::upos != "PUNCT"] | %(word = ::; d = abs(::id - (->head::id)); text = substr(::sentence; 1..60)) @| top(2; :d)
/* | %(who = :name; height = ((//sentence | (/token[::upos != "PUNCT"] | ((->head)+ @| count) @| max) @| mean) | round(2)); max = (//sentence | (/token[::upos != "PUNCT"] | ((->head)+ @| count) @| max) @| max))
//sentence | %(h = (/token[::upos != "PUNCT"] | ((->head)+ @| count) @| max); text = substr(::; 1..60)) @| top(2; :h)
/* | .s(//sentence @| count) | %(who = :name; clauses = ((//token[::deprel = "advcl" || ::deprel = "ccomp" || ::deprel = "acl:relcl" || ::deprel = "acl" || ::deprel = "xcomp"] @| count) div $.s | round(2)); relcl = ((//token[::deprel = "acl:relcl"] @| count) * 100 div $.s | round(1)); passive = ((//sentence[//token[::deprel = "nsubj:pass"]] @| count) * 100 div $.s | round(1)))
/* | .who(:name) | //token[::deprel != "punct"] | .r(::deprel) @|{.who; .r} count | %(who = $.who; r = $.r; n = $_) | [:who = "толстой"] @| top(6; :n)
/* | .who(:name) | //token[::deprel = "ROOT"][::upos = "VERB"] | .v(::lemma) @|{.who; .v} count | %(who = $.who; v = $.v; n = $_) | [:who = "пушкин"] @| top(5; :n)
/* | .who(:name) | //token[::deprel = "ROOT"][::upos = "VERB"] | .v(::lemma) @|{.who; .v} count | %(who = $.who; v = $.v; n = $_) | [:who = "толстой"] @| top(5; :n)
/* | .who(:name) | //token[::deprel = "obj"]->head | .v(::lemma) @|{.who; .v} count | %(who = $.who; v = $.v; n = $_) | [:who = "гончаров"] @| top(5; :n)
/* | .who(:name) | .r(//sentence | %(n = (/token[::upos != "PUNCT"] @| count); h = (/token[::upos != "PUNCT"] | ((->head)+ @| count) @| max)) @| corr(:n; :h)) | .s(//sentence | %(n = (/token[::upos != "PUNCT"] @| count); h = (/token[::upos != "PUNCT"] | ((->head)+ @| count) @| max)) @| spearman(:n; :h)) | %(who = $.who; pearson = ($.r | round(3)); spearman = ($.s | round(3)))
/* | .who(:name) | .n(//token @| count) | //token | .p(::upos) @|{.who; .n; .p} count | %(p = $.p; d = ($.who = "пушкин" ? $_ div $.n : null); t = ($.who = "толстой" ? $_ div $.n : null); l = ($.who = "лермонтов" ? $_ div $.n : null); u = ($.who = "гончаров" ? $_ div $.n : null)) | .p($_:p) @|{.p} %(d = ($_ | :d @| max); t = ($_ | :t @| max); l = ($_ | :l @| max); u = ($_ | :u @| max)) | .all(1) @|{.all} %(пушкин_толстой = (($_ @| cosine(:d; :t)) | round(4)); пушкин_лермонтов = (($_ @| cosine(:d; :l)) | round(4)); пушкин_гончаров = (($_ @| cosine(:d; :u)) | round(4)); толстой_лермонтов = (($_ @| cosine(:t; :l)) | round(4)); толстой_гончаров = (($_ @| cosine(:t; :u)) | round(4)); лермонтов_гончаров = (($_ @| cosine(:l; :u)) | round(4)))
/* | .n(//token @| count) | %(who = :name; persons = ((//token[::ner = "B-PER"] @| count) * 1000 div $.n | round(1)); places = ((//token[::ner = "B-LOC"] @| count) * 1000 div $.n | round(1)))
//token[::ner = "B-PER"] | ::mention | .m($_) @|{.m} count | %($.m; n = $_) @| top(5; :n)
/* | .v(//token[::upos = "VERB"] @| count) | .p(//token[::upos = "PRON"] @| count) | %(who = :name; past = ((//token[::upos = "VERB"][::tense = "Past"] @| count) div $.v | round(2)); present = ((//token[::upos = "VERB"][::tense = "Pres"] @| count) div $.v | round(2)); first = ((//token[::upos = "PRON"][::person = "1"] @| count) div $.p | round(2)); third = ((//token[::upos = "PRON"][::person = "3"] @| count) div $.p | round(2)))
/* | .s(//sentence @| count) | %(who = :name; clauses = ((//token[::deprel = "advcl" || ::deprel = "ccomp" || ::deprel = "relcl" || ::deprel = "acl" || ::deprel = "xcomp"] @| count) div $.s | round(2)); relcl = ((//token[::deprel = "relcl"] @| count) * 100 div $.s | round(1)); passive = ((//sentence[//token[::deprel = "nsubjpass"]] @| count) * 100 div $.s | round(1)))
/* | .who(:name) | //token[::deprel != "punct"] | .r(::deprel) @|{.who; .r} count | %(who = $.who; r = $.r; n = $_) | [:who = "conrad"] @| top(6; :n)
/* | .who(:name) | //token[::deprel = "ROOT"][::upos = "VERB"][::lemma != "’"] | .v(::lemma) @|{.who; .v} count | %(who = $.who; v = $.v; n = $_) | [:who = "austen"] @| top(5; :n)
/* | .who(:name) | //token[::deprel = "ROOT"][::upos = "VERB"][::lemma != "’"] | .v(::lemma) @|{.who; .v} count | %(who = $.who; v = $.v; n = $_) | [:who = "twain"] @| top(5; :n)
/* | .who(:name) | //token[::deprel = "dobj"]->head | .v(::lemma) @|{.who; .v} count | %(who = $.who; v = $.v; n = $_) | [:who = "conrad"] @| top(5; :n)
/* | .who(:name) | .n(//token @| count) | //token | .p(::upos) @|{.who; .n; .p} count | %(p = $.p; t = ($.who = "twain" ? $_ div $.n : null); c = ($.who = "conrad" ? $_ div $.n : null); l = ($.who = "london" ? $_ div $.n : null); a = ($.who = "austen" ? $_ div $.n : null)) | .p($_:p) @|{.p} %(t = ($_ | :t @| max); c = ($_ | :c @| max); l = ($_ | :l @| max); a = ($_ | :a @| max)) | .all(1) @|{.all} %(twain_conrad = (($_ @| cosine(:t; :c)) | round(4)); twain_london = (($_ @| cosine(:t; :l)) | round(4)); twain_austen = (($_ @| cosine(:t; :a)) | round(4)); conrad_london = (($_ @| cosine(:c; :l)) | round(4)); conrad_austen = (($_ @| cosine(:c; :a)) | round(4)); london_austen = (($_ @| cosine(:l; :a)) | round(4)))
/* | .n(//token @| count) | %(who = :name; persons = ((//token[::ner = "B-PERSON"] @| count) * 1000 div $.n | round(1)); places = ((//token[::ner = "B-GPE" || ::ner = "B-LOC"] @| count) * 1000 div $.n | round(1)))
//token[::ner = "B-PERSON"] | ::mention | .m($_) @|{.m} count | %($.m; n = $_) @| top(5; :n)
/f/hosts/* <=> /m/*[::host = $$0::name] | %(::name; cpu = $$1::cpu)
/f/hosts/* <=>? /m/*[::host = $$0::name] | %(::name; cpu = $$1::cpu)
/f/hosts/* <=> /m/*[::host = $$0::name] <=> /s/*[:name = $$0::name] | %(::name; cpu = $$1::cpu; tier = $$2::tier)
/f/hosts/* | .t(::tier) <=> /m/*[::host = $$0::name && $.t = "prod"] | %(::name; cpu = $$1::cpu)
/f/hosts/* .h <=> /m/*[::host = $$.h::name] | %(::name; cpu = $$1::cpu)
/f/hosts/* :=: /m/*(?::host = ((0))::name) __ %(::name; cpu = ((1))::cpu)
/replies/* .top //replies/* | %(who = ::who; under = $$.top::who)
/replies/* .top //replies/* . | %(who = $$.::who; top = $$.1::who)
/replies/* .top //replies/* | .t($$.top::who) @|{.t} count | .n | %.
/replies/* .top //replies/* __ %(who = ::who; under = ((top))::who; first = ((.1))::who)
/replies/* .top //replies/* __ %(under = ((top))::who; first = ((.1))::who; last = ((.))::who)
/play | %(acts = (//section[::lemma == (/^Действие/)] @| count); scenes = (//section[::lemma == (/^Явление/)] @| count); speeches = (//dialogue @| count); words = (//token<word> @| count); directions = (//paragraph<stage-direction> @| count))
//character | %(::lemma; speeches = (<-character[:name = "dialogue"] @| count); words = (<-character[:name = "dialogue"]//token<word> @| count)) @| top(6; :words)
//character[::onym = "хлестаков"] | <-character[:name = "dialogue"] | %(act = (\\section[::lemma == (/^Действие/)] | ::lemma); words = (//token<word> @| count)) | .act($_:act) @|{.act} %($.act; speeches = ($_ @| count); words = ($_ | :words @| sum))
//dialogue | %(who = ->character::lemma; words = (//token<word> @| count); opens = substr(::; 1..40)) @| top(4; :words)
//dialogue[->character::onym = "хлестаков"] | %(cue = (<dialogue | :: | substr(-30..)); line = substr(::; 1..40)) @| [..5]
//paragraph<stage-direction>[:: *= "Хлестаков"] | %(act = (\\section[::lemma == (/^Действие/)] | ::lemma); direction = ::) @| [..6]
//section[::lemma == (/^Явление/)] | %(act = (\\section[::lemma == (/^Действие/)] | ::lemma); scene = substr(::lemma; 1..30); speakers = (//dialogue->character::onym @| unique @| count); speeches = (//dialogue @| count)) @| top(4; :speakers)
/play | %(acts = (//section[::lemma == (/^ACT/)] @| count); scenes = (//section[::lemma == (/^SCENE/)] @| count); speeches = (//dialogue @| count); words = (//token<word> @| count); directions = (//paragraph<stage-direction> @| count))
//character[::onym = "ophelia"] | <-character[:name = "dialogue"] | %(act = (\\section[::lemma == (/^ACT/)] | ::lemma); words = (//token<word> @| count)) | .act($_:act) @|{.act} %($.act; speeches = ($_ @| count); words = ($_ | :words @| sum))
//dialogue[->character::onym = "ophelia"] | %(cue = (<dialogue | :: | substr(-30..)); line = substr(::; 1..40)) @| [..5]
//paragraph<stage-direction>[:: *= "Ophelia"] | %(act = (\\section[::lemma == (/^ACT/)] | ::lemma); direction = ::)
//section[::lemma == (/^SCENE/)] | %(act = (\\section[::lemma == (/^ACT/)] | ::lemma); scene = substr(::lemma; 1..30); speakers = (//dialogue->character::onym @| unique @| count); speeches = (//dialogue @| count)) @| top(4; :speakers)
&книги | %(::автор; ::название; ::год)
&профиль
&профиль | .r | %(кто = $.r:кто; год = (^/каталог/* | [::монтирование = $.r:кто] | ::год @| first); средняя = $.r:средняя) @| sort_by(:год)
&частота("и")
&частота("не")
&books | %(::author; ::title; ::year)
&profile
&profile | .r | %(who = $.r:who; year = (^/catalogue/* | [::mount = $.r:who] | ::year @| first); mean = $.r:mean) @| sort_by(:year)
&rate("the")
= "6 октября 1899 года он уехал, а через два дня вернулся." | timex(ru)
//section[:depth = 2] | ::lemma | timex(ru) | %(:text; :value)
//section[:depth = 2]/paragraph | :: | timex(ru) | %(:text; :kind; :value)
//section[:depth = 2] | %(::lemma; n = (/paragraph | :: | timex(ru) @| count))
//section[:depth = 2] | .h(::lemma) | /paragraph | :: | timex(ru) | [:kind = "relative" || :kind = "duration"] | %(entry = $.h; :text; :kind; :value)
= "вчера" | timex(ru) | time_anchor(1833-05-11)
= "через два дня" | timex(ru) | time_anchor(1833-05-11)
= "He left on 6 October 1899 and came back the next day." | timex(en)
//section[:depth = 2] | ::lemma | timex(en) | %(:text; :value) @| [..4]
//section[:depth = 2]/paragraph | :: | timex(en) | %(:text; :kind; :value)
//section[:depth = 2] | %(::lemma; n = (/paragraph | :: | timex(en) @| count)) @| [..4]
//section[:depth = 2] | .h(::lemma) | /paragraph | :: | timex(en) | [:kind != "vague"] | %(entry = $.h; :text; :kind; :value)
= "the next day" | timex(en) | time_anchor(1659-11-18)
= "two months later" | timex(en) | time_anchor(1659-09-30)
= "the following Monday" | timex(en) | time_anchor(1659-09-30)
/row[::started > now() - 7d]::service
/row[::started > now() - 7d][::started < now()]::service
/row | %(::service; took = (::finished | datetime) - (::started | datetime))
/row[(::finished | datetime) - ::started > 30min]::service
/row | .day((::started | isodate)) @|{.day} count | .n | %.
/row[(::stamp | strptime("%d/%b/%Y:%H:%M:%S")) > now() - 3d]::path
/rows/* @| top(2; ::fare) | %(::name; ::fare)
/rows/* | %(::name; ::fare) @| top(2; .fare)
//*<function> @| top(2; ::end-line - ::start-line) | %(:name)
/* @| top(2; ::fare) | %(::name; ::fare)
//название
//* | .kind((:traits | join(" "))) @|{.kind} count | %($.kind; n = $_)
//*<number> | %(key = :name; value = ::)
//*[:: = 1869]
//название[:: = "Ревизор"] | \::автор
/хранитель | %(::имя; ::с; leaf = :is-leaf)
//книги/* | %(::название; ::год)
//*[::год = 1869]
//книги/*[1] | ::метки
//name
/hosts/* | %(::name; ::tier)
//title
//*[:: = 1815]
//title[:: = "Emma"] | \::author
/keeper | %(::name; ::since; leaf = :is-leaf)
//books/* | %(::title; ::year)
//*[::year = 1815]
//books/*[1] | ::tags
/polyglot/* | %(:name; size = :::size)
/polyglot/*[:::size > 0.4kB]:name
/polyglot/shapes.rs | %(:name; size = (:::size | convert(kB)))
/@racks/*[::cooling < ::draw]::name
/@racks/* | %(::name; ::cooling; watts = ((::cooling | convert(W)) | round))
/@racks/*[::ups > 10kW*h]::name
/@racks/*[::draw > 2m] @| count
/обоз/грузы/* | %(::что; кг = (::вес | convert(kg) | round(1)); км = (::путь | convert(km) | round(2)))
/обоз/грузы/0::путь | convert(сажень)
/обоз/грузы/0 | ::вес + 1пуд | round(2)
/обоз/грузы/0 | ::вес + 1пуд | convert(пуд)
/обоз/грузы/* | ::вес | quantity @| sum | round(1)
/обоз/грузы/* | ::вес | quantity @| sum | convert(пуд)
/обоз/грузы/*[(::вес | quantity) > "1 пуд"]::что
/обоз/грузы/*[(::путь | quantity) < "2 версты"]::что
/обоз/грузы/0 | %(::вес; золотники = (::вес | convert(золотник)))
/cart/loads/* | %(::what; kg = (::weight | convert(kg) | round(1)); km = (::haul | convert(km) | round(2)))
/cart/loads/0::haul | convert(yard)
/cart/loads/0 | ::weight + 1stone | round(2)
/cart/loads/0 | ::weight + 1stone | convert(cwt)
/cart/loads/* | ::weight | quantity @| sum | round(1)
/cart/loads/* | ::weight | quantity @| sum | convert(cwt) | round(1)
/cart/loads/*[(::weight | quantity) > "2 cwt"]::what
/cart/loads/*[(::haul | quantity) < "1 mi"]::what
/cart/loads/0 | %(::weight; bushels = (::weight | convert(bushel)))
//token[:::sentence = 7] | %(form = ::; pos = ::upos; rel = ::deprel; head = (->head::))
//token<word>[::upos = "VERB"]::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token[::lemma = "говорить"]<-head[::deprel = "nsubj"]::lower | .s($_) @|{.s} count | %($.s; n = $_) @| top(3; :n)
//token[::lemma = "господин"][::deprel = "nsubj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token[::lemma = "господин"][::deprel = "obj"] | %(verb = (->head::lemma); s = substr(::sentence; 1..90))
//token[::deprel = "ROOT"][::upos = "VERB"] | %(verb = ::lemma; subject = (<-head[::deprel = "nsubj"]::); object = (<-head[::deprel = "obj"]::)) | [:subject][:object] @| [..6]
//token[::deprel = "nsubj:pass"] | %(subject = ::; verb = (->head::lemma)) @| [..4]
//token[::deprel = "amod"][->head::lemma = "человек"]:: @| unique
//token[::deprel = "amod"][->head::lemma = "человек"] | %(adj = ::; text = substr(::sentence; 1..60)) @| [..3]
//token[::Tense = "Past"][::upos = "VERB"] @| count
//token[::tense = "Pres"][::upos = "VERB"] @| count
//token[::Aspect = "Perf"][::upos = "VERB"] @| count
//token[::Aspect = "Imp"][::upos = "VERB"] @| count
//token[:::sentence = 2] | %(form = ::; pos = ::upos; rel = ::deprel; head = (->head::))
//token[::lemma = "say"]<-head[::deprel = "nsubj"]::lower | .s($_) @|{.s} count | %($.s; n = $_) @| top(3; :n)
//token[::lower = "tom"][::deprel = "nsubj"]->head::lemma | .v($_) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token[::lower = "tom"][::deprel = "dobj"] | %(verb = (->head::lemma); ::sentence)
//token[::deprel = "ROOT"][::upos = "VERB"] | %(verb = ::lemma; subject = (<-head[::deprel = "nsubj"]::); object = (<-head[::deprel = "dobj"]::)) | [:subject][:object] @| [..6]
//token[::deprel = "nsubjpass"] | %(subject = ::; verb = (->head::lemma)) @| [..4]
//token[::deprel = "amod"][->head::lower = "boy"]:: @| unique
//token[::deprel = "amod"][->head::lower = "boy"] | %(adj = ::; text = substr(::sentence; 1..60)) @| [..3]
//section[!/section] | %(глава = ::lemma; чичиков = (//paragraph[:: *= "Чичиков"] @| count); ноздрев = (//paragraph[:: *= "Ноздрев"] @| count); собакевич = (//paragraph[:: *= "Собакевич"] @| count)) @| [..6]
//paragraph[:: *= "Плюшкин"] | %(глава = \\?section::lemma; text = substr(::; 1..50)) @| first
//section[!/section][//paragraph[:: *= "Плюшкин"]]::lemma
//section[::lemma = "ГЛАВА VI"]//paragraph[:: *= "Плюшкин"] | %(глава = \\?section::lemma; text = substr(::; 1..50)) @| first
//section[!/section][//paragraph[:: *= "Ноздрев"][:: *= "Собакевич"]]::lemma
//section[!/section][:: *= "Манилов"][!(:: *= "Ноздрев")]::lemma
/cast/* | .m(::stem) | %(::name; глав = (^/book//section[!/section] | [:: *= $.m] @| count)) @| top(5; :глав)
/cast/* | .m(::stem) | %(::name; первая = (^/book//section[!/section] | [:: *= $.m] | ::lemma @| first))
/cast/* | .a(::stem) | ^/cast/*[::stem > $.a] | .b(::stem) | %(a = $.a; b = $.b; вместе = (^/book//paragraph | [:: *= $.a] | [:: *= $.b] @| count)) @| top(5; :вместе)
/cast/* | .a(::stem) | ^/cast/*[::stem > $.a] | .b(::stem) | %(a = $.a; b = $.b; вместе = (^/book//paragraph | [:: *= $.a] | [:: *= $.b] @| count)) | [:вместе = 0] @| count
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; tom = (//paragraph[:: *= "Tom"] @| count); huck = (//paragraph[:: *= "Huck"] @| count); becky = (//paragraph[:: *= "Becky"] @| count)) @| [..6]
//paragraph[:: *= "Huck"] | %(chapter = \\?section::lemma; text = substr(::; 1..50)) @| first
//section[::lemma *= "CHAPTER"]//paragraph[:: *= "Huck"] | %(chapter = \\?section::lemma; text = substr(::; 1..50)) @| first
//section[::lemma *= "CHAPTER"][//paragraph[:: *= "Huck"][:: *= "Injun Joe"]]::lemma
//section[::lemma *= "CHAPTER"][:: *= "Becky"][!(:: *= "Huck")]::lemma
/cast/* | .m(::mention) | %(::name; chapters = (^/book//section[::lemma *= "CHAPTER"] | [:: *= $.m] @| count)) @| top(5; :chapters)
/cast/* | .m(::mention) | %(::name; first = (^/book//section[::lemma *= "CHAPTER"] | [:: *= $.m] | ::lemma @| first))
/cast/* | .a(::mention) | ^/cast/*[::mention > $.a] | .b(::mention) | %(a = $.a; b = $.b; together = (^/book//paragraph | [:: *= $.a] | [:: *= $.b] @| count)) @| top(5; :together)
/cast/* | .a(::mention) | ^/cast/*[::mention > $.a] | .b(::mention) | %(a = $.a; b = $.b; together = (^/book//paragraph | [:: *= $.a] | [:: *= $.b] @| count)) | [:together = 0] @| count
//paragraph | :: | wc @| sum
//section[!/section] | :: | wc @| sum
//section[::lemma = "ВЫСТРЕЛ"] | :: | words | [$_ == (/^Сильвио/)] @| unique @| join(" ")
//section[::lemma = "ВЫСТРЕЛ"] | :: | words | [$_ == (/^Сильвио/)] @| count
//section[::lemma = "ВЫСТРЕЛ"] | :: | lower | s/[^\p{L}-]/ /g | words | [$_ = "сильвио"] @| count
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words @| count
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words | .w($_) @|{.w} count | %($.w; n = $_) @| top(10; :n)
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words | [!($_ = "и" || $_ = "в" || $_ = "не" || $_ = "он" || $_ = "с" || $_ = "на" || $_ = "что" || $_ = "я" || $_ = "его" || $_ = "как" || $_ = "ее" || $_ = "но" || $_ = "к" || $_ = "а" || $_ = "она")] | .w($_) @|{.w} count | %($.w; n = $_) @| top(10; :n)
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words @| unique @| count
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words | .w($_) @|{.w} count | [$_ = 1] @| count
//section[!/section] | .t(::lemma) | /paragraph | :: | lower | s/[^\p{L}-]/ /g | words @| unique_by($_; $.t) | .w($_) @|{.w} [($_ @| count) = 1] @| count
//section[!/section] | .t(::lemma) | /paragraph | :: | lower | s/[^\p{L}-]/ /g | words @| unique_by($_; $.t) | .w($_) @|{.w} [($_ @| count) = 1] @| ungroup | %(w = $_; повесть = $.t) | [:повесть = "ГРОБОВЩИК"] @| [..6]
//section[!/section] | %(повесть = ::lemma; слов = (:: | wc); ttr = round((:: | lower | s/[^\p{L}-]/ /g | words @| unique @| count) div (:: | wc); 2)) @| top(6; :ttr)
//section[!/section] | :: | s/[^\p{L}-]/ /g | words @| unique @| top(5; cc($_))
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words | [$_ == (/-/)] | .w($_) @|{.w} count | %($.w; n = $_) @| top(8; :n)
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words | [$_ == (/-с$/)] | .w($_) @|{.w} count | %($.w; n = $_) @| top(6; :n)
//section[::lemma *= "CHAPTER"] | :: | wc @| sum
//section[::lemma = "CHAPTER I"] | :: | words | [$_ == (/^Tom/)] @| unique @| join(" ")
//section[::lemma = "CHAPTER I"] | :: | words | [$_ == (/^Tom/)] @| count
//section[::lemma = "CHAPTER I"] | :: | lower | s/[^\p{L}’]/ /g | words | [$_ = "tom"] @| count
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words @| count
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | .w($_) @|{.w} count | %($.w; n = $_) @| top(10; :n)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | [!($_ = "the" || $_ = "and" || $_ = "a" || $_ = "to" || $_ = "of" || $_ = "he" || $_ = "was" || $_ = "it" || $_ = "in" || $_ = "that" || $_ = "his" || $_ = "i" || $_ = "you" || $_ = "had" || $_ = "with")] | .w($_) @|{.w} count | %($.w; n = $_) @| top(10; :n)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words @| unique @| count
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | .w($_) @|{.w} count | [$_ = 1] @| count
//section[::lemma *= "CHAPTER"] | .ch(::lemma) | /paragraph | :: | lower | s/[^\p{L}’]/ /g | words @| unique_by($_; $.ch) | .w($_) @|{.w} [($_ @| count) = 1] @| count
//section[::lemma *= "CHAPTER"] | .ch(::lemma) | /paragraph | :: | lower | s/[^\p{L}’]/ /g | words @| unique_by($_; $.ch) | .w($_) @|{.w} [($_ @| count) = 1] @| ungroup | %(w = $_; ch = $.ch) | [:ch = "CHAPTER XXXI"] @| [..6]
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; words = (:: | wc); ttr = round((:: | lower | s/[^\p{L}’]/ /g | words @| unique @| count) div (:: | wc); 2)) @| top(3; :ttr)
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; words = (:: | wc); ttr = round((:: | lower | s/[^\p{L}’]/ /g | words @| unique @| count) div (:: | wc); 2)) @| bottom(3; :ttr)
//section[::lemma *= "CHAPTER"] | :: | s/[^\p{L}’]/ /g | words @| unique @| top(5; cc($_))
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | [$_ == (/’/)] | .w($_) @|{.w} count | %($.w; n = $_) @| top(8; :n)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | [$_ == (/^’/)] | .w($_) @|{.w} count | %($.w; n = $_) @| top(6; :n)
//sense @| count
//sense//token<word> @| count
//sense//token<word> | ::lower | .word($_) @|{.word} count | %($.word; n = $_) @| top(5; :n)
//entry | %(::lemma; words = (//sense//token<word> @| count); longest = (//sense | (//token<word> @| count) @| max))
//sense[//token[::lower = "книга"]] | %(entry = (\\?entry::lemma); ::taxis; text = ::)
//entry[::lemma = "ПЕ́РО"]//sense | %(::taxis; sentences = (//sentence @| count); words = (//token<word> @| count))
//sense[//token[::lower = "free"]] | %(entry = (\\?entry::lemma); ::taxis; text = ::)
//entry[::lemma = "Liberal"]//sense | %(::taxis; sentences = (//sentence @| count); words = (//token<word> @| count))
//стихотворение | ::
//стихотворение | :: @| encoding(windows-1251)
//стихотворение | :: @| encoding(windows-1251) @| count
//стихотворение | :: @| encoding(latin1)
/* | %(::название; ::цена) @| csv(";"; название; цена) @| encoding(windows-1251)
//paragraph[:: == (/\p{Mn}/)] | :: @| encoding(windows-1251)
//paragraph[:: == (/\p{Mn}/)] | %(text = ::) @| jsonl @| encoding(windows-1251)
/*/text | :: | substr(1..40)
//песнь | :: @| encoding(windows-1251)
//песнь | :: @| encoding(windows-1251) @| count
//песнь | :: @| encoding(latin1)
//p | words | .n(cc) | %.
//p | words | %(w = $_; n = cc)
//p | words | .total@(count) | .unique@(unique @| count) @| %.
//p | words @| %(total = count; unique = unique @| count)
//p | words | .total@(count) @| unique @| count | %(unique = $_; total = $.total)
//p | words @| $.total
//p | words @| %%(n = count)
/w | %(lemma = morph:lemma; pos = morph:pos(--lang=ru)) @| morph:parse(-n=1)
/row | .t(q(| %(${/cols/*}))) | %.
//paragraph[:: *= "Injun Joe"] | %(chapter = (^//paragraph[:: == (/^CHAPTER [IVXL]+$/)][:index < $$__:index] | :: @| last); text = substr(::; 1..50)) | [:chapter] @| first
//paragraph | :: | sentences | [$_ == (/(гусар\w*)/)] | $1 | .f @|{.f} %(f = $.f; n = ($_ @| count)) @| top(8; :n)
//page | %(::title; sections = (//section @| count); words = (//paragraph:: | wc @| sum)) @| top(5; :words)
//page[(//paragraph:: | wc @| sum) < 100] | %(::title; words = (//paragraph:: | wc @| sum))
/* | %(:name; ::title; ::author)
//section @| outline(:depth; ::lemma; --style="1.")
//section[:depth <= 2] @| outline(:depth; ::lemma; --style="1.")
//section[::lemma = "The graveyard"]//section @| outline(:depth; ::lemma; --style="1.")
//section[:::level > :depth] | %(heading = ::lemma; :::level; :depth)
//section @| outline(:::level; ::lemma; --style="1.")
//section[!/section] @| outline(:depth; ::lemma; --style="1.") @| [..4]
//section[::lemma = "Метель"]//section @| outline(:depth; ::lemma; --style="1.")
//ref | %(text = ::; ::target) @| [..5]
//ref[:: <<= @("here"; "this") || :: == "http"*] | %(text = ::; ::target)
//ref<dangling> | %(text = ::; ::target)
//ref[:: <<= @("здесь"; "тут") || :: == "http"*] | %(text = ::; ::target)
//paragraph | :: | sentences | .sentence @|{.sentence} count | .n | [$.n > 1] | %($.sentence; times = $.n)
//paragraph | :: | sentences | %(words = wc($_); s = substr($_; 1..30)) @| top(2; :words)
//bib | %(n = ::onym; ::author; ::year; :::genus)
//bib[5] | %(::medium; seen = ::urldate; ::url)
//bib[::url] | %(n = ::onym; ::url; seen = ::urldate; ::medium; ::year)
//token[::lower = "wonder"] | %(w = ::; :::n; s = :::sentence; ::sentence)
//paragraph | %(tier = (/sentence @| count); sc = (:: | sc); fn = (:: | sentences @| count))
sentences/en.desm
//sentence[:::n = 48] | %(n = :::n; text = ::)
//token[::lower = "наполеон"] | %(w = ::; :::n; s = :::sentence; ::sentence)
sentences/ru.desm
//sentence[:::n = 90] | %(n = :::n; text = ::)
//section[::lemma = "CHAPTER I"] | :: | tokens(word) | lower | [$_ = "tom"] @| count
//section[::lemma *= "CHAPTER"] | :: | tokens(word) @| count
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words @| %(total = count; unique = unique @| count)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | .total@(count) | .unique@(unique @| count) @| %.
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words @| frequencies(10)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words @| frequencies(11..20)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words @| frequencies(21..30)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words @| hapax @| count
//section[::lemma *= "CHAPTER"] | .ch(::lemma) | /paragraph | :: | lower | s/[^\p{L}’]/ /g | words @| unique_by($_; $.ch) | .w @|{.w} count | [$_ = 1] @| count
//section[::lemma *= "CHAPTER"] | .ch(::lemma) | /paragraph | :: | lower | s/[^\p{L}’]/ /g | words @| unique_by($_; $.ch) | .w | .n@{.w}(count) | [$.n = 1] | %(w = $.w; ch = $.ch) | [:ch = "CHAPTER XXXI"] @| [..6]
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; words = (:: | wc); ttr = round((:: | lower | s/[^\p{L}’]/ /g | words @| ttr); 2)) @| top(3; :ttr)
//section[::lemma *= "CHAPTER"] | %(chapter = ::lemma; words = (:: | wc); ttr = round((:: | lower | s/[^\p{L}’]/ /g | words @| ttr); 2)) @| bottom(3; :ttr)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | [$_ == (/’/)] @| frequencies(8)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | [$_ == (/^’/)] @| frequencies(6)
//section[::lemma = "ВЫСТРЕЛ"] | :: | tokens(word) | lower | [$_ = "сильвио"] @| count
//section[!/section] | :: | tokens(word) @| count
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words @| %(total = count; unique = unique @| count)
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words | .total@(count) | .unique@(unique @| count) @| %.
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words @| frequencies(10)
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words @| frequencies(11..20)
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words @| frequencies(21..30)
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words @| hapax @| count
//section[!/section] | .t(::lemma) | /paragraph | :: | lower | s/[^\p{L}-]/ /g | words @| unique_by($_; $.t) | .w @|{.w} count | [$_ = 1] @| count
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words | [$_ == (/-/)] @| frequencies(8)
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | words | [$_ == (/-с$/)] @| frequencies(6)
//p[1] | %(text = ::; :::classes)
//merge[:::construct = "function"]:name
/row[1] | %(::name; ::fare; ::class)
/rows/*[1] | %(::name; ::fare; ::class)
/row[::fare > 300]::name
/row | ::fare + 1
/row::fare @| sum
/row[::class = 1]::name
= "700" = 700
/row[1]::fare | type
/row[1]::fare | number | type
/row[::fare > 300] | %(::name; ::fare)
/row @| sort_by(::fare; -d) | ::name
/row @| # | type
/row @| # | @ | ... | [:fare > 300] | %(:name; :fare)
//books/*[..2] | %(::title; ::year) | json
//books/*[..2] | %(::title; ::year) @| json
/events/*[1]::payload | decode(json)
/events/*::payload | decode(json) | :user:name
/events/*::payload | decode(json) | [:user:mfa = false] | :ip
/events/*[1]::payload | decode(json) | keys
/events/*[1]::payload | decode(json) | :user | json
/events/*[1]::payload | decode(json) | ::user
/events/* | .p(::payload | decode(json)) | %(id = ::id; who = $.p:user:name)
/events/*::payload | graft(json) | /user/name::
/events/*::payload | graft(json) | //name::
/events/*[(::payload | graft(json) | /user/mfa::) = false]/id::
/events/*[1]::payload | graft(json) | %
/events/*/payload<json>/user/name::
/events/*/payload<json>/user[::mfa = false]/name::
/'*'::tier
//books/*[::year > 1800]::title
//books/*[::year >= 1603 && ::year < 1700]::title
//books/*[::author = "Homer" || ::author = "Herodotus"]::title
//books/*[!::year]::title
//books/*[::title *= "The"]::title
//books/*[::author == "William"*]::title
//books/*[::title == (/odyssey/i)]::title
//books/*["verse" <<= ::tags]::title
//books/*[::year > 1800 && "novel" <<= ::tags]::title
//books/*[::tags = "epic"]::title
//books/*[1]::title
//books/*[-1]::title
//books/*[..2]::title
//books/*[::year > 1800][1]::title
/replies/*[//replies]::who
/replies/*[!//replies]::who
/replies/*[(//replies/* @| count) >= 2]::who
//books/*[(/tags/* @| count) > 2]::title
//books/*[::year > ^/books/*[::title = "Hamlet"]::year]::title
//books/* | [::year > 1800] | ::title
//books/*::year | [$_ > 1800]
/sales/*[2] | %(::city; ::takings)
/sales/*[1] | %(::city; at = (::at | datetime))
/row | %(::name; ::fare)
/*<function> | %(:name; span = :::end-line - :::start-line)
/row | @(::name; ::fare)
/row | @(::name; ::fare) | join(": ")
/row[::shelf = "A1"] | %(::title; ::genre; ::shelf)
/row[::shelf = "A1"] | %(::title; ::genre; ::shelf) @| # | pretty
/row[::year] | %(::title; ::genre; ::year) @| pretty(year; title)
/row[::year] | %(::title; ::year) @| # | csv
/row[::genre = "epic"] | %(::title; ::shelf) @| # | json
/row[::genre = "epic"] | %(::title; ::shelf)
/row[::shelf = "A1"] | %(::title; ::genre) @| # | pretty @| count
/row[::shelf = "A1"] | %(::title; ::genre) @| #
= #(@(title; genre); %("The Iliad"; "epic"); %("Beowulf"; "epic")) | pretty
/row[::полка = "Б1"] | %(::название; ::жанр; ::полка)
/row[::полка = "Б1"] | %(::название; ::жанр; ::полка) @| # | pretty
/row[::год < 1840] | %(::название; ::жанр; ::год) @| pretty(год; название)
/row[::год < 1840] | %(::название; ::год) @| # | csv
/row[::жанр = "поэма"] | %(::название; ::полка) @| # | json
/row[::жанр = "поэма"] | %(::название; ::полка)
/row[::полка = "Б1"] | %(::название; ::жанр) @| # | pretty @| count
/row[::полка = "Б1"] | %(::название; ::жанр) @| #
= #(@(название; жанр); %("Ревизор"; "комедия"); %("Мёртвые души"; "поэма")) | pretty
/row[::shelf = "A1"]
/row[::shelf = "A1"] | ::title
/row[::shelf = "A1"] | %(::title; ::genre)
/row[::shelf = "A1"] | @(::title; ::genre)
/row[::year] | %(::title; age = 2026 - ::year) | [:age > 200] | :title
/row[::year] | %(::title; age = 2026 - ::year) @| top(2; :age)
/row[::shelf = "A1"] | @(::title; ::genre; ::shelf) | first
/row[::shelf = "A1"] | @(::title; ::genre; ::shelf) | join(" / ")
/row[::id = "hamlet"] | @(::title; ::genre; ::shelf) | ...
/row[::shelf = "A1"] | %(::title; ::genre) @| json
/row[::shelf = "A1"] | @(::title; ::genre) @| json
/row[::shelf = "A1"] | %(::title; ::genre) | json
/row[::shelf = "A1"] | %(::title; ::genre; ::shelf) @| #
/row | %(::title; ::year) @| # | :year | max
= @(1; 2) ++ 3
= @(1; 2) ++ @(3; 4)
= @(1; 2) +@+ @(3; 4)
= %(a = 1) ++ %(b = 2)
= %(a = 1) ++ %(a = 2)
= %(a = 1) ++! %(a = 2)
/row[::shelf = "A1"] | %(::title; ::genre) @| # | rows
= @(1; 2; 3) * 2
= @(1; "a"; null) * 2
= @(1; 2; 3) + @(10; 20; 30)
= @(1; 2) + @(10; 20; 30)
= @(1; 2; 3) | * 2 | ... @| sum
= %(a = 1; b = 2) | keys
= %(a = 1; b = 2) | values
= @(%(title = "Hamlet"; year = 1603); %(year = 1815; title = "Emma")) | header
= @(%(title = "Hamlet"; year = 1603); %(year = 1815; title = "Emma")) | keys
= %(@(a; b) = @(1; 2))
= @("a"; "b") | .k | @(1; 2) | %($.k = $_)
= @(1..5)
= @(0..8..2)
= @(1; @(2; @(3))) | flatten
/row[::полка = "Б1"]
/row[::полка = "Б1"] | ::название
/row[::полка = "Б1"] | %(::название; ::жанр)
/row[::полка = "Б1"] | @(::название; ::жанр)
/row[::год] | %(::название; возраст = 2026 - ::год) | [:возраст > 185] | :название
/row[::год] | %(::название; возраст = 2026 - ::год) @| top(2; :возраст)
/row[::полка = "Б1"] | @(::название; ::жанр; ::полка) | first
/row[::полка = "Б1"] | @(::название; ::жанр; ::полка) | join(" / ")
/row[::id = "ревизор"] | @(::название; ::жанр; ::полка) | ...
/row[::полка = "Б1"] | %(::название; ::жанр) @| json
/row[::полка = "Б1"] | @(::название; ::жанр) @| json
/row[::полка = "Б1"] | %(::название; ::жанр) | json
/row[::полка = "Б1"] | %(::название; ::жанр; ::полка) @| #
/row | %(::название; ::год) @| # | :год | max
/row[::полка = "Б1"] | %(::название; ::жанр) @| # | rows
= @(%(название = "Ревизор"; год = 1836); %(год = 1842; название = "Шинель")) | header
= @(%(название = "Ревизор"; год = 1836); %(год = 1842; название = "Шинель")) | keys
/merge/for/if[2]:::start-line
/Lexer | %(:::construct; line = :::start-line)
/Lexer[:::construct = "impl"]/helper:::start-line
= 1 | #(@(title; year); %("Hamlet"; 1603); %("Emma"; 1815))
= 1 | #(@(title; year); %(year = 1603; title = "Hamlet"); %(title = "Emma"))
= 1 | #(%(1; 2; 3); %(4; 5; 6))
/row | %(::title; ::author; ::year) @| # | dim
/row @| # | keys
/row @| # | header
/row[::shelf = "A1"] @| #
/row[::shelf = "A1"] | %(::title; ::genre) @| # | columns
/row[::shelf = "A1"] | %(::title; ::genre) @| # | :title
/row | %(::title; ::author; ::year) @| # | $_[2]
/row | %(::title; ::author; ::year) @| # | $_[2; "author"]
/row | %(::title; ::author; ::year) @| # | $_[1..3; "title"]
/row | %(::title; ::author; ::year) @| # | $_[-1; 1..2]
/row | %(::title; ::author; ::year) @| # | $_[1..2; 1..2]
/row | %(::title; ::author; ::year) @| # | $_[1..3]:title
/row | %(::title; ::author; ::year) @| # | $_:title[1..3]
/row | %(::title; ::author; ::year) @| # | $_[2]:author
/row | %(::title; ::author; ::year) @| # | $_[-2..]:year
/row | %(::title; ::author; ::year) @| # | cell(2; "author")
/row | %(::title; ::author; ::year) @| # | [2]
/row | %(::title; ::author; ::year) @| # | :author | ... @| unique
/row[::shelf = "A1"] | %(::title; ::year) @| #
/row[::year] | %(::title; ::year) @| # | dim
= 1 | #(%("title"; "year"); %("Emma"; 1815)) | row-to-header
= 1 | #(@(title; year); %("Emma"; 1815)) | header-to-row
= 1 | #(@(title; year); %("Hamlet"; 1603)) ++ %("Emma"; 1815)
= 1 | #(@(title; year); %("Hamlet"; 1603)) ++ %(title = "Emma"; genre = "novel"; year = 1815)
= 1 | #(@(title; year); %("Hamlet"; 1603)) ++ #(@(title; year); %("Emma"; 1815); %("Persuasion"; 1817))
= 1 | #(@(title; year); %("Hamlet"; 1603)) ++ %("Emma"; "c. 1815") | type
/row[::year] | %(::title; ::year) @| # | [..2] | * 2
/row[::year] | %(::title; ::year) @| # | [..2] | + @(null; 1)
= #(%(1; 2); %(3; 4)) x @(1; 1)
= @(1; 1) x #(%(1; 2); %(3; 4))
= #(%(1; 2); %(3; 4)) x #(%(1; 0); %(0; 1))
= @(1..6) | #(--width=3)
= @(1..6) | #(--header=@(a; b; c))
= @(1..6) | #(-w=3) | flatten
/row[::year] | %(::title; ::year) @| # | [..2] | keys
/row[::year] | %(::title; ::year) @| # | [..2] | values
/row[::shelf = "A1"] | %(::title; ::genre) @| # | json
/row[::shelf = "A1"] | %(::title; ::genre) @| # | csv
/row[::shelf = "A1"] | %(::title; ::genre) @| # | pretty
/row[::year] | %(::title; ::year) @| # | pd:DataFrame | pd:describe
= 1 | #(@(название; год); %("Ревизор"; 1836); %("Мёртвые души"; 1842))
= 1 | #(@(название; год); %(год = 1836; название = "Ревизор"); %(название = "Мёртвые души"))
/row | %(::название; ::автор; ::год) @| # | dim
/row[::полка = "Б1"] @| #
/row[::автор = "аноним"] @| #
/row[::полка = "Б1"] | %(::название; ::жанр) @| # | columns
/row[::полка = "Б1"] | %(::название; ::жанр) @| # | :название
/row | %(::название; ::автор; ::год) @| # | $_[2]
/row | %(::название; ::автор; ::год) @| # | $_[2; "автор"]
/row | %(::название; ::автор; ::год) @| # | $_[1..3; "название"]
/row | %(::название; ::автор; ::год) @| # | $_[-1; 1..2]
/row | %(::название; ::автор; ::год) @| # | $_[1..2; 1..2]
/row | %(::название; ::автор; ::год) @| # | $_[1..3]:название
/row | %(::название; ::автор; ::год) @| # | $_:название[1..3]
/row | %(::название; ::автор; ::год) @| # | $_[2]:автор
/row | %(::название; ::автор; ::год) @| # | $_[-2..]:год
/row | %(::название; ::автор; ::год) @| # | cell(2; "автор")
/row | %(::название; ::автор; ::год) @| # | [2]
/row | %(::название; ::автор; ::год) @| # | :автор | ... @| unique
/row[::полка = "А1"] | %(::название; ::год) @| #
/row[::год] | %(::название; ::год) @| # | dim
= 1 | #(%("название"; "год"); %("Ревизор"; 1836)) | row-to-header
= 1 | #(@(название; год); %("Ревизор"; 1836)) | header-to-row
= 1 | #(@(название; год); %("Ревизор"; 1836)) ++ %("Мёртвые души"; 1842)
= 1 | #(@(название; год); %("Ревизор"; 1836)) ++ %(название = "Шинель"; жанр = "повесть"; год = 1842)
= 1 | #(@(название; год); %("Ревизор"; 1836)) ++ #(@(название; год); %("Мёртвые души"; 1842); %("Женитьба"; 1842))
= 1 | #(@(название; год); %("Ревизор"; 1836)) ++ %("Мёртвые души"; "ок. 1842") | type
/row[::год] | %(::название; ::год) @| # | [..2] | * 2
/row[::год] | %(::название; ::год) @| # | [..2] | + @(null; 1)
/row[::год] | %(::название; ::год) @| # | [..2] | keys
/row[::год] | %(::название; ::год) @| # | [..2] | values
/row[::полка = "Б1"] | %(::название; ::жанр) @| # | json
/row[::полка = "Б1"] | %(::название; ::жанр) @| # | csv
/row[::полка = "Б1"] | %(::название; ::жанр) @| # | pretty
/row[::год] | %(::название; ::год) @| # | pd:DataFrame | pd:describe
/rows/*[::fare > 300]::name
/rows/*[::fare > 300] | %(::name; ::fare)
/rows/* | %(::name; ::fare)
= "abc" | upper("x")
= 2 + 3
= 1_km | convert(m)
= "2026-11-02" | datetime | + 7_d
= upper("The Odyssey")
= "The Odyssey" | upper
= round(3.14159; 2)
= 3.14159 | round(2)
= date(2013-01-01) + 1_d
= @(3; 1; 2) | sort
= @(3; 1; 2) | ... @| sort
= %(a = 1; b = 2):b
= 7 | [$_ > 5]
= 7 | $_ > 5 ? "big" : "small"
= @("a"; "b") | ... | upper @| join(", ")
/rows/* | ::fare | [$_ > 300]
/row | %(::weight; ::mpg) @| sp:pearsonr(--digits=3)
/row | %(::weight; ::mpg) @| sp:spearmanr(--digits=3)
/row | %(::weight; ::mpg) @| sp:linregress(--digits=4)
/row | %(hp = ::horsepower; mpg = ::mpg) @| sp:pearsonr(--digits=3)
/row | ::value @| np:mean
/row | ::value @| np:percentile(90)
/row | ::value @| np:diff | @ | ... @| [..3]
/row | ::value @| np:reshape(@(12; 12)) | @ @| first(2)
/row | ::value @| np:reshape(@(12; 12)) | np:mean(--axis=1) | np:round(1) | @
/row | ::value @| pd:rolling.mean(12) | pd:round(1) | @ | ... @| [-3..]
/row | ::value @| pd:to_csv
/row | ::value @| np:save
/row | ::value @| np:reshape(@(12; 12)) | @ | transpose | [1]
//token<word>::lower @| frequencies(5) @| pretty
//token<word>::lower @| morph:lemma @| frequencies(10) @| pretty
//token<word>::lower | morph:pos @| frequencies(6) @| pretty
= "стали" | morph:parse(-n=2)
= "крепость" | morph:tag
= "дочка" | morph:inflect(--case=gent --number=plur)
= "стали" | morph:lemma(--foo)
/row | ::tip @| sp:describe(--digits=3)
/row | ::tip @| sp:ttest(--popmean=3 --digits=3)
/row | ::tip @| sp:shapiro(--digits=3)
/row | %(::smoker; ::tip) @| sp:ttest(--digits=3)
/row | %(::smoker; ::tip) @| sp:mannwhitneyu(--digits=3)
/row | %(::day; ::tip) @| sp:ttest(--digits=3)
/row | ::tip @| sp:ttest(--mean=3)
//*<tabula>[1] | # | clean | #(:Port; :2023; :Change)
//*<tabula>[2] | #(--autounits; --slugs; --locale="de")
//*<tabula>[1] | # | clean | correlate((^//*<tabula>[2] | #(--autounits; --slugs; --locale="de") | #(-i=:port)); --on=:Port) | #(:Port; :2023; :draught; :quay)
//*<tabula>[1] | # | clean | correlate((^//*<tabula>[2] | #(--autounits; --slugs; --locale="de") | #(-i=:port)); --on=:Port --inner) | dim
//*<tabula>[1] | # | clean | correlate((^//*<tabula>[2] | #(--autounits; --slugs; --locale="de") | #(-i=:port)); --on=:Port --inner) | corr(:2023; :quay)
//*<tabula>[1] | # | clean | #(-i=:Port) | correlate((^//*<tabula>[2] | #(--autounits; --slugs; --locale="de") | #(-i=:port))) | :::index
/row | .class(::class) @|{.class} count | .n | %.
/tickets/*::assignee-->::team @| unique
/row[::genre = "novel"] | ::title @| pairs
/row | ::title @| pairs @| count
/row[::shelf = "A1"] | ::title @| pairs | join(" + ")
/row[::genre = "epic"] | ::title @| triples
/row[::genre = "novel"] | ::title @| combinations(3) | join(" + ")
/row | ::title @| combinations(3) @| count
/row[::жанр = "поэма"] | ::название @| pairs
/row | ::название @| pairs @| count
/row[::полка = "Б1"] | ::название @| pairs | join(" + ")
/row[::жанр = "поэма"] | ::название @| triples
/row[::полка = "А1"] | ::название @| combinations(3) | join(" + ")
/row | ::название @| combinations(3) @| count
/rows/*::fare @| sort
/rows/* @| sort_by(::fare) | ::name
/rows/* @| sort_by(- ::fare) | %(::name; ::fare)
/rows/* @| sort_by(::fare; -d) | ::name
/rows/*::fare @| sort(-d)
//books/* @| sort_by(::author; ::year) | %(::author; ::year)
//books/*[1]::tags | sort
//books/*[1]::tags | ... @| sort
//books/*::title @| sort
//books/*::title @| sort(--atergo)
/rows/* @| sort_by(cc(::name)) | ::name
= @("90"; "700"; "8") | ... @| sort
/row @| sort_by(::fare; -d) | %(::name; ::fare)
/rows/* @| top(2; ::fare) | ::name
/row @| # | @ | ... @| sort_by(:fare) | :name
/row @| top(2; ::fare) | %(::name; ::fare)
= 12_EUR | exchange(%(EUR = 1.08_USD))
= 12_USD | exchange(%(EUR = 1.08_USD))
= 12_GBP | exchange(%(EUR = 1.08_USD; GBP = 1.17_EUR); USD)
= 12_USD | exchange(%(EUR = 1.08_USD; GBP = 1.17_EUR); USD)
= 12_EUR | exchange(%(EUR = 1.08_USD; GBP = 1.17_EUR))
= 12_EUR | exchange(%(EUR = 1.08_USD; USD = 0.91_EUR); USD)
= 12_USD | exchange(%(EUR = 1.08_USD; USD = 0.91_EUR); EUR)
= 12_USD | exchange(%(EUR = 1.08_USD); EUR)
= 12_JPY | exchange(%(EUR = 1.08_USD; USD = 0.91_EUR; JPY = 0.0062_EUR); USD)
/row | %(::title; eur = (::price | quantity | exchange(&rates; EUR) | round(2)))
/row | ::price | quantity | exchange(&rates; EUR) @| sum | round(2)
/row[(::price | quantity | exchange(&rates; EUR)) > 11_EUR]::title
= 12_EUR/kg | exchange(%(EUR = 1.08_USD); USD)
= 12_EUR/kg | convert(EUR/lb)
= 12_EUR/kg | convert(USD/lb)
/row | %(::title; p = (::price | quantity))
= 12_EUR + 3_EUR
= 12_EUR + 3_USD
/row | .cur((::price | quantity | unit)) @|{.cur} sum(--of=(::price | quantity)) | %($.cur; n = $_)
/row[::price > 10_EUR]::title
/row[::price > 10_USD]::title
= 12_EUR | dimension
= 12_EUR | convert(USD)
= 12_DEM + 1_DEM
= "12 DEM" | quantity
= "12 VES" | quantity
/ledger/entries/* | %(::item; p = (::price | quantity))
/ledger/entries/* | ::price | quantity @| sum
/ledger/entries/* | ::price | quantity @| sum | convert(denarius)
/ledger/entries/* | ::price | quantity @| sort
/ledger/entries/*[::price > 1_denarius]::item
= 1_denarius | magnitude(quadrans)
= "HS 2.5" | quantity | convert(dupondius)
/ledger/entries/* | ::price | quantity @| sum | exchange(%(sestertius = 2.5_USD)) | round(2)
//table[1] | #
//table[1] | # | :2023 | sum
//table[1] | # | clean | :::header
//table[1] | # | clean
//table[1] | # | clean | :2023 | sum
//table[1]/tfoot | # | :2023
//table[1] | # | clean | sort_by(:Change; -d) | [..2] | #(:Change)
//table[1] | # | clean | :::index
//table[1] | # | clean | [["Koper"]]
//table[1]/tfoot | #
//*<tabula>[2] | #
//*<tabula>[2] | #(--locale="de")
//*<tabula>[2] | #(--locale="de") | :"Draught, m" | mean
//table[1] | #(--null=@()) | :2022
//*<tabula>[2] | #(--autounits; --locale="de") | :::header
//*<tabula>[2] | #(--autounits; --slugs; --locale="de") | :draught | mean
//*<tabula>[2] | #(--autounits; --slugs; --locale="de") | dim
//*<tabula>[3] | #(--autounits; --slugs) | #(:port; :throughput; :flow; :revenue)
//*<tabula>[3] | #(--autounits; --slugs) | :revenue | sum
//*<tabula>[3] | #(--autounits; --slugs) | dim
/row::Embarked @| frequencies
/row::Sex @| frequencies(1)
/row::Embarked @| histogram(-w=20)
/row::Age @| bins(8)
/row @| top(3; ::Fare) | %(::Name; ::Fare)
/row[::Age > 60] @| count
/row @| # | dim
/row @| # | fields
/row @| # | %(column = keys; type = type) | @
/row @| # | %(rows = :::nrows; columns = :::ncols)
/row @| # | [..3] | pretty
/row[..3] | %(::Name; ::Age; ::Fare) @| # | pretty
/row[1] | %
/row[2] | :props
/row @| # | cell(2; "Name")
/row @| # | :Fare | [..5]
/row::Age @| histogram(5; -w=20)
/row @| # | @ | ... | [:Age > 60] | %(:Name; :Age) @| [..3]
/row[::Age > 60] | %(::Name; ::Age) @| [..3]
^ @| tree(-d=1)
/row @| tree(-d=0)
^ @| tree(-d=1 -s=3)
/row[..3] @| tree(::Name; ::Age; ::Fare)
/row[!::Age] @| count
/row[::Cabin] @| count
/row[!::Age][!::Cabin] @| count
/row @| # | :Age | count
/row @| # | :Age | count(--values)
/row @| # | :Age | count(--nulls)
/row @| # | % | values | ... | count(--nulls)
/row[..3] | %(::Name; cabin = (::Cabin ?? "none"))
/row @| # | :Age | ... | ($_ ?? "unknown") @| frequencies(3)
/archives/ottoman_nufus/records/*[!::mother] @| count
//*[::passenger_id] @| count
//*[::passenger_id][::mother] @| count
/row @| # | mean | %(:Age; :Fare; :Survived)
/row @| # | max | %(:Age; :Fare; :SibSp; :Parch)
/row @| # | sum(--of=:SibSp + :Parch + 1)
/row @| # | max(--of=:SibSp + :Parch + 1)
/row[..2] | %(::PassengerId; ::Age; ::Fare) @| # | melt(PassengerId) | pretty
/row[..2] | %(::Name; ::Age; ::Fare) @| # | transpose | pretty
/row[..2] | %(::Name; ::Fare) | ++ %(fare2 = ::Fare * 2)
^ @| tree(-d=2 -k)
//* | :kind @| frequencies
/archives/*//*[::passenger_id][1]\ @| tree((/*[::passenger_id] @| count); -d=0)
//*[::passenger_id][1] | :path
//*[::passenger_id] | :depth @| frequencies
/archives/* | %(:name; records = (//*[::passenger_id] @| count))
//*[::passenger_id][1] | %
/archives/* | %(:name; fields = (//*[::passenger_id][1] | :props @| join(" ")))
//*[::passenger_id] | .fields((:props @| join(" "))) @|{.fields} %(n = count; $.fields)
/edges/* | %(::a; ::b; ::n) @| top(3; :n) @| csv
//token<word> | .chapter((::cite | s/^jhn\.(\d+)(\..*)?$/$1/)) @|{.chapter} count | %($.chapter; words = $_) @| top(3; :words)
//token<word>[::lower = "love"] | .chapter((::cite | s/\.\d+$//)) @|{.chapter} count | %($.chapter; n = $_) @| top(3; :n)
//token<word> | .глава((::cite | s/^jhn\.(\d+)(\..*)?$/$1/)) @|{.глава} count | %($.глава; слов = $_) @| top(3; :слов)
//token<word>[::lower *= "люб"] | .глава((::cite | s/\.\d+$//)) @|{.глава} count | %($.глава; n = $_) @| top(3; :n)
//table[1] | # | :::header
//table[1] | # | [:Genre = "tragedy"] | #(:Title; :Year)
//table[1] | # | sort_by(:Year; -d) | [..2] | pretty
//table[1] | # | :Year | mean
//table[1] | # | count(--by=:Genre)
//*<tabula> | %(caption = ::lemma; rows = (//*<row> @| count); columns = (//*<row>[1]//*<cell>::lemma @| join(", ")))
//*<row>[2]//*<cell> | %(::lemma; text = ::; value = ::body)
//*<cell>[::lemma = "Genre"][::body = "tragedy"]\\?*<row>//*<cell>[::lemma = "Title"]::body
//*<tabula> | # | [..1]
//*<tabula> | %(caption = ::lemma; rows = (//*<row> @| count))
//*<tabula> | # | [:Year > 1605] | :Title
//table//tr[2]/td::
//table[1] | # | [:Жанр = "комедия"] | #(:Название; :Год)
//table[1] | # | sort_by(:Год; -d) | [..2] | pretty
//table[1] | # | :Год | mean
//table[1] | # | count(--by=:Автор)
//*<cell>[::lemma = "Автор"][::body = "Чехов"]\\?*<row>//*<cell>[::lemma = "Название"]::body
//*<tabula> | # | [:Год > 1890] | :Название
&profile @| pretty
&profile @| csv
//sentence[1] | %(::id; text = ::)
//token[:::sentence = 1] | %(form = ::; ::lemma; pos = ::upos; rel = ::deprel; head = (->head::))
//token[::upos = "NOUN"] | .c(::Case) @|{.c} count | %($.c; n = $_) @| top(5; :n)
//token[::upos = "VERB"][::Mood] | .m(::Mood) @|{.m} count | %($.m; n = $_) @| top(4; :n)
//token[::upos = "VERB"] | .t(::Voice) @|{.t} count | %($.t; n = $_) @| top(3; :n)
//token[::Case = "Voc"] | %(form = ::; ::lemma; text = substr(::sentence; 1..48)) @| [..5]
//token[::deprel = "vocative"] | .l(::lemma) @|{.l} count | %($.l; n = $_) @| top(3; :n)
//token[::lemma = "Ἀχιλλεύς"] | .c(::Case) @|{.c} count | %($.c; n = $_)
//token[::Mood = "Opt"] | %(form = ::; ::lemma; tense = ::Tense; voice = ::Voice) @| [..4]
//token[::upos = "VERB"][::person = "1"][::number = "Sing"] | .l(::lemma) @|{.l} count | %($.l; n = $_) @| top(4; :n)
/book//token["GPE" <<= ::entity || "LOC" <<= ::entity] @| unique_by($_; :::mention) | .place(::mention) @|{.place} count | %($.place; n = $_) @| top(6; :n)
/book//token["GPE" <<= ::entity || "LOC" <<= ::entity] @| unique_by($_; :::mention) | .place(::mention) @|{.place} count | %($.place; n = $_; lat = (^/places/*[::name = $.place]::lat @| first); lon = (^/places/*[::name = $.place]::lon @| first)) | [:lat] @| top(8; :n)
/book//token["GPE" <<= ::entity || "LOC" <<= ::entity] @| unique_by($_; :::mention) @| count
/book//token["GPE" <<= ::entity || "LOC" <<= ::entity] @| unique_by($_; :::mention) | ::mention | [$_ = (^/places/*::name)] @| count
/book//section[::lemma *= "CHAPTER"] | %(ch = ::lemma; places = (//token["GPE" <<= ::entity || "LOC" <<= ::entity] @| unique_by($_; :::mention) | ::mention | [$_ = (^/places/*::name)] @| unique @| join(", "))) | [:places] @| [..6]
/book//token["GPE" <<= ::entity || "LOC" <<= ::entity]["Cardiff Hill" <<= ::mention] | \\?section::lemma @| unique
/book//token["GPE" <<= ::entity || "LOC" <<= ::entity] @| unique_by($_; :::mention) | .place(::mention) @|{.place} count | %($.place; n = $_; lat = (^/places/*[::name = $.place]::lat @| first); lon = (^/places/*[::name = $.place]::lon @| first)) | [:lat] @| top(5; :n) @| csv
/книга//token["LOC" <<= ::entity] @| unique_by($_; :::mention) | .место(::lemma) @|{.место} count | %($.место; n = $_) @| top(8; :n)
/книга//token["LOC" <<= ::entity] @| unique_by($_; :::mention) | .лемма(::lemma) @|{.лемма} count | %(место = (^/места/*[::лемма = $.лемма]::название @| first); n = $_; широта = (^/места/*[::лемма = $.лемма]::широта @| first); долгота = (^/места/*[::лемма = $.лемма]::долгота @| first)) | [:место] @| top(8; :n)
/книга//token["LOC" <<= ::entity] @| unique_by($_; :::mention) @| count
/книга//token["LOC" <<= ::entity] @| unique_by($_; :::mention) | ::lemma | [$_ = (^/места/*::лемма)] @| count
/книга//section[::lemma *= "ГЛАВА"] | %(глава = ::lemma; места = (//token["LOC" <<= ::entity] @| unique_by($_; :::mention) | ::lemma | [$_ = (^/места/*::лемма)] @| unique @| join(", "))) | [:места] @| [..6]
/книга//token["LOC" <<= ::entity][::lemma = "казань"] | \\?section::lemma @| unique
/книга//token["LOC" <<= ::entity] @| unique_by($_; :::mention) | .лемма(::lemma) @|{.лемма} count | %(место = (^/места/*[::лемма = $.лемма]::название @| first); n = $_; широта = (^/места/*[::лемма = $.лемма]::широта @| first); долгота = (^/места/*[::лемма = $.лемма]::долгота @| first)) | [:широта] @| top(5; :n)
//token<word> | .pos(::upos) @|{.pos} count | %($.pos; n = $_) @| top(5; :n)
//token<word>[::upos = "Nb"] | .lemma(::lemma) @|{.lemma} count | %($.lemma; n = $_) @| top(5; :n)
//token<word> | .часть(::upos) @|{.часть} count | %($.часть; n = $_) @| top(5; :n)
//token<word>[::upos = "Nb"] | .лемма(::lemma) @|{.лемма} count | %($.лемма; n = $_) @| top(5; :n)
//token[::upos = "V-"][::feats *= "spma"] | .лемма(::lemma) @|{.лемма} count | %($.лемма; n = $_) @| top(5; :n)
//token[::entity] | .t(::entity) @|{.t} count | %($.t; n = $_) @| top(5; :n)
//token["PERSON" <<= ::entity] @| unique_by($_; :::mention) | .m(::mention) @|{.m} count | %($.m; n = $_) @| top(6; :n)
//token["PERSON" <<= ::entity] @| unique_by($_; :::mention) | ::mention @| unique
//token[:::entity] @| unique_by($_; :::mention) | .e(:::entity) @|{.e} count | %($.e; n = $_) @| top(3; :n)
//token["e5152" <<= :::entity] @| unique_by($_; :::mention) | [::upos != "PRON"] | ::mention @| unique
//token["e5153" <<= :::entity] @| unique_by($_; :::mention) | .m(::mention) @|{.m} count | %($.m; n = $_) @| top(5; :n)
//token[::prosopon = "tom"] | .w(::lower) @|{.w} count | %($.w; n = $_) @| top(5; :n)
//token[::prosopon = "tom"][::deprel = "nsubj"]->head | .v(::lemma) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token["e5152" <<= :::entity][::deprel = "nsubj"]->head | .v(::lemma) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token["e5153" <<= :::entity][::deprel = "nsubj"]->head | .v(::lemma) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//sentence[//token["e5152" <<= :::entity]][//token["e5153" <<= :::entity]] @| count
//token["e5152" <<= :::entity][:::mention] | :::sentence @| unique @| count
//sentence[//token["e5152" <<= :::entity]][//token["e5153" <<= :::entity]]:: @| first
//token["PER" <<= ::entity] @| unique_by($_; :::mention) | ::mention @| unique
//token["PER" <<= ::entity] @| unique_by($_; :::mention) | .l(::lemma) @|{.l} count | %($.l; n = $_) @| top(6; :n)
//token["PER" <<= ::entity] @| unique_by($_; :::mention) | .l(::lemma) @|{.l} count | %($.l; n = $_) @| top(8; :n)
//token[::lower == (/^чичиков/)][::deprel = "nsubj"]->head | .v(::lemma) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token[::lower == (/^ноздрев/)][::deprel = "nsubj"]->head | .v(::lemma) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token<word>[::upos = "VERB"] | .v(::lemma) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token[::lemma = "say"]<-head[::deprel = "nsubj"] | .s(::lower) @|{.s} count | %($.s; n = $_) @| top(3; :n)
//token[::lower = "tom"][::deprel = "nsubj"]->head | .v(::lemma) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//token[::lemma = "говорить"]<-head[::deprel = "nsubj"] | .s(::lower) @|{.s} count | %($.s; n = $_) @| top(3; :n)
//token[::lemma = "господин"][::deprel = "nsubj"]->head | .v(::lemma) @|{.v} count | %($.v; n = $_) @| top(3; :n)
//section[:depth = 2] | ::lemma | timex(en) @| timeline($_; --forward) | %(:text; :when) @| [9..12]
//section[:depth = 2] | :: | timex(en) | [:kind != "vague"] @| timeline($_; --forward) | %(:text; :kind; :when; :from) @| [8..12]
//section[:depth = 2] | ::lemma | timex(en) @| timeline($_; --forward) | .month((:when | period(month))) @|{.month} count | %($.month; entries = $_)
= "30 декабря 1833 года. 2 января." | timex(ru) @| timeline($_; --forward) | %(:text; :when)
//section[:depth = 2] | ::lemma | timex(ru) @| timeline($_; 1833-01-01) | .month((:when | period(month))) @|{.month} count | %($.month; entries = $_)
//token @| [..8] | %(w = ::; ::class)
//token<punct> @| count
//token<word>::lower @| bigrams @| frequencies(5)
//token::lower @| bigrams @| frequencies(5)
//token<word>::lower @| bigrams @| count
//sentence | (//token<word>::lower @| bigrams) @| count
//sentence | (//token<word>::lower @| bigrams) @| frequencies(5)
//token<word>::lemma @| trigrams @| frequencies(5)
//token::upos @| trigrams @| frequencies(5)
//paragraph:: | ngrams(2) @| frequencies(5)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | ngrams(2) @| frequencies(5)
//token<word>::lower @| trigrams | join(" ") @| frequencies(3)
//token<word>::lower @| skipgrams(2; 1) @| count
//token<word>::lower @| skipgrams(2; 1) | join(" ") @| frequencies(5)
//section[!/section] | :: | lower | s/[^\p{L}-]/ /g | ngrams(2) @| frequencies(5)
= mi(22; 355; 690; 71275) | round(2)
= 22 | mi(355; 690; 71275) | round(2)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "said"] @| count) | //token[::lower = "said"]>token<word>::lower | .y @|{.y; .n; .fx} count | [$_ >= 5] | .fxy | .fy(^//token[::lower = $.y] @| count) | %($.y; $.fxy; $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2)); dice = (log_dice($.fxy; $.fx; $.fy) | round(2))) @| top(5; :t)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "said"] @| count) | //token[::lower = "said"]>token<word>::lower | .y @|{.y; .n; .fx} count | [$_ >= 5] | .fxy | .fy(^//token[::lower = $.y] @| count) | %($.y; $.fxy; $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2)); dice = (log_dice($.fxy; $.fx; $.fy) | round(2))) @| top(5; :mi)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "said"] @| count) | //token[::lower = "said"]>token<word>::lower | .y @|{.y; .n; .fx} count | [$_ >= 5] | .fxy | .fy(^//token[::lower = $.y] @| count) | %($.y; $.fxy; $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2)); dice = (log_dice($.fxy; $.fx; $.fy) | round(2))) @| top(5; :dice)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "tom"] @| count) | //token[::lower = "tom"]>token<word>::lower | .y @|{.y; .n; .fx} count | [$_ >= 5] | .fxy | .fy(^//token[::lower = $.y] @| count) | %($.y; $.fxy; $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2)); dice = (log_dice($.fxy; $.fx; $.fy) | round(2))) @| top(5; :t)
= log_dice(26; 690; 33) | round(2)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "не"] @| count) | //token[::lower = "не"]>token<word>::lower | .y @|{.y; .n; .fx} count | [$_ >= 4] | .fxy | .fy(^//token[::lower = $.y] @| count) | %($.y; $.fxy; $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2)); dice = (log_dice($.fxy; $.fx; $.fy) | round(2))) @| top(5; :t)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "не"] @| count) | //token[::lower = "не"]>token<word>::lower | .y @|{.y; .n; .fx} count | [$_ >= 4] | .fxy | .fy(^//token[::lower = $.y] @| count) | %($.y; $.fxy; $.fy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2))) @| top(5; :mi)
/* | //token[::lower = "не"]>token<word>::lower | .y @|{.y} count | %(y = $.y; fxy = $_) @| top(5; :fxy)
/* | .n(//token<word> @| count) | .fx(//token[::lower = "не"] @| count) | //token[::lower = "не"]<token<word>::lower | .y @|{.y; .n; .fx} count | [$_ >= 4] | .fxy | .fy(^//token[::lower = $.y] @| count) | %(y = $.y; fxy = $.fxy; mi = (mi($.fxy; $.fx; $.fy; $.n) | round(2)); t = (t_score($.fxy; $.fx; $.fy; $.n) | round(2))) @| top(3; :mi)
//section[::lemma = "CHAPTER I"]/paragraph[9]/sentence[1]/token | %(form = ::; ::class; :::n) @| [..6]
//section[::lemma *= "CHAPTER"]//token<word>[>token<word>] | "${::lower} ${>token::lower}" @| frequencies(5)
//section[::lemma = "CHAPTER I"]//token<word>[>token<word>] | "${::lower} ${>token::lower}" @| frequencies(3)
//section[::lemma *= "CHAPTER"]//token[::lower = "tom"]>token<word>::lower @| frequencies(6)
//section[::lemma *= "CHAPTER"]//token[::lower = "tom"]<token<word>::lower @| frequencies(6)
//section[::lemma *= "CHAPTER"]//token<word>[::lower = "tom"][>token<word>::lower = "said"] @| count
//section[::lemma *= "CHAPTER"]//token<word>[::lower = "tom"][>token<word>::lower = "said"] @| [..3] | %(at = :::n; after = (>>token<word>[..4]:: @| join(" ")))
//section[::lemma *= "CHAPTER"]//token<word>[::lower = "tom"][>>token<word>[..5]::lower = "huck"] @| count
//section[::lemma *= "CHAPTER"]//token<word>[::lower = "tom"][<<token<word>[..5]::lower = "huck" || >>token<word>[..5]::lower = "huck"] @| count
//section[::lemma *= "CHAPTER"]//token<word>[::lower = "tom"][>>token<word>[..5]::lower = "huck"] @| [..3] | %(at = :::n; w = ::; after = (>>token<word>[..5]:: @| join(" ")))
//section[::lemma *= "CHAPTER"]//token<word>[>token<word>][(>token){2}[::class = "word"]] | "${::lower} ${>token::lower} ${(>token){2}::lower}" @| frequencies(5)
//section[::lemma *= "CHAPTER"]//sentence/token<word>[-1][::lower = "tom"] | \\sentence>sentence/token<word>[1]::lower @| frequencies(3)
//section[::lemma *= "CHAPTER"]//token[::lower = "huck"] | \\?sentence/token<word> | ::lower | [!($_ <<= @("the"; "and"; "a"; "to"; "of"; "he"; "was"; "it"; "in"; "that"; "his"; "i"; "you"; "had"; "with"; "huck"; "huckleberry"; "huck’s"))] @| frequencies(6)
//token[::upos = "ADJ"][>token::upos = "NOUN"] | %(a = ::; n = (>token::)) @| frequencies(4)
//token[::upos = "PROPN"][>>token[..3]::upos = "VERB"] | %(name = ::; verb = (>>token[..3][::upos = "VERB"][1]::)) @| frequencies(3)
//section[::lemma = "ВЫСТРЕЛ"]/paragraph[1]/sentence[1]/token | %(form = ::; ::class; :::n) @| [..6]
//section[!/section]//token<word>[>token<word>] | "${::lower} ${>token::lower}" @| frequencies(5)
//section[::lemma = "СТАНЦИОННЫЙ СМОТРИТЕЛЬ"]//token<word>[>token<word>] | "${::lower} ${>token::lower}" @| frequencies(3)
//section[!/section]//token[::lower = "сильвио"]>token<word>::lower @| frequencies(6)
//section[!/section]//token[::lower = "сильвио"]<token<word>::lower @| frequencies(6)
//section[!/section]//token<word>[::lower = "сильвио"][>token<word>::lower = "встал"] @| count
//section[!/section]//token<word>[::lower = "сильвио"][>token<word>::lower = "встал"] @| [..3] | %(at = :::n; after = (>>token<word>[..4]:: @| join(" ")))
//section[!/section]//token<word>[::lower = "сильвио"][>>token<word>[..5]::lower = "граф"] @| count
//section[!/section]//token<word>[::lower = "сильвио"][<<token<word>[..5]::lower = "граф" || >>token<word>[..5]::lower = "граф"] @| count
//section[!/section]//token<word>[::lower = "сильвио"][<<token<word>[..5]::lower = "граф" || >>token<word>[..5]::lower = "граф"] @| [..3] | %(at = :::n; w = ::; after = (>>token<word>[..5]:: @| join(" ")))
//section[!/section]//token<word>[>token<word>][(>token){2}[::class = "word"]] | "${::lower} ${>token::lower} ${(>token){2}::lower}" @| frequencies(5)
//section[!/section]//sentence/token<word>[-1][::lower = "я"] | \\sentence>sentence/token<word>[1]::lower @| frequencies(3)
//section[!/section]//token[::lower = "сильвио"] | \\?sentence/token<word> | ::lower | [cc($_) > 3] | [$_ != "сильвио"] @| frequencies(6)
/a//token<word>::lower @| unique @| count
/b//token<word>::lower @| unique @| count
/a | .b((^/b//token<word>::lower @| unique)) | //token<word>::lower @| unique | [$_ <<= $.b] @| count
/a//token<word>::lower @| unique @| jaccard((^/b//token<word>::lower @| unique))
/a | .b((^/b//token<word>::lower @| unique)) | //token<word>::lower | [!($_ <<= $.b)] @| frequencies(10)
/b | .a((^/a//token<word>::lower @| unique)) | //token<word>::lower | [!($_ <<= $.a)] @| frequencies(10)
/a | .b((^/b//token<word>::lower @| unique)) | //token<word>::lower | [$_ <<= $.b] @| frequencies(11..20)
/a | .b((^/b//token<word>::lower @| unique)) | //token<word>::lower | [$_ <<= $.b] @| frequencies(-5)
//token<word> | .bin(((:::n div 10000) | floor)) @|{.bin} %($.bin; words = ($_ @| count); huck = (@@_[::lower = "huck"] @| count); tom = (@@_[::lower = "tom"] @| count))
//token<word> | .bin(((:::n div 10000) | floor)) @|{.bin} %(n = (@@_[::lower = "huck"] @| count); size = ($_ @| count)) @| dp(:n; :size) | round(2)
//token<word> | .bin(((:::n div 10000) | floor)) @|{.bin} %(n = (@@_[::lower = "tom"] @| count); size = ($_ @| count)) @| dp(:n; :size) | round(2)
//token<word> | .bin(((:::n div 10000) | floor)) @|{.bin} %($.bin; слов = ($_ @| count); сильвио = (@@_[::lower = "сильвио"] @| count); сказал = (@@_[::lower = "сказал"] @| count))
//token<word> | .bin(((:::n div 10000) | floor)) @|{.bin} %(n = (@@_[::lower = "сильвио"] @| count); size = ($_ @| count)) @| dp(:n; :size) | round(2)
//token<word> | .bin(((:::n div 10000) | floor)) @|{.bin} %(n = (@@_[::lower = "сказал"] @| count); size = ($_ @| count)) @| dp(:n; :size) | round(2)
//sentence | :: | lower | s/[^\p{L}]/ /g | words | .w @|{.w} count | %($.w; n = $_) @| top(8; :n)
//token[::lower = "said"] | .form(::) @|{.form} count | %($.form; n = $_)
//token<word> | .w(::lower) @|{.w} count | %($.w; n = $_) @| top(5; :n)
//token<word>::lower @| unique @| count
//token<word>[::lower == (/^v[^aeiouy]/)] | .w(::lower) @|{.w} count | %($.w; n = $_) @| top(4; :n)
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | [$_ == (/^lick/)] @| frequencies
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | [$_ == (/^lick/)] | stem(en) @| frequencies
//section[::lemma *= "CHAPTER"] | :: | lower | s/[^\p{L}’]/ /g | words | stem(en) @| unique @| count
= "running" | stem(xx)
= "Straße" | lower
= "Straße" | casefold
= "ΟΔΥΣΣΕΥΣ" | lower
= "ΟΔΥΣΣΕΥΣ" | casefold
= "Dvořák" | deaccent
= "ἀείδω θεὰ" | deaccent(grc)
= "подъё́м" | deaccent(ru)
= "ёлка" | deaccent
= "ёлка" | s/ё/е/g
//section[::lemma *= "CHAPTER"] | :: | s/[^\p{L}’]/ /g | words @| unique | [($_ | jaro_winkler("Thatcher")) > 0.88]
//section[::lemma *= "CHAPTER"] | :: | s/[^\p{L}’]/ /g | words @| unique | [($_ | jaro_winkler("Thatcher")) > 0.9]
//paragraph:: | lower | s/[^\p{L}-]/ /g | words | [$_ == (/^бежа|^бег/)] @| frequencies(6)
//paragraph:: | lower | s/[^\p{L}-]/ /g | words | [$_ == (/^бежа|^бег/)] | stem(ru) @| frequencies(4)
//paragraph:: | lower | s/[^\p{L}-]/ /g | words @| unique @| count
//paragraph:: | lower | s/[^\p{L}-]/ /g | words | stem(ru) @| unique @| count
= "бегущие" | stem(xx)
//paragraph:: | lower | s/[^\p{L}-]/ /g | words | [$_ == (/^вс[её]$/)] @| frequencies
//paragraph:: | lower | s/[^\p{L}-]/ /g | words | [$_ == (/^вс[её]$/)] | s/ё/е/g @| frequencies
//paragraph:: | s/[^\p{L}-]/ /g | words @| unique | [($_ | jaro_winkler("Пугачев")) > 0.9]
= "Пугачёв" | jaro_winkler("Пугачев") | round(3)
/row | %(form = (::word | stress(::stress)); ::gloss)
/row[::word = "замок"] | %(upper = (::word | stress(::stress) | accent("upper")); apostrophe = (::word | stress(::stress) | accent("apostrophe")))
/row | %(::name; latin = (::name | translit))
/row | ::word @| unique @| sort(--atergo)
/row | %(form = (::слово | stress(::ударение)); ::значение)
/row[::слово = "замок"] | %(upper = (::слово | stress(::ударение) | accent("upper")); apostrophe = (::слово | stress(::ударение) | accent("apostrophe")))
/row | %(::имя; latin = (::имя | translit))
/row | ::слово @| unique @| sort(--atergo)
//sentence[1]/token | %(form = ::; ::class; ::lower; :::n)
//token[1] | :traits
//sentence[1] | %(words = (/token<word> @| count); n = :::n)
//sentence[1] | :traits
//token[::lower = "tom"][1] | %(form = ::; :::n; :::sentence)
//sentence[1]/token<word>[1] | %(form = ::; next = >token::; after = (>>token<word>[..3]:: @| join(" ")))
//paragraph[2] | %(sentences = (/sentence @| count); tokens = (//token @| count))
//token[::upos = "VERB"][1] | %(form = ::; ::lemma; ::upos; ::tense)
//token::upos @| frequencies(3)
//token[::lower = "сильвио"][1] | %(form = ::; :::n; :::sentence)
//entry[::lemma = "Culture"]/sense | %(::taxis; text = ::)
//entry[::lemma = "Culture"]/sense[4]/sense::
//entry[::lemma = "Culture"] | %(grammar = (//grammar::); said = (//pronunciation::); etym = (//etymology::))
//entry[::lemma = "Culture"]//citation | %(sense = (\\?sense::taxis); text = ::)
//entry[//label:: = "Biol."]::lemma
//entry[::lemma = "Culture"]//ref | %(text = ::; lands = (-->::lemma))
//entry[::lemma = "Cultivation"]//ref | %(text = ::; lands = (-->::lemma))
//entry[//inflection:: <<= @("столе"; "окна"; "лежали")] | %(::lemma; en = (//equivalent[::lang = "en"]::))
//sense//token<word> | .word(::lower) @|{.word} count | %($.word; n = $_) @| top(5; :n)
//sense[//token[::lower = "cultivation"]] | %(entry = (\\?entry::lemma); ::taxis; text = ::)
//entry[::lemma = "Culture"]//sense | %(::taxis; sentences = (//sentence @| count); words = (//token<word> @| count))
/row | %(::название; ::цена) @| csv(";"; название; цена) @| encoding(windows-1251)
//books/*[::year > 1810] | ::title | u:tr(a-z; A-Z)
//books/*[::year > 1810] | ::title | u:wc(-w)
//books/*[::year > 1860] | ::title | t:tr(a-z; A-Z)
//books/* | ::title @| u:sort(-r) @| [..2]
//books/* | ::tags | ... @| u:sort @| u:uniq(-c) @| [..3]
//books/* | ::title | .total@(count) @| u:sort @| [1] | %(first = $_; total = $.total)
//books/* | %(::title; ::year) @| u:jq(.title; -r)
//books/* | %(::title; ::year) @| u:jq(-r; .title)
//books/* | ::title | u:nosuch
//books/*[::year > 1860] | ::title | u:false | [$_ = null] @| count
//books/*[::year > 1860] | ::title | py:shout
//книги/*[::год > 1840] | ::название | u:tr(" "; "_")
//книги/*[::год > 1840] | ::название | u:wc(-m)
//книги/*[::год > 1860] | ::название | t:tr(" "; "_")
//книги/* | ::название @| u:sort(-r) @| [..2]
//книги/* | ::метки | ... @| u:sort @| u:uniq(-c) @| [..3]
//книги/* | ::название | .total@(count) @| u:sort @| [1] | %(first = $_; total = $.total)
//книги/* | %(::название; ::год) @| u:jq(".[\"название\"]"; -r)
//книги/* | %(::название; ::год) @| u:jq(-r; ".[\"название\"]")
//книги/* | ::название | u:nosuch
//книги/*[::год > 1860] | ::название | u:false | [$_ = null] @| count
//книги/*[::год > 1860] | ::название | py:shout
//books/*::title | py:initials
//books/*[::year > 1810]::title | py:pad
//books/*[::year > 1810]::title | py:pad(--width=24 --fill="-")
//books/*[::year > 1810]::title | py:pad(--fill="-"; 24)
//books/*::title | tw:shorten(--width=15 --placeholder="…")
//books/*::title | b:str.swapcase
//books/*[1]::tags | b:sorted(--reverse=true)
= 1024 | m:log($_; 2)
= "Emma" | py:kind
= 7 | py:kind
= 7.5 | py:kind
= @(1; 2) | py:kind
= %(a = 1) | py:kind
= 2026-01-01 | py:kind
= 1_m | py:kind
= null | py:kind
//books/*[1] | py:keys
//books/*[1] | %(::title; ::author) | py:keys
//books/*::year | py:kind
//books/*[::year]::year @| st:median
//books/*::title @| py:longest
//books/*[::year]::year @| st:quantiles(--n=4)
//books/*::title @| py:lengths @| max
//books/*::title | .n@(count) @| py:lengths @| [1] | %(first = $_; n = $.n)
//books/*[3..5]::title | re:search("^The"; $_)
//books/*[(::title | re:search("^The"; $_) | b:bool)]::title
//books/*::title | re:findall("[A-Z]"; $_)
//books/*[::year > 1810]::title | py:fail
//books/*::title @| py:fail
//books/*::title | py:nosuch
//books/*::title | py:shout
//книги/*::название | py:initials
//книги/*[::год > 1840]::название | py:pad
//книги/*[::год > 1840]::название | py:pad(--width=16 --fill="-")
//книги/*[::год > 1840]::название | py:pad(--fill="-"; 16)
//книги/*::название | tw:shorten(--width=12 --placeholder="…")
//книги/*::название | b:str.swapcase
//книги/*[1]::метки | b:sorted(--reverse=true)
= "Гроза" | py:kind
//книги/*[1] | py:keys
//книги/*[1] | %(::название; ::автор) | py:keys
//книги/*::год | py:kind
//книги/*[::год]::год @| st:median
//книги/*::название @| py:longest
//книги/*[::год]::год @| st:quantiles(--n=4)
//книги/*::название @| py:lengths @| max
//книги/*::название | .n@(count) @| py:lengths @| [1] | %(first = $_; n = $.n)
//книги/*[2..4]::название | re:search("^Р"; $_)
//книги/*[(::название | re:search("^[МР]"; $_) | b:bool)]::название
//книги/*::название | re:findall("[А-Я]"; $_)
//книги/*[::год > 1840]::название | py:fail
//книги/*::название @| py:fail
//книги/*::название | py:nosuch
//книги/*::название | py:shout
//books/*[::year > 1810] | ::title | sh:tr(a-z; A-Z)
//books/*[::year > 1810] | ::title | sh:wc(-w)
//books/* | ::title @| sh:sort(-r) @| [..2]
//books/* | ::title | .total@(count) @| sh:sort @| [1] | %(first = $_; total = $.total)
//books/* | ::title | sh:tr(a-z; A-Z)
//books/*[::year > 1860] | ::title | sh:false | [$_ = null] @| count
//books/*[::year > 1860] | ::title | `tr a-z A-Z`
//книги/*[::год > 1840] | ::название | sh:tr(" "; "_")
//книги/*[::год > 1840] | ::название | sh:wc(-m)
//книги/* | ::название @| sh:sort(-r) @| [..2]
//книги/* | ::название | .total@(count) @| sh:sort @| [1] | %(first = $_; total = $.total)
//книги/* | ::название | sh:tr(" "; "_")
//книги/*[::год > 1860] | ::название | sh:false | [$_ = null] @| count
//книги/*[::год > 1860] | ::название | `tr a-z A-Z`
/* | :name @| frequencies
//section::lemma @| [..3]
//token<word>::lower @| frequencies(3)
//dialogue-line @| count
//*<function>:name
= m:sqrt(16)
= "a b c" | sh:wc(-w)
//*<file>[::size > 1MB] | %(:name; size = (::size | convert(MB)))
//*<file> | ::size @| sum | convert(MB)
2026-10-02T00:00:00Z
//*<file>
//*<file> | %(:name; :::size) @| pretty
//*.css::
//*.htm//title::
//*.htm//p @| count
//*.htm//img | %(::src; ::alt)
//*.png | %(:name; :::size)
//paragraph[:: *= "Polly"] @| count
//paragraph[:: *= "Савельич"] @| count
&novels | &card @| &newest
&novels[::year < 1850]::title
= q(&novels | &card @| &newest) | :unq
^ | .newest(/row::year @| max) | .lib(q($.newest - ::year)) | /row[::year] | %(::title; lib = $_&$.lib!) @| sort_by(:lib) @| first(3)
/airports/LJU(->*){2}[::code = "SIN"] @| count
/airports/LJU->* | .($-::arr) | ->*[$-::dep > $.][::code = "SIN"] @| count
/airports/LJU->* | .($-::code) | .($-::arr) | ->*[$-::dep > $.][::code = "SIN"] | %(first = $.1; lands = $.2; second = $-::code; leaves = $-::dep)
/airports/LJU->* .V | .($-::arr) | ->*[$-::dep > $.][::code = "SIN"] | %(via = $$.V::code; wait = ("2000-01-01T" ++ $.-1 | duration(--to="2000-01-01T" ++ $-::dep)))
/airports/LJU(->*){;4}[::code = "PPT"] @| count
/airports/LJU->* | .($-::arr) | (->*[$-::dep > $.] .($-::arr)){;3}[::code = "PPT"] @| count
/airports/LJU->* | .($-::arr) | (->*[$-::dep > $.] .($-::arr)){;2} @| collapse @| count
/airports/LJU .S ->*[->*[::code = $$.S::code]]::code
/airports/LJU .S (->* .(::code)){2}[->*[::code = $$.S::code]] | @. | join(" > ")
/airports/LJU .S (->*){2}[->*[::code = $$.S::code]] @| count
/cells/1 .S (->*){;4}[->*[:id = $$.S:id]] @| count
/characters/* @| count
/ties/* @| count
/ties/* @| top(3; ::scenes) | %(::a; ::b; ::scenes)
/characters/* | .:k(--tie @| collapse @| count) | .:s(--tie | $-::scenes @| sum) | %(::name; k = $.k; s = $.s) @| top(5; :k)
/characters/* | .:k(--tie @| collapse @| count) | .:s(--tie | $-::scenes @| sum) @| nodes | type
/characters/* | .:k(--tie @| collapse @| count) | .:s(--tie | $-::scenes @| sum) @| nodes | dim
/characters/* | .:k(--tie @| collapse @| count) | .:s(--tie | $-::scenes @| sum) | [::id = "hamlet"] | --tie @| collapse | %(::name; k = :.k; s = :.s) @| top(5; :k)
/characters/* | .:k(--tie @| collapse @| count) | [::id = "hamlet"] | --tie @| collapse | [:.k > ^/characters/hamlet:.k] | %(::name; k = :.k)
/characters/* | %(k = (--tie @| collapse @| count); words = ::words) | .:% | [::id = "hamlet"] | --tie @| collapse | %(::name; k = :.k; words = :.words) @| top(3; :words)
/characters/* | %(k = (--tie @| collapse @| count); words = ::words) | .:% @| nodes | type
/cells/1(->right|->down){20} @| collapse @| count
/cells/1(->right|->down){19;21} @| collapse @| count
/cells/1(->*)+! | %(::row; ::col)
/cells/1(->right|->down){38} @| collapse @| count
/cells/1(->*){6}[::row = 3 && ::col = 3] @| count
/cells/1(->right|->down){20} @| count
/airports/LJU(->*){;2} @| collapse @| count
/characters/* | .:in(true) | .:in($.in && (--tie[:.in] @| collapse @| count) >= 8){1;} | [$.in] | ::name @| join(", ")
/characters/* | .:in(true) | .:in($.in && (--tie[:.in] @| collapse @| count) >= 12){1;} | [$.in] | ::name @| join(", ")
/scenes/9 | %(::act; ::title; who = (--speaks | ::name @| join(", ")))
/characters/* @| graph:kcore(--tie) | .:c | %(::name; core = :.c) | .core($_:core) @|{.core} %($.core; n = count; who = (:name | join(", ")))
/characters/* | (--tie @| collapse @| count) @| sum
/characters/* | (--tie @| collapse @| count) @| sum | %(density = round($_ div (33 * 32); 2))
/characters/* | .:in(true) | .:in($.in && (--tie[:.in] @| collapse @| count) >= 12){1;} | [$.in] | (--tie[:.in] @| collapse @| count) @| sum | %(n = 13; links = $_; density = $_ div (13 * 12))
/characters/* | .:l(--speaks @| collapse @| bottom(1; ::id) | ::act) | %(::name; l = $.l) | .l($_:l) @|{.l} count | .n | %.
/characters/* | .:l(--speaks @| collapse @| bottom(1; ::id) | ::act) @| edges(--tie) | rows | ... | [:source:.l = :target:.l] @| count
/characters/* | .:l(--speaks @| collapse @| bottom(1; ::id) | ::act) @| edges(--tie) | rows | ... | [:source:.l != :target:.l] @| count
/characters/* | .:l(--speaks @| collapse @| bottom(1; ::id) | ::act) @| edges(--tie) | rows | ... | %(pair = (:source:.l < :target:.l ? :source:.l ++ " / " ++ :target:.l : :target:.l ++ " / " ++ :source:.l); w = :scenes) | .pair($_:pair) @|{.pair} %($.pair; ties = count; scenes = sum(:w)) @| top(4; :ties)
/characters/* | .:l(--speaks @| collapse @| bottom(1; ::id) | ::act) | %(c = $.l; d = (--tie @| collapse @| count); in = (--tie @| collapse | [:.l = $$__:.l] @| count)) | .c($_:c) @|{.c} %(ip = sum(:in); d = sum(:d)) | (:ip div 370 - (:d div 370) * (:d div 370)) @| sum | round(3)
/airports/LJU->* @| count
/airports/* | %(::code; out = (->* @| count); in = (<-* @| count)) @| top(5; :out)
/airports/* | %(::code; out = (->* @| count); in = (<-* @| count)) | [:out != :in] @| count
/airports/*[!->*] @| count
/airports/*[!<-*] @| count
/airports/* | %(::region; out = (->* @| count)) | .region(::region) @|{.region} %($.region; flights = sum(:out))
/airports/* | (->* @| count) @| mean
/airports/LJU(->*){2} @| collapse @| count
/airports/LJU(->*){2} @| count
/airports/KEF->*::code
/airports/KEF<-*::code
/airports/KEF--* @| collapse | ::code
/airports/* .A ->*[!->*[::code = $$.A::code]] | %(from = $$.A::code; to = ::code)
/airports/KEF(--*)+ @| collapse @| count
/airports/PPT(->*){;2} @| collapse @| count
/airports/PPT(<-*){;2} @| collapse @| count
/airports/KEF~swissair @| collapse | ::code
/airports/* .V | ->* | %(code = $$.V::code; km = $-::km) | .code($_:code) @|{.code} %($.code; km = sum(:km)) @| top(5; :km)
/airports/* .A ->* .H ->*[::code != $$.A::code][!<-*[::code = $$.A::code]] | %(h = $$.H::code) | :h @| frequencies(5)
/airports/LHR--* @| collapse | %(::code; shared = (--*[::code != "LHR"][--*[::code = "LHR"]] @| collapse @| count)) @| top(5; :shared)
/airports/LHR | %(a = (--* @| collapse @| count); b = (--*[::code = "CDG"] @| collapse | (--* @| collapse @| count)); shared = (--* @| collapse | [--*[::code = "CDG"]] @| count)) | %(shared = :shared; jaccard = round(:shared div (:a + :b - :shared); 2))
/airports/* .V | %(::code; k = (--* @| collapse @| count); links = (--* @| collapse | (--*[::code != $$.V::code][--*[::code = $$.V::code]] @| collapse @| count) @| sum)) | %(code = :code; k = :k; cc = round(:links div (:k * (:k - 1)); 2)) @| top(5; :cc)
/airports/* .V | %(::code; k = (--* @| collapse @| count); links = (--* @| collapse | (--*[::code != $$.V::code][--*[::code = $$.V::code]] @| collapse @| count) @| sum)) | %(code = :code; k = :k; cc = round(:links div (:k * (:k - 1)); 2)) @| bottom(5; :cc)
/airports/* .V | %(links = (--* @| collapse | (--*[::code != $$.V::code][--*[::code = $$.V::code]] @| collapse @| count) @| sum)) | :links @| sum
/characters/* | .:d(::id = "hamlet" ? 0 : null) | .:d($.d ?? ((--tie:.d @| min) + 1)){1;} | $.d @| frequencies
/characters/* | .:d(::id = "hamlet" ? 0 : null) | .:d($.d ?? ((--tie:.d @| min) + 1)){1;} | [$.d = 2] | ::name @| join(", ")
/characters/* | .:d(::id = "hamlet" ? 0 : null) | .:d($.d ?? ((--tie:.d @| min) + 1)){1;} | %(act = (--speaks @| collapse @| bottom(1; ::id) | ::act); d = $.d) | .act($_:act) @|{.act} %($.act; n = count; d = round(mean(:d); 1))
/characters/* | .:c(::id) | .:c(@($.c; (--tie):.c) @| sort @| first){1;} | $.c @| frequencies
/characters/* @| graph:distance(--tie; --from=/characters/hamlet) @| frequencies
/characters/* @| graph:distance(--tie; --from=/characters/hamlet) | .:d | [:.d = 2] | ::name @| join(", ")
/characters/* @| graph:distance(--tie; --from=/characters/*[::role = "player"]) | .:d | %(::name; d = :.d) | .d($_:d) @|{.d} %($.d; n = count; who = (:name | join(", ")))
/airports/LJU(->* .(::code)){2}[::code = "SIN"] | @. | join(" > ")
/airports/LJU(->*){3}[::code = "SIN"] @| count
/airports/LJU(->*){;3}[::code = "SIN"] @| collapse @| count
/airports/LJU(->*)+ @| count
/airports/LJU(->*)+ @| collapse @| count
/cells/1(->*){6} @| count
/cells/1(->*){6} @| collapse @| count
/cells/1(->*){;3} @| count
/cells/1(->*){;3} @| collapse @| count
/cells/1(->*)+ @| count
/cells/1(->*){;16} @| count
/cells/1(->*){;16} @| collapse @| count
/cells/1(->*)+ @| collapse @| count
/cells/1(->*)+[::row = 19 && ::col = 19]? | %(::row; ::col)
/airports/LJU | %(::code; ::city; ::country; ::region)
/airports/LJU->*::code
/airports/LJU<-*::code
/airports/LHR->* | $- @| frequencies
/airports/LHR->panam | %(to = ::code; flight = $-::code; dep = $-::dep)
/airports/DXB->* @| count
/airports/DXB->(panam || swissair) @| count
/airports/LJU(->swissair)+ @| collapse @| count
/airports/LJU(->*){;2} @| collapse | ::region @| unique
/airports/LJU[(->*){;4}[::code = "PPT"]]::city
/airports/*[!(->*){;2}[::code = "PPT"]] @| count
/airports/* | %(::code; ::city; reach = ((->*){;2} @| collapse @| count)) @| top(5; :reach)
/airports/LJU(->*){;2} @| collapse | %(::code; ::city; ::region) @| [..6] @| #
/airports/*[::region = "Oceania"] @| edges(->*; --weight=min)
/airports/* @| edges(->*) | dim
/airports/* @| edges(->*) | :label | frequencies
/airports/* @| edges(->*; --weight=min) | [:weight > 840_min] | :code
/airports/* @| edges(->*; --weight=EUR) | [:label = "varig"] | :weight | sum
/airports/*[::region = "South America"] @| edges(->*) | dim
/airports/LJU(->*){0;1} @| edges(->*) | :code
/airports/LJU->* | $-::code
/airports/*[::region = "Oceania"] @| edges(--*) | :directed | unique
/airports/*[::region = "Oceania"] @| nodes
/airports/* @| nodes | dim
/airports/*[::region = "Oceania"] @| edges(->*; --weight=min) @| csv
/airports/LJU(->*)+?::code
/airports/LJU(->*)+[::region = "Oceania"]? | %(::code; flights = $-:hops)
/airports/LJU(->*)+[::region = "South America"]? | %(::code; flights = $-:hops)
/airports/LJU(->* .(::code))+[::code = "PPT"]? | @. | join(" > ")
/airports/LJU(->* .(::code)){;3}[::code = "SIN"] | %(route = (@. | join(" > ")); flights = $-:hops) @| top(5; -:flights)
/airports/LJU(->* .(::code)){3}[::code = "SIN"] | @. | join(" > ") | [$_ *= "DXB"]
/airports/*[!<-*{;2}[::code = "LJU"]]::code
/airports/LJU(->*){3} @| collapse @| count
/airports/LJU(->*)+!::code
/airports/LJU(->*){;3} @| collapse @| count
/airports/LJU(->*){;4} @| collapse @| count
/airports/* @| graph:artpoints(->*) @| frequencies
/characters/* @| graph:artpoints(--tie) | .:a | [:.a] | ::name
/characters/*[::name != "Horatio"] @| graph:conncomp(--tie) | .:c | [:.c = 2] | ::name @| join(", ")
/airports/*[::region = "Asia" || ::region = "Oceania"] @| graph:artpoints(--*) | .:a | [:.a] | ::code @| join(", ")
/airports/*[::region = "Asia" || ::region = "Oceania"] | .:k(::code) @| graph:bridges(--*) | %(a = :source:.k; b = :target:.k; :label)
/airports/*[::region = "Africa" || ::region = "South America"] | .:k(::code) @| graph:bridges(--*) | %(a = :source:.k; b = :target:.k; :label)
/airports/* | .:k(::code) @| graph:betweenness(->*; --edges) @| top(3; :betweenness) | %(a = :source:.k; b = :target:.k; :label; bw = round(:betweenness; 1))
/characters/* | .:n(::name) @| graph:betweenness(--tie; --edges --normalized) @| top(3; :betweenness) | %(a = :source:.n; b = :target:.n; bw = round(:betweenness; 3))
/airports/* @| graph:route(->*; --from=/airports/LJU) | .:r | [::code = "PPT"] | :.r
/airports/* @| graph:route(->*; --from=/airports/LJU --weight=min) | .:r | [::code = "PPT" || ::code = "SIN"] | %(::code; route = :.r)
/characters/* @| graph:route(--tie; --from=/characters/fortinbras) | .:r | [::name = "Ophelia" || ::name = "First Sailor"] | %(::name; route = :.r)
/characters/*[::name != "Horatio"] @| graph:route(--tie; --from=/characters/hamlet) | .:r | [:.r = null] | ::name @| join(", ")
/characters/* | .n(^/characters/* @| count) | .:v(1 div $.n) | .:o(--tie @| collapse @| count) | .:v(0.15 div $.n + 0.85 * (--tie @| collapse | :.v div :.o @| sum | default(0))){20} | %(::name; pr = round($.v; 3); k = $.o) @| top(6; :pr)
/characters/* | .n(^/characters/* @| count) | .:v(1 div $.n) | .:o(--tie @| collapse @| count) | .:v(0.15 div $.n + 0.85 * (--tie @| collapse | :.v div :.o @| sum | default(0))){20} | $.v @| sum
/characters/* @| graph:pagerank(--tie) | .:pr | %(::name; pr = round(:.pr; 3)) @| top(6; :pr)
/characters/*[::role != "player"] @| graph:pagerank(--tie) | .:pr | %(::name; pr = round(:.pr; 3)) @| top(3; :pr)
/characters/* @| graph:pagerank(--tie; --weight=scene) | .:pr | %(::name; pr = round(:.pr; 3); scenes = ::scenes) @| top(6; :pr)
/*/*/* @| [..3] | %(:name; ::size)
nodes=1000
bytes=1MB
nodes=10000
/* | %(:name; files = (//*<file> @| count); bytes = (//*<file>::size @| sum))
//*<file> @| top(3; ::size) | %(:name; ::size)
/call-of-the-wild//*
//*<file>[::size > 2000_B]
//paragraph
bytes=2000000
/kapitanskaya-dochka//*
/shelf/* | %(:name; :::size)
//*
bytes=3000000
/shelf/call-of-the-wild.txt//paragraph
/shelf/* | %(:name; paragraphs = (//paragraph @| count))
/polka/* | %(:name; :::size)
bytes=5000000
/polka/povesti-belkina.txt//paragraph
/polka/* | %(:name; paragraphs = (//paragraph @| count))
/loans/* @| [..3] | %(book = (::book_id-->books::title); ::out; ::back)
/loans/* @| count
/loans/*[::book_id = 7] @| count
/loans/*[::book_id = 7]
nodes=1000,strict
/loans/*
nodes=100000
/loans/7
/books/* | %(::title; loans = (<--(::book_id) @| count)) @| top(3; :loans)
/readers/* | %(::name; loans = (<--(::reader_id) @| count)) @| top(2; :loans)
/loans/*[::out >= "2025-01-01"] @| count
/vydachi/* @| [..3] | %(kniga = (::kniga_id-->knigi::nazvanie); ::vydana; ::vozvrashchena)
/vydachi/* @| count
/vydachi/*[::kniga_id = 7] @| count
/vydachi/*[::kniga_id = 7]
/vydachi/*
/vydachi/7
/knigi/* | %(::nazvanie; vydach = (<--(::kniga_id) @| count)) @| top(3; :vydach)
/chitateli/* | %(::imya; vydach = (<--(::chitatel_id) @| count)) @| top(2; :vydach)
/vydachi/*[::vydana >= "2025-01-01"] @| count
//paragraph @| [..3] | ::
//paragraph[:: *= "whitewash"]
/row[::genre = "novel"]
bytes=400000
nodes=5000
//paragraph[:: *= "халат"]
/row[::жанр = "роман"]
/employees/*[::id > 5](->manager)+::name
/employees/*[::id > 5] | %(::name; chain = (->manager)+::name)
/employees/*[::manager_id](->manager)+ @| count
/employees/*[::manager_id](->manager)+ @| collapse @| count
/orders/1->customer
/staff/2--manager::name
//is_name_char<-definition | %(line = :::start-line)
/*<symlink> | %(:name; resolves-to = ->target:name)
/events/*::payload | graft(json) | /user | %
/events/*::payload | graft(json) | /user/mfa:: @| frequencies
/events/*[1]::payload | graft(json) | :path
/events/*[1]::payload | graft(json) | /user
/events/*[1]::payload | graft(json) | :kind
/events/* | %(id = ::id; who = (::payload | graft(json) | /user/name::))
= "{\"a\": [1, 2, 3]}" | graft(json) | /a/*::
//books/*[1] | %(::title; ::year) | json | graft(json) | /title::
//books/*[..2] | json | graft(json) @| count
//books/* | %(::title; ::year) @| u:head(-n=2) | graft(json) | /title::
= "fleet.yaml" | u:cat($_) | graft(yaml) | //name:: @| [..3]
= "prices.csv" | u:cat($_) | graft(csv) | /*[1] | %
= "snippet.html" | u:cat($_) | graft(html) | //*:name @| unique
= "reading-list.md" | u:cat($_) | graft(markdown) | //h2::
= "reading-list.md" | u:cat($_) | graft(text:markdown) | //paragraph @| count
= "reading-list.md" | u:cat($_) | graft(text) | //paragraph @| count
= "reading-list.md" | u:cat($_) | graft(corpus:markdown) | //sentence @| count
= "polyglot/util.py" | u:cat($_) | graft(code:python) | //*<function>:name
= "polyglot/util.py" | u:cat($_) | graft(code) | //*<function>:name
= "paper.tei.xml" | u:cat($_) | graft(lit:tei) | //*:name @| unique
= "paper.tei.xml" | u:cat($_) | graft | //head:: @| [..3]
/events/*[1]::payload | graft
= "not json" | graft(json)
= null | graft(json)
/events/*[1]::payload | graft(web)
/events/*[1]::payload @| graft(json)
//a[!-->] | %(text = ::; href = ::href)
//*.html | %(page = :name; links = (//a @| count); dead = (//a[!-->] @| count))
/staff/4(->manager)+?::name
/staff/4(->manager)+!::name
/staff/4(->manager)+[::title = "Director"]?::name
/staff/4(->manager[::title = "Director"])+?::name @| count
//if(\)+[:::construct = "function"]?:name
/notes/*[!-->] | %(key = :name; ref = ::"$ref")
/zametki/*[!-->] | %(key = :name; ref = ::"$ref")
/row::year @| median
/row[::year > 1810]::title
//* @| tree
/replies/*[::who]::who
/flights/*[1] | %(::km; ::duration; ::fare)
/flights/*[1] | %(::km; ::distance)
/flights/*[1] | %(::code; ::speed; ::price_per_km)
/flights/*[::speed > 780_km/h] | %(::code; ::origin; ::dest; ::speed)
/flights/*::speed @| mean
/flights/* | %(::code; ::price_per_km) @| sort_by(:price_per_km) @| [..3]
/flights/*[::swiss] @| count
/flights/*[1] | %(::code; ::swiss)
/flights/*[1]:props
/flights/* @| # | #(:code; :km; :speed; :price_per_km) | :::header
/flights/*[1]::speed
/docs//*.html | %(page = :name; dead = (//a[!-->]::href))
//section | .s(::lemma) | /paragraph | :: | words @|{.s} count | %($.s; n = $_)
/employees/*<-manager::name
/employees/* | %(::name; reports = (<-manager::name))
/employees/* | %(::name; n = (<-manager @| count))
/employees/*[<-manager] | %(::name; reports = (<-manager::name @| join(", ")))
/row | %(::crate; ::to; ::weight; ::volume) @| #
/row | %(::crate; ::to; ::weight; ::volume) @| # | type
/row | .to(::to) @|{.to} sum(--of=(::weight | quantity)) | .n | %.
/row | .to(::to) @|{.to} sum(--of=(::weight | quantity | convert(kg))) | round(2) | .n | %.
/row | ::weight | quantity @| sum | convert(kg) | round(2)
/row | ::volume | quantity @| sum | convert(L) | round(2)
/row | ::weight | quantity @| sort
/row | ::weight | quantity @| max
/row[::weight > 1_kg]::crate
/row | %(::crate; w = (::weight | quantity)) @| # | :w | * 2
/row | %(::crate; w = (::weight | quantity | convert(kg) | round(2))) @| # | :w | sum
/row | %(::file; size = (::bytes | unit(B) | scale))
/row | ::bytes | unit(B) | scale(--binary) | round(1)
/row | ::bytes | unit(B) @| sum | scale
/row[(::bytes | unit(B)) > 700_kB]::file
/row | %(::crate; ::weight; ::volume) @| # | dimension
/row | (::weight | quantity) + (::volume | quantity) | type @| unique
= 5_km + 300_m
= 1_mi | convert(km)
= 100_km/h | convert(m/s)
= 2_h + 30_min
= 5_km | unit
= 5_km | magnitude
= 5_km | magnitude(m)
= 5 | unit(km)
= 5_km | convert
/polyglot/*[:::size > 0.4_kB]:name
/racks/*[::draw > 2_kW]::name
/racks/*[::draw > "2 kW"]::name
/room/racks/*[::cooling < ::draw]::name
/room/racks/* | %(::name; ::cooling; watts = (::cooling | convert(W) | round))
/racks/* | ::draw | quantity @| sum
/racks/* | ::draw | quantity @| mean | round(2)
/racks/* | ::draw | quantity | * 2
/racks/* | ::ups | quantity @| sum | convert(J) | scale
/racks/* | %(::name; ::draw; ::ups) @| #
/racks/* | %(::name; ::draw; ::ups) @| # | type
/racks/*[::draw > 2_m] @| count
/racks/* | ::draw | quantity | dimension @| unique
= 5_km + 5
= 5_km + 2_h
= %(left = 10_km mod 3_km; laps = 10_km idiv 3_km)
/row | %(::товар; m = (::масса | quantity))
/row[::масса > 1_кг]::товар
/row[::масса > 1_kg]::товар
/row | ::масса | quantity | unit
/лавка/* | ::цена | quantity @| sum
/лавка/* | ::цена | quantity @| sum | convert(RUB)
/лавка/* | %(::товар; за_кг = ((::цена | quantity) div (::масса | quantity | magnitude(kg)) | round(2)))
/лавка/*[(::масса | quantity | dimension) = "M"] | %(::товар; за_кг = ((::цена | quantity) div (::масса | quantity | magnitude(kg)) | round(2)))
= 2_кбайт | unit
= 2_Кбайт | type
/cart/loads/*[::weight > "2 cwt"]::what
/обоз/грузы/*[::вес > "1 пуд"]::что
//books/*[::year > 1810] | ::title | upper
//books/*[::year > 1810] | ::title | substr(1..9)
//books/*[::year = 1603] | ::tags | join(", ")
//books/*[::year = 1603] | ::tags $| upper
//books/*[::year = 1603] | ::tags | ... @| count
//books/*[::year > 1810] | ::tags | join(", ")
//books/* | ::year | round(-2) @| frequencies(2)
//books/* @| top(2; ::year) | ::title
= "The Odyssey" | substr(1..3)
= substr("The Odyssey"; 1..3)
= null | upper
= "The Odyssey" | substr("x"; 1..3)
//books/*[4]::year | round(-1)
//books/*[4]::year | round(-1; 2)
//books/* @| top(2; ::year; ::title)
= null | mi(22; 355; 690; 71275)
= "abc" | upper("xyz")
= m:pow(2; 3)
= 2 | m:pow(3)
//books/*[::year > 1810] | ::title | py:pad(--width=24 --fill="-")
//books/*[::year > 1810] | ::title | py:pad(--fill="-"; 24)
//books/*[::year > 1810] | .t(::title) | sh:printf("%s!\n"; $.t)
//books/*[::year > 1810] | ::title | py:pad(12)
//books/*[::year > 1810] | ::title | re:sub("^The "; ""; $_)
//books/*[::year > 1810] | .n(/tags/* @| count) | %(::title; n = $.n)
//books/*[(/tags/* @| count) > 2] | ::title
@(22; 35; 58) | max
%(0 = 22; 1 = 35; 2 = 58) | max
@(22; 35; 58) | mean
//books/*[::title = "Hamlet"] | ::tags | count
//books/*[::title = "Hamlet"] | ::tags | join(", ")
@(1; null; 3) | mean
@(1; null; 3) | count
@(1; null; 3) | count(-v)
@() | sum
@() | count
@(1_m; 50_cm) | sum
@(2025-01-01; 2024-06-30) | min
@(1; 2; 3; 4) | percentile(25)
//books/* | %(::title; n = count(::tags); tags = join(::tags; ", "))
//books/*[count(::tags) > 2] | ::title
/* | %(::Sex; ::Age; ::Fare) @| # | mean
/* | %(::Sex; ::Age; ::Fare) @| # | count(-n)
/* | %(::Sex; ::Age; ::Fare) @| # | max(--of=:Age)
/* | %(::Sex; ::Age; ::Fare) @| # | :Age | max
/* | %(::Sex; ::Age; ::Fare) @| # | %(oldest = max(:Age); dearest = max(:Fare); n = count)
/* | %(::Sex; ::Age; ::Fare) @| # | mean(--by=:Sex)
//books/* | ::year @| max
//books/* @| count
//books/* | ::tags | ... @| count
//books/* | ::tags | ... @| frequencies(4)
//books/* @| [..3] | ::title
//books/* | [..3] | ::title
//books/* | ::tags | ... @| %(n = count; kinds = unique @| count)
//books/* | ::tags | ... | .n@(count) | .kinds@(unique @| count) @| %.
//books/*[::year > 1810] | %(::title; ::year) | json
//books/*[::year > 1810] | %(::title; ::year) @| json
//books/*[::year > 1810] | %(::title; ::year) @| pretty
//книги/* @| count
//книги/* | ::метки | ... @| count
//книги/* | ::метки | ... @| frequencies(4)
//книги/* @| top(2; ::год) | ::название
//книги/* @| [..3] | ::название
//книги/* | [..3] | ::название
//книги/* | ::метки | ... @| %(n = count; kinds = unique @| count)
//книги/* | ::метки | ... | .n@(count) | .kinds@(unique @| count) @| %.
//книги/*[::год > 1840] | %(::название; ::год) | json
//книги/*[::год > 1840] | %(::название; ::год) @| json
//книги/*[::год > 1840] | %(::название; ::год) @| pretty
//books/*[::year = 1603] | ::tags | upper
//books/*[::year = 1603] | ::tags | [!("verse" <<= $_)] | json
//books/*[::year = 1603] | ::tags $| upper | json
//books/* | ::tags $| [!("verse" <<= $_)] | json
//books/* | ::tags $| [..1] | json
//books/*[::year > 1810] | %(::title; tags = (::tags $| upper))
//books/* | ::tags @| count
//books/* | ::tags $| [$_ = "verse"] | ... @| count
//книги/*[::название = "Евгений Онегин"] | ::метки | upper
//книги/*[::название = "Евгений Онегин"] | ::метки | [!("стихи" <<= $_)] | json
//книги/*[::название = "Евгений Онегин"] | ::метки $| upper | json
//книги/* | ::метки $| [!("стихи" <<= $_)] | json
//книги/* | ::метки $| [..1] | json
//книги/*[::год > 1840] | %(::название; tags = (::метки $| upper))
//книги/* | ::метки @| count
//книги/* | ::метки $| [$_ = "стихи"] | ... @| count
//books/* | ::title | upper
//books/* | .y(::year) | ::title | %(title = $_; year = $.y)
//books/* | .t(::title) | /tags/* | %(tag = ::; book = $.t)
//книги/* | ::название | upper
//книги/* | [::год > 1840] | ::название
//книги/* | .y(::год) | ::название | %(title = $_; year = $.y)
//книги/* | .t(::название) | /метки/* | %(tag = ::; book = $.t)
//books/*[::year > 1800] | .t(::title) | .y(::year) | %.
//books/*[::year > 1800]/tags/* | .tag(::) @|{.tag} count | .n | %.
//books/*[::year > 1860] | ::year | . | %.
//books/*[::year > 1860] | ::year | . | @.
//books/*[::year > 1860] | ::year | . | %.*
//books/*[::year > 1860] | ::year | . | /tags/* | %(tag = ::; year = $.1)
//books/*[::year > 1860] | .y(::year) | ::title | %(title = $_; year = $.y)
//books/*[::year > 1860] | .y(::year) | .n(/tags/* @| count) | %.
//books/*[::year > 1860] | .(::year) | .t(::title) | %.*
//books/*[::year > 1860] | %(::title; ::year) | .% | %.
//books/*[::year > 1860] | %(::title; ::year) | . | %.
//books/*[::year > 1860] | %(::title; ::year) | . | @.
//books/*[::year > 1860] | ::year | .% | %.
//books/*[::year > 1860] | .%(::title; ::year) | %.*
//books/*[::year > 1860] | .r%(::title; ::year) | $.r
//books/*[::year > 1860] | .y(::year) | .%%(::title) | %.*
//books/* | .t(::title) | .n(/tags/* @| count) | #. @| first
//книги/*[::год > 1850] | .t(::название) | .y(::год) | %.
//книги/*[::год > 1840]/метки/* | .tag(::) @|{.tag} count | .n | %.
//книги/*[::год > 1860] | ::год | . | %.
//книги/*[::год > 1860] | ::год | . | @.
//книги/*[::год > 1860] | ::год | . | %.*
//книги/*[::год > 1860] | ::год | . | /метки/* | %(tag = ::; year = $.1)
//книги/*[::год > 1860] | .y(::год) | ::название | %(title = $_; year = $.y)
//книги/*[::год > 1860] | .y(::год) | .n(/метки/* @| count) | %.
//книги/*[::год > 1860] | .(::год) | .t(::название) | %.*
//книги/*[::год > 1860] | %(::название; ::год) | .% | %.
//книги/*[::год > 1860] | %(::название; ::год) | . | %.
//книги/*[::год > 1860] | %(::название; ::год) | . | @.
//книги/*[::год > 1860] | ::год | .% | %.
//книги/*[::год > 1860] | .%(::название; ::год) | %.*
//книги/*[::год > 1860] | .r%(::название; ::год) | $.r
//книги/*[::год > 1860] | .y(::год) | .%%(::название) | %.*
//книги/* | .t(::название) | .n(/метки/* @| count) | #. @| first
/rows/*[1] | $_
/rows/*[1]::fare | $_ * 2
/rows/*[1] | ::fare | %(doubled = $_ * 2; name = ::name)
//books/*[1]::tags
//books/*[1]::tags | upper
//books/*[1]::tags @| count
//books/*[1]::tags | ...
//books/*[1]::tags | ... | upper
//books/*[1]::tags | ... @| count
//books/*[1]::tags | ... @| join(", ")
//books/*::tags | ... @| frequencies(3)
//books/*[1]::tags | ... | %(tag = $_; book = ::title)
/rows/* @| # | @ | ... | :name
//books/* | ::tags | json
//books/* | ::tags | upper
//books/* | ::tags $| upper | json
//books/* | ::tags | ["novel" <<= $_] @| count
//books/* | ::tags $| ["novel" <<= $_] | ... @| count
//books/* | ::tags @| [..2] | json
//книги/* | ::метки | json
//книги/* | ::метки | upper
//книги/* | ::метки $| upper | json
//книги/* | ::метки | ["роман" <<= $_] @| count
//книги/* | ::метки $| ["роман" <<= $_] | ... @| count
//книги/* | ::метки @| [..2] | json
//books/* | .a(::author) @|{.a} count | .n | %(author = $.a; n = $.n; at = :path)
//books/* | .a(::author) | .n@{.a}(count) | %(::title; author = $.a; n = $.n; at = :path)
//books/* | .a(::author) | .n@{.a}(count) | [$.n > 1] | ::title
//books/* | .n@(count) | %(::title; share = (100 div $.n))
//books/*[::author = "Jane Austen"] | .a(::author) | .n@{.a}(count) | ::title @| threads(-c)
//books/*[::year > 1812] | ::title | .all@(join(", ")) | %(title = $_; with = $.all)
//книги/* | .а(::автор) @|{.а} count | .n | %(автор = $.а; n = $.n; где = :path)
//книги/* | .а(::автор) | .n@{.а}(count) | %(::название; автор = $.а; n = $.n; где = :path)
//книги/* | .а(::автор) | .n@{.а}(count) | [$.n > 1] | ::название
//книги/* | .n@(count) | %(::название; доля = (100 div $.n))
//книги/*[::автор = "Николай Гоголь"] | .а(::автор) | .n@{.а}(count) | ::название @| threads(-c)
//книги/*[::год > 1840] | ::название | .все@(join(", ")) | %(название = $_; вместе = $.все)
//books/*[::author = "Jane Austen"] | /tags/* | /../.. | ::title
//books/*[::author = "Jane Austen"] | /tags/* | /../.. @| count
//books/*[::author = "Jane Austen"] | /tags/* | /../.. | ::title @| threads
//books/*[::author = "Jane Austen"] | /tags/* | .t(::) | /../.. @| collapse | ::title
//книги/*[::автор = "Николай Гоголь"] | /метки/* | /../.. | ::название
//книги/*[::автор = "Николай Гоголь"] | /метки/* | /../.. @| count
//книги/*[::автор = "Николай Гоголь"] | /метки/* | /../.. | ::название @| threads
//книги/*[::автор = "Николай Гоголь"] | /метки/* | .м(::) | /../.. @| collapse | ::название
//books/* | /tags/* @| count
//books/*[::author = "Jane Austen"] | /tags/* | :: @| threads
//books/*[::author = "Jane Austen"] | .b(::title) | /tags/* | :: @| threads(-c)
//книги/* | /метки/* @| count
//книги/*[::автор = "Николай Гоголь"] | /метки/* | :: @| threads
//книги/*[::автор = "Николай Гоголь"] | .к(::название) | /метки/* | :: @| threads(-c)
//books/*[::author = "Jane Austen"] | .a(::author) | /tags/* | .t(::) @|{.a; .t} count @| threads
//книги/*[::автор = "Николай Гоголь"] | .а(::автор) | /метки/* | .м(::) @|{.а; .м} count @| threads
//books/* | .a(::author) @|{.a} count | %(author = $.a; n = $_)
//books/* | .c(::year idiv 100) @|{.c} count | %(century = $.c; n = $_)
//books/* | .B | /tags/* @|{.B} count | %(title = $$.B::title; tags = $_; at = :path)
//books/*[::year] | .a(::author) | /tags/* @|{.a} count @| threads
//books/* | .a(::author) @|{.a} top(1; ::year) | %($.a; ::title)
//книги/* | .а(::автор) @|{.а} count | %(автор = $.а; n = $_)
//книги/* | .д(::год idiv 10) @|{.д} count | %(десятилетие = $.д; n = $_)
//книги/* | .К | /метки/* @|{.К} count | %(название = $$.К::название; меток = $_; где = :path)
//книги/*[::автор = "Николай Гоголь"] | .а(::автор) | /метки/* @|{.а} count @| threads
//книги/* | .а(::автор) @|{.а} top(1; ::год) | %($.а; ::название)
//books/*[::author = "William Shakespeare"] | [::year > 1605] | ::title @| threads
//books/*[::author = "William Shakespeare"][::year > 1605] | ::title @| threads
//books/* | [!::year] | ::title
//книги/*[::год > 1840]::название
//книги/*[::автор = "Николай Гоголь"] | [::год > 1840] | ::название @| threads
//книги/*[::автор = "Николай Гоголь"][::год > 1840] | ::название @| threads
//книги/* | [!::год] | ::название
//books/*::year @| sum
//books/*[::author = "Jane Austen"] | /tags/* @| count @| threads
//books/*::year @| sum | $_ div 5
//books/* | /tags/* | :: @| unique @| count
//книги/*::год @| sum
//книги/*[::автор = "Николай Гоголь"] | /метки/* @| count @| threads
//книги/*::год @| sum | $_ div 7
//книги/* | /метки/* | :: @| unique @| count
//books/* @| top(2; ::year) | %(::title; at = :path)
//books/* @| [..2] | %(::title; at = :path)
//books/* @| unique_by(::author) | %(::author; at = :path)
//books/* | .a(::author) | /tags/* @| top(3; ::) | %(tag = ::; author = $.a)
//books/*[::year] @| top(2; ::year) @| threads
//книги/* @| top(2; ::год) | %(::название; где = :path)
//книги/* @| [..2] | %(::название; где = :path)
//книги/* @| unique_by(::автор) | %(::автор; где = :path)
//книги/* | .а(::автор) | /метки/* @| top(3; ::) | %(метка = ::; автор = $.а)
//книги/*[::год] @| top(2; ::год) @| threads
//books/*[::year] @| sort_by(::year) | ::year @| window(-1..1)
//books/*[::year] @| sort_by(::year) | ::year @| window(-1..1) | mean | round
//books/*[::year] @| sort_by(::year) | ::year @| shift(1) | %(::title; before = $_)
//books/*[::year] @| sort_by(::year) @| window(-1..1) | max_by(::year) @| ungroup | ::title
//books/*[::year > 1800] @| sort_by(::year) | ::year @| window(-1..1) @| threads
//книги/*[::год] @| sort_by(::год) | ::год @| window(-1..1)
//книги/*[::год] @| sort_by(::год) | ::год @| window(-1..1) | mean | round
//книги/*[::год] @| sort_by(::год) | ::год @| shift(1) | %(::название; до = $_)
//книги/*[::год] @| sort_by(::год) @| window(-1..1) | max_by(::год) @| ungroup | ::название
//книги/*[::год > 1840] @| sort_by(::год) | ::год @| window(-1..1) @| threads
/row | %(::title; lent = (::lent | strptime("%d %B %Y"; en)))
/row[2] | ::lent | strptime("%b %d, %Y"; en)
/row[3] | ::lent | strptime("%d. %B %Y"; de)
/row[4] | ::lent | strptime("%d %B %Y"; fr)
/row[5] | ::lent | strptime("%d de %B de %Y"; pt)
/row[6] | ::lent | strptime("%Y年%B%d日"; zh)
/row[1] | ::lent | strptime("%d %B %Y")
/row[1] | ::lent | strptime("%d %B %Y"; fi)
/row | %(::title; due = (::due | strptime("%B %Y"; en)))
/row | ::due | strptime("%B %Y"; en) @| max | strftime("%B %Y"; en)
/row[2] | ::lent | strptime("%b %d, %Y"; en) | strftime("%A, %e %B %Y"; fr)
/row[2] | ::lent | strptime("%b %d, %Y"; en) | strftime("%A, %e %B %Y"; de)
/row[2] | ::lent | strptime("%b %d, %Y"; en) | strftime("%Y年%B%d日 %A"; zh)
/row[1] | ::lent | strptime("%d %B %Y"; en; julian)
/row[1] | ::lent | strptime("%d %B %Y"; en; julian) | calendar
/row[1] | ::lent | strptime("%d %B %Y"; en; julian) | strftime("%-d %B %Y"; en)
/row[1] | ::lent | strptime("%d %B %Y"; en) | strftime("%-d %B %Y"; en; julian)
/row[1] | ::lent | strptime("%d %B %Y"; en) | calendar(hebrew) | strftime("%-d %B %Y"; en)
/row[1] | ::lent | strptime("%d %B %Y"; en) | calendar(islamic) | year
/row | %(::книга; выдано = (::выдано | strptime("%d %B %Y г."; ru)))
/row[2] | ::выдано | strptime("%d %b %Y г."; ru)
/row[3] | ::выдано | strptime("%d.%m.%Y")
/row[4] | ::выдано | strptime("%A, %d %B %Y г."; ru)
/row[1] | ::выдано | strptime("%d %B %Y г."; fi)
/row | %(::книга; вернуть = (::вернуть | strptime("%B %Y"; ru)))
/row | ::вернуть | strptime("%B %Y"; ru) @| sort @| unique
/row | ::вернуть | strptime("%B %Y"; ru) @| max | strftime("%B %Y"; ru)
/row[2] | ::выдано | strptime("%d %b %Y г."; ru) | strftime("%A, %e %B %Y г."; ru)
/row[2] | ::выдано | strptime("%d %b %Y г."; ru) | strftime("%A, %e de %B de %Y"; pt)
/row[2] | ::выдано | strptime("%d %b %Y г."; ru) | strftime("%A %e %B %Y"; fr)
/row[2] | ::выдано | strptime("%d %b %Y г."; ru) | strftime("%d.%m.%Y")
/row[1] | ::выдано | strptime("%d %B %Y г."; ru; julian)
/row[1] | ::выдано | strptime("%d %B %Y г."; ru; julian) | calendar
/row[1] | ::выдано | strptime("%d %B %Y г."; ru; julian) | strftime("%-d %B %Y"; ru)
/row[1] | ::выдано | strptime("%d %B %Y г."; ru) | strftime("%-d %B %Y"; ru; julian)
/row[1] | ::выдано | strptime("%d %B %Y г."; ru) | calendar(hebrew) | strftime("%-d %B %Y"; ru)
/row[1] | ::выдано | strptime("%d %B %Y г."; ru) | calendar(islamic) | year
/row[1]::born | datetime
/row[1]::born
/row[::born < 1800-01-01] @| count
= 1.5
/row[::language = "French"] | %(::name; born = (::born | datetime)) @| csv
/row[::language = "French"] | %(::name; born = (::born | datetime)) @| json
/row[1]::born | strftime("%d %B %Y"; fr)
/row[1]::born | strftime("%d %B %Y"; ru)
= 90_min
= 90_min | dfmt
= '5 Tg. 3 Std. 5 Min.' | duration
= '16 дек. 1775 г., 00:00:00' | tp('%d %b %Y г., %H:%M:%S'; ru) | year
/row[1]::родился | datetime
/row[1]::родился
/row[::родился < 1800-01-01] @| count
/row[::язык = "французский"] | %(::автор; родился = (::родился | datetime)) @| csv
/row[::язык = "французский"] | %(::автор; родился = (::родился | datetime)) @| json
/row[1]::родился | strftime("%d %B %Y"; fr)
/row[1]::родился | strftime("%d %B %Y"; ru)
= 1.5_h | dfmt(--iso)
= "5d 3h 5min" | duration | convert(h)
= "PT36H" | duration | dfmt
= 2_w + 3_d
= 2_w + 3_d | dfmt
= 100000_s | scale
= 100000_s | dfmt
= 0.25_h | scale
= ("2026-03-01T12:30" | datetime) - ("2026-03-01T10:00" | datetime)
= ("2026-03-01T10:00" | datetime) + 90_min
= duration("2026-03-01T10:00"; --to="2026-03-01T12:30")
= "2026-03-01T10:00" | duration(--to="2026-03-01T12:30")
= "2026-03-01T12:30" | duration(--from="2026-03-01T10:00")
/row | %(::runner; t = (::lap | duration | dfmt))
/row[::lap > 1.5_h]::runner
/row | ::lap | duration @| sum | dfmt
/row | ::lap | duration @| mean | dfmt
/row | ::lap | duration @| min | dfmt(--iso)
/row | %(::runner; behind = ((::lap | duration) - (^/row | ::lap | duration @| min) | dfmt))
/row | ::lap | duration | type @| unique
/row | ::lap | duration | dimension @| unique
/row[::born < 1800-01-01]::name
/row[1]::born | type
/row[1]::born | datetime | type
/row[::language = "Russian"] | %(::name; year = (::born | year); weekday = (::born | strftime("%A"))) @| #
/row[(::born | weekday) = 7]::name
/row[(::born | month) = 9]::name
/row | .decade(((::born | year) div 10 | floor | * 10)) @|{.decade} count | .n | %.
/row | ::born @| min
/row @| max_by(::born) | ::name
2028-06-01
/row[::родился < 1800-01-01]::автор
/row[1]::родился | type
/row[1]::родился | datetime | type
/row[::язык = "русский"] | %(::автор; год = (::родился | year); день = (::родился | strftime("%A"; ru))) @| #
/row[(::родился | weekday) = 7]::автор
/row[(::родился | month) = 9]::автор
/row | %(::автор; десятилетие = ((::родился | year) div 10 | floor | * 10)) | .десятилетие($_:десятилетие) @|{.десятилетие} count | .n | %.
/row | ::родился @| min
/row @| max_by(::родился) | ::автор
/row[1] | %(::name; lived = (::died - (::born | datetime)))
/row[1] | %(::name; lived = duration(::born; --to=::died))
/row[1]::born | duration(--to=::died) | days
/row[1]::born | duration(--to=::died) | convert(w) | round
/row[1]::born | duration(--to=::died) | days | div 365.25 | round(1)
/row | %(::name; years = (duration(::born; --to=::died) | days | div 365.25 | round(1))) @| max_by(:years)
/row | %(::name; years = (duration(::born; --to=::died) | days | div 365.25 | round(1))) @| min_by(:years)
/row | (duration(::born; --to=::died) | days | div 365.25) @| mean | round(1)
/row | %(::name; years = (duration(::born; --to=::died) | days | div 365.25 | round(1))) @| sort_by(:years) @| #
/row[::born <= 1850-01-01 <= ::died] @| count
/row[!(::born <= 1850-01-01 <= ::died)]::name
/works/* <=> /authors/*[::name = $$0::author] | (duration($$1::born; --to=::published) | days | div 365.25) @| mean | round(1)
/works/* <=> /authors/*[::name = $$0::author] | [(::published | datetime) > $$1::died] | ::title
/row | %(::reader; ::book; month = (::out | period(month))) @| [..4]
/row[(::out | period(month)) = 2026-03] | %(::reader; ::book; ::out)
/row[(::out | period) <<= 2026-03] @| count
/row | .month((::out | period(month))) @|{.month} count | %($.month; loans = $_)
/row | (::out | period(year)) @| unique
/row | %(::читатель; ::книга; месяц = (::выдана | period(month))) @| [..4]
/row[(::выдана | period(month)) = 2026-03] | %(::читатель; ::книга; ::выдана)
/row[(::выдана | period) <<= 2026-03] @| count
/row | .месяц((::выдана | period(month))) @|{.месяц} count | %($.месяц; выдач = $_)
/row | (::выдана | period(year)) @| unique
/row[1] | %(::автор; прожил = (::умер - (::родился | datetime)))
/row[1] | %(::автор; прожил = duration(::родился; --to=::умер))
/row[1]::родился | duration(--to=::умер) | days
/row[1]::родился | duration(--to=::умер) | convert(w) | round
/row[1]::родился | duration(--to=::умер) | days | div 365.25 | round(1)
/row | %(::автор; лет = (duration(::родился; --to=::умер) | days | div 365.25 | round(1))) @| max_by(:лет)
/row | %(::автор; лет = (duration(::родился; --to=::умер) | days | div 365.25 | round(1))) @| min_by(:лет)
/row | (duration(::родился; --to=::умер) | days | div 365.25) @| mean | round(1)
/row | %(::автор; лет = (duration(::родился; --to=::умер) | days | div 365.25 | round(1))) @| sort_by(:лет) @| #
/row[::родился <= 1850-01-01 <= ::умер] @| count
/row[!(::родился <= 1850-01-01 <= ::умер)]::автор
/w/* <=> /a/*[::автор = $$0::автор] | (duration($$1::родился; --to=::издано) | days | div 365.25) @| mean | round(1)
/w/* <=> /a/*[::автор = $$0::автор] | [(::издано | datetime) > $$1::умер] | ::название
2026-08-05T12:00:00Z
2026-07-30T12:00:00Z
/row | ::price @| sum
/row @| count
= "1 234,56" | number(fr)
= "1.234,56" | number(de)
= "1,234.56" | number(en)
= "1’234.56" | number(de-CH)
= "1,234.56" | number(es-MX)
= "1,234.56" | number(es)
/row | ::цена @| sum
= "1 234,56" | number(ru)
/row[::temp = null]::sensor
/characters/*[::name = "Horatio"] | --tie | %(with = ::name; shared = $-:weights) @| top(5; :shared)
/characters/*[::name = "Horatio"] | --tie @| count
/characters/*[::name = "Horatio"](--tie){;1_scene} @| collapse @| count
/characters/* @| graph:pagerank(--tie; --weight=scene) | .:pr | %(::name; pr = round(:.pr; 3)) @| top(3; :pr)
/characters/*[::name = "Horatio" || ::name = "Hamlet" || ::name = "Ophelia"] @| edges(--tie; --weight=scene) | rows | %(a = :source::name; b = :target::name; :weight)
/characters/*[::name = "Horatio"] | --tie | $-:weights
/airports/LJU->*[1] | $-:weights
/airports/LJU->*[1] | %($-::carrier; $-::code; $-::km)
/airports/LJU(->*){1_m;1000_km} @| collapse | ::code
/airports/LJU(->*){;1}{2_h;} @| collapse | ::code
/airports/LJU(->*){;150_EUR} @| collapse | ::code
/airports/LJU(->*){1_km;1_h} @| collapse | ::code
/huts/*[::name = "Valley Inn"] | --trail | %(to = $-:target::name; weights = $-:weights)
/huts/*[::name = "Valley Inn"](--trail .(::name)){rise:*_m}[::name = "Far Valley"] | %(route = (@. | join(" > ")); up = $-:total) @| top(4; -:up)
/huts/*[::name = "Valley Inn"](--trail .(::name)){fall:*_m}[::name = "Far Valley"]? | %(route = (@. | join(" > ")); down = $-:total)
/huts/*[::name = "Valley Inn"](--trail .(::name)){max:*_m}[::name = "Far Valley"]? | %(route = (@. | join(" > ")); step = $-:total)
/huts/*[::name = "Summit Bivouac"](--trail .(::name)){rise:;0_m}[::name = "Valley Inn"] | %(route = (@. | join(" > ")))
/huts/*[::name = "Summit Bivouac"](--trail .(::name)){fall:*_m}[::name = "Valley Inn"] | %(route = (@. | join(" > ")); down = $-:total) @| top(6; -:down)
/huts/*[::name = "Summit Bivouac"](--trail .(::name)){min:*_m}[::name = "Valley Inn"]! | %(route = (@. | join(" > ")); steepest = $-:total)
/huts/*[::name = "Valley Inn"](--trail .(::name)){;6_h}{rise:;900_m}[::name = "Far Valley"] | %(route = (@. | join(" > ")); costs = $-:costs)
/ports/*[::name = "Devonport"]->leg | %(to = $-:target::name; weights = $-:weights)
/ports/*[::name = "Devonport"](->leg){;365_d} | ::name
/ports/*[::name = "Devonport"](->leg){;365_d}! | %(::name; days = $-:total)
/ports/*[::name = "Devonport"](->leg){*_d}[::name = "Sydney"] | %(legs = $-:hops; days = $-:total)
/ports/*[::name = "Devonport"](->leg){max:*_d}[::name = "Falmouth"] | %(longest = $-:total)
/ports/*[::name = "Montevideo"](<-leg){*_d}[::name = "Devonport"] | $-:total
/ports/*[::name = "Montevideo"](<-leg){abs:*_d}[::name = "Devonport"] | %(days = $-:total)
/ports/*[::name = "Devonport"](->leg){*_nmi}{*_d}[::name = "Falmouth"] | %(costs = $-:costs; pace = round(($-:costs | first) div ($-:costs | last); 1))
/airports/LJU(->* .(::code)){*_min}[::code = "SIN"]? | %(route = (@. | join(" > ")); t = $-:total)
/airports/LJU(->* .(::code)){*_EUR}[::code = "SIN"]? | %(route = (@. | join(" > ")); fare = $-:total)
/airports/LJU(->* .(::code)){;15_h}[::code = "SIN"] | %(route = (@. | join(" > ")); t = $-:total) @| top(2; -:t)
/airports/LJU(->* .(::code)){*_min}[::code = "PPT"]? | %(route = (@. | join(" > ")); t = $-:total)
/airports/LJU(->* .(::code)){*_EUR}[::code = "PPT"]? | %(route = (@. | join(" > ")); fare = $-:total)
/airports/LJU(->* .(::code)){;15_h}[::code = "SIN"]! | %(route = (@. | join(" > ")); t = $-:total)
/towns/*[::name = "Casterbridge"] | --road | %(to = $-:target::name; weights = $-:weights)
/towns/*[::name = "Casterbridge"](--road .(::name)){*_km}[::name = "Anglebury"]? | %(route = (@. | join(" > ")); km = $-:total)
/towns/*[::name = "Casterbridge"](--road .(::name)){min:*_t}[::name = "Anglebury"] | %(route = (@. | join(" > ")); load = $-:total) @| sort_by(:route)
/towns/*[::name = "Casterbridge"](--road .(::name)){min:*_t}[::name = "Anglebury"]! | %(route = (@. | join(" > ")); load = $-:total)
/towns/*[::name = "Casterbridge"](--road .(::name)){min:30_t;}[::name = "Anglebury"] | %(route = (@. | join(" > ")); load = $-:total)
/towns/*[::name = "Casterbridge"](--road .(::name)){min:30_t;}{*_km}[::name = "Anglebury"]? | %(route = (@. | join(" > ")); costs = $-:costs)
/airports/LJU(->*){1;}{;1500_km} | %(::code; costs = $-:costs)
/airports/LJU(->*)+{;1500_km} | ::code
/airports/LJU(->* .(::code)){;15_h}{;1000_EUR}[::code = "SIN"] | %(route = (@. | join(" > ")); costs = $-:costs)
/airports/LJU(->* .(::code)){;15_h}{;1000_EUR}[::code = "SIN"]? | %(route = (@. | join(" > ")); total = $-:total; costs = $-:costs)
/airports/LJU(->* .(::code)){;1000_EUR}{;15_h}[::code = "SIN"]? | %(route = (@. | join(" > ")); total = $-:total; costs = $-:costs)
/airports/LJU(->*){;3_h}{;90_min} | ::code
/airports/LJU(->*){;10_h} @| count
/airports/LJU(->*){;10_h} @| collapse @| count
/airports/LJU(->*){;10_h}[::region != "Europe"] @| collapse | ::code
/airports/LJU(->*){;15_h}[::code = "SIN"] | %(flights = $-:hops; t = $-:total)
/airports/LJU(->*){;1000_km} @| collapse | ::code
/airports/LJU(->*){;3_h} @| collapse | ::code
/airports/LJU(->*){;1000_EUR}[::code = "SIN"] @| count
/airports/LJU(->*){;300_EUR} | %(::code; fare = $-:total)
//*<type> @| top(5; :n-children) | %(:name; :n-children)
//'w:tbl' @| count
/airports/* @| count
/flights/* @| count
/airports/LJU->* | %(to = ::code; flight = $-::code; carrier = $-)
/airports/LJU->swissair::code
/airports/DXB->(!swissair) | %(to = ::code; carrier = $-)
/airports/KEF(->*|<-*) @| collapse | ::code
/airports/* | %(::code; reach = ((->*){;2} @| collapse @| count)) @| top(3; :reach)
/airports/LJU(->*)+[::code = "PPT"]? | $-:hops @| unique
/airports/LJU(->* .(::code))+[::code = "PPT"]? | @. | join(" > ") @| first
/airports/LJU(->* .(::code)){;20_h}[::code = "SIN"]? | %(route = (@. | join(" > ")); t = $-:total)
/airports/LJU(->* .(::code)){;1200_EUR}[::code = "SIN"]? | %(route = (@. | join(" > ")); fare = $-:total)
/airports/*[::region = "Oceania"] @| edges(->*) | dim
/airports/*[::region = "Oceania"] @| edges(->*) | :code
/orders/*[/payload/customer/geo/city:: = 'Lyon'] @| count
/orders/*[/payload/city:: = 'Lyon'] @| count
/orders/*[/payload/total:: > 150] @| count
/orders/*[/payload/gift] @| count
/orders/*[/payload/line_items/*/sku:: = 'SKU-101'] @| count
/orders/* | .city(/payload/customer/geo/city::) @|{.city} sum(--of=/payload/total::) | round(2) | %($.city; revenue = $_)
/orders/* | .city(((/payload/customer/geo/city::) | default((/payload/city::)))) @|{.city} sum(--of=/payload/total::) | round(2) | %($.city; revenue = $_)
/db/orders/*[/payload/coupon/code:: = 'LAUNCH25'][/payload/total:: > 150] <=> /c/*[/code:: = \$\$0/payload/coupon/code::] | %(::id; total = /payload/total::; campaign = \$\$1/campaign::) @| count
/db/orders/17/payload/customer/geo/city::
/db/orders/*[/payload/coupon/code::] | .code(/payload/coupon/code::) | (/payload/total::) @|{.code} sum | round(2) | .revenue | %.
/html/body/section/* @| count
//(h*):: @| count
//(/^h[1-6]$/):: @| count
//section//li[:is-leaf]:: @| count
//section(/.)*/li[:is-leaf]:: @| count
//(h1 || h2):: @| count
//section/(!h2) @| count
//*<heading>:: @| count
//section(/h2|/ul/li):: @| count
//section(/ul/li){2}[:is-leaf]::
//section(/ul/li){3}[:is-leaf]::
//section(/ul/li){2;}:: @| count
//section(/ul/li)+!::
(//li)+!::
//section(/ul/li)+?:: @| count
^//h1::
//li[:is-leaf] @| count
//section .B //li[:is-leaf] | %(book = $$.B/h2::; item = ::) @| [..3]
//section .S //li[:is-leaf][$$.S/h2:: *= "Thalia"]::
//li[/ul] @| count
//li @| count
//li[\ul\li] @| count
//li[!\ul\li] @| count
//h2:: | s/Book ([IVX]+): //
/employees/6(->manager)+::name
/employees/6(->manager)+!::name
/employees/*[(->manager){2}]::name
/employees/2(<-manager)+::name
$D/gen2.html
$D/gen5.html
$SHOP
/sites/quarb.org/pages/capsa.html::in-degree
//*<tabula>::lemma
//*<tabula>//*[:: == (/Author|Genre|Publication date|Followed by/)][!/*]::
/cookies/cookie[:: = "c7a02"]--ip @| collapse | ::
//sentence[:::n = 71] | %(text = ::; chapter = \\?section::lemma)
//sentence[:::n = 71]/token | %(form = ::; ::lemma; ::upos; ::deprel; head = (->head::); chain = :::entity)
//token[:::entity][::upos = "PROPN"] @| unique_by($_; :::mention) | .e(:::entity) | .m(::mention) @|{.e; .m} count | %($.e; $.m; n = $_) @| top(14; :n)
//token["e44" <<= :::entity][::deprel = "nsubj"]->head::lemma | .v @|{.v} count | %($.v; n = $_) @| top(8; :n)
//token["e44" <<= :::entity][::deprel = "dobj"]->head::lemma | .v @|{.v} count | %($.v; n = $_) @| top(8; :n)
//token["e44" <<= :::entity][::deprel = "dobj"]->head<-head[::deprel = "nsubj"][:::entity] | :::entity | .e @|{.e} count | %($.e; n = $_) @| top(6; :n)
/cast/*[::name != "Mary"] | .m(::mention) | .e((^/book//token[$.m <<= ::mention][:::entity] | :::entity | ... @| first)) | [$.e] | %(::name; ::gender; ::age; agent = (^/book//token[$.e <<= :::entity][::deprel = "nsubj"] @| count); patient = (^/book//token[$.e <<= :::entity][::deprel <<= @("dobj"; "nsubjpass")] @| count)) | ++ %(total = :agent + :patient) | %(:name; :gender; :age; :agent; :patient; share = round(100 * :patient div :total)) @| top(16; :agent)
/book//token["e44" <<= :::entity][::deprel = "nsubj"]->head | .v(::lemma) | %(c = (^/classes/*[::lemma = $.v]::class @| first)) | [:c] | .c($_:c) @|{.c} count | %($.c; n = $_) @| top(6; :n)
/book//token["e43" <<= :::entity][::deprel = "nsubj"]->head | .v(::lemma) | %(c = (^/classes/*[::lemma = $.v]::class @| first)) | [:c] | .c($_:c) @|{.c} count | %($.c; n = $_) @| top(6; :n)
/book//token["e46" <<= :::entity][::deprel = "nsubj"]->head | .v(::lemma) | %(c = (^/classes/*[::lemma = $.v]::class @| first)) | [:c] | .c($_:c) @|{.c} count | %($.c; n = $_) @| top(6; :n)
//token["e43" <<= :::entity][::deprel = "nsubj"]->head::lemma | .v @|{.v} count | %($.v; n = $_) @| top(8; :n)
//token["e101" <<= :::entity][::deprel = "nsubj"]->head::lemma | .v @|{.v} count | %($.v; n = $_) @| top(8; :n)
/cast/*[::name != "Mary"] | .m(::mention) | .e((^/book//token[$.m <<= ::mention][:::entity] | :::entity | ... @| first)) | [$.e] | %(::gender; ::age; agent = (^/book//token[$.e <<= :::entity][::deprel = "nsubj"] @| count); patient = (^/book//token[$.e <<= :::entity][::deprel <<= @("dobj"; "nsubjpass")] @| count)) | .gender(::gender) @|{.gender} %($.gender; agent = sum(:agent); patient = sum(:patient)) | ++ %(total = :agent + :patient) | %(:gender; :agent; :patient; share = round(100 * :patient div :total; 1))
/cast/*[::name != "Mary"] | .m(::mention) | .e((^/book//token[$.m <<= ::mention][:::entity] | :::entity | ... @| first)) | [$.e] | %(::gender; ::age; agent = (^/book//token[$.e <<= :::entity][::deprel = "nsubj"] @| count); patient = (^/book//token[$.e <<= :::entity][::deprel <<= @("dobj"; "nsubjpass")] @| count)) | .age(::age) @|{.age} %($.age; agent = sum(:agent); patient = sum(:patient)) | ++ %(total = :agent + :patient) | %(:age; :agent; :patient; share = round(100 * :patient div :total; 1))
/cast/*[::name != "Mary"][::name != "Tom Sawyer"] | .m(::mention) | .e((^/book//token[$.m <<= ::mention][:::entity] | :::entity | ... @| first)) | [$.e] | %(::gender; agent = (^/book//token[$.e <<= :::entity][::deprel = "nsubj"] @| count); patient = (^/book//token[$.e <<= :::entity][::deprel <<= @("dobj"; "nsubjpass")] @| count)) | .gender(::gender) @|{.gender} %($.gender; agent = sum(:agent); patient = sum(:patient)) | ++ %(total = :agent + :patient) | %(:gender; :agent; :patient; share = round(100 * :patient div :total; 1))
//section[::lemma *= "CHAPTER"] | %(ch = ::lemma; tom = (//token["e44" <<= :::entity][::deprel = "nsubj"] @| count); huck = (//token["e43" <<= :::entity][::deprel = "nsubj"] @| count); joe = (//token["e101" <<= :::entity][::deprel = "nsubj"] @| count); becky = (//token["e90" <<= :::entity][::deprel = "nsubj"] @| count)) @| top(5; :huck)
//section[::lemma *= "CHAPTER"] | %(ch = ::lemma; tom = (//token["e44" <<= :::entity][::deprel = "nsubj"] @| count); huck = (//token["e43" <<= :::entity][::deprel = "nsubj"] @| count); joe = (//token["e101" <<= :::entity][::deprel = "nsubj"] @| count); becky = (//token["e90" <<= :::entity][::deprel = "nsubj"] @| count)) @| top(5; :becky)
//section[::lemma *= "CHAPTER"] | %(ch = ::lemma; agent = (//token["e101" <<= :::entity][::deprel = "nsubj"] @| count); patient = (//token["e101" <<= :::entity][::deprel <<= @("dobj"; "nsubjpass")] @| count)) @| top(4; :patient)
/lit//token["e5152" <<= :::entity] @| unique_by($_; :::mention) | .m(::mention) @|{.m} count | %($.m; lit = $_; book = (^/book//token[:::n <= 2033]["e44" <<= :::entity] @| unique_by($_; :::mention) | [$.m <<= ::mention] @| count)) @| top(10; :lit)
//token["e5152" <<= :::entity] @| unique_by($_; :::mention) @| count
//token[:::n <= 2033]["e44" <<= :::entity] @| unique_by($_; :::mention) @| count
/lit//token["e5153" <<= :::entity] @| unique_by($_; :::mention) | .m(::mention) @|{.m} count | %($.m; lit = $_; book = (^/book//token[:::n <= 2033]["e46" <<= :::entity] @| unique_by($_; :::mention) | [$.m <<= ::mention] @| count)) @| top(8; :lit)
//token["e5153" <<= :::entity] @| unique_by($_; :::mention) @| count
//token[:::n <= 2033]["e46" <<= :::entity] @| unique_by($_; :::mention) @| count
= @(1; 2; 3)
//literal::value
//step | %(::axis; ::matcher)
//compare::op
//literal | %(::value; ::type)
//projection::key
//cmd | %(::name)
/row/*[::age > 30] | %(::name; ::age)
//place[..3] | %(::onym; ::lemma; ::country; ::lat; ::lon)
/characters/* @| graph:betweenness(--tie) | .:b | %(::name; b = round(:.b; 1); k = (--tie @| collapse @| count)) @| top(5; :b)
/characters/* @| graph:betweenness(--tie; --normalized) | .:b | %(::name; b = round(:.b; 3)) @| top(3; :b)
/characters/* .A --tie .H --tie[::id != $$.A::id][!--tie[::id = $$.A::id]] | %(h = $$.H::name) | :h @| frequencies(3)
/characters/* @| graph:betweenness(--tie) | .:b | [:.b = 0] | ::name @| join(", ")
/airports/* | %(::code; k = (->* @| collapse @| count)) @| top(12; :k) | :code @| join(" ")
/airports/* @| graph:betweenness(->*; --normalized) | .:b | %(::code; b = round(:.b; 3); k = (->* @| collapse @| count)) @| top(6; :b)
/airports/* @| graph:betweenness(->*; --weight=min) | .:b | %(::code; b = round(:.b; 1)) @| top(5; :b)
//page @| graph:pagerank(->link) | .:pr @| graph:betweenness(->link; --normalized) | .:b | %(::path; pr = round(:.pr; 3); b = round(:.b; 3); in = ::in-degree) @| top(4; :pr)
//page @| graph:betweenness(->link; --normalized) | .:b | %(::path; b = round(:.b; 3); in = ::in-degree) @| top(5; :b)
//page @| graph:conncomp(->link) @| unique @| count
//page @| graph:conncomp(->link) @| frequencies(1)
//page @| graph:conncomp(->link) | .:c | [:.c != 1] | %(::path; out = ::out-degree; in = ::in-degree) @| first(4)
//page @| graph:conncomp(->link) | .:c | [:.c != 1][::out-degree = 0] @| count
//page @| graph:conncomp(--link) @| frequencies
/airports/* @| graph:conncomp(--*) @| unique @| count
/airports/*[::code != "DXB"] @| graph:conncomp(--*) @| unique @| count
/airports/*[::region = "South America" || ::region = "Oceania"] @| graph:conncomp(--*) | .:c | %(::code; c = :.c) | .c($_:c) @|{.c} %($.c; who = (:code | join(", ")))
//character[..4] | %(::onym; ::lemma; ::role)
/characters/* | %(::name; k = (--tie @| collapse @| count); scenes = ::scenes) @| top(4; :k)
/characters/* | .k(--tie @| collapse @| count) | [::id = "hamlet"] | --tie @| collapse | %(::name; mine = $.k) @| first(3)
/characters/* | .:k(--tie @| collapse @| count) | [::id = "hamlet"] | --tie @| collapse | %(::name; mine = $.k; theirs = :.k) @| first(3)
/characters/* | %(k = (--tie @| collapse @| count); strength = (--tie | $-::scenes @| sum); words = ::words) | .:% @| nodes | type
/characters/* | %(k = (--tie @| collapse @| count); strength = (--tie | $-::scenes @| sum); words = ::words) | .:% @| nodes | dim
/characters/* | .:k(--tie @| collapse @| count) @| edges(--tie) | rows | ... | [:source:.k >= 19 && :target:.k >= 19] @| count
/characters/* | .n(^/characters/* @| count) | .:v(1 div $.n) | .:o(--tie @| collapse @| count) | .:v(0.15 div $.n + 0.85 * (--tie @| collapse | :.v div :.o @| sum | default(0))){20} | %(::name; pr = round($.v; 3)) @| top(4; :pr)
/characters/* @| graph:pagerank(--tie) | .:pr | %(::name; pr = round(:.pr; 3)) @| top(4; :pr)
/characters/* @| graph:pagerank(--tie; --weight=scene) | .:pr | %(::name; pr = round(:.pr; 3)) @| top(4; :pr)
/characters/* @| graph:kcore(--tie) | .:c | %(::name; core = :.c) | .core($_:core) @|{.core} %($.core; n = count) @| top(3; :core)
/letters/*[..3] | %(::x-letter; ::to; d = (:::date | isodate); ::subject)
/letters/*[..2] | %(::x-letter; said = ::x-weekday; calendar = (:::date | strftime("%A")))
= .(0) | .(1) | .($. + $..){10} | @.
= 1 | .x | .x(($.x + 2 div $.x) div 2){1;} | $.x
= 1 | .x | .x(($.x + 2 div $.x) div 2){1;} | @.
//paragraph | :: | words @| %(total = count; unique = unique @| count)
//paragraph | :: | lower | words @| frequencies(5)
//paragraph | :: | lower | words @| u:sort @| u:uniq(-c) @| u:sort(-rn) @| [1..5] | trim
//paragraph | %(n = $ord; w = (:: | words @| count)) @| u:jq(".w"; -c) @| u:sort(-rn) @| u:head(-n=3)
//paragraph | :: | lower | words | .total@(count) @| u:sort @| u:uniq(-c) @| u:sort(-rn) @| [1..3] | %(line = ($_ | trim); total = $.total)
//paragraph | :: | lower | words @| my:longest
//paragraph | :: | words @| u:sort(-u) @| count
//paragraph | :: | words @| unique @| count
= "+1 1. 1.C 1.C. 2 2. 3 3." | words @| unique @| join(" ")
//paragraph[1..3] | :: | u:false | default("failed")
//paragraph[1..3] | :: @| u:false
//paragraph | :: @| u:sort @| [1]
//paragraph | :: @| [1] | sh:wc(-w)
//paragraph | :: | u:wc(-w) | number @| sum
//paragraph | :: @| u:wc(-w) | trim
//bib | %(n = ::onym; ::author; ::title; ::year; :::genus)
//bib<article> | %(n = ::onym; ::journal; ::volume; ::pages)
//bib<article> | %(n = ::onym; ::journal; ::number; ::pages)
//bib[6] | %(::url; seen = ::urldate; ::medium; ::year)
//bib[3] | %(::journal; ::volume; ::number; ::pages)
//(/^h[1-6]$/ && !h1):: @| count
//*<heading && !h1>::
//section(/h2|/ul/li[1]):: @| count
//section(/h2|/ul/li[:: *= "Egypt"])::
//section(/h2|/ul/li)[:: *= "Egypt"]::
//section(/ul/li)+[:is-leaf]?::
//section(/ul/li[:is-leaf])+?::
//section | %(book = /h2::; own = (//li[:is-leaf] @| count); all = (^//li[:is-leaf] @| count))
//section[(//li[:is-leaf] @| count) > (^//section | (//li[:is-leaf] @| count) @| mean)]/h2::
/titanic/row[!::Age] @| count
/* | .source(::source) @|{.source} count | %($.source; rows = $_)
//<page> @| count
/pages/index.html::text | words @| count
/pages/index.html ->link<page> @| collapse @| count
/pages/index.html ->navbar<page> | ::path
//<page> @| graph:distance(->link; --from=/pages/index.html) @| frequencies
//<page> @| graph:distance(->link; --from=/pages/index.html) | .:d | [:.d = 4] | ::path
//<page> @| graph:route(->link; --from=/pages/index.html) | .:r | ^/pages/graph-library/pagerank.html @| collapse | :.r | map(::path) | join(" > ")
//<page> @| graph:route(->link; --from=/pages/index.html) | .:r | ^/pages/recipes/the-plain-pipe.html @| collapse | :.r | map(::path) | join(" > ")
//<page> @| graph:conncomp(->link) @| frequencies @| top(2; :n)
//<page> @| graph:conncomp(->link) @| unique @| count
//<page>[(->link @| count) = 0] @| count
//<page> @| graph:conncomp(->link) | .:c | [:.c != 1] | %(::path; out = (->link @| count); in = (<-link @| count))
//<page>[(<-link @| count) = 0] | ::path
//<page> | ::redlinks @| sum
//<page>[::redlinks > 0] | %(::path; ::redlinks) @| top(3; :redlinks)
//<page> @| graph:artpoints(->link) | .:a | [:.a] | ::path
//<page> @| graph:bridges(->link) | count
//<page> @| graph:betweenness(->link; --normalized) | .:b | %(::path; b = round(:.b; 3); in = ::in-degree) @| top(5; :b)
/pages/stdlib.html::in-degree
//<page> @| graph:betweenness(->link; --edges --normalized) @| top(4; :betweenness) | map(::path; --to=(:source; :target)) | #(:source; :target; :betweenness) | round(3)
//<page> @| graph:pagerank(->link) | .:pr | %(::path; pr = round(:.pr; 3)) @| top(5; :pr)
//<page> @| graph:closeness(->link) | .:c | %(::path; c = round(:.c; 3)) @| top(3; :c)
//<page> @| graph:kcore(--link) @| max
//<page> @| graph:kcore(--link) | .:k | [:.k = 7] | ::path @| count
//<page> @| graph:kcore(--link) | .:k | [:.k = 16] | ::path @| count
//<page> @| graph:kcore(--link) | .:k | [:.k = 16] | ::path @| first(6)
//<page> | .:s(\::name ?? "root") @| graph:modularity(--link; --by=:.s)
//<page> @| graph:communities(--link) | .:c @| graph:modularity(--link; --by=:.c)
//<page> | .:s(\::name ?? "root") @| graph:communities(--link) | .:c | %(c = :.c; s = :.s) @| frequencies @| top(5; :n)
//<page> | .:s(\::name ?? "root") @| graph:triangles(--link; --coefficient) | .:cc | %(s = :.s; cc = :.cc) | .s($_:s) @|{.s} %($.s; n = (:cc @| count); cc = round((:cc @| mean); 2)) @| top(4; :n)
//<page> | .:s(\::name ?? "root") @| graph:triangles(--link; --coefficient) | .:cc | %(s = :.s; cc = :.cc) | .s($_:s) @|{.s} %($.s; n = (:cc @| count); cc = round((:cc @| mean); 2)) @| top(5; :n)
//<tag> @| count
//<tag> | .:n(<-page @| count) | [:.n = 1] @| count
//<tag> | %(:name; n = (<-page @| count)) @| top(5; :n)
/tags/graphs<-page->tag | :name @| frequencies @| top(6; :n)
(//<page>|//<tag>) @| graph:communities(--tag) @| frequencies @| top(3; :n)
(//<page>|//<tag>) @| graph:communities(--tag) | .:c @| graph:modularity(--tag; --by=:.c)
(//<page>|//<tag>) @| graph:betweenness(--tag; --normalized) | .:b | [:kind = "tag"] | %(:name; b = round(:.b; 3)) @| top(5; :b)
//<page> | .:c(->category:name) @| graph:modularity(--link; --by=:.c)
//<page> @| graph:pagerank(->link) @| count
/* | //token<word>[::cite] | .v(::cite) @|{.v} %(verse = $.v; text = (@@_::lower @| join(" "))) @| [..2]
/* | .b(:name) | //token<word> | .v(::cite) @|{.v; .b} %(b = $.b; c = $.v; t = (@@_::lower @| join(" "))) | .r | :t | ngrams(8) | %(g = $_; b = $.r:b; c = $.r:c) | .g($_:g) @|{.g} %(books = ($_ | :b @| unique @| sort @| join("+")); g = $.g) | [:books *= "+"] | .books($_:books) @|{.books} %($.books; phrases = ($_ @| count)) @| sort_by(:books)
/* | .b(:name) | //token<word> | .v(::cite) @|{.v; .b} %(b = $.b; c = $.v; t = (@@_::lower @| join(" "))) | .r | :t | ngrams(8) | %(g = $_; b = $.r:b; c = $.r:c) | .g($_:g) | .nb@{.g}(($_ | :b @| unique @| count)) | [$.nb = 3] @|{.g} %(phrase = $.g; at = ($_ | :c @| join(" "))) @| [..4]
/* | .b(:name) | //token<word> | .v(::cite) @|{.v; .b} %(b = $.b; c = $.v; t = (@@_::lower @| join(" "))) | .r | :t | ngrams(8) | %(g = $_; b = $.r:b; c = $.r:c) | .g($_:g) | .nb@{.g}(($_ | :b @| unique @| count)) | [$.nb = 2] | [:b = "mark"] | :c @| unique @| count
/* | .b(:name) | //token<word> | .v(::cite) @|{.v; .b} %(b = $.b; c = $.v; t = (@@_::lower @| join(" "))) | .r | :t | ngrams(8) | %(g = $_; b = $.r:b; c = $.r:c) | .g($_:g) | .nb@{.g}(($_ | :b @| unique @| count)) | [$.nb = 2] | [:b = "matthew"] | :c @| unique @| count
/mark | .s(//token<word>[::cite = "mrk.1.4"] | ::lower @| join(" ") | ngrams(3)) | ^/matthew//token<word> | .v(::cite) @|{.v; .s} %(cite = $.v; t = (@@_::lower @| join(" ")); s = $.s) | .r | :t | ngrams(3) | [$_ <<= $.r:s] | .c($.r:cite) | .t($.r:t) @|{.c; .t} count | %($.c; shared = $_; text = $.t) @| top(2; :shared)
/mark | .s(//token<word>[::cite = "mrk.2.17"] | ::lower @| join(" ") | ngrams(3)) | ^/luke//token<word> | .v(::cite) @|{.v; .s} %(cite = $.v; t = (@@_::lower @| join(" ")); s = $.s) | .r | :t | ngrams(3) | [$_ <<= $.r:s] | .c($.r:cite) | .t($.r:t) @|{.c; .t} count | %($.c; shared = $_; text = $.t) @| top(2; :shared)
//paragraph | :: | timex(en) | .kind($_:kind) @|{.kind} count | .n | %.
//paragraph | :: | timex(fr) | .kind($_:kind) @|{.kind} count | .n | %.
/measures/* | ::mean @| sp:describe(--digits=3)
/measures/* | %(::year; ::mean) @| sp:spearmanr(--digits=3)
/measures/* | %(::year; ::median) @| sp:spearmanr(--digits=3)
/measures/* | %(::year; ::which) @| sp:spearmanr(--digits=3)
/measures/* | %(::year; ::quotes) @| sp:spearmanr(--digits=3)
/measures/* | %(::book; ::year; ::mean) @| sp:spearmanr(--digits=3)
/measures/* | ::mean @| sp:shapiro(--digits=3)
/measures/* | %(::year; ::mean) @| sp:linregress(--digits=3)
/pairs/* | %(::a; ::b; ::delta) @| sp:linkage(--pairs --digits=3) @| [..5]
/pairs/* | %(::a; ::b; ::delta) @| sp:linkage(--pairs --digits=3) @| [-3..]
/pairs/* | %(::a; ::b; ::delta) @| sp:leaves(--pairs) @| join(" ")
/pairs/* | %(::a; ::b; ::gap) @| sp:leaves(--pairs) @| join(" ")
/pairs/* | %(::gap; ::delta) @| sp:spearmanr(--digits=3)
/measures/* | %(::year; ::mean) @| sp:ttest(--tail=1)
/measures/* | ::mean | sp:describe
/measures/* | %(::book; ::mean) @| sp:linregress
bytes=10MB
bytes=30MB
//paragraph | :: | words @| count
//paragraph//token<word> @| count
/* | %(book = :name; paragraphs = (//paragraph @| count); words = (//token<word> @| count); sentences = (//sentence @| count)) @| top(5; :words) @| pretty
//paragraph | :: | lower | words @| unique @| count
//token<word>::lower @| frequencies(5)
//paragraph | :: | lower | words @| %(total = count; unique = unique @| count)
//paragraph | :: | lower | words @| u:sort(-u) @| count
/huts/*[::name = "Valley Inn"](--trail){;6_h} @| collapse | ::name
/huts/*[::name = "Valley Inn"](--trail .(::name)){;6_h}[::name = "Far Valley"] | %(route = (@. | join(" > ")); hours = $-:total)
/huts/*[::name = "Valley Inn"](--trail .(::name)){*_h}[::name = "Far Valley"]? | %(route = (@. | join(" > ")); hours = $-:total)
/huts/*[::name = "Valley Inn"](--trail){;6_h}! | %(::name; hours = $-:total)
//page[::title = "Pride and Prejudice (1817)/Chapter 1"]->link<page>::title
//page @| top(4; ::in-degree) | %(::title; ::in-degree; ::out-degree)
//page[::title = "Author:Jane Austen"]->link<page>::title
//page[::title = "Author:Jane Austen"] | %(::redlinks; ::out-degree)
//page @| top(3; ::mutual-degree) | %(::title; ::mutual-degree)
/repo/commits/*[..3] | %(::short; ::author; d = (::date | isodate); ::subject)
/log/*[::level = 4]::page @| unique @| count
/teams/0:::type
/teams/0:::length
/teams/0/members/0/name:::type
/teams/0/members/0:meta
/teams/*/members/*[:::type = "object"] @| count
/teams/*/members/*::name @| count
/teams/*/members/*::level @| unique
/albums/*::year @| mean
/teams/*/members/*::name *__ count
/teams/0/members/0\\*
/teams/0/members/0\\*::name
/teams/0/members/0\\?*
/teams/0/members/0\\!*
/teams/*/members/*[::level = "junior"]\\teams
/tracks/*[::secs > 400 && ::price = 1.29]::title
/albums/*[::year < 1900 || ::year > 1930]::title
/albums/*[!(::year > 1900)]::title
/teams/*/members/*[::level = "junior" .or. ::level = "staff"]::name
/teams/*/members/*[.not. ::mentor]::name
/teams/0/members/0 | .(::name) | .(::level) | @.
/teams/0 .T /members/* .M | @@.
/teams/0 .T /members/0 | .(::name) | @.
/teams/0/members/0 | .n(::name) | .l(::level) | %.
/teams/0/members/0 | .n(::name) | .(::level) | %.*
/teams/0 .T /members/* .M | %%.
/teams/*/members/* | .n(::name) | .l(::level) | #. @| [1]
/teams/0/members/* | .n(::name) | .(::level) | #.* @| [1]
/teams/0/members/* .M | .n(::name) | ##. @| [1]
/teams/*::name
/teams/0/members/*::name
/teams/*/name
/teams/*/members/* @| count
/teams/0/name/x @| count
/teams/0/members/*::name @| join(", ")
/teams/0/members/0::name | upper
/teams/0/members/0 | upper(::name)
/teams/0/members/0 | %(n = upper(::name); c = count(::langs))
/albums/* @| top(2; ::year) | ::title
&staff::name
/teams/*/members/*[::level = "staff"] (!! the staff, by hand ) @| count
/albums/*[::year >= 1918 && ::year <= 1930]::title
/albums/*[::year .ge. 1920]::title
/teams/*/members/*[::level .lt. "senior"]::name
/teams/*/members/*[::level .менее. "senior"]::name
/teams/0/members/0 | ::name ++ " " ++ ::level
= #(@(a; b); %(1; 2)) ++ %(3; 4)
/albums/*::year | $_ < 1900 ? "old" : "new"
/albums/* | %(::title; era = (::year < 1900 ? "old" : ::year < 1930 ? "mid" : "new"))
/teams/0/members/* | (::level = "staff" ? ::name : null)
/albums/*[1920..1940 >>= ::year]::title
/teams/*/members/*[::langs >>= "Go"]::name
/teams/*::name | %(i = $ord; name = $_)
/albums/*::year | $_ - min(@_)
/teams/*::name | #_ @| [1]
/teams/*::name | #_:topic @| [1]
/teams/0/members/*:name
/teams/0/members/*:index
/teams/0/members/0:id
/teams/0/members/0:depth
/teams/0/members/*:kind
/teams/0/members/0:props
/albums/* <=> /tracks/*[::album_id = $$0::id] | %(::title; track = $$1::title)
/albums/* <=>? /tracks/*[::album_id = $$0::id && ::secs > 400] | %(::title; track = $$1::title)
/albums/* <=> /artists/*[::id = $$0::artist_id] <=> /tracks/*[::album_id = $$0::id] | %(::title; by = $$1::name; first = $$2::title)
/teams/*/members/* | .:n(::name) | >>*:.n
/teams/*/members/* | .:n(::name) | <<*:.n
/teams/0/members/0::name | _
/teams/0/members/0::name | _:topic
/teams/0/members/0::name | $$_::level
def &staff: /teams/*/members/*[::level = "staff"]; &staff::name
/teams//name @| count
//?name
//!name
/teams/0//name
/teams(/.){3}/name
/teams(/.)*/name @| count
/teams/. @| count
/teams/"." @| count
/albums/* <=> /tracks/*[::album_id = $$0::id] @| count
/albums/* :=: /tracks/*[::album_id = ((0))::id] | ((1))::title
/employees/2->manager | @-
/employees/2->manager[$- = "manager"]::name
/employees/*->(manager || x)::name @| count
/employees/*->(!x)::name @| count
/employees/*->(!manager)::name @| count
/albums/*[::year <<= 1900..1930]::title
/teams/*/members/*["Rust" <<= ::langs]::name
= (2 + 2) * 3
"secret" | upper
@(1; 3; 5) | mean
= .(1) | .($. * 2){5} | $.
/teams/0/members/0 | %(::name; n = ::level) | :n
/teams/0/members/0 | .r%(::name; l = ::level) | $.r:l
/teams/0/members/0 | @(%(a = 1); %(a = 2)) | :a
/teams/0/members/0 | "x" | :name
/teams/0/members/0 | %(::name; ::level) | :::keys
/teams/*/members/* | .lvl(::level) @|{.lvl} count | %(level = $.lvl; n = $_)
/teams/* | .t(::name) | /members/*::name @|{.t} join(", ")
/teams/*/members/* | .lvl(::level) @|{.lvl} (@@_::name)
/teams/*/members/* | .m(::mentor) @|{.m} count | %(mentor = $.m; n = $_)
/albums/* | .a(::artist_id) @|{.a} top(1; ::year) | %($.a; ::title)
/teams/* @|{.t} count
/teams/*/members/* | .lvl(::level) | .m(::mentor) @|{.lvl; .m} count | %($.lvl; $.m; n = $_)
/teams/*/members/* | .m(::mentor) | .n@{.m}(count) | [$.n = 1] | ::name
/teams/*/members/* | .lvl(::level) *__(.lvl) count
/teams/0/members/0>>*::name
/teams/0>>?*::name
def &up: | upper; /teams/0/members/*::name | &up
def &senior: [::level = "senior"]; /teams/*/members/*&senior::name
def &lvl($l): /teams/*/members/*[::level = $l]; &lvl("staff")::name
def (=lvl)(_l): /teams/*/members/*[::level = _l]; (=lvl)("junior")::name
/teams/0/members/0/langs/0::
/teams/0/members/0/"langs"/*::
/teams/0/(/^m/)/*::name
/teams/*/members/*[1]::name
/teams/*/members/*[-1]::name
/teams/*/members/*[2..]::name
/teams/*/members/*[@(1; 3)]::name
/teams/*/members/*[1; 3]::name
/teams/0/members/0 | "${::mentor:-none}"
/teams/0/members/0 | "${::name | upper}!"
/teams/* | .x(/members/0 | $$__::name) | $.x
/teams/* | .x(/members/0 | $$_::name) | $.x
/albums/* <=> /tracks/*[::album_id = $$0::id] | $$1::secs
/tracks/1->album::title
/tracks/1->album->artist::name
/artists/2<-artist::title
/artists/2<-artist<-album::title
/employees/4--manager::name
/tracks/*[->album[::year < 1900]]::title
= @(0; 1..3; 9)
= @(1) | type
= *(1; 2)
/teams/0 | @(/members/*::name)
/teams/0/members/0::langs $| lower
/teams/0/members/0::langs $| [$_ == (/^R/)]
= @(1; 2; 3) $| ($_ div sum(@_))
/teams/0 .T /members/*[::level = "staff"] | $$.T::name
/teams/0 .T /members/* | ((T))::name
/teams/0 .T /members/* | $.T
/teams/*/members/* | [::name == (/^(.)(.)$/)] | %(a = $1; b = $2)
/teams/*/members/* | [::name == (/^(?<first>.)(?<rest>.*)$/)] | %+
/teams/*/members/* | [::name == (/^(?<first>.)/)] | [%+:first = "a"] | ::name
= #(@(1; 2); @(3; 4)) x #(@(5; 6); @(7; 8))
= @(1; 2) x @(3; 4)
/teams/0/members/0/(name || level)::
/teams/0/members/0/(!langs)::
/teams/0/members/0/(/^l/ && !langs)::
//(name || level) @| count
/employees/6~*
/employees/6~*[$- = "manager"]::name
/employees/6~*[$- = "[parent]"]
/employees/4~manager::name
/employees/6(~*)+ @| count
/employees/6(~*)+ @| collapse @| count
/employees/6(~*)+[::name = "Ada"]?
/employees/6(~manager){3}[::name = "Ada"]::name
/employees/6~~?manager_id
/employees/6~~manager @| count
/teams/0/members/0>*::name
/teams/0/members/1>*::name @| count
/teams/1>*::name
/teams/0/members/0>1::name
((!5))::name
((!5))/langs/*::
= null ?? 0 ?? 1
= 0 ?? 1
= @(1; null; 3) ?? 0
/teams/1/members/* | ::mentor ?? "-"
/teams/1/members/* | %(::name; m = ::mentor ?? "none")
= 1_000,5 + 1
= 1,5 = 1.5
= 1_000_000
= -inf < 0
= nan = nan
/albums/*::year @| sort(--desc)
/teams/0/members/0\
/teams/1\::name
/teams/0(/name|/members/*/name)::
/teams/0/(name|members/*/name)::
/teams//(name|level) @| count
/teams/*(/name|/members/*[::level = "junior"]/name)::
/teams/0(/name|/members/*/name)[:: *= "a"]::
/teams/0/(name|/members/0/name)::
/teams/0/(name|members)
/teams/0/members/0/(name|level)::
/employees/6(->manager)*::name
/employees/6(->manager){2}::name
/employees/6(->manager){1;2}::name
/employees/1(<-manager)+ @| count
/employees/6(->manager)+?::name
/employees/6((->manager) .(::name))+ | @. | join(" > ")
/employees/*(->manager)+ @| count
/employees/*(->manager)+ @| collapse | ::name
/employees/* | .me(::name) | (->manager)+ | %(from = $.me; to = ::name)
/employees/6(->manager){1;200}::name
/teams/*/members/*[::name == "a"*]::name
/teams/*/members/*[::name == *"i"]::name
/teams/*/members/*[::langs == *"Script"*]::name
/tracks/*[::title == (/^[GM]/)]::title
/teams/*/members/*[::name !== (/a/)]::name
/teams/0/members/*::name | upper
/teams/0/members/0 | json
/teams/0/members/*::name __ upper
/teams/1/members/1<<*::name
/teams/2<<!*::name
/teams/*/members/*[::level = "staff"]::name
/teams/*/members/*[::mentor]::name
/teams/*[/members/*[::level = "junior"]]::name
/teams/*/members/*[::level = "junior" && ::mentor = "cy"]::name
/teams/*/members/*[!::mentor] @| count
/teams/*/members/*[::name == (/^[a-c]/)]::name
/teams/0/members/1<*::name
/teams/1<*::name
/teams/0/members/0::name
/teams/0/members/0::langs
/teams/0/members/0 | %(::name) | ::level
/employees/6(->manager)+[::title = "CEO"]?::name
//!name @| count
/teams/*/members/* | .n(::name) | .l(::level) | $.n ++ " " ++ $.l
/teams/0/members/0 | %(a = ::name; b = ::level) | .% | %.
/teams/0/members/0 | .(::name) | .%(::name; l = ::level) | $.
= .(1) | .($. * 2){5} | @.
= .v(100) | .v($.v div 2 | floor){1;} | @.
= 1_km = 1000_m
= 2_km + 500_m
= 42_km > 40000_m
= 42_km > 40000
= 42_km | unit
= 10 | .half(q(div 2)) | &$.half
= @(1; 2; 3) | map(q(+ 3))
= q(/teams/*/members/*[::level = "staff"]::name) | :unq
/teams/*/members/* | .senior(q(| [::level = "senior"] | ::name)) | &$.senior
= 5 | .k(2) | .f(q($_ * $.k)) | .k(3) | 7 | &$.f
= 5 | .k(2) | .f(q($_ * $.k)) | .k(3) | 7 | &$.f!
= 5 | .k(2) | .f(q($_ * $.k)) | .k(3) | 7 | &$.f#
= 5 | .k(2) | .f(q($_ * $.k)) | .k(3) | 7&$.f!
/teams/* | .n(::name) | .tag(q(::name ++ "@" ++ $.n)) | /members/* | &$.tag!
/teams/* | .n(::name) | .tag(q(::name ++ "@" ++ $.n)) | /members/* | &$.tag#
= 1..5
= @(10..0..-5)
= @(0..7..-2)
= @%(@(a; b); %(1; 2); %(3; 4)) | type
= @(%(a = 1; b = 2); %(a = 3; b = 4))
= @%(@(a; b); %(1; 2); %(3; 4)) | #
/teams/0/members/0 | %(::name; lvl = ::level)
/teams/0/members/0 | .n(::name) | %%(u = (::name | upper))
/(/^a/)
/tracks/1::album_id-->::title
/albums/1<--(::album_id)::title
/albums/1<--(/tracks/*::album_id)::title
^/teams/0::name
/teams/*/members/*[::level = ^/teams/0/members/0::level]::name
= 5 | ,x | $,x * 2
= 5 | ,x | %,
= "abc" | sh:tr(a-z; A-Z)
/teams/0/members/0::langs | ...
/teams/0/members/*::mentor | ... @| count
/teams/0/members/*::mentor | ...? @| count
/teams/* | .n(/members/* @| count) | %(::name; n = $.n)
/teams/0/members/*::name | %(w = $_; n = cc)
/teams/1/members/*[(::mentor ?? "-") = "-"]::name
/teams/0/members/0::name | s/a/A/g
/teams/0/members/0::name | s/(a)(d)/$2$1/
/teams/0/members/0::name | s/A/x/i
/teams/*/members/*::name | s/a|e/_/g
/tracks/*[::title *= "No."]::title
/teams/*/members/*[::name *= "d"]::name
/teams/*/members/* | %(::name; rank = (::level ?= "staff" ? 3 : "senior" ? 2 : 1))
/teams/*/members/* | (::name ?= (/^[ab]/) ? "early" : "late")
= #(@(name; age); %("Braund"; 22); %("Allen"; 35))
= #(@(1; 2); @(3; 4))
/teams/*/members/* | %(::name; ::level) @| #
/teams/0/members/0::name | $_ ++ "!"
/albums/*::year | [$_ = max(@_)]
/teams/0/members/0/*<string || array>
/teams/0/members/0/*<string && scalar>
/teams/0/members/0/*<(string || array) && !scalar>
/teams/0/members/0/*<string>
/teams/0/members/0/<array>
/teams/0/members/0/*:traits
/teams/0/members/0/*[:kind = "array"]
/teams/0/members/0/*<*> @| count
^//name @| count
//name @| count
*//name @| count
= @(10; 20; 30)[2]
= @(10; 20; 30)[-1]
= @(10; 20; 30)[@(1; 3)]
= @(10; 20; 30)[$_ > 15]
= #(@(name; age); %("Braund"; 22); %("Allen"; 35))[2; "age"]
= #(@(name; age); %("Braund"; 22); %("Allen"; 35))[:age > 30]
/albums/1::id=>(/tracks/*::album_id)::title
/tracks/1::album_id=>(/albums/*::id)::title
/albums/1::id=>(/tracks/*::album_id) @| count
/teams/0/members/0 | .(::name) | .(::level) | $.
/teams/0/members/0 | .(::name) | .(::level) | $..
/teams/0/members/0 | .(::name) | .(::level) | $.1
/teams/0/members/0 | .n(::name) | .(::level) | (.n)
/teams/0/members/0 | "${::name}"
/teams/0/members/0 | '${::name}'
= 'say "hi"'
/airports/LJU(->*){;150_EUR} | %(::code; fare = $-:total)
/airports/LJU(->*){max:;2_h} @| collapse | ::code
/airports/LJU(->*){max:;2_h}[::code = "MAD"] | %(hops = $-:hops; longest = $-:total)
/airports/LJU(->*){;3_h}{*_km}[::code = "AMS"]? | %(::code; km = $-:total; costs = $-:costs)
/huts/*[::name = "Valley Inn"](--trail){rise:;900_m} @| collapse | ::name
/airports/LJU(->*){;1_kg} | ::code
/airports/LJU(->*){200_min;3_h} @| count
/airports/LJU(->*){1_km;1_h} @| count
/teams/*
/tracks/1->*::title
