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-0048272-p1
Skip the header row and output the state column for all remaining rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["state"]}
record_id note display_name state r001 hana 11 pending r002 dina 7 active r003 chen 15 ready r004 lina 1 ready r005 kim 21 failed r006 bruno 3 active r007 lina 12 ready
pending active ready ready failed active ready
record_id note display_name state r001 alice 30 paused r002 alice 22 failed r003 hana 23 active r004 eli 9 pending r005 lina 7 paused r006 kim 1 paused r007 hana 5 active r008 alice 17 ready r009 ivan 21 ready r010 eli 25 active
paused failed active pending paused paused active ready ready active
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048272
qwen/qwen3.7-plus
awkweave-0048273
The first row is a header. Print display_name for data rows whose score is greater than 20.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>20{print $h["display_name"]}
record_id display_name score state r001 hana 10 paused r002 ivan 4 pending r003 hana 28 failed r004 hana 20 ready r005 farah 22 active r006 hana 24 active r007 ivan 22 ready r008 dina 23 ready r009 alice 22 failed r010 ivan 7 failed
hana farah hana ivan dina alice
record_id display_name score state r001 dina 22 failed r002 kim 17 ready r003 jules 19 pending r004 eli 6 closed r005 hana 3 active r006 kim 9 failed r007 farah 17 ready r008 chen 16 pending r009 alice 7 paused
dina
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048273-p1
Ignore the header and print the display_name field for records where the score is strictly greater than 20.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>20{print $h["display_name"]}
record_id display_name score state r001 hana 10 paused r002 ivan 4 pending r003 hana 28 failed r004 hana 20 ready r005 farah 22 active r006 hana 24 active r007 ivan 22 ready r008 dina 23 ready r009 alice 22 failed r010 ivan 7 failed
hana farah hana ivan dina alice
record_id display_name score state r001 dina 22 failed r002 kim 17 ready r003 jules 19 pending r004 eli 6 closed r005 hana 3 active r006 kim 9 failed r007 farah 17 ready r008 chen 16 pending r009 alice 7 paused
dina
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048273
qwen/qwen3.7-plus
awkweave-0048274
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
chen 29 active dina 4 active chen 13 ready kim 25 ready bruno 11 active alice 14 pending gus 6 active hana 27 paused ivan 3 closed jules 1 closed
29 4 13 25 11 14 6 27 3 1
farah 15 ready alice 11 pending lina 30 failed dina 5 active gus 18 paused ivan 16 closed lina 4 closed gus 9 ready lina 5 paused ivan 13 pending
15 11 30 5 18 16 4 9 5 13
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048274-p1
The input is tab-separated. Print column 2 from every record.
BEGIN{FS=OFS="\t"}{print $2}
chen 29 active dina 4 active chen 13 ready kim 25 ready bruno 11 active alice 14 pending gus 6 active hana 27 paused ivan 3 closed jules 1 closed
29 4 13 25 11 14 6 27 3 1
farah 15 ready alice 11 pending lina 30 failed dina 5 active gus 18 paused ivan 16 closed lina 4 closed gus 9 ready lina 5 paused ivan 13 pending
15 11 30 5 18 16 4 9 5 13
tsv_projection
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0048274
qwen/qwen3.7-plus
awkweave-0048275
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 21.
BEGIN{FS=OFS=","}$2>21{print $1}
jules,13,active chen,30,failed ivan,30,closed hana,21,failed kim,2,closed gus,18,failed chen,21,ready alice,3,failed kim,5,paused
chen ivan
hana,12,failed eli,16,failed alice,6,failed chen,2,pending bruno,12,ready ivan,19,ready farah,27,pending
farah
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048275-p1
For simple CSV data without quoted commas, print the first column if the second column value is greater than 21.
BEGIN{FS=OFS=","}$2>21{print $1}
jules,13,active chen,30,failed ivan,30,closed hana,21,failed kim,2,closed gus,18,failed chen,21,ready alice,3,failed kim,5,paused
chen ivan
hana,12,failed eli,16,failed alice,6,failed chen,2,pending bruno,12,ready ivan,19,ready farah,27,pending
farah
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048275
qwen/qwen3.7-plus
awkweave-0048276
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
alice grove 50 bruno indigo 60 farah cobalt 110 bruno ember 71 bruno amber 102 chen grove 25 ivan fable 55 alice juniper 102 hana grove 34 bruno indigo 4
alice grove 50 bruno indigo 60 farah cobalt 110 bruno ember 71 bruno amber 102 chen grove 25 ivan fable 55 alice juniper 102 hana grove 34 bruno indigo 4
kim ember 32 ivan grove 98 chen juniper 13 ivan juniper 47 farah birch 120 ivan delta 87
kim ember 32 ivan grove 98 chen juniper 13 ivan juniper 47 farah birch 120 ivan delta 87
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048276-p1
Remove leading and trailing whitespace, and replace sequences of internal whitespace with a single space.
{$1=$1;print}
alice grove 50 bruno indigo 60 farah cobalt 110 bruno ember 71 bruno amber 102 chen grove 25 ivan fable 55 alice juniper 102 hana grove 34 bruno indigo 4
alice grove 50 bruno indigo 60 farah cobalt 110 bruno ember 71 bruno amber 102 chen grove 25 ivan fable 55 alice juniper 102 hana grove 34 bruno indigo 4
kim ember 32 ivan grove 98 chen juniper 13 ivan juniper 47 farah birch 120 ivan delta 87
kim ember 32 ivan grove 98 chen juniper 13 ivan juniper 47 farah birch 120 ivan delta 87
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048276
qwen/qwen3.7-plus
awkweave-0048277
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
gus harbor 77 active hana indigo 39 ready dina cobalt 78 active eli harbor 13 failed kim ember 26 paused bruno ember 20 closed
dina cobalt 78 active
kim amber 105 failed alice indigo 8 pending hana harbor 24 failed alice ember 91 pending lina birch 63 active alice fable 51 ready chen indigo 119 ready
alice indigo 8 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048277-p1
Identify and print the longest line in the input; if multiple lines share the maximum length, select the first one encountered.
{if(length($0)>length(best))best=$0}END{print best}
gus harbor 77 active hana indigo 39 ready dina cobalt 78 active eli harbor 13 failed kim ember 26 paused bruno ember 20 closed
dina cobalt 78 active
kim amber 105 failed alice indigo 8 pending hana harbor 24 failed alice ember 91 pending lina birch 63 active alice fable 51 ready chen indigo 119 ready
alice indigo 8 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048277
qwen/qwen3.7-plus
awkweave-0048278
Print every 4th line starting at line 1 (then line 5, and so on).
NR%4==1
ivan 103 chen 103 ivan 13 ivan 12 alice 102 ivan 117 chen 89 lina 34
ivan 103 alice 102
farah 111 hana 0 hana 22 kim 36 farah 37 lina 103 jules 14 lina 97
farah 111 farah 37
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048278-p1
Output lines 1, 5, 9, and so on (every fourth line starting from the first).
NR%4==1
ivan 103 chen 103 ivan 13 ivan 12 alice 102 ivan 117 chen 89 lina 34
ivan 103 alice 102
farah 111 hana 0 hana 22 kim 36 farah 37 lina 103 jules 14 lina 97
farah 111 farah 37
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048278
qwen/qwen3.7-plus
awkweave-0048279
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
alpha juniper 114 alpha grove 88 gamma juniper 91 alpha indigo 29 beta cobalt 67 gamma ember 19 delta juniper 83 alpha birch 114
6
delta ember 114 alpha delta 74 gamma birch 17 delta birch 22 beta cobalt 28 delta birch 114 delta delta 112 delta ember 7 beta birch 112 beta amber 65
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048279-p1
Calculate the number of unique values in the second column and output only that total count.
{if(!seen[$2]++)n++}END{print n+0}
alpha juniper 114 alpha grove 88 gamma juniper 91 alpha indigo 29 beta cobalt 67 gamma ember 19 delta juniper 83 alpha birch 114
6
delta ember 114 alpha delta 74 gamma birch 17 delta birch 22 beta cobalt 28 delta birch 114 delta delta 112 delta ember 7 beta birch 112 beta amber 65
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048279
qwen/qwen3.7-plus
awkweave-0048280
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}
jules 28 0 dina 4 18 alice 13 10 chen 24 3 eli 11 27 chen 15 21 ivan 25 15 farah 19 16
dina 0.22 alice 1.30 chen 8.00 eli 0.41 chen 0.71 ivan 1.67 farah 1.19
dina 22 0 jules 3 13 lina 29 15 jules 10 11 jules 1 2 farah 8 16 hana 10 23 jules 18 5
jules 0.23 lina 1.93 jules 0.91 jules 0.50 farah 0.50 hana 0.43 jules 3.60
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048280-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, excluding rows where the third column is zero.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
jules 28 0 dina 4 18 alice 13 10 chen 24 3 eli 11 27 chen 15 21 ivan 25 15 farah 19 16
dina 0.22 alice 1.30 chen 8.00 eli 0.41 chen 0.71 ivan 1.67 farah 1.19
dina 22 0 jules 3 13 lina 29 15 jules 10 11 jules 1 2 farah 8 16 hana 10 23 jules 18 5
jules 0.23 lina 1.93 jules 0.91 jules 0.50 farah 0.50 hana 0.43 jules 3.60
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048280
qwen/qwen3.7-plus
awkweave-0048281
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]}
dina juniper 21 chen amber 25 hana juniper 27 chen fable 26 chen harbor 17 jules juniper 1 bruno indigo 20
hana juniper 27 chen fable 26 chen amber 25
jules indigo 28 lina harbor 2 dina fable 1 chen fable 6 lina amber 21 alice delta 14
jules indigo 28 lina amber 21 alice delta 14
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048281-p1
Select the top three records with the highest numeric values in column 3, sorted in descending order, maintaining 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]}
dina juniper 21 chen amber 25 hana juniper 27 chen fable 26 chen harbor 17 jules juniper 1 bruno indigo 20
hana juniper 27 chen fable 26 chen amber 25
jules indigo 28 lina harbor 2 dina fable 1 chen fable 6 lina amber 21 alice delta 14
jules indigo 28 lina amber 21 alice delta 14
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048281
qwen/qwen3.7-plus
awkweave-0048282
For each line, output fields 5 and 2, in that order.
{print $5, $2}
active jules pending closed closed active eli ready pending pending failed hana pending closed pending active alice pending paused ready failed lina closed ready closed pending bruno failed failed closed closed lina active pending failed active dina closed ready ready paused jules closed pending closed
closed jules pending eli pending hana ready alice closed lina closed bruno failed lina ready dina closed jules
closed bruno paused paused ready failed chen failed closed failed ready jules failed failed ready closed eli closed pending paused ready ivan active paused pending pending farah ready paused ready
ready bruno failed chen ready jules paused eli pending ivan ready farah
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048282-p1
For every line, print the fifth field followed by the second field.
{print $5, $2}
active jules pending closed closed active eli ready pending pending failed hana pending closed pending active alice pending paused ready failed lina closed ready closed pending bruno failed failed closed closed lina active pending failed active dina closed ready ready paused jules closed pending closed
closed jules pending eli pending hana ready alice closed lina closed bruno failed lina ready dina closed jules
closed bruno paused paused ready failed chen failed closed failed ready jules failed failed ready closed eli closed pending paused ready ivan active paused pending pending farah ready paused ready
ready bruno failed chen ready jules paused eli pending ivan ready farah
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048282
qwen/qwen3.7-plus
awkweave-0048283
Print the last field of every input line.
{print $NF}
chen failed bruno lina active hana ivan active chen eli pending lina ivan active chen eli active dina
bruno hana chen lina chen dina
farah ready chen dina closed farah chen paused kim kim active bruno gus pending lina dina failed farah dina active farah lina ready kim chen ready jules farah ready gus
chen farah kim bruno lina farah farah kim jules gus
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048283-p1
Output the final field from each input line.
{print $NF}
chen failed bruno lina active hana ivan active chen eli pending lina ivan active chen eli active dina
bruno hana chen lina chen dina
farah ready chen dina closed farah chen paused kim kim active bruno gus pending lina dina failed farah dina active farah lina ready kim chen ready jules farah ready gus
chen farah kim bruno lina farah farah kim jules gus
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048283
qwen/qwen3.7-plus
awkweave-0048284
Print the complete records where column 3 is greater than 64.
$3 > 64
delta dina 45 jules delta farah 16 bruno cobalt hana 79 gus grove hana 50 ivan fable jules 12 farah ember kim 115 bruno harbor eli 90 eli delta farah 54 jules grove jules 63 alice
cobalt hana 79 gus ember kim 115 bruno harbor eli 90 eli
cobalt gus 112 dina grove eli 27 chen birch hana 4 ivan indigo lina 87 dina grove farah 21 hana juniper eli 24 eli amber farah 98 eli cobalt chen 41 chen fable ivan 87 gus
cobalt gus 112 dina indigo lina 87 dina amber farah 98 eli fable ivan 87 gus
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048284-p1
Output full records where the value in column 3 exceeds 64.
$3 > 64
delta dina 45 jules delta farah 16 bruno cobalt hana 79 gus grove hana 50 ivan fable jules 12 farah ember kim 115 bruno harbor eli 90 eli delta farah 54 jules grove jules 63 alice
cobalt hana 79 gus ember kim 115 bruno harbor eli 90 eli
cobalt gus 112 dina grove eli 27 chen birch hana 4 ivan indigo lina 87 dina grove farah 21 hana juniper eli 24 eli amber farah 98 eli cobalt chen 41 chen fable ivan 87 gus
cobalt gus 112 dina indigo lina 87 dina amber farah 98 eli fable ivan 87 gus
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048284
qwen/qwen3.7-plus
awkweave-0048285
Show whole lines whose 3rd field is between 6 and 18, inclusive.
$3 >= 6 && $3 <= 18
hana cobalt 30 bruno farah amber 18 gus bruno fable 8 gus hana delta 8 bruno farah harbor 29 bruno lina birch 11 farah
farah amber 18 gus bruno fable 8 gus hana delta 8 bruno lina birch 11 farah
gus harbor 21 farah gus ember 16 bruno eli delta 11 bruno dina delta 2 eli eli delta 6 jules chen fable 4 ivan chen fable 21 bruno alice indigo 5 eli
gus ember 16 bruno eli delta 11 bruno eli delta 6 jules
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048285-p1
Display entire lines where the third field falls within the inclusive range of 6 to 18.
$3 >= 6 && $3 <= 18
hana cobalt 30 bruno farah amber 18 gus bruno fable 8 gus hana delta 8 bruno farah harbor 29 bruno lina birch 11 farah
farah amber 18 gus bruno fable 8 gus hana delta 8 bruno lina birch 11 farah
gus harbor 21 farah gus ember 16 bruno eli delta 11 bruno dina delta 2 eli eli delta 6 jules chen fable 4 ivan chen fable 21 bruno alice indigo 5 eli
gus ember 16 bruno eli delta 11 bruno eli delta 6 jules
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048285
qwen/qwen3.7-plus
awkweave-0048286
Print column 4 only for rows where column 1 is exactly ready.
$1 == "ready"{print $4}
ready juniper 59 chen paused harbor 91 eli ready grove 67 ivan failed delta 114 hana ready delta 113 gus ready amber 98 chen active cobalt 34 eli pending juniper 88 eli
chen ivan gus chen
closed harbor 24 eli paused harbor 99 hana active juniper 48 bruno failed harbor 36 hana active indigo 32 gus failed fable 82 hana closed cobalt 101 chen pending ember 76 gus closed birch 44 bruno ready birch 101 ivan
ivan
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048286-p1
Output only the fourth column for rows where the first column is exactly ready.
$1 == "ready"{print $4}
ready juniper 59 chen paused harbor 91 eli ready grove 67 ivan failed delta 114 hana ready delta 113 gus ready amber 98 chen active cobalt 34 eli pending juniper 88 eli
chen ivan gus chen
closed harbor 24 eli paused harbor 99 hana active juniper 48 bruno failed harbor 36 hana active indigo 32 gus failed fable 82 hana closed cobalt 101 chen pending ember 76 gus closed birch 44 bruno ready birch 101 ivan
ivan
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048286
qwen/qwen3.7-plus
awkweave-0048287
Print all fields from lines where field 3 begins with INFO.
$3 ~ /^INFO/
delta 0 ERROR amber 55 INFO fable 55 DEBUG grove 24 INFO indigo 21 DEBUG amber 12 DEBUG grove 95 INFO birch 114 INFO harbor 119 INFO juniper 100 DEBUG
amber 55 INFO grove 24 INFO grove 95 INFO birch 114 INFO harbor 119 INFO
amber 113 WARN birch 102 DEBUG harbor 77 WARN juniper 62 INFO harbor 15 ERROR indigo 6 DEBUG indigo 112 INFO grove 69 WARN
juniper 62 INFO indigo 112 INFO
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048287-p1
Print all fields from lines where the third field starts with INFO.
$3 ~ /^INFO/
delta 0 ERROR amber 55 INFO fable 55 DEBUG grove 24 INFO indigo 21 DEBUG amber 12 DEBUG grove 95 INFO birch 114 INFO harbor 119 INFO juniper 100 DEBUG
amber 55 INFO grove 24 INFO grove 95 INFO birch 114 INFO harbor 119 INFO
amber 113 WARN birch 102 DEBUG harbor 77 WARN juniper 62 INFO harbor 15 ERROR indigo 6 DEBUG indigo 112 INFO grove 69 WARN
juniper 62 INFO indigo 112 INFO
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048287
qwen/qwen3.7-plus
awkweave-0048288
Print every line except those containing the exact text amber.
$0 !~ /amber/
ember 36 closed birch 98 ready juniper 97 active fable 37 pending amber 55 failed harbor 30 ready delta 40 failed delta 113 failed indigo 51 pending cobalt 63 pending amber 999 active
ember 36 closed birch 98 ready juniper 97 active fable 37 pending harbor 30 ready delta 40 failed delta 113 failed indigo 51 pending cobalt 63 pending
birch 5 closed juniper 98 pending harbor 72 pending ember 13 pending fable 44 ready cobalt 35 ready amber 999 active
birch 5 closed juniper 98 pending harbor 72 pending ember 13 pending fable 44 ready cobalt 35 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048288-p1
Output every line that does not contain the exact string amber.
$0 !~ /amber/
ember 36 closed birch 98 ready juniper 97 active fable 37 pending amber 55 failed harbor 30 ready delta 40 failed delta 113 failed indigo 51 pending cobalt 63 pending amber 999 active
ember 36 closed birch 98 ready juniper 97 active fable 37 pending harbor 30 ready delta 40 failed delta 113 failed indigo 51 pending cobalt 63 pending
birch 5 closed juniper 98 pending harbor 72 pending ember 13 pending fable 44 ready cobalt 35 ready amber 999 active
birch 5 closed juniper 98 pending harbor 72 pending ember 13 pending fable 44 ready cobalt 35 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048288
qwen/qwen3.7-plus
awkweave-0048289
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
hana indigo 32 farah cobalt 4 alice grove 85 jules amber 32 dina delta 27 eli ember 14 kim grove 19 gus birch 67
farah cobalt 4 alice grove 85
chen birch 66 chen fable 37 kim indigo 73 eli ember 20 bruno indigo 16 eli grove 111
chen fable 37 kim indigo 73
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048289-p1
Print lines 2 through 3, inclusive of both endpoints.
NR >= 2 && NR <= 3
hana indigo 32 farah cobalt 4 alice grove 85 jules amber 32 dina delta 27 eli ember 14 kim grove 19 gus birch 67
farah cobalt 4 alice grove 85
chen birch 66 chen fable 37 kim indigo 73 eli ember 20 bruno indigo 16 eli grove 111
chen fable 37 kim indigo 73
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048289
qwen/qwen3.7-plus
awkweave-0048300
For each record, print column 1 and the running sum of column 2, separated by a space.
{s+=$2;print $1,s}
lina 30 fable gus 1 delta farah 21 indigo jules 5 birch chen 28 amber lina 3 grove lina 14 ember
lina 30 gus 31 farah 52 jules 57 chen 85 lina 88 lina 102
eli 29 harbor farah 4 juniper dina 11 cobalt alice 2 grove kim 23 ember hana 6 juniper farah 18 indigo dina 18 juniper
eli 29 farah 33 dina 44 alice 46 kim 69 hana 75 farah 93 dina 111
running_total
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048300-p1
For each record, output column 1 and the cumulative sum of column 2, separated by a space.
{s+=$2;print $1,s}
lina 30 fable gus 1 delta farah 21 indigo jules 5 birch chen 28 amber lina 3 grove lina 14 ember
lina 30 gus 31 farah 52 jules 57 chen 85 lina 88 lina 102
eli 29 harbor farah 4 juniper dina 11 cobalt alice 2 grove kim 23 ember hana 6 juniper farah 18 indigo dina 18 juniper
eli 29 farah 33 dina 44 alice 46 kim 69 hana 75 farah 93 dina 111
running_total
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048300
qwen/qwen3.7-plus
awkweave-0048301
For every row, print field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
kim 14 21 grove chen 11 25 indigo ivan 3 27 delta eli 2 28 delta hana 24 13 birch lina 6 7 grove ivan 2 18 ember hana 10 11 ember chen 26 24 birch chen 18 3 ember
kim 35 chen 36 ivan 30 eli 30 hana 37 lina 13 ivan 20 hana 21 chen 50 chen 21
lina 11 6 fable jules 2 24 juniper kim 26 12 delta alice 24 5 delta kim 19 4 birch dina 25 26 juniper bruno 18 20 juniper alice 17 28 ember
lina 17 jules 26 kim 38 alice 29 kim 23 dina 51 bruno 38 alice 45
computed_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048301-p1
For each row, output field 1 followed by the sum of fields 2 and 3.
{print $1,$2+$3}
kim 14 21 grove chen 11 25 indigo ivan 3 27 delta eli 2 28 delta hana 24 13 birch lina 6 7 grove ivan 2 18 ember hana 10 11 ember chen 26 24 birch chen 18 3 ember
kim 35 chen 36 ivan 30 eli 30 hana 37 lina 13 ivan 20 hana 21 chen 50 chen 21
lina 11 6 fable jules 2 24 juniper kim 26 12 delta alice 24 5 delta kim 19 4 birch dina 25 26 juniper bruno 18 20 juniper alice 17 28 ember
lina 17 jules 26 kim 38 alice 29 kim 23 dina 51 bruno 38 alice 45
computed_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048301
qwen/qwen3.7-plus
awkweave-0048302
Print column 1 and pass when column 2 is at least 20; otherwise print fail.
{print $1,($2>=20?"pass":"fail")}
jules 15 bruno 3 dina 12 ivan 20 dina 14 eli 27 lina 7 bruno 6 lina 4 lina 22
jules fail bruno fail dina fail ivan pass dina fail eli pass lina fail bruno fail lina fail lina pass
kim 2 hana 13 lina 28 bruno 25 alice 15 hana 4
kim fail hana fail lina pass bruno pass alice fail hana fail
conditional_label
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048302-p1
Output column 1 and pass if column 2 is 20 or greater; otherwise, output fail.
{print $1,($2>=20?"pass":"fail")}
jules 15 bruno 3 dina 12 ivan 20 dina 14 eli 27 lina 7 bruno 6 lina 4 lina 22
jules fail bruno fail dina fail ivan pass dina fail eli pass lina fail bruno fail lina fail lina pass
kim 2 hana 13 lina 28 bruno 25 alice 15 hana 4
kim fail hana fail lina pass bruno pass alice fail hana fail
conditional_label
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048302
qwen/qwen3.7-plus
awkweave-0048303
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
chen harbor 25 jules juniper 47 dina harbor 52 farah ember 110 jules delta 27 chen fable 76 bruno grove 25 chen grove 44 gus birch 15 gus birch 83
HARBOR JUNIPER HARBOR EMBER DELTA FABLE GROVE GROVE BIRCH BIRCH
farah grove 55 kim cobalt 66 chen grove 47 eli grove 13 bruno birch 2 dina cobalt 56 lina amber 31 chen amber 112 bruno juniper 106 gus cobalt 88
GROVE COBALT GROVE GROVE BIRCH COBALT AMBER AMBER JUNIPER COBALT
uppercase
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048303-p1
Convert column 2 to uppercase and print only that column.
{print toupper($2)}
chen harbor 25 jules juniper 47 dina harbor 52 farah ember 110 jules delta 27 chen fable 76 bruno grove 25 chen grove 44 gus birch 15 gus birch 83
HARBOR JUNIPER HARBOR EMBER DELTA FABLE GROVE GROVE BIRCH BIRCH
farah grove 55 kim cobalt 66 chen grove 47 eli grove 13 bruno birch 2 dina cobalt 56 lina amber 31 chen amber 112 bruno juniper 106 gus cobalt 88
GROVE COBALT GROVE GROVE BIRCH COBALT AMBER AMBER JUNIPER COBALT
uppercase
1
train
original-grammar-copy
CC-BY-4.0
awkweave-0048303
qwen/qwen3.7-plus
awkweave-0048304
From column 1, print 3 characters starting at character 1.
{print substr($1,1,3)}
fable 113 ember 12 juniper 41 amber 59 ember 32 birch 0 harbor 10 juniper 20 harbor 110
fab emb jun amb emb bir har jun har
grove 46 cobalt 52 cobalt 97 cobalt 1 ember 30 amber 16 cobalt 39 grove 32 birch 100
gro cob cob cob emb amb cob gro bir
substring
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048304-p1
From column 1, extract and print the first 3 characters starting at position 1.
{print substr($1,1,3)}
fable 113 ember 12 juniper 41 amber 59 ember 32 birch 0 harbor 10 juniper 20 harbor 110
fab emb jun amb emb bir har jun har
grove 46 cobalt 52 cobalt 97 cobalt 1 ember 30 amber 16 cobalt 39 grove 32 birch 100
gro cob cob cob emb amb cob gro bir
substring
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048304
qwen/qwen3.7-plus
awkweave-0048305
Replace every underscore in column 1 with a space and print the resulting values.
{gsub(/_/," ",$1);print $1}
cobalt_ember 13 cobalt_amber 19 ember_amber 20 cobalt_cobalt 9 birch_juniper 10 ember_indigo 107 birch_fable 30 amber_juniper 78 delta_grove 30
cobalt ember cobalt amber ember amber cobalt cobalt birch juniper ember indigo birch fable amber juniper delta grove
delta_grove 118 juniper_juniper 39 fable_harbor 60 harbor_harbor 84 harbor_ember 62 ember_grove 94 cobalt_ember 10 fable_ember 103 grove_cobalt 83 fable_grove 21
delta grove juniper juniper fable harbor harbor harbor harbor ember ember grove cobalt ember fable ember grove cobalt fable grove
replace_underscores
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048305-p1
Replace all underscores in column 1 with spaces and print the modified values.
{gsub(/_/," ",$1);print $1}
cobalt_ember 13 cobalt_amber 19 ember_amber 20 cobalt_cobalt 9 birch_juniper 10 ember_indigo 107 birch_fable 30 amber_juniper 78 delta_grove 30
cobalt ember cobalt amber ember amber cobalt cobalt birch juniper ember indigo birch fable amber juniper delta grove
delta_grove 118 juniper_juniper 39 fable_harbor 60 harbor_harbor 84 harbor_ember 62 ember_grove 94 cobalt_ember 10 fable_ember 103 grove_cobalt 83 fable_grove 21
delta grove juniper juniper fable harbor harbor harbor harbor ember ember grove cobalt ember fable ember grove cobalt fable grove
replace_underscores
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048305
qwen/qwen3.7-plus
awkweave-0048306
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)}
kim delta 8 closed lina birch 102 paused alice fable 76 ready bruno cobalt 68 pending gus cobalt 88 pending eli indigo 74 paused hana harbor 27 failed dina birch 29 ready kim fable 56 failed
closed 8 delta kim paused 102 birch lina ready 76 fable alice pending 68 cobalt bruno pending 88 cobalt gus paused 74 indigo eli failed 27 harbor hana ready 29 birch dina failed 56 fable kim
dina harbor 2 pending ivan ember 117 active kim harbor 11 failed kim fable 32 paused alice birch 27 pending farah fable 52 failed hana delta 0 pending
pending 2 harbor dina active 117 ember ivan failed 11 harbor kim paused 32 fable kim pending 27 birch alice failed 52 fable farah pending 0 delta hana
reverse_fields
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048306-p1
Reverse the field order on each line and output all fields.
{for(i=NF;i>=1;i--)printf "%s%s",$i,(i>1?OFS:ORS)}
kim delta 8 closed lina birch 102 paused alice fable 76 ready bruno cobalt 68 pending gus cobalt 88 pending eli indigo 74 paused hana harbor 27 failed dina birch 29 ready kim fable 56 failed
closed 8 delta kim paused 102 birch lina ready 76 fable alice pending 68 cobalt bruno pending 88 cobalt gus paused 74 indigo eli failed 27 harbor hana ready 29 birch dina failed 56 fable kim
dina harbor 2 pending ivan ember 117 active kim harbor 11 failed kim fable 32 paused alice birch 27 pending farah fable 52 failed hana delta 0 pending
pending 2 harbor dina active 117 ember ivan failed 11 harbor kim paused 32 fable kim pending 27 birch alice failed 52 fable farah pending 0 delta hana
reverse_fields
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048306
qwen/qwen3.7-plus
awkweave-0048307
Print the number of whitespace-separated fields on each line.
{print NF}
kim cobalt 63 paused dina grove 91 pending farah cobalt 81 pending kim amber 88 failed eli juniper 115 paused chen indigo 80 closed
4 4 4 4 4 4
farah indigo 109 paused gus birch 94 paused eli juniper 25 failed gus juniper 120 failed jules amber 8 ready gus juniper 13 ready alice indigo 85 pending lina harbor 55 pending farah ember 39 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048307-p1
Output the count of whitespace-delimited fields for every line.
{print NF}
kim cobalt 63 paused dina grove 91 pending farah cobalt 81 pending kim amber 88 failed eli juniper 115 paused chen indigo 80 closed
4 4 4 4 4 4
farah indigo 109 paused gus birch 94 paused eli juniper 25 failed gus juniper 120 failed jules amber 8 ready gus juniper 13 ready alice indigo 85 pending lina harbor 55 pending farah ember 39 closed
4 4 4 4 4 4 4 4 4
field_count
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048307
qwen/qwen3.7-plus
awkweave-0048308
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]]}
bruno beta 44 chen delta 1 jules delta 3 farah beta 78 eli delta 41 alice beta 85
beta 3 delta 3
gus beta 109 dina alpha 14 bruno alpha 115 kim beta 77 jules alpha 27 chen delta 28 dina alpha 84 gus gamma 26
beta 2 alpha 4 delta 1 gamma 1
count_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048308-p1
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]]}
bruno beta 44 chen delta 1 jules delta 3 farah beta 78 eli delta 41 alice beta 85
beta 3 delta 3
gus beta 109 dina alpha 14 bruno alpha 115 kim beta 77 jules alpha 27 chen delta 28 dina alpha 84 gus gamma 26
beta 2 alpha 4 delta 1 gamma 1
count_by_key
2
train
original-grammar-copy
CC-BY-4.0
awkweave-0048308
qwen/qwen3.7-plus
awkweave-0048309
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 delta 19 jules beta 7 eli alpha 1 dina alpha 25 jules alpha 24 chen gamma 12
delta 19 beta 7 alpha 50 gamma 12
gus delta 25 gus delta 11 kim delta 23 ivan alpha 13 alice beta 30 ivan beta 9 hana beta 1 farah gamma 7 jules gamma 14 dina delta 25
delta 84 alpha 13 beta 40 gamma 21
sum_by_key
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048309-p1
Calculate the sum of column 3 values grouped by column 2 categories, displaying the results in the order groups first appear.
{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}
eli delta 19 jules beta 7 eli alpha 1 dina alpha 25 jules alpha 24 chen gamma 12
delta 19 beta 7 alpha 50 gamma 12
gus delta 25 gus delta 11 kim delta 23 ivan alpha 13 alice beta 30 ivan beta 9 hana beta 1 farah gamma 7 jules gamma 14 dina delta 25
delta 84 alpha 13 beta 40 gamma 21
sum_by_key
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048309
qwen/qwen3.7-plus
awkweave-0048310
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]]}
delta birch 94 delta indigo 89 gamma harbor 91 beta amber 48 gamma harbor 0 alpha amber 21 alpha indigo 90
delta 2 gamma 2 alpha 2
gamma cobalt 73 alpha cobalt 118 gamma harbor 110 beta harbor 3 alpha delta 40 gamma amber 104 alpha harbor 81
gamma 3 alpha 3
duplicates_only
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048310-p1
List each duplicate value from column 1 with its frequency, sorted by first appearance.
{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]]}
delta birch 94 delta indigo 89 gamma harbor 91 beta amber 48 gamma harbor 0 alpha amber 21 alpha indigo 90
delta 2 gamma 2 alpha 2
gamma cobalt 73 alpha cobalt 118 gamma harbor 110 beta harbor 3 alpha delta 40 gamma amber 104 alpha harbor 81
gamma 3 alpha 3
duplicates_only
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048310
qwen/qwen3.7-plus
awkweave-0048311
The first row is a header. Print the score column for every data row.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
state score record_id region r001 lina 20 failed r002 ivan 15 active r003 lina 28 pending r004 dina 19 failed r005 kim 4 failed r006 hana 24 paused r007 lina 6 ready r008 ivan 15 pending r009 ivan 10 pending
lina ivan lina dina kim hana lina ivan ivan
state score record_id region r001 kim 23 pending r002 hana 27 closed r003 kim 10 paused r004 alice 27 pending r005 eli 26 failed r006 hana 26 paused r007 hana 11 failed r008 gus 20 pending r009 alice 6 pending r010 eli 4 pending
kim hana kim alice eli hana hana gus alice eli
header_projection
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048311-p1
Skip the header row and output the score column for all remaining data rows.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h["score"]}
state score record_id region r001 lina 20 failed r002 ivan 15 active r003 lina 28 pending r004 dina 19 failed r005 kim 4 failed r006 hana 24 paused r007 lina 6 ready r008 ivan 15 pending r009 ivan 10 pending
lina ivan lina dina kim hana lina ivan ivan
state score record_id region r001 kim 23 pending r002 hana 27 closed r003 kim 10 paused r004 alice 27 pending r005 eli 26 failed r006 hana 26 paused r007 hana 11 failed r008 gus 20 pending r009 alice 6 pending r010 eli 4 pending
kim hana kim alice eli hana hana gus alice eli
header_projection
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048311
qwen/qwen3.7-plus
awkweave-0048312
The first row is a header. Print display_name for data rows whose score is greater than 20.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>20{print $h["display_name"]}
record_id display_name score state r001 gus 21 ready r002 gus 21 closed r003 alice 22 failed r004 kim 15 closed r005 kim 8 pending r006 ivan 28 pending r007 eli 29 ready r008 bruno 6 ready r009 gus 26 pending
gus gus alice ivan eli gus
record_id display_name score state r001 jules 14 paused r002 kim 5 paused r003 gus 27 pending r004 bruno 15 paused r005 bruno 13 ready r006 gus 26 closed r007 jules 16 ready r008 bruno 14 ready
gus gus
header_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048312-p1
Ignoring the header, print the display_name for any data row where the score exceeds 20.
NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h["score"]>20{print $h["display_name"]}
record_id display_name score state r001 gus 21 ready r002 gus 21 closed r003 alice 22 failed r004 kim 15 closed r005 kim 8 pending r006 ivan 28 pending r007 eli 29 ready r008 bruno 6 ready r009 gus 26 pending
gus gus alice ivan eli gus
record_id display_name score state r001 jules 14 paused r002 kim 5 paused r003 gus 27 pending r004 bruno 15 paused r005 bruno 13 ready r006 gus 26 closed r007 jules 16 ready r008 bruno 14 ready
gus gus
header_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048312
qwen/qwen3.7-plus
awkweave-0048313
The input is tab-separated. Print column 3 from every record.
BEGIN{FS=OFS="\t"}{print $3}
lina 21 closed dina 29 failed eli 22 paused alice 25 paused eli 17 pending kim 17 active
closed failed paused paused pending active
lina 9 active kim 15 closed ivan 3 pending farah 26 closed kim 22 active dina 10 active bruno 13 failed chen 25 pending kim 23 ready eli 6 active
active closed pending closed active active failed pending ready active
tsv_projection
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048313-p1
Given tab-separated input, extract and print the third column from every record.
BEGIN{FS=OFS="\t"}{print $3}
lina 21 closed dina 29 failed eli 22 paused alice 25 paused eli 17 pending kim 17 active
closed failed paused paused pending active
lina 9 active kim 15 closed ivan 3 pending farah 26 closed kim 22 active dina 10 active bruno 13 failed chen 25 pending kim 23 ready eli 6 active
active closed pending closed active active failed pending ready active
tsv_projection
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048313
qwen/qwen3.7-plus
awkweave-0048314
The input is simple comma-separated data with no quoted commas. Print column 1 when column 2 exceeds 16.
BEGIN{FS=OFS=","}$2>16{print $1}
dina,10,active dina,25,ready chen,14,failed chen,2,failed farah,11,closed lina,2,paused chen,6,paused jules,14,active
dina
farah,14,failed kim,5,active hana,24,pending jules,19,active dina,13,pending ivan,15,failed alice,8,pending
hana jules
csv_filter
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048314-p1
For simple comma-separated input without quoted commas, print the first column if the second column value is greater than 16.
BEGIN{FS=OFS=","}$2>16{print $1}
dina,10,active dina,25,ready chen,14,failed chen,2,failed farah,11,closed lina,2,paused chen,6,paused jules,14,active
dina
farah,14,failed kim,5,active hana,24,pending jules,19,active dina,13,pending ivan,15,failed alice,8,pending
hana jules
csv_filter
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048314
qwen/qwen3.7-plus
awkweave-0048315
Trim leading and trailing whitespace and collapse internal whitespace to single spaces.
{$1=$1;print}
jules delta 104 farah harbor 28 jules cobalt 85 bruno harbor 42 ivan grove 105 kim amber 80 jules juniper 103 lina harbor 109
jules delta 104 farah harbor 28 jules cobalt 85 bruno harbor 42 ivan grove 105 kim amber 80 jules juniper 103 lina harbor 109
lina fable 51 farah juniper 66 gus fable 48 lina indigo 85 jules indigo 27 eli juniper 38 jules grove 114
lina fable 51 farah juniper 66 gus fable 48 lina indigo 85 jules indigo 27 eli juniper 38 jules grove 114
normalize_whitespace
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048315-p1
Remove leading and trailing whitespace and replace internal whitespace sequences with a single space.
{$1=$1;print}
jules delta 104 farah harbor 28 jules cobalt 85 bruno harbor 42 ivan grove 105 kim amber 80 jules juniper 103 lina harbor 109
jules delta 104 farah harbor 28 jules cobalt 85 bruno harbor 42 ivan grove 105 kim amber 80 jules juniper 103 lina harbor 109
lina fable 51 farah juniper 66 gus fable 48 lina indigo 85 jules indigo 27 eli juniper 38 jules grove 114
lina fable 51 farah juniper 66 gus fable 48 lina indigo 85 jules indigo 27 eli juniper 38 jules grove 114
normalize_whitespace
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048315
qwen/qwen3.7-plus
awkweave-0048316
Find and print the longest input line; if tied, keep the earliest.
{if(length($0)>length(best))best=$0}END{print best}
hana harbor 91 failed eli delta 54 pending farah ember 0 active chen birch 16 active hana juniper 10 closed kim harbor 93 active chen ember 114 failed ivan indigo 2 paused gus fable 65 ready
hana juniper 10 closed
alice ember 85 pending eli ember 113 ready dina amber 80 ready bruno grove 78 closed dina ember 23 failed eli delta 23 pending chen birch 59 failed bruno ember 117 paused
alice ember 85 pending
longest_line
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048316-p1
Identify and print the longest line from the input; if multiple lines share the maximum length, select the first one.
{if(length($0)>length(best))best=$0}END{print best}
hana harbor 91 failed eli delta 54 pending farah ember 0 active chen birch 16 active hana juniper 10 closed kim harbor 93 active chen ember 114 failed ivan indigo 2 paused gus fable 65 ready
hana juniper 10 closed
alice ember 85 pending eli ember 113 ready dina amber 80 ready bruno grove 78 closed dina ember 23 failed eli delta 23 pending chen birch 59 failed bruno ember 117 paused
alice ember 85 pending
longest_line
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048316
qwen/qwen3.7-plus
awkweave-0048317
Print every 2nd line starting at line 1 (then line 3, and so on).
NR%2==1
farah 89 gus 82 ivan 52 dina 53 alice 58 lina 36 kim 103 kim 0 bruno 118 farah 77
farah 89 ivan 52 alice 58 kim 103 bruno 118
eli 120 dina 104 bruno 61 dina 47 jules 5 alice 67 ivan 79
eli 120 bruno 61 jules 5 ivan 79
every_nth
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048317-p1
Print every other line, starting with line 1 (i.e., lines 1, 3, 5, etc.).
NR%2==1
farah 89 gus 82 ivan 52 dina 53 alice 58 lina 36 kim 103 kim 0 bruno 118 farah 77
farah 89 ivan 52 alice 58 kim 103 bruno 118
eli 120 dina 104 bruno 61 dina 47 jules 5 alice 67 ivan 79
eli 120 bruno 61 jules 5 ivan 79
every_nth
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048317
qwen/qwen3.7-plus
awkweave-0048318
Count the distinct values in column 2 and print only the count.
{if(!seen[$2]++)n++}END{print n+0}
beta delta 99 gamma harbor 95 delta grove 25 alpha birch 87 beta indigo 120 delta grove 71 delta indigo 83
5
beta cobalt 88 gamma birch 3 gamma juniper 98 delta fable 0 alpha fable 26 beta ember 39 alpha juniper 94
5
distinct_count
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048318-p1
Output the total number of unique entries found in the second column.
{if(!seen[$2]++)n++}END{print n+0}
beta delta 99 gamma harbor 95 delta grove 25 alpha birch 87 beta indigo 120 delta grove 71 delta indigo 83
5
beta cobalt 88 gamma birch 3 gamma juniper 98 delta fable 0 alpha fable 26 beta ember 39 alpha juniper 94
5
distinct_count
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048318
qwen/qwen3.7-plus
awkweave-0048319
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}
kim 17 0 jules 24 19 ivan 29 20 gus 5 1 dina 11 21 alice 8 12
jules 1.26 ivan 1.45 gus 5.00 dina 0.52 alice 0.67
gus 22 0 ivan 12 21 gus 28 26 kim 9 28 kim 30 16 jules 24 10 jules 21 29
ivan 0.57 gus 1.08 kim 0.32 kim 1.88 jules 2.40 jules 0.72
ratio
2
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048319-p1
For each row where the third column is not zero, display the first column and the result of dividing the second column by the third, rounded to two decimal places.
{if($3!=0)printf "%s %.2f\n",$1,$2/$3}
kim 17 0 jules 24 19 ivan 29 20 gus 5 1 dina 11 21 alice 8 12
jules 1.26 ivan 1.45 gus 5.00 dina 0.52 alice 0.67
gus 22 0 ivan 12 21 gus 28 26 kim 9 28 kim 30 16 jules 24 10 jules 21 29
ivan 0.57 gus 1.08 kim 0.32 kim 1.88 jules 2.40 jules 0.72
ratio
2
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048319
qwen/qwen3.7-plus
awkweave-0048320
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]}
chen indigo 4 hana indigo 12 gus birch 16 chen cobalt 9 hana ember 14 eli indigo 24
eli indigo 24 gus birch 16 hana ember 14
farah grove 30 eli cobalt 29 lina juniper 17 kim indigo 8 ivan birch 15 alice fable 4 chen fable 1
farah grove 30 eli cobalt 29 lina juniper 17
top_three
3
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048320-p1
Display the full records corresponding to the top three highest numeric values in column 3, sorted in descending order, while maintaining 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]}
chen indigo 4 hana indigo 12 gus birch 16 chen cobalt 9 hana ember 14 eli indigo 24
eli indigo 24 gus birch 16 hana ember 14
farah grove 30 eli cobalt 29 lina juniper 17 kim indigo 8 ivan birch 15 alice fable 4 chen fable 1
farah grove 30 eli cobalt 29 lina juniper 17
top_three
3
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048320
qwen/qwen3.7-plus
awkweave-0048321
Print column 4 followed by column 2 for every record.
{print $4, $2}
22 bruno 97 104 56 66 jules 45 60 102 95 chen 51 0 59 68 dina 37 93 16 50 dina 5 25 81 29 farah 6 41 76 87 ivan 32 19 37
104 bruno 60 jules 0 chen 93 dina 25 dina 41 farah 19 ivan
12 eli 35 19 10 20 lina 87 61 59 12 lina 56 12 70 117 kim 67 8 96 59 ivan 23 92 25 98 gus 96 10 106 9 bruno 30 33 16 29 jules 94 83 58 99 hana 56 19 7
19 eli 61 lina 12 lina 8 kim 92 ivan 10 gus 33 bruno 83 jules 19 hana
project_fields
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048321-p1
Output the fourth column followed by the second column for every record.
{print $4, $2}
22 bruno 97 104 56 66 jules 45 60 102 95 chen 51 0 59 68 dina 37 93 16 50 dina 5 25 81 29 farah 6 41 76 87 ivan 32 19 37
104 bruno 60 jules 0 chen 93 dina 25 dina 41 farah 19 ivan
12 eli 35 19 10 20 lina 87 61 59 12 lina 56 12 70 117 kim 67 8 96 59 ivan 23 92 25 98 gus 96 10 106 9 bruno 30 33 16 29 jules 94 83 58 99 hana 56 19 7
19 eli 61 lina 12 lina 8 kim 92 ivan 10 gus 33 bruno 83 jules 19 hana
project_fields
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048321
qwen/qwen3.7-plus
awkweave-0048322
Print the last field of every input line.
{print $NF}
eli ready alice 58 birch eli pending dina 40 cobalt jules ready lina 20 cobalt farah failed jules 0 grove alice failed bruno 0 grove chen ready chen 96 amber gus closed farah 22 indigo dina paused dina 65 cobalt hana pending kim 8 cobalt
birch cobalt cobalt grove grove amber indigo cobalt cobalt
gus failed jules 36 amber chen pending gus 100 birch lina ready kim 85 grove lina pending chen 105 indigo jules ready gus 36 grove eli paused gus 71 fable lina ready jules 26 fable bruno ready hana 22 amber hana ready bruno 29 ember alice failed farah 29 fable
amber birch grove indigo grove fable fable amber ember fable
last_field
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048322-p1
Print the final field from each input line.
{print $NF}
eli ready alice 58 birch eli pending dina 40 cobalt jules ready lina 20 cobalt farah failed jules 0 grove alice failed bruno 0 grove chen ready chen 96 amber gus closed farah 22 indigo dina paused dina 65 cobalt hana pending kim 8 cobalt
birch cobalt cobalt grove grove amber indigo cobalt cobalt
gus failed jules 36 amber chen pending gus 100 birch lina ready kim 85 grove lina pending chen 105 indigo jules ready gus 36 grove eli paused gus 71 fable lina ready jules 26 fable bruno ready hana 22 amber hana ready bruno 29 ember alice failed farah 29 fable
amber birch grove indigo grove fable fable amber ember fable
last_field
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048322
qwen/qwen3.7-plus
awkweave-0048323
Print the complete records where column 2 is less than 33.
$2 < 33
harbor 28 bruno harbor 90 alice fable 114 bruno cobalt 80 eli cobalt 18 ivan juniper 32 farah
harbor 28 bruno cobalt 18 ivan juniper 32 farah
amber 35 jules juniper 68 lina ember 56 lina juniper 117 hana birch 102 chen delta 18 hana amber 56 eli delta 61 dina juniper 14 kim
delta 18 hana juniper 14 kim
numeric_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048323-p1
Display the full records where the value in the second column is strictly less than 33.
$2 < 33
harbor 28 bruno harbor 90 alice fable 114 bruno cobalt 80 eli cobalt 18 ivan juniper 32 farah
harbor 28 bruno cobalt 18 ivan juniper 32 farah
amber 35 jules juniper 68 lina ember 56 lina juniper 117 hana birch 102 chen delta 18 hana amber 56 eli delta 61 dina juniper 14 kim
delta 18 hana juniper 14 kim
numeric_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048323
qwen/qwen3.7-plus
awkweave-0048324
Show whole lines whose 2nd field is between 10 and 22, inclusive.
$2 >= 10 && $2 <= 22
failed 23 ready alice paused 29 closed eli ready 30 closed lina failed 20 closed ivan pending 24 active bruno pending 10 paused chen
failed 20 closed ivan pending 10 paused chen
active 28 paused bruno active 12 active dina closed 13 active lina ready 26 pending kim paused 21 ready ivan failed 22 pending lina failed 16 ready farah paused 14 active eli failed 19 closed alice
active 12 active dina closed 13 active lina paused 21 ready ivan failed 22 pending lina failed 16 ready farah paused 14 active eli failed 19 closed alice
numeric_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048324-p1
Show entire lines where the second field falls within the inclusive range of 10 to 22.
$2 >= 10 && $2 <= 22
failed 23 ready alice paused 29 closed eli ready 30 closed lina failed 20 closed ivan pending 24 active bruno pending 10 paused chen
failed 20 closed ivan pending 10 paused chen
active 28 paused bruno active 12 active dina closed 13 active lina ready 26 pending kim paused 21 ready ivan failed 22 pending lina failed 16 ready farah paused 14 active eli failed 19 closed alice
active 12 active dina closed 13 active lina paused 21 ready ivan failed 22 pending lina failed 16 ready farah paused 14 active eli failed 19 closed alice
numeric_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048324
qwen/qwen3.7-plus
awkweave-0048325
Print column 1 only for rows where column 4 is exactly closed.
$4 == "closed"{print $1}
lina 68 grove active jules 39 delta closed chen 51 juniper closed hana 47 grove closed ivan 98 harbor closed jules 51 indigo pending jules 83 grove closed chen 18 birch ready
jules chen hana ivan jules
eli 109 fable pending eli 110 birch paused dina 18 cobalt closed farah 16 amber active bruno 4 delta paused lina 86 delta paused chen 66 ember pending farah 112 cobalt active alice 98 juniper paused jules 64 birch ready
dina
string_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048325-p1
Output only the first column for rows where the fourth column contains exactly the text 'closed'.
$4 == "closed"{print $1}
lina 68 grove active jules 39 delta closed chen 51 juniper closed hana 47 grove closed ivan 98 harbor closed jules 51 indigo pending jules 83 grove closed chen 18 birch ready
jules chen hana ivan jules
eli 109 fable pending eli 110 birch paused dina 18 cobalt closed farah 16 amber active bruno 4 delta paused lina 86 delta paused chen 66 ember pending farah 112 cobalt active alice 98 juniper paused jules 64 birch ready
dina
string_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048325
qwen/qwen3.7-plus
awkweave-0048326
Print all fields from lines where field 1 begins with ERROR.
$1 ~ /^ERROR/
ERROR delta 19 WARN birch 114 DEBUG birch 65 INFO birch 80 ERROR delta 2 WARN harbor 40 DEBUG fable 38 ERROR indigo 23 INFO ember 83 DEBUG harbor 12
ERROR delta 19 ERROR delta 2 ERROR indigo 23
INFO fable 96 WARN cobalt 32 INFO grove 75 ERROR delta 75 INFO indigo 112 ERROR harbor 49 ERROR grove 55 DEBUG ember 70 WARN indigo 95 ERROR harbor 67
ERROR delta 75 ERROR harbor 49 ERROR grove 55 ERROR harbor 67
regex_filter
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048326-p1
Print all fields from lines where the first field starts with 'ERROR'.
$1 ~ /^ERROR/
ERROR delta 19 WARN birch 114 DEBUG birch 65 INFO birch 80 ERROR delta 2 WARN harbor 40 DEBUG fable 38 ERROR indigo 23 INFO ember 83 DEBUG harbor 12
ERROR delta 19 ERROR delta 2 ERROR indigo 23
INFO fable 96 WARN cobalt 32 INFO grove 75 ERROR delta 75 INFO indigo 112 ERROR harbor 49 ERROR grove 55 DEBUG ember 70 WARN indigo 95 ERROR harbor 67
ERROR delta 75 ERROR harbor 49 ERROR grove 55 ERROR harbor 67
regex_filter
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048326
qwen/qwen3.7-plus
awkweave-0048327
Print every line except those containing the exact text juniper.
$0 !~ /juniper/
harbor 113 ready cobalt 77 failed birch 17 failed cobalt 40 active ember 13 pending indigo 43 pending cobalt 18 paused grove 110 failed juniper 999 active
harbor 113 ready cobalt 77 failed birch 17 failed cobalt 40 active ember 13 pending indigo 43 pending cobalt 18 paused grove 110 failed
indigo 68 failed birch 95 closed fable 72 active birch 59 pending indigo 110 ready cobalt 14 active indigo 48 paused harbor 104 active ember 54 ready juniper 999 active
indigo 68 failed birch 95 closed fable 72 active birch 59 pending indigo 110 ready cobalt 14 active indigo 48 paused harbor 104 active ember 54 ready
exclude_regex
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048327-p1
Print every line that does not contain the exact string 'juniper'.
$0 !~ /juniper/
harbor 113 ready cobalt 77 failed birch 17 failed cobalt 40 active ember 13 pending indigo 43 pending cobalt 18 paused grove 110 failed juniper 999 active
harbor 113 ready cobalt 77 failed birch 17 failed cobalt 40 active ember 13 pending indigo 43 pending cobalt 18 paused grove 110 failed
indigo 68 failed birch 95 closed fable 72 active birch 59 pending indigo 110 ready cobalt 14 active indigo 48 paused harbor 104 active ember 54 ready juniper 999 active
indigo 68 failed birch 95 closed fable 72 active birch 59 pending indigo 110 ready cobalt 14 active indigo 48 paused harbor 104 active ember 54 ready
exclude_regex
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048327
qwen/qwen3.7-plus
awkweave-0048328
Print lines 2 through 3, including both endpoints.
NR >= 2 && NR <= 3
bruno juniper 89 kim juniper 11 lina grove 24 farah birch 21 dina juniper 91 eli grove 7 hana grove 62 alice grove 100
kim juniper 11 lina grove 24
alice grove 31 eli cobalt 8 chen amber 73 chen cobalt 110 kim delta 33 ivan fable 11 gus delta 18 gus juniper 100
eli cobalt 8 chen amber 73
line_range
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048328-p1
Output lines 2 through 3, inclusive.
NR >= 2 && NR <= 3
bruno juniper 89 kim juniper 11 lina grove 24 farah birch 21 dina juniper 91 eli grove 7 hana grove 62 alice grove 100
kim juniper 11 lina grove 24
alice grove 31 eli cobalt 8 chen amber 73 chen cobalt 110 kim delta 33 ivan fable 11 gus delta 18 gus juniper 100
eli cobalt 8 chen amber 73
line_range
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048328
qwen/qwen3.7-plus
awkweave-0048329
Output only the first 2 records.
NR <= 2
kim 8 amber eli 93 harbor kim 16 cobalt jules 120 cobalt hana 49 ember ivan 68 birch
kim 8 amber eli 93 harbor
kim 70 harbor chen 116 harbor kim 54 delta lina 69 ember lina 110 ember alice 48 indigo lina 78 cobalt
kim 70 harbor chen 116 harbor
first_n
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048329-p1
Display only the first 2 records.
NR <= 2
kim 8 amber eli 93 harbor kim 16 cobalt jules 120 cobalt hana 49 ember ivan 68 birch
kim 8 amber eli 93 harbor
kim 70 harbor chen 116 harbor kim 54 delta lina 69 ember lina 110 ember alice 48 indigo lina 78 cobalt
kim 70 harbor chen 116 harbor
first_n
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048329
qwen/qwen3.7-plus
awkweave-0048330
Skip the first line and print every remaining line unchanged.
NR > 1
bruno 21 amber kim 75 grove hana 85 harbor kim 79 birch eli 58 grove farah 92 cobalt jules 20 amber ivan 115 birch
kim 75 grove hana 85 harbor kim 79 birch eli 58 grove farah 92 cobalt jules 20 amber ivan 115 birch
hana 28 indigo gus 106 ember alice 13 amber hana 2 cobalt dina 17 indigo lina 35 grove eli 21 amber
gus 106 ember alice 13 amber hana 2 cobalt dina 17 indigo lina 35 grove eli 21 amber
skip_header
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048330-p1
Omit the initial line and output all subsequent lines exactly as they appear.
NR > 1
bruno 21 amber kim 75 grove hana 85 harbor kim 79 birch eli 58 grove farah 92 cobalt jules 20 amber ivan 115 birch
kim 75 grove hana 85 harbor kim 79 birch eli 58 grove farah 92 cobalt jules 20 amber ivan 115 birch
hana 28 indigo gus 106 ember alice 13 amber hana 2 cobalt dina 17 indigo lina 35 grove eli 21 amber
gus 106 ember alice 13 amber hana 2 cobalt dina 17 indigo lina 35 grove eli 21 amber
skip_header
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048330
qwen/qwen3.7-plus
awkweave-0048331
Count how many records have active in column 2. Print 0 if there are none.
$2 == "active"{n++}END{print n+0}
hana failed 7 alice pending 25 chen ready 103 ivan paused 33 eli active 70 lina paused 16 eli closed 79
1
gus failed 96 ivan closed 1 jules failed 104 kim active 60 alice closed 26 alice closed 10 hana active 17 lina ready 27 kim ready 69
2
count_matches
1
train
original-grammar
CC-BY-4.0
null
null
awkweave-0048331-p1
Tally the entries where the second column contains 'active', outputting 0 if no matches are found.
$2 == "active"{n++}END{print n+0}
hana failed 7 alice pending 25 chen ready 103 ivan paused 33 eli active 70 lina paused 16 eli closed 79
1
gus failed 96 ivan closed 1 jules failed 104 kim active 60 alice closed 26 alice closed 10 hana active 17 lina ready 27 kim ready 69
2
count_matches
1
train
openrouter-paraphrase
CC-BY-4.0
awkweave-0048331
qwen/qwen3.7-plus
awkweave-0048332
Calculate and print the sum of the integers in column 1.
{s+=$1}END{print s+0}
3 fable lina 23 fable alice 5 harbor ivan 9 fable chen 10 amber chen 2 indigo bruno
52
25 juniper hana 17 cobalt ivan 8 grove eli 7 birch jules 1 grove chen 2 indigo alice 28 grove alice
88
sum_field
1
train
original-grammar
CC-BY-4.0
null
null