-
Notifications
You must be signed in to change notification settings - Fork 698
Expand file tree
/
Copy pathstatistics_templates.txt
More file actions
86 lines (86 loc) · 2.33 KB
/
Copy pathstatistics_templates.txt
File metadata and controls
86 lines (86 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[
{
"template": "What is the <variable> in the <place>",
"extract": {
"score": "score",
"variable": "variable being asked for",
"place": "name of place",
"chartTitle": "The title of the chart"
},
"action": {
"type": "highlight",
"params": ["place", "variable"]
}
},
{
"template": "Which <placeType> in <place> has the highest <variable>",
"extract": {
"score": "score",
"place": "name of containing place",
"variable": "variable being asked for",
"placeType": "type of place (like county, etc.)",
"chartTitle": "The title of the chart"
},
"action": {
"type": "ranking",
"params": ["place", "placeType", "variable"]
}
},
{
"template": "What is the correlation between <variable1> and <variable2> across <placeType> in <place>",
"extract": {
"score": "score",
"variable1": "first variable",
"variable2": "second variable",
"place": "containing place",
"placeType": "place type like US counties",
"chartTitle": "The title of the chart"
},
"action": {
"type": "scatter",
"params": ["variable1", "variable2", "placeType"]
}
},
{
"template": "How does <variable> in <place1> compare to <place2>?",
"extract": {
"score": "score",
"place1": "name of place",
"place2": "name of place",
"variable": "variable",
"chartTitle": "The title of the chart"
},
"action": {
"type": "bar",
"params": ["variable", "place1", "place2"]
}
},
{
"template": "Which <placeType> in <place> has the lowest <variable>",
"extract": {
"score": "score",
"place": "name of containing place",
"variable": "variable being asked for",
"placeType": "type of place (like county, etc.)",
"chartTitle": "The title of the chart"
},
"action": {
"type": "ranking",
"params": ["place", "variable"]
}
},
{
"template": "Show me <variable> across <placeType> in <containingPlace>",
"extract": {
"score": "score",
"variable": "variable",
"placeType": "type of place",
"containingPlace": "The containing place, implicit or explicit",
"chartTitle": "The title of the chart"
},
"action": {
"type": "map",
"params": ["variable", "placeType"]
}
}
]