Simple Question (Direct)
Simple Question
Q5213574
P264
Q334453
USER
What is the record label of Dan Glendining ?
(Q5213574,P264,c(Q334453))
action filter_type
action find
entity Q5213574
relation P264
type Q334453
['Q5213574', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q334453 . resource:Q5213574 property:P264 ?x }
Dan Glendining
action filter_type
action find
entity Dan Glendining
relation record label
type division
['Dan Glendining', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:division . resource:Dan_Glendining property:record_label ?x }
[]
division
Q216364
SYSTEM
Epic Records
Q216364
(Q5213574,P264,c(Q334453))
action filter_type
action find
entity Q5213574
relation P264
type Q334453
The record label of Dan Glendining is not [ANSWER]
['Q5213574', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q334453 . resource:Q5213574 property:P264 ?x }
Epic Records
The record label of Dan Glendining is not Epic Records
Epic Records
action filter_type
action find
entity Dan Glendining
relation record label
type division
['Dan Glendining', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:division . resource:Dan_Glendining property:record_label ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q216364
P749
Q334453
USER
What is the parent organization of that one ?
(Q216364,P749,c(Q334453))
action filter_type
action find
entity Q216364
relation P749
type Q334453
['Q216364', 'P749', {'concept': 'Q334453'}]
SELECT DISTINCT ?l WHERE { resource:Q216364 property:P749 ?l . ?l rdf:type ontology:Q334453 }
Epic Records
action filter_type
action find
entity Epic Records
relation parent organization
type division
['Epic Records', 'parent organization', {'concept': 'division'}]
SELECT DISTINCT ?l WHERE { resource:Epic_Records property:parent_organization ?l . ?l rdf:type ontology:division }
[]
division
Q330629
SYSTEM
Sony Music Entertainment
Q330629
(Q216364,P749,c(Q334453))
action filter_type
action find
entity Q216364
relation P749
type Q334453
The parent organization of that one is the [ANSWER]
['Q216364', 'P749', {'concept': 'Q334453'}]
SELECT DISTINCT ?l WHERE { resource:Q216364 property:P749 ?l . ?l rdf:type ontology:Q334453 }
Sony Music Entertainment
The parent organization of that one is the Sony Music Entertainment
Sony Music Entertainment
action filter_type
action find
entity Epic Records
relation parent organization
type division
['Epic Records', 'parent organization', {'concept': 'division'}]
SELECT DISTINCT ?l WHERE { resource:Epic_Records property:parent_organization ?l . ?l rdf:type ontology:division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q330629
P127
Q43229
USER
Which organization belongs to that division ?
(c(Q43229),P127,Q330629)
action filter_type
action find_reverse
entity Q330629
relation P127
type Q43229
[{'concept': 'Q43229'}, 'P127', 'Q330629']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q330629 . ?g rdf:type ontology:Q43229 }
Sony Music Entertainment
action filter_type
action find_reverse
entity Sony Music Entertainment
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Sony Music Entertainment']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Sony_Music_Entertainment . ?g rdf:type ontology:organization }
[]
organization
Q7276878
SYSTEM
RKA Records
Q7276878
(c(Q43229),P127,Q330629)
action filter_type
action find_reverse
entity Q330629
relation P127
type Q43229
[ANSWER] belongs to that division
[{'concept': 'Q43229'}, 'P127', 'Q330629']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q330629 . ?g rdf:type ontology:Q43229 }
RKA Records
RKA Records belongs to that division
RKA Records
action filter_type
action find_reverse
entity Sony Music Entertainment
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Sony Music Entertainment']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Sony_Music_Entertainment . ?g rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q330629
P740
Q56061
USER
Which administrative territory is the location of formation of that division ?
(Q7276878,P740,c(Q56061))
action filter_type
action find
entity Q330629
relation P740
type Q56061
['Q7276878', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q330629 property:P740 ?y . ?y rdf:type ontology:Q56061 }
Sony Music Entertainment
action filter_type
action find
entity Sony Music Entertainment
relation location of formation
type administrative territorial entity
['RKA Records', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Sony_Music_Entertainment property:location_of_formation ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q7276878,P740,c(Q56061))
action filter_type
action find
entity Q330629
relation P740
type Q56061
[ANSWER] is the location of formation of that division
['Q7276878', 'P740', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q330629 property:P740 ?y . ?y rdf:type ontology:Q56061 }
New York City
New York City is the location of formation of that division
New York City
action filter_type
action find
entity Sony Music Entertainment
relation location of formation
type administrative territorial entity
['RKA Records', 'location of formation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Sony_Music_Entertainment property:location_of_formation ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q60 Q666931
P6
Q502895
USER
Does that administrative territory serve as the head of government for John Lindsay ?
(Q60,P6,Q666931)
action is_in
entity Q666931
action find
entity Q60
relation P6
['Q60', 'P6', 'Q666931']
ASK WHERE { resource:Q60 property:P6 resource:Q666931 }
New York City John Lindsay
action is_in
entity John Lindsay
action find
entity New York City
relation head of government
['New York City', 'head of government', 'John Lindsay']
ASK WHERE { resource:New_York_City property:head_of_government resource:John_Lindsay }
[]
common name
SYSTEM
YES
(Q60,P6,Q666931)
action is_in
entity Q666931
action find
entity Q60
relation P6
[ANSWER]
['Q60', 'P6', 'Q666931']
ASK WHERE { resource:Q60 property:P6 resource:Q666931 }
Yes
action is_in
entity John Lindsay
action find
entity New York City
relation head of government
['New York City', 'head of government', 'John Lindsay']
ASK WHERE { resource:New_York_City property:head_of_government resource:John_Lindsay }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q216364 Q60 Q7115206
P159
Q56061
USER
Does Epic Records have its head office location at New York City and Oxford ?
(Q216364,P159,Q60) (Q216364,P159,Q7115206)
action is_in
entity Q216364
action intersection
action find_reverse
entity Q60
relation P159
action find_reverse
entity Q7115206
relation P159
['Q216364', 'P159', 'Q60'] ['Q216364', 'P159', 'Q7115206']
ASK WHERE { resource:Q216364 property:P159 resource:Q60 . resource:Q216364 property:P159 resource:Q7115206 }
Epic Records New York City Oxford
action is_in
entity Epic Records
action intersection
action find_reverse
entity New York City
relation headquarters location
action find_reverse
entity Oxford
relation headquarters location
['Epic Records', 'headquarters location', 'New York City'] ['Epic Records', 'headquarters location', 'Oxford']
ASK WHERE { resource:Epic_Records property:headquarters_location resource:New_York_City . resource:Epic_Records property:headquarters_location resource:Oxford }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q216364,P159,Q60) (Q216364,P159,Q7115206)
action is_in
entity Q216364
action intersection
action find_reverse
entity Q60
relation P159
action find_reverse
entity Q7115206
relation P159
[ANSWER]
['Q216364', 'P159', 'Q60'] ['Q216364', 'P159', 'Q7115206']
ASK WHERE { resource:Q216364 property:P159 resource:Q60 . resource:Q216364 property:P159 resource:Q7115206 }
YES and NO respectively
action is_in
entity Epic Records
action intersection
action find_reverse
entity New York City
relation headquarters location
action find_reverse
entity Oxford
relation headquarters location
['Epic Records', 'headquarters location', 'New York City'] ['Epic Records', 'headquarters location', 'Oxford']
ASK WHERE { resource:Epic_Records property:headquarters_location resource:New_York_City . resource:Epic_Records property:headquarters_location resource:Oxford }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11531918
P21
Q290
USER
Which sex does Hiroaki Matsuzawa possess ?
(Q11531918,P21,c(Q290))
action filter_type
action find
entity Q11531918
relation P21
type Q290
['Q11531918', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q11531918 property:P21 ?d . ?d rdf:type ontology:Q290 }
Hiroaki Matsuzawa
action filter_type
action find
entity Hiroaki Matsuzawa
relation gender
type sex
['Hiroaki Matsuzawa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Hiroaki_Matsuzawa property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11531918,P21,c(Q290))
action filter_type
action find
entity Q11531918
relation P21
type Q290
Hiroaki Matsuzawa possesses un [ANSWER]
['Q11531918', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q11531918 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
Hiroaki Matsuzawa possesses un male
male
action filter_type
action find
entity Hiroaki Matsuzawa
relation gender
type sex
['Hiroaki Matsuzawa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Hiroaki_Matsuzawa property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11531918
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q11531918
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q11531918 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Hiroaki Matsuzawa
action filter_type
action find
entity Hiroaki Matsuzawa
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Hiroaki_Matsuzawa property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q11531918
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q11531918 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Japan
That person belongs to the Japan
Japan
action filter_type
action find
entity Hiroaki Matsuzawa
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Hiroaki_Matsuzawa property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15416743 Q11531918
P509
Q2057971
USER
Which health problems lead to the death of Hiroaki Matsuzawa or Wayne Harrison ?
OR((Q11531918,P509,c(Q2057971)), (Q15416743,P509,c(Q2057971)))
action filter_type
action union
action find
entity Q11531918
relation P509
action find
entity Q15416743
relation P509
type Q2057971
{'OR': [['Q11531918', 'P509', {'concept': 'Q2057971'}], ['Q15416743', 'P509', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?c WHERE { { ?p property:P509 ?c . VALUES ( ?p ) { ( resource:Q11531918 ) ( resource:Q15416743 ) } } . ?c rdf:type ontology:Q2057971 }
Wayne Harrison Hiroaki Matsuzawa
action filter_type
action union
action find
entity Hiroaki Matsuzawa
relation cause of death
action find
entity Wayne Harrison
relation cause of death
type health problem
{'OR': [['Hiroaki Matsuzawa', 'cause of death', {'concept': 'health problem'}], ['Wayne Harrison', 'cause of death', {'concept': 'health problem'}]]}
SELECT DISTINCT ?c WHERE { { ?p property:cause_of_death ?c . VALUES ( ?p ) { ( resource:Hiroaki_Matsuzawa ) ( resource:Wayne_Harrison ) } } . ?c rdf:type ontology:health_problem }
[]
health problem
Q12152 Q212961
SYSTEM
myocardial infarction, pancreatic cancer
Q12152 Q212961
OR((Q11531918,P509,c(Q2057971)), (Q15416743,P509,c(Q2057971)))
action filter_type
action union
action find
entity Q11531918
relation P509
action find
entity Q15416743
relation P509
type Q2057971
[ANSWERS] lead to the death of Hiroaki Matsuzawa or Wayne Harrison
{'OR': [['Q11531918', 'P509', {'concept': 'Q2057971'}], ['Q15416743', 'P509', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?c WHERE { { ?p property:P509 ?c . VALUES ( ?p ) { ( resource:Q11531918 ) ( resource:Q15416743 ) } } . ?c rdf:type ontology:Q2057971 }
myocardial infarction pancreatic cancer
Myocardial infarction and pancreatic cancer lead to the death of Hiroaki Matsuzawa or Wayne Harrison
myocardial infarction pancreatic cancer
action filter_type
action union
action find
entity Hiroaki Matsuzawa
relation cause of death
action find
entity Wayne Harrison
relation cause of death
type health problem
{'OR': [['Hiroaki Matsuzawa', 'cause of death', {'concept': 'health problem'}], ['Wayne Harrison', 'cause of death', {'concept': 'health problem'}]]}
SELECT DISTINCT ?c WHERE { { ?p property:cause_of_death ?c . VALUES ( ?p ) { ( resource:Hiroaki_Matsuzawa ) ( resource:Wayne_Harrison ) } } . ?c rdf:type ontology:health_problem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q2057971 Q12136
USER
How many diseases are caused by atleast 1 health problem ?
(c(Q12136),P828,c(Q2057971))
action count
action atleast
action find_tuple_counts
relation P828
type Q12136
type Q2057971
value 1
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?h ) WHERE { ?i property:P828 ?o . ?i rdf:type ontology:Q12136 . ?o rdf:type ontology:Q2057971 } GROUP BY ?i } . FILTER ( ?h >= 1 ) }
action count
action atleast
action find_tuple_counts
relation has cause
type disease
type health problem
value 1
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?h ) WHERE { ?i property:has_cause ?o . ?i rdf:type ontology:disease . ?o rdf:type ontology:health_problem } GROUP BY ?i } . FILTER ( ?h >= 1 ) }
[]
health problem disease
SYSTEM
24
Q3281904 Q26737764 Q11290178 Q18975496 Q3634866 Q26737768 Q26737757 Q3152925 Q5567304 Q18967433 Q3480107 Q2637106 Q3144951 Q209369 Q1640810 Q895930 Q4420129 Q2723627 Q6741354 Q2249526 Q7900393 Q1186697 Q26737770 Q2777805
(c(Q12136),P828,c(Q2057971))
action count
action atleast
action find_tuple_counts
relation P828
type Q12136
type Q2057971
value 1
[ANSWER]
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?h ) WHERE { ?i property:P828 ?o . ?i rdf:type ontology:Q12136 . ?o rdf:type ontology:Q2057971 } GROUP BY ?i } . FILTER ( ?h >= 1 ) }
congenital physical abnormalitie paracentral scotoma Alcohol and health metabolic skin disease Lupus headache Bjerrum scotoma central scotoma chronic respiratory failure Glaukomflecken HIV encephalopathy bone pain Scintillating scotoma Benckiser's hemorrhage Hodgkin's lymphoma Hyper-IgD syndrome Nodding disease Mauriac syndrome Pott disease malarial nephropathy Cerebral hypoxia Uremic pericarditis demyelination ring scotoma Diabetes mellitus and pregnancy
24
action count
action atleast
action find_tuple_counts
relation has cause
type disease
type health problem
value 1
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?h ) WHERE { ?i property:has_cause ?o . ?i rdf:type ontology:disease . ?o rdf:type ontology:health_problem } GROUP BY ?i } . FILTER ( ?h >= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q2144359 Q2057971
USER
Which environmental issues are the causes of max number of health problems ?
(c(Q2057971),P828,Q131123)
action argmax
action find_reverse_tuple_counts
relation P828
type Q2144359
type Q2057971
[{'concept': 'Q2057971'}, 'P828', 'Q131123']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:P828 ?j . ?j rdf:type ontology:Q2144359 . ?e rdf:type ontology:Q2057971 } GROUP BY ?j } } . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:P828 ?f . ?f rdf:type ontology:Q2144359 . ?u rdf:type ontology:Q2057971 } GROUP BY ?f } . FILTER ( ?w = ?x ) }
action argmax
action find_reverse_tuple_counts
relation has cause
type environmental issue
type health problem
[{'concept': 'health problem'}, 'has cause', 'air pollution']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:has_cause ?j . ?j rdf:type ontology:environmental_issue . ?e rdf:type ontology:health_problem } GROUP BY ?j } } . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:has_cause ?f . ?f rdf:type ontology:environmental_issue . ?u rdf:type ontology:health_problem } GROUP BY ?f } . FILTER ( ?w = ?x ) }
[]
environmental issue health problem
Q131123
SYSTEM
air pollution
Q131123
(c(Q2057971),P828,Q131123)
action argmax
action find_reverse_tuple_counts
relation P828
type Q2144359
type Q2057971
[ANSWER] is the causes of max number of health problems
[{'concept': 'Q2057971'}, 'P828', 'Q131123']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:P828 ?j . ?j rdf:type ontology:Q2144359 . ?e rdf:type ontology:Q2057971 } GROUP BY ?j } } . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:P828 ?f . ?f rdf:type ontology:Q2144359 . ?u rdf:type ontology:Q2057971 } GROUP BY ?f } . FILTER ( ?w = ?x ) }
air pollution
Air pollution is the causes of max number of health problems
air pollution
action argmax
action find_reverse_tuple_counts
relation has cause
type environmental issue
type health problem
[{'concept': 'health problem'}, 'has cause', 'air pollution']
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?x ) { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?q ) WHERE { ?e property:has_cause ?j . ?j rdf:type ontology:environmental_issue . ?e rdf:type ontology:health_problem } GROUP BY ?j } } . { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:has_cause ?f . ?f rdf:type ontology:environmental_issue . ?u rdf:type ontology:health_problem } GROUP BY ?f } . FILTER ( ?w = ?x ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q15831576 Q2057971
USER
Which fundamental state of matters causes max number of health problems ?
(c(Q2057971),P828,Q201382)
action argmax
action find_reverse_tuple_counts
relation P828
type Q15831576
type Q2057971
[{'concept': 'Q2057971'}, 'P828', 'Q201382']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?x ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:P828 ?s . ?f rdf:type ontology:Q2057971 . ?s rdf:type ontology:Q15831576 } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:P828 ?k . ?k rdf:type ontology:Q15831576 . ?y rdf:type ontology:Q2057971 } GROUP BY ?k } . FILTER ( ?n = ?x ) }
action argmax
action find_reverse_tuple_counts
relation has cause
type fundamental state of matter
type health problem
[{'concept': 'health problem'}, 'has cause', 'turpentine oil']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?x ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:has_cause ?s . ?f rdf:type ontology:health_problem . ?s rdf:type ontology:fundamental_state_of_matter } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:has_cause ?k . ?k rdf:type ontology:fundamental_state_of_matter . ?y rdf:type ontology:health_problem } GROUP BY ?k } . FILTER ( ?n = ?x ) }
[]
fundamental state of matter health problem
Q1133
SYSTEM
radon
Q1133
(c(Q2057971),P828,Q201382)
action argmax
action find_reverse_tuple_counts
relation P828
type Q15831576
type Q2057971
[ANSWER] causes max number of health problems
[{'concept': 'Q2057971'}, 'P828', 'Q201382']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?x ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:P828 ?s . ?f rdf:type ontology:Q2057971 . ?s rdf:type ontology:Q15831576 } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:P828 ?k . ?k rdf:type ontology:Q15831576 . ?y rdf:type ontology:Q2057971 } GROUP BY ?k } . FILTER ( ?n = ?x ) }
radon
Radon causes max number of health problems
radon
action argmax
action find_reverse_tuple_counts
relation has cause
type fundamental state of matter
type health problem
[{'concept': 'health problem'}, 'has cause', 'turpentine oil']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?x ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:has_cause ?s . ?f rdf:type ontology:health_problem . ?s rdf:type ontology:fundamental_state_of_matter } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?n ) WHERE { ?y property:has_cause ?k . ?k rdf:type ontology:fundamental_state_of_matter . ?y rdf:type ontology:health_problem } GROUP BY ?k } . FILTER ( ?n = ?x ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P828
Q8386 Q3249551 Q2057971
USER
Which health problems are caused by max number of drugs or processes ?
(c(Q2057971),P828,c(Q8386)|c(Q3249551))
action argmax
action union
action find_tuple_counts
relation P828
type Q2057971
type Q8386
action find_tuple_counts
relation P828
type Q2057971
type Q3249551
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q8386'}, {'concept': 'Q3249551'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?t . VALUES ( ?t ) { ( ontology:Q8386 ) ( ontology:Q3249551 ) } } GROUP BY ?u } . FILTER ( ?y = ?k ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?k ) { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?g ) WHERE { { ?s rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q8386 . ?s property:P828 ?x } UNION { ?s property:P828 ?x . ?s rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q3249551 } } GROUP BY ?s } } }
action argmax
action union
action find_tuple_counts
relation has cause
type health problem
type drug
action find_tuple_counts
relation has cause
type health problem
type process
[{'concept': 'health problem'}, 'has cause', [{'concept': 'drug'}, {'concept': 'process'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?t . VALUES ( ?t ) { ( ontology:drug ) ( ontology:process ) } } GROUP BY ?u } . FILTER ( ?y = ?k ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?k ) { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?g ) WHERE { { ?s rdf:type ontology:health_problem . ?x rdf:type ontology:drug . ?s property:has_cause ?x } UNION { ?s property:has_cause ?x . ?s rdf:type ontology:health_problem . ?x rdf:type ontology:process } } GROUP BY ?s } } }
[]
drug process health problem
Q21505495 Q17071650
SYSTEM
fetal valproate syndrome, Calcium channel blocker toxicity
Q21505495 Q17071650
(c(Q2057971),P828,c(Q8386)|c(Q3249551))
action argmax
action union
action find_tuple_counts
relation P828
type Q2057971
type Q8386
action find_tuple_counts
relation P828
type Q2057971
type Q3249551
[ANSWERS] are caused by max number of drugs or processes
[{'concept': 'Q2057971'}, 'P828', [{'concept': 'Q8386'}, {'concept': 'Q3249551'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?t . VALUES ( ?t ) { ( ontology:Q8386 ) ( ontology:Q3249551 ) } } GROUP BY ?u } . FILTER ( ?y = ?k ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?k ) { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?g ) WHERE { { ?s rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q8386 . ?s property:P828 ?x } UNION { ?s property:P828 ?x . ?s rdf:type ontology:Q2057971 . ?x rdf:type ontology:Q3249551 } } GROUP BY ?s } } }
fetal valproate syndrome Calcium channel blocker toxicity
Fetal valproate syndrome and Calcium channel blocker toxicity are caused by max number of drugs or processes
fetal valproate syndrome Calcium channel blocker toxicity
action argmax
action union
action find_tuple_counts
relation has cause
type health problem
type drug
action find_tuple_counts
relation has cause
type health problem
type process
[{'concept': 'health problem'}, 'has cause', [{'concept': 'drug'}, {'concept': 'process'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?y ) WHERE { ?c rdf:type ?t . VALUES ( ?t ) { ( ontology:drug ) ( ontology:process ) } } GROUP BY ?u } . FILTER ( ?y = ?k ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?k ) { SELECT DISTINCT ?s ( COUNT ( ?x ) AS ?g ) WHERE { { ?s rdf:type ontology:health_problem . ?x rdf:type ontology:drug . ?s property:has_cause ?x } UNION { ?s property:has_cause ?x . ?s rdf:type ontology:health_problem . ?x rdf:type ontology:process } } GROUP BY ?s } } }
[]