id
stringlengths
16
19
request
stringlengths
21
206
program
stringlengths
6
211
input_text
stringlengths
40
477
expected_output
stringlengths
2
276
validation_input
stringlengths
39
469
validation_output
stringlengths
0
298
family
stringclasses
39 values
difficulty
int64
1
3
split
stringclasses
1 value
source
stringclasses
3 values
license
stringclasses
1 value
paraphrase_of
stringlengths
16
16
⌀
paraphrase_model
stringclasses
1 value
awkweave-0045272-p1
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 19.
BEGIN{FS=OFS=","}$2>19{print $1}
gus,3,paused bruno,13,paused chen,9,pending farah,7,active gus,8,ready eli,13,pending kim,20,active
kim
ivan,2,pending ivan,28,active gus,9,ready gus,10,failed farah,5,active farah,20,active
ivan farah
csv_filter
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0045272
qwen/qwen3.7-plus
awkweave-0045273
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
ivan harbor 107 gus cobalt 15 ivan amber 112 dina grove 25 bruno harbor 17 dina amber 109 hana ember 65
ivan harbor 107 gus cobalt 15 ivan amber 112 dina grove 25 bruno harbor 17 dina amber 109 hana ember 65
jules grove 29 jules harbor 105 chen juniper 99 bruno fable 60 jules harbor 25 jules juniper 80 bruno harbor 65
jules grove 29 jules harbor 105 chen juniper 99 bruno fable 60 jules harbor 25 jules juniper 80 bruno harbor 65
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045273-p1
Remove leading and trailing whitespace, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
ivan harbor 107 gus cobalt 15 ivan amber 112 dina grove 25 bruno harbor 17 dina amber 109 hana ember 65
ivan harbor 107 gus cobalt 15 ivan amber 112 dina grove 25 bruno harbor 17 dina amber 109 hana ember 65
jules grove 29 jules harbor 105 chen juniper 99 bruno fable 60 jules harbor 25 jules juniper 80 bruno harbor 65
jules grove 29 jules harbor 105 chen juniper 99 bruno fable 60 jules harbor 25 jules juniper 80 bruno harbor 65
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045273
qwen/qwen3.7-plus
awkweave-0045274
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
kim harbor 39 pending lina grove 50 closed gus delta 23 paused jules harbor 88 active bruno delta 79 active hana cobalt 113 failed eli amber 99 paused
jules harbor 88 active
kim indigo 36 ready kim grove 23 active eli juniper 5 active lina birch 92 active dina delta 68 closed ivan fable 65 failed gus indigo 113 pending hana cobalt 96 paused chen ember 104 closed gus grove 84 pending
gus indigo 113 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045274-p1
Identify and output the longest line from the input; in case of a tie in length, select the line that appears first.
{if(length($0)>length(best))best=$0}END{print best}
kim harbor 39 pending lina grove 50 closed gus delta 23 paused jules harbor 88 active bruno delta 79 active hana cobalt 113 failed eli amber 99 paused
jules harbor 88 active
kim indigo 36 ready kim grove 23 active eli juniper 5 active lina birch 92 active dina delta 68 closed ivan fable 65 failed gus indigo 113 pending hana cobalt 96 paused chen ember 104 closed gus grove 84 pending
gus indigo 113 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045274
qwen/qwen3.7-plus
awkweave-0045275
Print every 4th line starting at line 2 (then line 6, and so on).
NR%4==2
hana 46 eli 44 eli 84 lina 101 bruno 104 eli 85 gus 66 dina 96 alice 96
eli 44 eli 85
hana 62 eli 81 bruno 117 bruno 110 ivan 51 farah 7 gus 120
eli 81 farah 7
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045275-p1
Output every fourth line beginning with line 2 (i.e., lines 2, 6, 10, etc.).
NR%4==2
hana 46 eli 44 eli 84 lina 101 bruno 104 eli 85 gus 66 dina 96 alice 96
eli 44 eli 85
hana 62 eli 81 bruno 117 bruno 110 ivan 51 farah 7 gus 120
eli 81 farah 7
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045275
qwen/qwen3.7-plus
awkweave-0045276
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
alpha harbor 71 gamma fable 16 gamma birch 117 delta juniper 105 gamma delta 67 beta juniper 117 gamma cobalt 70 beta grove 31 beta juniper 78 alpha indigo 110
4
gamma delta 48 gamma indigo 59 gamma indigo 86 alpha ember 33 delta ember 12 gamma cobalt 65
3
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045276-p1
Calculate the number of unique values in the first column and output only that total count.
{if(!seen[$1]++)n++}END{print n+0}
alpha harbor 71 gamma fable 16 gamma birch 117 delta juniper 105 gamma delta 67 beta juniper 117 gamma cobalt 70 beta grove 31 beta juniper 78 alpha indigo 110
4
gamma delta 48 gamma indigo 59 gamma indigo 86 alpha ember 33 delta ember 12 gamma cobalt 65
3
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045276
qwen/qwen3.7-plus
awkweave-0045277
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 30 0 ivan 5 10 kim 12 27 hana 1 7 jules 11 26 farah 22 6 chen 24 7
ivan 0.50 kim 0.44 hana 0.14 jules 0.42 farah 3.67 chen 3.43
kim 4 0 bruno 6 23 gus 5 8 hana 1 25 alice 18 20 dina 25 24 chen 28 20 farah 23 10 ivan 29 6
bruno 0.26 gus 0.62 hana 0.04 alice 0.90 dina 1.04 chen 1.40 farah 2.30 ivan 4.83
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045277-p1
For each row, output the first column and the result of dividing the second column by the third column rounded to two decimal places, omitting any rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 30 0 ivan 5 10 kim 12 27 hana 1 7 jules 11 26 farah 22 6 chen 24 7
ivan 0.50 kim 0.44 hana 0.14 jules 0.42 farah 3.67 chen 3.43
kim 4 0 bruno 6 23 gus 5 8 hana 1 25 alice 18 20 dina 25 24 chen 28 20 farah 23 10 ivan 29 6
bruno 0.26 gus 0.62 hana 0.04 alice 0.90 dina 1.04 chen 1.40 farah 2.30 ivan 4.83
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045277
qwen/qwen3.7-plus
awkweave-0045278
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
gus juniper 29 kim ember 2 lina birch 3 gus birch 1 kim birch 24 kim cobalt 8 dina harbor 16 eli delta 24
gus juniper 29 kim birch 24 eli delta 24
hana indigo 1 lina grove 7 kim amber 19 bruno grove 1 kim delta 16 lina ember 29
lina ember 29 kim amber 19 kim delta 16
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045278-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
gus juniper 29 kim ember 2 lina birch 3 gus birch 1 kim birch 24 kim cobalt 8 dina harbor 16 eli delta 24
gus juniper 29 kim birch 24 eli delta 24
hana indigo 1 lina grove 7 kim amber 19 bruno grove 1 kim delta 16 lina ember 29
lina ember 29 kim amber 19 kim delta 16
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045278
qwen/qwen3.7-plus
awkweave-0045279
Print column 6 followed by column 3 for every record.
{print $6, $3}
closed 92 delta amber chen closed failed 106 birch amber chen pending failed 70 delta cobalt jules closed ready 75 juniper amber ivan failed failed 3 harbor delta hana paused pending 115 indigo grove eli closed failed 14 indigo fable alice closed active 67 grove ember ivan paused pending 104 harbor indigo gus closed fa...
closed delta pending birch closed delta failed juniper paused harbor closed indigo closed indigo paused grove closed harbor pending harbor
failed 62 birch indigo kim paused active 33 birch cobalt hana failed closed 5 harbor fable lina active closed 1 grove harbor bruno paused failed 40 harbor amber hana paused pending 94 ember juniper dina active pending 25 cobalt delta kim closed paused 78 juniper birch gus closed paused 83 ember ember chen failed pendin...
paused birch failed birch active harbor paused grove paused harbor active ember closed cobalt closed juniper failed ember closed fable
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045279-p1
Output column 6 followed by column 3 for every record in the dataset.
{print $6, $3}
closed 92 delta amber chen closed failed 106 birch amber chen pending failed 70 delta cobalt jules closed ready 75 juniper amber ivan failed failed 3 harbor delta hana paused pending 115 indigo grove eli closed failed 14 indigo fable alice closed active 67 grove ember ivan paused pending 104 harbor indigo gus closed fa...
closed delta pending birch closed delta failed juniper paused harbor closed indigo closed indigo paused grove closed harbor pending harbor
failed 62 birch indigo kim paused active 33 birch cobalt hana failed closed 5 harbor fable lina active closed 1 grove harbor bruno paused failed 40 harbor amber hana paused pending 94 ember juniper dina active pending 25 cobalt delta kim closed paused 78 juniper birch gus closed paused 83 ember ember chen failed pendin...
paused birch failed birch active harbor paused grove paused harbor active ember closed cobalt closed juniper failed ember closed fable
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045279
qwen/qwen3.7-plus
awkweave-0045280
Print the last field of every input line.
{print $NF}
19 chen fable failed 69 chen juniper failed 78 eli amber paused 85 kim birch active 62 gus fable active 108 eli delta closed 71 hana amber active
failed failed paused active active closed active
62 chen delta paused 37 farah indigo active 31 kim fable ready 16 jules juniper pending 9 kim fable failed 11 chen amber active 78 bruno fable paused 88 alice birch closed 11 lina fable ready
paused active ready pending failed active paused closed ready
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045280-p1
Print the final field of each input line.
{print $NF}
19 chen fable failed 69 chen juniper failed 78 eli amber paused 85 kim birch active 62 gus fable active 108 eli delta closed 71 hana amber active
failed failed paused active active closed active
62 chen delta paused 37 farah indigo active 31 kim fable ready 16 jules juniper pending 9 kim fable failed 11 chen amber active 78 bruno fable paused 88 alice birch closed 11 lina fable ready
paused active ready pending failed active paused closed ready
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045280
qwen/qwen3.7-plus
awkweave-0045281
Print the complete records where column 1 is less than 32.
$1 < 32
23 alice delta lina fable 110 jules ember jules birch 31 jules birch kim harbor 97 jules indigo kim grove 19 jules juniper alice grove 68 kim fable eli harbor 74 eli juniper jules indigo 16 bruno fable lina ember
23 alice delta lina fable 31 jules birch kim harbor 19 jules juniper alice grove 16 bruno fable lina ember
31 farah cobalt alice grove 12 hana indigo gus birch 9 gus juniper farah ember 68 eli amber bruno delta 35 jules harbor hana ember 105 hana indigo dina cobalt 46 farah indigo dina juniper 19 eli amber kim delta 120 ivan amber bruno harbor 92 bruno amber farah birch
31 farah cobalt alice grove 12 hana indigo gus birch 9 gus juniper farah ember 19 eli amber kim delta
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045281-p1
Output the full records for which the value in column 1 is strictly less than 32.
$1 < 32
23 alice delta lina fable 110 jules ember jules birch 31 jules birch kim harbor 97 jules indigo kim grove 19 jules juniper alice grove 68 kim fable eli harbor 74 eli juniper jules indigo 16 bruno fable lina ember
23 alice delta lina fable 31 jules birch kim harbor 19 jules juniper alice grove 16 bruno fable lina ember
31 farah cobalt alice grove 12 hana indigo gus birch 9 gus juniper farah ember 68 eli amber bruno delta 35 jules harbor hana ember 105 hana indigo dina cobalt 46 farah indigo dina juniper 19 eli amber kim delta 120 ivan amber bruno harbor 92 bruno amber farah birch
31 farah cobalt alice grove 12 hana indigo gus birch 9 gus juniper farah ember 19 eli amber kim delta
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045281
qwen/qwen3.7-plus
awkweave-0045282
Show whole lines whose 2nd field is between 12 and 18, inclusive.
$2 >= 12 && $2 <= 18
grove 19 ready failed ember 7 pending pending juniper 16 paused failed harbor 7 closed paused juniper 20 pending ready ember 29 ready active grove 18 active active
juniper 16 paused failed grove 18 active active
harbor 29 closed failed harbor 14 active pending birch 14 closed active indigo 17 paused active harbor 15 paused failed ember 7 active active delta 5 closed ready juniper 25 ready active fable 16 active failed grove 20 active active
harbor 14 active pending birch 14 closed active indigo 17 paused active harbor 15 paused failed fable 16 active failed
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045282-p1
Display entire lines where the second field falls within the inclusive range of 12 to 18.
$2 >= 12 && $2 <= 18
grove 19 ready failed ember 7 pending pending juniper 16 paused failed harbor 7 closed paused juniper 20 pending ready ember 29 ready active grove 18 active active
juniper 16 paused failed grove 18 active active
harbor 29 closed failed harbor 14 active pending birch 14 closed active indigo 17 paused active harbor 15 paused failed ember 7 active active delta 5 closed ready juniper 25 ready active fable 16 active failed grove 20 active active
harbor 14 active pending birch 14 closed active indigo 17 paused active harbor 15 paused failed fable 16 active failed
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045282
qwen/qwen3.7-plus
awkweave-0045283
Print column 2 only for rows where column 4 is exactly ready.
$4 == "ready"{print $2}
cobalt dina 119 paused amber alice 52 active ember lina 6 paused ember eli 69 failed juniper chen 91 closed amber alice 6 failed indigo lina 44 ready juniper hana 93 failed harbor ivan 18 active birch bruno 116 pending
lina
ember kim 48 closed grove hana 67 ready cobalt chen 50 active birch lina 63 pending indigo farah 57 active cobalt gus 107 closed birch ivan 39 failed ember lina 112 closed
hana
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045283-p1
Output only the second column for rows where the fourth column contains exactly the string 'ready'.
$4 == "ready"{print $2}
cobalt dina 119 paused amber alice 52 active ember lina 6 paused ember eli 69 failed juniper chen 91 closed amber alice 6 failed indigo lina 44 ready juniper hana 93 failed harbor ivan 18 active birch bruno 116 pending
lina
ember kim 48 closed grove hana 67 ready cobalt chen 50 active birch lina 63 pending indigo farah 57 active cobalt gus 107 closed birch ivan 39 failed ember lina 112 closed
hana
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045283
qwen/qwen3.7-plus
awkweave-0045284
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
INFO 99 juniper WARN 50 delta DEBUG 4 grove ERROR 119 birch DEBUG 54 indigo ERROR 101 harbor WARN 45 birch WARN 72 ember DEBUG 12 birch DEBUG 118 ember
ERROR 119 birch ERROR 101 harbor
INFO 87 indigo WARN 94 cobalt ERROR 71 ember DEBUG 29 amber DEBUG 112 indigo ERROR 20 ember ERROR 47 cobalt INFO 84 delta DEBUG 100 grove
ERROR 71 ember ERROR 20 ember ERROR 47 cobalt
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045284-p1
Output all fields for lines where the first field starts with ERROR.
$1 ~ /^ERROR/
INFO 99 juniper WARN 50 delta DEBUG 4 grove ERROR 119 birch DEBUG 54 indigo ERROR 101 harbor WARN 45 birch WARN 72 ember DEBUG 12 birch DEBUG 118 ember
ERROR 119 birch ERROR 101 harbor
INFO 87 indigo WARN 94 cobalt ERROR 71 ember DEBUG 29 amber DEBUG 112 indigo ERROR 20 ember ERROR 47 cobalt INFO 84 delta DEBUG 100 grove
ERROR 71 ember ERROR 20 ember ERROR 47 cobalt
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045284
qwen/qwen3.7-plus
awkweave-0045285
Print every line except those containing the exact text cobalt.
$0 !~ /cobalt/
ember 69 active amber 119 ready delta 19 failed ember 64 pending grove 97 pending fable 78 failed harbor 34 active fable 74 failed cobalt 999 active
ember 69 active amber 119 ready delta 19 failed ember 64 pending grove 97 pending fable 78 failed harbor 34 active fable 74 failed
birch 54 pending amber 51 active amber 55 active grove 62 closed birch 100 failed juniper 69 paused birch 11 closed harbor 65 active ember 31 active cobalt 76 active cobalt 999 active
birch 54 pending amber 51 active amber 55 active grove 62 closed birch 100 failed juniper 69 paused birch 11 closed harbor 65 active ember 31 active
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045285-p1
Display every line that does not contain the exact string cobalt.
$0 !~ /cobalt/
ember 69 active amber 119 ready delta 19 failed ember 64 pending grove 97 pending fable 78 failed harbor 34 active fable 74 failed cobalt 999 active
ember 69 active amber 119 ready delta 19 failed ember 64 pending grove 97 pending fable 78 failed harbor 34 active fable 74 failed
birch 54 pending amber 51 active amber 55 active grove 62 closed birch 100 failed juniper 69 paused birch 11 closed harbor 65 active ember 31 active cobalt 76 active cobalt 999 active
birch 54 pending amber 51 active amber 55 active grove 62 closed birch 100 failed juniper 69 paused birch 11 closed harbor 65 active ember 31 active
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045285
qwen/qwen3.7-plus
awkweave-0045286
Print lines 4 through 7, including both endpoints.
NR >= 4 && NR <= 7
ivan ember 29 gus amber 66 dina juniper 63 chen ember 87 hana cobalt 96 eli delta 35
chen ember 87 hana cobalt 96 eli delta 35
lina juniper 81 jules delta 25 farah grove 25 chen fable 55 jules harbor 72 jules juniper 60 farah juniper 70
chen fable 55 jules harbor 72 jules juniper 60 farah juniper 70
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045286-p1
Show lines 4 to 7, inclusive.
NR >= 4 && NR <= 7
ivan ember 29 gus amber 66 dina juniper 63 chen ember 87 hana cobalt 96 eli delta 35
chen ember 87 hana cobalt 96 eli delta 35
lina juniper 81 jules delta 25 farah grove 25 chen fable 55 jules harbor 72 jules juniper 60 farah juniper 70
chen fable 55 jules harbor 72 jules juniper 60 farah juniper 70
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045286
qwen/qwen3.7-plus
awkweave-0045287
Output only the first 4 records.
NR <= 4
chen 45 indigo farah 47 juniper farah 1 ember alice 22 delta lina 22 amber eli 12 delta kim 59 harbor chen 46 birch chen 88 fable
chen 45 indigo farah 47 juniper farah 1 ember alice 22 delta
farah 118 juniper alice 83 fable lina 87 juniper farah 111 fable hana 64 birch lina 17 ember alice 26 birch ivan 4 ember
farah 118 juniper alice 83 fable lina 87 juniper farah 111 fable
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045287-p1
Print only the first 4 records.
NR <= 4
chen 45 indigo farah 47 juniper farah 1 ember alice 22 delta lina 22 amber eli 12 delta kim 59 harbor chen 46 birch chen 88 fable
chen 45 indigo farah 47 juniper farah 1 ember alice 22 delta
farah 118 juniper alice 83 fable lina 87 juniper farah 111 fable hana 64 birch lina 17 ember alice 26 birch ivan 4 ember
farah 118 juniper alice 83 fable lina 87 juniper farah 111 fable
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045287
qwen/qwen3.7-plus
awkweave-0045288
Skip the first line and print every remaining line unchanged.
NR > 1
alice 95 fable farah 9 birch kim 100 fable alice 50 birch alice 25 grove chen 31 juniper hana 16 cobalt eli 120 delta alice 43 birch ivan 99 juniper
farah 9 birch kim 100 fable alice 50 birch alice 25 grove chen 31 juniper hana 16 cobalt eli 120 delta alice 43 birch ivan 99 juniper
gus 99 grove ivan 49 juniper hana 117 delta gus 11 fable jules 82 cobalt eli 70 grove ivan 6 grove
ivan 49 juniper hana 117 delta gus 11 fable jules 82 cobalt eli 70 grove ivan 6 grove
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045288-p1
Omit the first line and print the rest of the lines as they are.
NR > 1
alice 95 fable farah 9 birch kim 100 fable alice 50 birch alice 25 grove chen 31 juniper hana 16 cobalt eli 120 delta alice 43 birch ivan 99 juniper
farah 9 birch kim 100 fable alice 50 birch alice 25 grove chen 31 juniper hana 16 cobalt eli 120 delta alice 43 birch ivan 99 juniper
gus 99 grove ivan 49 juniper hana 117 delta gus 11 fable jules 82 cobalt eli 70 grove ivan 6 grove
ivan 49 juniper hana 117 delta gus 11 fable jules 82 cobalt eli 70 grove ivan 6 grove
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045288
qwen/qwen3.7-plus
awkweave-0045289
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
eli pending 64 chen ready 111 jules pending 22 farah pending 19 chen active 41 bruno closed 56 lina closed 58
1
farah ready 64 bruno closed 53 hana failed 16 hana paused 2 bruno failed 17 jules closed 109 kim closed 39 ivan failed 102 gus paused 92
0
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045289-p1
Count the records where column 2 is active; output 0 if no such records exist.
$2 == "active"{n++}END{print n+0}
eli pending 64 chen ready 111 jules pending 22 farah pending 19 chen active 41 bruno closed 56 lina closed 58
1
farah ready 64 bruno closed 53 hana failed 16 hana paused 2 bruno failed 17 jules closed 109 kim closed 39 ivan failed 102 gus paused 92
0
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045289
qwen/qwen3.7-plus
awkweave-0045300
Convert column 1 to uppercase and print only that column.
{print toupper($1)}
dina ember 39 farah indigo 87 alice amber 102 gus fable 87 alice harbor 99 hana harbor 15
DINA FARAH ALICE GUS ALICE HANA
gus delta 21 kim indigo 77 lina ember 14 eli cobalt 52 gus cobalt 38 eli harbor 46 alice birch 80 dina birch 87 eli amber 109 chen delta 47
GUS KIM LINA ELI GUS ELI ALICE DINA ELI CHEN
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045300-p1
Transform column 1 to uppercase and display only that column.
{print toupper($1)}
dina ember 39 farah indigo 87 alice amber 102 gus fable 87 alice harbor 99 hana harbor 15
DINA FARAH ALICE GUS ALICE HANA
gus delta 21 kim indigo 77 lina ember 14 eli cobalt 52 gus cobalt 38 eli harbor 46 alice birch 80 dina birch 87 eli amber 109 chen delta 47
GUS KIM LINA ELI GUS ELI ALICE DINA ELI CHEN
uppercase
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045300
qwen/qwen3.7-plus
awkweave-0045301
From column 1, print 3 characters starting at character 2.
{print substr($1,2,3)}
harbor 62 fable 72 amber 24 fable 102 birch 101 indigo 76 amber 118
arb abl mbe abl irc ndi mbe
fable 26 fable 120 fable 54 ember 25 fable 3 birch 112
abl abl abl mbe abl irc
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045301-p1
Extract and print 3 characters from column 1, starting at position 2.
{print substr($1,2,3)}
harbor 62 fable 72 amber 24 fable 102 birch 101 indigo 76 amber 118
arb abl mbe abl irc ndi mbe
fable 26 fable 120 fable 54 ember 25 fable 3 birch 112
abl abl abl mbe abl irc
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045301
qwen/qwen3.7-plus
awkweave-0045302
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
fable_harbor 65 harbor_grove 79 harbor_grove 36 amber_birch 25 harbor_grove 31 birch_fable 61
fable harbor harbor grove harbor grove amber birch harbor grove birch fable
birch_fable 71 cobalt_cobalt 76 amber_harbor 68 ember_harbor 48 harbor_cobalt 36 harbor_harbor 86 harbor_delta 47 juniper_grove 83 indigo_birch 25 indigo_delta 73
birch fable cobalt cobalt amber harbor ember harbor harbor cobalt harbor harbor harbor delta juniper grove indigo birch indigo delta
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045302-p1
Substitute all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
fable_harbor 65 harbor_grove 79 harbor_grove 36 amber_birch 25 harbor_grove 31 birch_fable 61
fable harbor harbor grove harbor grove amber birch harbor grove birch fable
birch_fable 71 cobalt_cobalt 76 amber_harbor 68 ember_harbor 48 harbor_cobalt 36 harbor_harbor 86 harbor_delta 47 juniper_grove 83 indigo_birch 25 indigo_delta 73
birch fable cobalt cobalt amber harbor ember harbor harbor cobalt harbor harbor harbor delta juniper grove indigo birch indigo delta
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045302
qwen/qwen3.7-plus
awkweave-0045303
Reverse the order of fields on every line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan cobalt 5 active dina delta 32 failed eli delta 107 paused farah juniper 60 pending kim juniper 118 closed eli cobalt 16 ready eli grove 98 paused gus harbor 76 closed hana cobalt 117 closed
active 5 cobalt ivan failed 32 delta dina paused 107 delta eli pending 60 juniper farah closed 118 juniper kim ready 16 cobalt eli paused 98 grove eli closed 76 harbor gus closed 117 cobalt hana
dina fable 41 closed jules cobalt 69 failed gus indigo 99 closed eli cobalt 15 ready dina juniper 91 paused jules ember 107 failed dina birch 70 paused bruno harbor 45 pending
closed 41 fable dina failed 69 cobalt jules closed 99 indigo gus ready 15 cobalt eli paused 91 juniper dina failed 107 ember jules paused 70 birch dina pending 45 harbor bruno
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045303-p1
Reverse the field order on each line and print all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
ivan cobalt 5 active dina delta 32 failed eli delta 107 paused farah juniper 60 pending kim juniper 118 closed eli cobalt 16 ready eli grove 98 paused gus harbor 76 closed hana cobalt 117 closed
active 5 cobalt ivan failed 32 delta dina paused 107 delta eli pending 60 juniper farah closed 118 juniper kim ready 16 cobalt eli paused 98 grove eli closed 76 harbor gus closed 117 cobalt hana
dina fable 41 closed jules cobalt 69 failed gus indigo 99 closed eli cobalt 15 ready dina juniper 91 paused jules ember 107 failed dina birch 70 paused bruno harbor 45 pending
closed 41 fable dina failed 69 cobalt jules closed 99 indigo gus ready 15 cobalt eli paused 91 juniper dina failed 107 ember jules paused 70 birch dina pending 45 harbor bruno
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045303
qwen/qwen3.7-plus
awkweave-0045304
Print the number of whitespace-separated fields on each line.
{print NF}
ivan delta 114 closed farah juniper 67 pending chen delta 72 pending kim cobalt 51 active eli birch 16 pending kim fable 76 paused
4 4 4 4 4 4
kim juniper 44 active lina harbor 102 closed kim indigo 112 failed bruno fable 112 pending hana indigo 39 pending dina grove 77 failed
4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045304-p1
Print the count of whitespace-delimited fields for each line.
{print NF}
ivan delta 114 closed farah juniper 67 pending chen delta 72 pending kim cobalt 51 active eli birch 16 pending kim fable 76 paused
4 4 4 4 4 4
kim juniper 44 active lina harbor 102 closed kim indigo 112 failed bruno fable 112 pending hana indigo 39 pending dina grove 77 failed
4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045304
qwen/qwen3.7-plus
awkweave-0045305
Count records for each value in column 2. Print each value and its count in order of first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim delta 69 bruno alpha 119 gus alpha 116 dina delta 56 alice alpha 92 bruno beta 32 eli beta 72 lina beta 114
delta 2 alpha 3 beta 3
lina beta 104 lina delta 74 bruno gamma 112 chen beta 77 ivan beta 85 gus alpha 18 dina delta 116
beta 3 delta 2 gamma 1 alpha 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045305-p1
Tally the occurrences of each value in column 2 and print the value alongside its count, ordered by first appearance.
{if(!($2 in counts))order[++n]=$2;counts[$2]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}
kim delta 69 bruno alpha 119 gus alpha 116 dina delta 56 alice alpha 92 bruno beta 32 eli beta 72 lina beta 114
delta 2 alpha 3 beta 3
lina beta 104 lina delta 74 bruno gamma 112 chen beta 77 ivan beta 85 gus alpha 18 dina delta 116
beta 3 delta 2 gamma 1 alpha 1
count_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045305
qwen/qwen3.7-plus
awkweave-0045306
Sum column 3 for each category in column 2, printing groups in order of first appearance.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
eli gamma 29 ivan delta 14 alice delta 23 kim delta 1 ivan beta 9 eli alpha 8 alice delta 3 eli alpha 9 bruno beta 13 farah gamma 4
gamma 33 delta 41 beta 22 alpha 17
bruno delta 24 bruno gamma 18 alice alpha 23 chen alpha 22 chen alpha 23 jules alpha 2 jules gamma 8 jules gamma 28 gus beta 23 kim alpha 12
delta 24 gamma 54 alpha 82 beta 23
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045306-p1
Calculate the sum of values in column 3 for each unique category found in column 2, and output the results maintaining the order in which each category first appears.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
eli gamma 29 ivan delta 14 alice delta 23 kim delta 1 ivan beta 9 eli alpha 8 alice delta 3 eli alpha 9 bruno beta 13 farah gamma 4
gamma 33 delta 41 beta 22 alpha 17
bruno delta 24 bruno gamma 18 alice alpha 23 chen alpha 22 chen alpha 23 jules alpha 2 jules gamma 8 jules gamma 28 gus beta 23 kim alpha 12
delta 24 gamma 54 alpha 82 beta 23
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045306
qwen/qwen3.7-plus
awkweave-0045307
Print each repeated value from column 1 with its number of occurrences, in first-appearance order.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma amber 25 gamma harbor 41 delta cobalt 10 delta ember 24 delta delta 99 alpha birch 1 alpha birch 9
gamma 2 delta 3 alpha 2
delta indigo 58 beta juniper 67 beta juniper 100 alpha harbor 43 gamma grove 58 beta cobalt 76 delta ember 68 alpha juniper 44 alpha indigo 0 delta ember 23
delta 3 beta 3 alpha 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045307-p1
Identify duplicate entries in column 1, count their occurrences, and list them alongside their counts in the order they first appear in the dataset.
{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)if(counts[order[i]]>1)print order[i],counts[order[i]]}
gamma amber 25 gamma harbor 41 delta cobalt 10 delta ember 24 delta delta 99 alpha birch 1 alpha birch 9
gamma 2 delta 3 alpha 2
delta indigo 58 beta juniper 67 beta juniper 100 alpha harbor 43 gamma grove 58 beta cobalt 76 delta ember 68 alpha juniper 44 alpha indigo 0 delta ember 23
delta 3 beta 3 alpha 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045307
qwen/qwen3.7-plus
awkweave-0045308
The first row is a header. Print the display_name column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
region display_name score state r001 dina 15 ready r002 bruno 23 ready r003 eli 30 paused r004 hana 26 failed r005 ivan 30 failed r006 farah 16 active r007 gus 8 ready
dina bruno eli hana ivan farah gus
region display_name score state r001 hana 24 active r002 chen 28 failed r003 ivan 28 closed r004 dina 5 ready r005 alice 5 ready r006 jules 5 paused
hana chen ivan dina alice jules
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045308-p1
Treating the first line as a header, extract and print the values from the 'display_name' column for all subsequent data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["display_name"]}
region display_name score state r001 dina 15 ready r002 bruno 23 ready r003 eli 30 paused r004 hana 26 failed r005 ivan 30 failed r006 farah 16 active r007 gus 8 ready
dina bruno eli hana ivan farah gus
region display_name score state r001 hana 24 active r002 chen 28 failed r003 ivan 28 closed r004 dina 5 ready r005 alice 5 ready r006 jules 5 paused
hana chen ivan dina alice jules
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045308
qwen/qwen3.7-plus
awkweave-0045309
The first row is a header. Print display_name for data rows whose score is greater than 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 chen 7 closed r002 hana 5 closed r003 ivan 22 paused r004 eli 30 failed r005 bruno 17 closed r006 eli 22 ready
ivan eli bruno eli
record_id display_name score state r001 chen 4 paused r002 farah 12 closed r003 gus 13 closed r004 bruno 24 failed r005 chen 3 active r006 alice 2 closed
bruno
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045309-p1
Skip the header row, then output the 'display_name' field for every record where the 'score' field is strictly greater than 14.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>14{print $h["display_name"]}
record_id display_name score state r001 chen 7 closed r002 hana 5 closed r003 ivan 22 paused r004 eli 30 failed r005 bruno 17 closed r006 eli 22 ready
ivan eli bruno eli
record_id display_name score state r001 chen 4 paused r002 farah 12 closed r003 gus 13 closed r004 bruno 24 failed r005 chen 3 active r006 alice 2 closed
bruno
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045309
qwen/qwen3.7-plus
awkweave-0045310
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
lina 14 active bruno 8 active lina 14 pending lina 11 paused hana 2 closed alice 26 failed eli 18 failed farah 19 paused bruno 11 failed eli 13 paused
14 8 14 11 2 26 18 19 11 13
jules 1 closed kim 11 active eli 20 closed hana 20 paused dina 2 paused farah 18 failed kim 19 failed eli 23 active
1 11 20 20 2 18 19 23
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045310-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
lina 14 active bruno 8 active lina 14 pending lina 11 paused hana 2 closed alice 26 failed eli 18 failed farah 19 paused bruno 11 failed eli 13 paused
14 8 14 11 2 26 18 19 11 13
jules 1 closed kim 11 active eli 20 closed hana 20 paused dina 2 paused farah 18 failed kim 19 failed eli 23 active
1 11 20 20 2 18 19 23
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0045310
qwen/qwen3.7-plus
awkweave-0045311
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 17.
BEGIN{FS=OFS=","}$2>17{print $1}
kim,15,active kim,9,failed lina,6,ready farah,13,failed hana,4,failed alice,26,active kim,10,failed
alice
dina,23,pending farah,10,active farah,18,pending lina,30,closed chen,15,pending jules,7,active gus,30,paused ivan,5,ready alice,18,pending lina,14,pending
dina farah lina gus alice
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045311-p1
For comma-separated input without quoted fields, print the first column only if the value in the second column is greater than 17.
BEGIN{FS=OFS=","}$2>17{print $1}
kim,15,active kim,9,failed lina,6,ready farah,13,failed hana,4,failed alice,26,active kim,10,failed
alice
dina,23,pending farah,10,active farah,18,pending lina,30,closed chen,15,pending jules,7,active gus,30,paused ivan,5,ready alice,18,pending lina,14,pending
dina farah lina gus alice
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045311
qwen/qwen3.7-plus
awkweave-0045312
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
lina grove 49 hana juniper 105 ivan indigo 114 eli ember 39 lina birch 101 bruno ember 10 kim birch 84 alice harbor 116 jules juniper 73
lina grove 49 hana juniper 105 ivan indigo 114 eli ember 39 lina birch 101 bruno ember 10 kim birch 84 alice harbor 116 jules juniper 73
chen juniper 49 dina cobalt 12 chen grove 87 farah fable 32 gus birch 105 ivan juniper 15 lina cobalt 34 jules birch 66 hana harbor 86
chen juniper 49 dina cobalt 12 chen grove 87 farah fable 32 gus birch 105 ivan juniper 15 lina cobalt 34 jules birch 66 hana harbor 86
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045312-p1
Remove leading and trailing whitespace from the text, and replace any sequence of internal whitespace characters with a single space.
{$1=$1;print}
lina grove 49 hana juniper 105 ivan indigo 114 eli ember 39 lina birch 101 bruno ember 10 kim birch 84 alice harbor 116 jules juniper 73
lina grove 49 hana juniper 105 ivan indigo 114 eli ember 39 lina birch 101 bruno ember 10 kim birch 84 alice harbor 116 jules juniper 73
chen juniper 49 dina cobalt 12 chen grove 87 farah fable 32 gus birch 105 ivan juniper 15 lina cobalt 34 jules birch 66 hana harbor 86
chen juniper 49 dina cobalt 12 chen grove 87 farah fable 32 gus birch 105 ivan juniper 15 lina cobalt 34 jules birch 66 hana harbor 86
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045312
qwen/qwen3.7-plus
awkweave-0045313
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen grove 79 pending kim indigo 41 pending chen harbor 33 closed ivan fable 30 paused dina amber 0 pending lina cobalt 14 closed ivan fable 58 active eli grove 113 active
chen grove 79 pending
chen indigo 82 paused ivan grove 115 closed ivan delta 10 closed lina harbor 22 pending ivan cobalt 104 closed alice ember 19 paused dina delta 73 failed
lina harbor 22 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045313-p1
Output the longest line from the input; if multiple lines share the maximum length, select the one that appears earliest.
{if(length($0)>length(best))best=$0}END{print best}
chen grove 79 pending kim indigo 41 pending chen harbor 33 closed ivan fable 30 paused dina amber 0 pending lina cobalt 14 closed ivan fable 58 active eli grove 113 active
chen grove 79 pending
chen indigo 82 paused ivan grove 115 closed ivan delta 10 closed lina harbor 22 pending ivan cobalt 104 closed alice ember 19 paused dina delta 73 failed
lina harbor 22 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045313
qwen/qwen3.7-plus
awkweave-0045314
Print every 3rd line starting at line 1 (then line 4, and so on).
NR%3==1
gus 107 chen 49 chen 113 alice 39 farah 21 hana 65
gus 107 alice 39
chen 120 dina 82 bruno 88 lina 41 kim 110 eli 72 alice 96 gus 85 alice 3 kim 68
chen 120 lina 41 alice 96 kim 68
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045314-p1
Print lines 1, 4, 7, and so on, effectively outputting every third line starting from the first line.
NR%3==1
gus 107 chen 49 chen 113 alice 39 farah 21 hana 65
gus 107 alice 39
chen 120 dina 82 bruno 88 lina 41 kim 110 eli 72 alice 96 gus 85 alice 3 kim 68
chen 120 lina 41 alice 96 kim 68
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045314
qwen/qwen3.7-plus
awkweave-0045315
Count the distinct values in column 1 and print only the count.
{if(!seen[$1]++)n++}END{print n+0}
gamma ember 39 delta ember 60 beta amber 93 delta ember 64 beta juniper 84 beta delta 100 alpha juniper 43 delta harbor 9 delta grove 64
4
gamma amber 26 delta cobalt 57 beta harbor 12 delta amber 47 delta birch 119 alpha harbor 30 gamma indigo 42 gamma ember 85
4
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045315-p1
Determine the number of unique values present in column 1 and output only this total count.
{if(!seen[$1]++)n++}END{print n+0}
gamma ember 39 delta ember 60 beta amber 93 delta ember 64 beta juniper 84 beta delta 100 alpha juniper 43 delta harbor 9 delta grove 64
4
gamma amber 26 delta cobalt 57 beta harbor 12 delta amber 47 delta birch 119 alpha harbor 30 gamma indigo 42 gamma ember 85
4
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045315
qwen/qwen3.7-plus
awkweave-0045316
For each row, print column 1 and column 2 divided by column 3 to two decimal places; skip rows where column 3 is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 10 0 ivan 16 28 jules 21 17 alice 6 14 chen 20 27 hana 1 5 dina 21 29 jules 22 22 hana 21 26 chen 8 15
ivan 0.57 jules 1.24 alice 0.43 chen 0.74 hana 0.20 dina 0.72 jules 1.00 hana 0.81 chen 0.53
eli 17 0 farah 1 27 kim 25 6 hana 11 16 jules 17 12 hana 20 19 kim 7 22 bruno 1 19
farah 0.04 kim 4.17 hana 0.69 jules 1.42 hana 1.05 kim 0.32 bruno 0.05
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045316-p1
For each row where column 3 is non-zero, print column 1 followed by the result of dividing column 2 by column 3, formatted to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
gus 10 0 ivan 16 28 jules 21 17 alice 6 14 chen 20 27 hana 1 5 dina 21 29 jules 22 22 hana 21 26 chen 8 15
ivan 0.57 jules 1.24 alice 0.43 chen 0.74 hana 0.20 dina 0.72 jules 1.00 hana 0.81 chen 0.53
eli 17 0 farah 1 27 kim 25 6 hana 11 16 jules 17 12 hana 20 19 kim 7 22 bruno 1 19
farah 0.04 kim 4.17 hana 0.69 jules 1.42 hana 1.05 kim 0.32 bruno 0.05
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045316
qwen/qwen3.7-plus
awkweave-0045317
Print the three complete records with the highest numeric values in column 3, sorted descending. Preserve input order for ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
kim cobalt 5 bruno harbor 1 farah cobalt 14 alice indigo 18 kim fable 18 eli fable 7 bruno delta 1
alice indigo 18 kim fable 18 farah cobalt 14
alice fable 25 jules birch 29 alice amber 7 lina delta 21 dina amber 13 dina indigo 7 kim delta 14 farah grove 20 gus juniper 13
jules birch 29 alice fable 25 lina delta 21
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045317-p1
Output the three records with the highest numeric values in column 3, sorted in descending order; maintain the original input order for any ties.
{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]<v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=3&&i<=NR;i++)print line[i]}
kim cobalt 5 bruno harbor 1 farah cobalt 14 alice indigo 18 kim fable 18 eli fable 7 bruno delta 1
alice indigo 18 kim fable 18 farah cobalt 14
alice fable 25 jules birch 29 alice amber 7 lina delta 21 dina amber 13 dina indigo 7 kim delta 14 farah grove 20 gus juniper 13
jules birch 29 alice fable 25 lina delta 21
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045317
qwen/qwen3.7-plus
awkweave-0045318
Print column 4 followed by column 1 for every record.
{print $4, $1}
chen 17 71 dina chen 112 6 farah bruno 62 13 bruno gus 3 90 gus hana 76 52 gus farah 50 71 lina
dina chen farah chen bruno bruno gus gus gus hana lina farah
chen 14 77 chen hana 8 28 kim dina 71 110 alice hana 111 66 farah farah 29 100 lina gus 14 17 ivan
chen chen kim hana alice dina farah hana lina farah ivan gus
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045318-p1
For each record, output the fourth column followed by the first column.
{print $4, $1}
chen 17 71 dina chen 112 6 farah bruno 62 13 bruno gus 3 90 gus hana 76 52 gus farah 50 71 lina
dina chen farah chen bruno bruno gus gus gus hana lina farah
chen 14 77 chen hana 8 28 kim dina 71 110 alice hana 111 66 farah farah 29 100 lina gus 14 17 ivan
chen chen kim hana alice dina farah hana lina farah ivan gus
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045318
qwen/qwen3.7-plus
awkweave-0045319
Print the last field of every input line.
{print $NF}
33 harbor closed ember indigo pending paused 20 harbor closed harbor harbor active closed 22 birch pending birch delta active failed 104 indigo paused fable ember closed paused 40 grove ready indigo cobalt closed paused 119 delta paused birch amber paused failed
paused closed failed paused paused failed
80 grove failed birch fable pending active 62 ember pending indigo delta closed ready 114 cobalt active birch delta ready ready 31 juniper ready delta amber closed active 106 juniper ready juniper harbor failed pending 5 cobalt closed ember fable closed failed 84 fable active grove fable ready active
active ready ready active pending failed active
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045319-p1
Output the final field from every input line.
{print $NF}
33 harbor closed ember indigo pending paused 20 harbor closed harbor harbor active closed 22 birch pending birch delta active failed 104 indigo paused fable ember closed paused 40 grove ready indigo cobalt closed paused 119 delta paused birch amber paused failed
paused closed failed paused paused failed
80 grove failed birch fable pending active 62 ember pending indigo delta closed ready 114 cobalt active birch delta ready ready 31 juniper ready delta amber closed active 106 juniper ready juniper harbor failed pending 5 cobalt closed ember fable closed failed 84 fable active grove fable ready active
active ready ready active pending failed active
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045319
qwen/qwen3.7-plus
awkweave-0045320
Print the complete records where column 3 is less than 36.
$3 < 36
closed jules 20 juniper closed lina 71 cobalt active eli 92 juniper failed kim 98 ember ready dina 40 amber ready lina 49 fable
closed jules 20 juniper
ready jules 82 amber ready farah 4 grove paused jules 114 fable closed alice 102 amber paused farah 95 cobalt active bruno 62 amber closed hana 9 birch active alice 4 delta failed jules 17 fable active alice 105 fable
ready farah 4 grove closed hana 9 birch active alice 4 delta failed jules 17 fable
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045320-p1
Display full records where the value in the third column is strictly less than 36.
$3 < 36
closed jules 20 juniper closed lina 71 cobalt active eli 92 juniper failed kim 98 ember ready dina 40 amber ready lina 49 fable
closed jules 20 juniper
ready jules 82 amber ready farah 4 grove paused jules 114 fable closed alice 102 amber paused farah 95 cobalt active bruno 62 amber closed hana 9 birch active alice 4 delta failed jules 17 fable active alice 105 fable
ready farah 4 grove closed hana 9 birch active alice 4 delta failed jules 17 fable
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045320
qwen/qwen3.7-plus
awkweave-0045321
Show whole lines whose 1st field is between 4 and 23, inclusive.
$1 >= 4 && $1 <= 23
19 active indigo bruno 22 closed ember gus 19 closed birch alice 25 failed cobalt lina 28 pending birch gus 5 pending birch eli
19 active indigo bruno 22 closed ember gus 19 closed birch alice 5 pending birch eli
11 paused fable alice 18 active cobalt hana 6 paused birch lina 27 failed harbor gus 2 pending harbor jules 3 paused cobalt farah 15 active ember eli 9 failed harbor alice
11 paused fable alice 18 active cobalt hana 6 paused birch lina 15 active ember eli 9 failed harbor alice
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045321-p1
Show entire lines where the first field falls within the inclusive range of 4 to 23.
$1 >= 4 && $1 <= 23
19 active indigo bruno 22 closed ember gus 19 closed birch alice 25 failed cobalt lina 28 pending birch gus 5 pending birch eli
19 active indigo bruno 22 closed ember gus 19 closed birch alice 5 pending birch eli
11 paused fable alice 18 active cobalt hana 6 paused birch lina 27 failed harbor gus 2 pending harbor jules 3 paused cobalt farah 15 active ember eli 9 failed harbor alice
11 paused fable alice 18 active cobalt hana 6 paused birch lina 15 active ember eli 9 failed harbor alice
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045321
qwen/qwen3.7-plus
awkweave-0045322
Print column 1 only for rows where column 3 is exactly pending.
$3 == "pending"{print $1}
alice 8 paused ember farah 39 paused birch gus 7 active harbor gus 65 pending indigo eli 44 ready harbor lina 36 ready delta lina 49 paused grove
gus
dina 81 ready amber hana 103 active grove dina 95 paused birch kim 72 pending grove farah 40 paused harbor alice 18 closed delta chen 30 ready grove
kim
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045322-p1
Output only the first column for rows where the third column equals pending.
$3 == "pending"{print $1}
alice 8 paused ember farah 39 paused birch gus 7 active harbor gus 65 pending indigo eli 44 ready harbor lina 36 ready delta lina 49 paused grove
gus
dina 81 ready amber hana 103 active grove dina 95 paused birch kim 72 pending grove farah 40 paused harbor alice 18 closed delta chen 30 ready grove
kim
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045322
qwen/qwen3.7-plus
awkweave-0045323
Print all fields from lines where field 2 begins with ERROR.
$2 ~ /^ERROR/
109 INFO fable 68 WARN birch 53 ERROR cobalt 7 ERROR cobalt 98 WARN juniper 111 WARN grove 18 WARN fable 87 DEBUG fable 43 DEBUG harbor 5 INFO juniper
53 ERROR cobalt 7 ERROR cobalt
27 ERROR fable 24 WARN fable 109 DEBUG fable 72 INFO fable 18 INFO harbor 44 WARN amber 79 INFO fable 67 ERROR fable 24 ERROR grove
27 ERROR fable 67 ERROR fable 24 ERROR grove
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045323-p1
Print all fields from lines where the second field starts with ERROR.
$2 ~ /^ERROR/
109 INFO fable 68 WARN birch 53 ERROR cobalt 7 ERROR cobalt 98 WARN juniper 111 WARN grove 18 WARN fable 87 DEBUG fable 43 DEBUG harbor 5 INFO juniper
53 ERROR cobalt 7 ERROR cobalt
27 ERROR fable 24 WARN fable 109 DEBUG fable 72 INFO fable 18 INFO harbor 44 WARN amber 79 INFO fable 67 ERROR fable 24 ERROR grove
27 ERROR fable 67 ERROR fable 24 ERROR grove
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045323
qwen/qwen3.7-plus
awkweave-0045324
Print every line except those containing the exact text harbor.
$0 !~ /harbor/
grove 80 pending birch 83 active cobalt 12 closed indigo 67 ready cobalt 91 pending harbor 75 paused birch 46 ready harbor 999 active
grove 80 pending birch 83 active cobalt 12 closed indigo 67 ready cobalt 91 pending birch 46 ready
amber 19 pending grove 25 pending amber 44 pending birch 39 active amber 83 pending delta 16 paused harbor 61 active grove 69 failed harbor 999 active
amber 19 pending grove 25 pending amber 44 pending birch 39 active amber 83 pending delta 16 paused grove 69 failed
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045324-p1
Output every line that does not contain the exact string harbor.
$0 !~ /harbor/
grove 80 pending birch 83 active cobalt 12 closed indigo 67 ready cobalt 91 pending harbor 75 paused birch 46 ready harbor 999 active
grove 80 pending birch 83 active cobalt 12 closed indigo 67 ready cobalt 91 pending birch 46 ready
amber 19 pending grove 25 pending amber 44 pending birch 39 active amber 83 pending delta 16 paused harbor 61 active grove 69 failed harbor 999 active
amber 19 pending grove 25 pending amber 44 pending birch 39 active amber 83 pending delta 16 paused grove 69 failed
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045324
qwen/qwen3.7-plus
awkweave-0045325
Print lines 4 through 5, including both endpoints.
NR >= 4 && NR <= 5
chen ember 27 eli grove 118 lina grove 109 farah birch 72 kim ember 63 chen cobalt 100 farah harbor 111 kim ember 87
farah birch 72 kim ember 63
dina indigo 90 kim fable 44 bruno juniper 47 jules ember 85 chen grove 62 alice juniper 41 alice harbor 17 lina indigo 16 dina indigo 114
jules ember 85 chen grove 62
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045325-p1
Print lines 4 through 5, inclusive of both endpoints.
NR >= 4 && NR <= 5
chen ember 27 eli grove 118 lina grove 109 farah birch 72 kim ember 63 chen cobalt 100 farah harbor 111 kim ember 87
farah birch 72 kim ember 63
dina indigo 90 kim fable 44 bruno juniper 47 jules ember 85 chen grove 62 alice juniper 41 alice harbor 17 lina indigo 16 dina indigo 114
jules ember 85 chen grove 62
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045325
qwen/qwen3.7-plus
awkweave-0045326
Output only the first 3 records.
NR <= 3
bruno 16 grove dina 101 delta alice 54 juniper hana 61 harbor chen 9 birch bruno 62 grove
bruno 16 grove dina 101 delta alice 54 juniper
ivan 6 delta jules 0 indigo farah 35 indigo dina 105 harbor ivan 62 indigo lina 102 birch hana 48 juniper farah 67 indigo eli 115 cobalt ivan 119 amber
ivan 6 delta jules 0 indigo farah 35 indigo
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045326-p1
Output only the first 3 records.
NR <= 3
bruno 16 grove dina 101 delta alice 54 juniper hana 61 harbor chen 9 birch bruno 62 grove
bruno 16 grove dina 101 delta alice 54 juniper
ivan 6 delta jules 0 indigo farah 35 indigo dina 105 harbor ivan 62 indigo lina 102 birch hana 48 juniper farah 67 indigo eli 115 cobalt ivan 119 amber
ivan 6 delta jules 0 indigo farah 35 indigo
first_n
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0045326
qwen/qwen3.7-plus
awkweave-0045327
Skip the first line and print every remaining line unchanged.
NR > 1
kim 29 indigo farah 32 birch eli 60 grove lina 77 harbor dina 48 ember hana 2 ember
farah 32 birch eli 60 grove lina 77 harbor dina 48 ember hana 2 ember
alice 120 cobalt gus 108 birch eli 61 indigo gus 36 harbor kim 120 ember kim 13 grove dina 22 amber gus 97 grove dina 120 harbor
gus 108 birch eli 61 indigo gus 36 harbor kim 120 ember kim 13 grove dina 22 amber gus 97 grove dina 120 harbor
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045327-p1
Skip the first line and print all subsequent lines without modification.
NR > 1
kim 29 indigo farah 32 birch eli 60 grove lina 77 harbor dina 48 ember hana 2 ember
farah 32 birch eli 60 grove lina 77 harbor dina 48 ember hana 2 ember
alice 120 cobalt gus 108 birch eli 61 indigo gus 36 harbor kim 120 ember kim 13 grove dina 22 amber gus 97 grove dina 120 harbor
gus 108 birch eli 61 indigo gus 36 harbor kim 120 ember kim 13 grove dina 22 amber gus 97 grove dina 120 harbor
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045327
qwen/qwen3.7-plus
awkweave-0045328
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
gus active 63 eli paused 120 bruno failed 116 bruno closed 29 bruno failed 68 kim failed 59
1
kim ready 5 bruno paused 51 gus pending 107 hana active 85 eli paused 34 ivan pending 38 chen failed 105
1
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045328-p1
Count the number of records where the second column is active; print 0 if none exist.
$2 == "active"{n++}END{print n+0}
gus active 63 eli paused 120 bruno failed 116 bruno closed 29 bruno failed 68 kim failed 59
1
kim ready 5 bruno paused 51 gus pending 107 hana active 85 eli paused 34 ivan pending 38 chen failed 105
1
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045328
qwen/qwen3.7-plus
awkweave-0045329
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
8 delta ivan 3 grove bruno 30 amber alice 20 grove hana 5 fable jules 26 juniper gus 27 juniper dina
119
26 amber chen 23 grove chen 14 harbor gus 2 juniper hana 13 harbor alice 24 harbor jules 10 fable bruno 8 harbor hana 13 grove lina
133
sum_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045329-p1
Compute and print the sum of integer values found in the first column.
{s+=$1}END{print s+0}
8 delta ivan 3 grove bruno 30 amber alice 20 grove hana 5 fable jules 26 juniper gus 27 juniper dina
119
26 amber chen 23 grove chen 14 harbor gus 2 juniper hana 13 harbor alice 24 harbor jules 10 fable bruno 8 harbor hana 13 grove lina
133
sum_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045329
qwen/qwen3.7-plus
awkweave-0045330
Print the arithmetic mean of column 3, rounded to exactly two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
harbor chen 29 juniper bruno 4 birch alice 26 amber chen 14 amber gus 28 ember lina 26 grove chen 18 grove dina 10 delta hana 30
20.56
delta ivan 29 cobalt ivan 19 cobalt bruno 18 ember lina 1 ember dina 24 delta eli 5 indigo ivan 22 delta jules 13 ember dina 25 grove chen 8
16.40
average_field
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045330-p1
Output the average of the third column, formatted to two decimal places.
{s+=$3;n++}END{printf "%.2f\n",s/n}
harbor chen 29 juniper bruno 4 birch alice 26 amber chen 14 amber gus 28 ember lina 26 grove chen 18 grove dina 10 delta hana 30
20.56
delta ivan 29 cobalt ivan 19 cobalt bruno 18 ember lina 1 ember dina 24 delta eli 5 indigo ivan 22 delta jules 13 ember dina 25 grove chen 8
16.40
average_field
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045330
qwen/qwen3.7-plus
awkweave-0045331
Find and print the smallest numeric value in column 2.
NR==1||$2<extreme{extreme=$2}END{print extreme}
indigo 26 gus amber 27 hana cobalt 4 gus amber 16 gus birch 9 dina amber 10 bruno juniper 15 jules
4
amber 23 jules cobalt 12 eli juniper 7 alice harbor 7 ivan birch 11 eli cobalt 12 bruno fable 2 gus grove 9 hana juniper 13 bruno
2
min_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0045331-p1
Identify and display the minimum numerical value found in the second column.
NR==1||$2<extreme{extreme=$2}END{print extreme}
indigo 26 gus amber 27 hana cobalt 4 gus amber 16 gus birch 9 dina amber 10 bruno juniper 15 jules
4
amber 23 jules cobalt 12 eli juniper 7 alice harbor 7 ivan birch 11 eli cobalt 12 bruno fable 2 gus grove 9 hana juniper 13 bruno
2
min_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0045331
qwen/qwen3.7-plus
awkweave-0045332
Find and print the largest numeric value in column 3.
NR==1||$3>extreme{extreme=$3}END{print extreme}
dina indigo 13 chen fable 4 gus delta 29 bruno cobalt 3 eli grove 5 kim juniper 13 hana ember 20
29
bruno amber 12 farah amber 5 bruno ember 19 jules indigo 25 alice birch 4 bruno indigo 26
26
max_field
1
train
original-grammar
CC-BY-4.0
null
null