-
Notifications
You must be signed in to change notification settings - Fork 4
/
compile.expected
62 lines (52 loc) · 1.16 KB
/
compile.expected
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
deepdive.schema {"relations" : {"data" : {"columns" : {"x" : {"type" : "int", "index" : 0}, "y" : {"type" : "int", "index" : 1}}}, "P" : {"columns" : {"x" : {"type" : "int", "index" : 0}}, "variable_type" : "boolean"}, "Q" : {"columns" : {"x" : {"type" : "int", "index" : 0}}, "variable_type" : "boolean"}}}
deepdive.schema.variables {
P.dd_label: Boolean
Q.dd_label: Boolean
}
deepdive.extraction.extractors.ext_P {
sql: """
SELECT R0.x AS column_0
FROM data R0
WHERE R0.y = 1
"""
input_relations: [
data
]
style: sql_extractor
output_relation: P
materialize: false
}
deepdive.extraction.extractors.ext_Q {
sql: """
SELECT R0.x AS column_0
FROM data R0
WHERE R0.y = 2
"""
input_relations: [
data
]
style: sql_extractor
output_relation: Q
materialize: false
}
deepdive.inference.factors.inf_imply_P_Q {
weight: """1"""
non_category_weight_cols: [
]
input_query: """
SELECT R0.dd_id AS "P.R0.dd_id"
, R0.x AS "P.R0.x"
, R1.dd_id AS "Q.R1.dd_id"
, R1.x AS "Q.R1.x"
, (1)::float AS feature_value
FROM dd_predicate_P R0
, dd_predicate_Q R1
WHERE R1.x = R0.x
AND true
"""
input_relations: [
P
Q
]
function: """Imply(P.R0.dd_label, Q.R1.dd_label)"""
}