Simple Question (Direct)
Simple Question
Q16063050
P102
Q7210356
USER
Which political organization is George R. Cholwell a member of ?
(Q16063050,P102,c(Q7210356))
action filter_type
action find
entity Q16063050
relation P102
type Q7210356
['Q16063050', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q16063050 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
George R. Cholwell
action filter_type
action find
entity George R. Cholwell
relation member of political party
type political organization
['George R. Cholwell', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:George_R._Cholwell property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q16063050,P102,c(Q7210356))
action filter_type
action find
entity Q16063050
relation P102
type Q7210356
The [ANSWER] is George R. Cholwell a member of
['Q16063050', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q16063050 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Democratic Party
The Democratic Party is George R. Cholwell a member of
Democratic Party
action filter_type
action find
entity George R. Cholwell
relation member of political party
type political organization
['George R. Cholwell', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:George_R._Cholwell property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16063050
P509
Q2057971
USER
What was the cause of death of that person ?
(Q29552,P509,c(Q2057971))
action filter_type
action find
entity Q16063050
relation P509
type Q2057971
['Q29552', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { resource:Q16063050 property:P509 ?k . ?k rdf:type ontology:Q2057971 }
George R. Cholwell
action filter_type
action find
entity George R. Cholwell
relation cause of death
type health problem
['Democratic Party', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { resource:George_R._Cholwell property:cause_of_death ?k . ?k rdf:type ontology:health_problem }
[]
health problem
Q83319
SYSTEM
typhoid fever
Q83319
(Q29552,P509,c(Q2057971))
action filter_type
action find
entity Q16063050
relation P509
type Q2057971
The cause of death of that person was of [ANSWER]
['Q29552', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { resource:Q16063050 property:P509 ?k . ?k rdf:type ontology:Q2057971 }
typhoid fever
The cause of death of that person was of typhoid fever
typhoid fever
action filter_type
action find
entity George R. Cholwell
relation cause of death
type health problem
['Democratic Party', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { resource:George_R._Cholwell property:cause_of_death ?k . ?k rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q83319 Q4202805
P2176
Q8386
USER
Is Iopromide used to cure that health problem ?
(Q83319,P2176,Q4202805)
action is_in
entity Q4202805
action find
entity Q83319
relation P2176
['Q83319', 'P2176', 'Q4202805']
ASK WHERE { resource:Q83319 property:P2176 resource:Q4202805 }
typhoid fever Iopromide
action is_in
entity Iopromide
action find
entity typhoid fever
relation drug used for treatment
['typhoid fever', 'drug used for treatment', 'Iopromide']
ASK WHERE { resource:typhoid_fever property:drug_used_for_treatment resource:Iopromide }
[]
drug
SYSTEM
NO
(Q83319,P2176,Q4202805)
action is_in
entity Q4202805
action find
entity Q83319
relation P2176
[ANSWER]
['Q83319', 'P2176', 'Q4202805']
ASK WHERE { resource:Q83319 property:P2176 resource:Q4202805 }
No
action is_in
entity Iopromide
action find
entity typhoid fever
relation drug used for treatment
['typhoid fever', 'drug used for treatment', 'Iopromide']
ASK WHERE { resource:typhoid_fever property:drug_used_for_treatment resource:Iopromide }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q29552 Q61 Q6509343
P159
Q56061
USER
Does Democratic Party have HQ at Washington, D.C. and Akhyan-e Kuchek ?
(Q29552,P159,Q61) (Q29552,P159,Q6509343)
action is_in
entity Q29552
action intersection
action find_reverse
entity Q61
relation P159
action find_reverse
entity Q6509343
relation P159
['Q29552', 'P159', 'Q61'] ['Q29552', 'P159', 'Q6509343']
ASK WHERE { resource:Q29552 property:P159 resource:Q61 . resource:Q29552 property:P159 resource:Q6509343 }
Democratic Party Washington, D.C. Akhyan-e Kuchek
action is_in
entity Democratic Party
action intersection
action find_reverse
entity Washington, D.C.
relation headquarters location
action find_reverse
entity Akhyan-e Kuchek
relation headquarters location
['Democratic Party', 'headquarters location', 'Washington, D.C.'] ['Democratic Party', 'headquarters location', 'Akhyan-e Kuchek']
ASK WHERE { resource:Democratic_Party property:headquarters_location resource:Washington,_D.C. . resource:Democratic_Party property:headquarters_location resource:Akhyan-e_Kuchek }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q29552,P159,Q61) (Q29552,P159,Q6509343)
action is_in
entity Q29552
action intersection
action find_reverse
entity Q61
relation P159
action find_reverse
entity Q6509343
relation P159
[ANSWER]
['Q29552', 'P159', 'Q61'] ['Q29552', 'P159', 'Q6509343']
ASK WHERE { resource:Q29552 property:P159 resource:Q61 . resource:Q29552 property:P159 resource:Q6509343 }
YES and NO respectively
action is_in
entity Democratic Party
action intersection
action find_reverse
entity Washington, D.C.
relation headquarters location
action find_reverse
entity Akhyan-e Kuchek
relation headquarters location
['Democratic Party', 'headquarters location', 'Washington, D.C.'] ['Democratic Party', 'headquarters location', 'Akhyan-e Kuchek']
ASK WHERE { resource:Democratic_Party property:headquarters_location resource:Washington,_D.C. . resource:Democratic_Party property:headquarters_location resource:Akhyan-e_Kuchek }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q16063050 Q7809362 Q54217
P20
Q56061
USER
Does George R. Cholwell have Tirunavaya and Norwalk as the area of death ?
(Q16063050,P20,Q7809362) (Q16063050,P20,Q54217)
action is_in
entity Q16063050
action intersection
action find_reverse
entity Q7809362
relation P20
action find_reverse
entity Q54217
relation P20
['Q16063050', 'P20', 'Q7809362'] ['Q16063050', 'P20', 'Q54217']
ASK WHERE { resource:Q16063050 property:P20 resource:Q7809362 . resource:Q16063050 property:P20 resource:Q54217 }
George R. Cholwell Tirunavaya Norwalk
action is_in
entity George R. Cholwell
action intersection
action find_reverse
entity Tirunavaya
relation place of death
action find_reverse
entity Norwalk
relation place of death
['George R. Cholwell', 'place of death', 'Tirunavaya'] ['George R. Cholwell', 'place of death', 'Norwalk']
ASK WHERE { resource:George_R._Cholwell property:place_of_death resource:Tirunavaya . resource:George_R._Cholwell property:place_of_death resource:Norwalk }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q16063050,P20,Q7809362) (Q16063050,P20,Q54217)
action is_in
entity Q16063050
action intersection
action find_reverse
entity Q7809362
relation P20
action find_reverse
entity Q54217
relation P20
[ANSWER]
['Q16063050', 'P20', 'Q7809362'] ['Q16063050', 'P20', 'Q54217']
ASK WHERE { resource:Q16063050 property:P20 resource:Q7809362 . resource:Q16063050 property:P20 resource:Q54217 }
NO and YES respectively
action is_in
entity George R. Cholwell
action intersection
action find_reverse
entity Tirunavaya
relation place of death
action find_reverse
entity Norwalk
relation place of death
['George R. Cholwell', 'place of death', 'Tirunavaya'] ['George R. Cholwell', 'place of death', 'Norwalk']
ASK WHERE { resource:George_R._Cholwell property:place_of_death resource:Tirunavaya . resource:George_R._Cholwell property:place_of_death resource:Norwalk }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16524807 Q6509343
P19 P17
Q15617994
USER
Which administrative territories are Akhyan-e Kuchek present in or were Alberto Cerreti born at ?
OR((Q6509343,P17,c(Q15617994)), (Q16524807,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q6509343
relation P17
action find
entity Q16524807
relation P19
type Q15617994
{'OR': [['Q6509343', 'P17', {'concept': 'Q15617994'}], ['Q16524807', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q6509343 property:P17 ?y } UNION { resource:Q16524807 property:P19 ?y } } . ?y rdf:type ontology:Q15617994 }
Alberto Cerreti Akhyan-e Kuchek
action filter_type
action union
action find
entity Akhyan-e Kuchek
relation country
action find
entity Alberto Cerreti
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Akhyan-e Kuchek', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Alberto Cerreti', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Akhyan-e_Kuchek property:country ?y } UNION { resource:Alberto_Cerreti property:place_of_birth ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q215164 Q794
SYSTEM
Sorano, Iran
Q215164 Q794
OR((Q6509343,P17,c(Q15617994)), (Q16524807,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q6509343
relation P17
action find
entity Q16524807
relation P19
type Q15617994
[ANSWERS]
{'OR': [['Q6509343', 'P17', {'concept': 'Q15617994'}], ['Q16524807', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q6509343 property:P17 ?y } UNION { resource:Q16524807 property:P19 ?y } } . ?y rdf:type ontology:Q15617994 }
Sorano Iran
Which administrative territories are Akhyan-e Kuchek present in or were Alberto Cerreti born at
Sorano Iran
action filter_type
action union
action find
entity Akhyan-e Kuchek
relation country
action find
entity Alberto Cerreti
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Akhyan-e Kuchek', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Alberto Cerreti', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Akhyan-e_Kuchek property:country ?y } UNION { resource:Alberto_Cerreti property:place_of_birth ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
Which administrative territories were greater number of fictional locations inspired by than that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity fictional location
Comparative|More/Less|Single entity type|Clarification
Q794
SYSTEM
Did you mean Iran ?
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Did you mean Iran ?
Iran
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
[]
Q668
SYSTEM
India
Q668
(c(Q3895768),P941,c(Q15617994))
[ANSWER] was greater number of fictional locations inspired by than that administrative territory
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
India
India was greater number of fictional locations inspired by than that administrative territory
India
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1542
Q2057971 Q8386 Q2057971
USER
Which health problems are caused by max number of drugs and health problems ?
(c(Q8386)|c(Q2057971),P1542,c(Q2057971))
action argmax
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q8386
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2057971
[[{'concept': 'Q8386'}, {'concept': 'Q2057971'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) ?m WHERE { { ?r property:P1542 ?m . ?m rdf:type ontology:Q2057971 . ?r rdf:type ontology:Q8386 } UNION { ?r property:P1542 ?m . ?m rdf:type ontology:Q2057971 . ?r rdf:type ontology:Q2057971 } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) ?i WHERE { ?u rdf:type ?t . VALUES ( ?t ) { ( ontology:Q8386 ) ( ontology:Q2057971 ) } } GROUP BY ?i } . FILTER ( ?z = ?o ) }
action argmax
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type drug
action find_reverse_tuple_counts
relation cause of
type health problem
type health problem
[[{'concept': 'drug'}, {'concept': 'health problem'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) ?m WHERE { { ?r property:cause_of ?m . ?m rdf:type ontology:health_problem . ?r rdf:type ontology:drug } UNION { ?r property:cause_of ?m . ?m rdf:type ontology:health_problem . ?r rdf:type ontology:health_problem } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) ?i WHERE { ?u rdf:type ?t . VALUES ( ?t ) { ( ontology:drug ) ( ontology:health_problem ) } } GROUP BY ?i } . FILTER ( ?z = ?o ) }
[]
health problem drug health problem
Q127724
SYSTEM
cataract
Q127724
(c(Q8386)|c(Q2057971),P1542,c(Q2057971))
action argmax
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q8386
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2057971
[ANSWER] is caused by max number of drugs and health problems
[[{'concept': 'Q8386'}, {'concept': 'Q2057971'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) ?m WHERE { { ?r property:P1542 ?m . ?m rdf:type ontology:Q2057971 . ?r rdf:type ontology:Q8386 } UNION { ?r property:P1542 ?m . ?m rdf:type ontology:Q2057971 . ?r rdf:type ontology:Q2057971 } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) ?i WHERE { ?u rdf:type ?t . VALUES ( ?t ) { ( ontology:Q8386 ) ( ontology:Q2057971 ) } } GROUP BY ?i } . FILTER ( ?z = ?o ) }
cataract
Cataract is caused by max number of drugs and health problems
cataract
action argmax
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type drug
action find_reverse_tuple_counts
relation cause of
type health problem
type health problem
[[{'concept': 'drug'}, {'concept': 'health problem'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?e ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) ?m WHERE { { ?r property:cause_of ?m . ?m rdf:type ontology:health_problem . ?r rdf:type ontology:drug } UNION { ?r property:cause_of ?m . ?m rdf:type ontology:health_problem . ?r rdf:type ontology:health_problem } } GROUP BY ?m } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) ?i WHERE { ?u rdf:type ?t . VALUES ( ?t ) { ( ontology:drug ) ( ontology:health_problem ) } } GROUP BY ?i } . FILTER ( ?z = ?o ) }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q127724 Q18553663 Q12206
P828
Q2057971
USER
Is that health problem the result of having cerebellar medulloblastoma and diabetes mellitus ?
(Q127724,P828,Q18553663) (Q127724,P828,Q12206)
action is_in
entity Q127724
action intersection
action find_reverse
entity Q18553663
relation P828
action find_reverse
entity Q12206
relation P828
['Q127724', 'P828', 'Q18553663'] ['Q127724', 'P828', 'Q12206']
ASK WHERE { resource:Q127724 property:P828 resource:Q12206 . resource:Q127724 property:P828 resource:Q18553663 }
cataract cerebellar medulloblastoma diabetes mellitus
action is_in
entity cataract
action intersection
action find_reverse
entity cerebellar medulloblastoma
relation has cause
action find_reverse
entity diabetes mellitus
relation has cause
['cataract', 'has cause', 'cerebellar medulloblastoma'] ['cataract', 'has cause', 'diabetes mellitus']
ASK WHERE { resource:cataract property:has_cause resource:diabetes_mellitus . resource:cataract property:has_cause resource:cerebellar_medulloblastoma }
[]
health problem
SYSTEM
NO and YES respectively
(Q127724,P828,Q18553663) (Q127724,P828,Q12206)
action is_in
entity Q127724
action intersection
action find_reverse
entity Q18553663
relation P828
action find_reverse
entity Q12206
relation P828
[ANSWER]
['Q127724', 'P828', 'Q18553663'] ['Q127724', 'P828', 'Q12206']
ASK WHERE { resource:Q127724 property:P828 resource:Q12206 . resource:Q127724 property:P828 resource:Q18553663 }
NO and YES respectively
action is_in
entity cataract
action intersection
action find_reverse
entity cerebellar medulloblastoma
relation has cause
action find_reverse
entity diabetes mellitus
relation has cause
['cataract', 'has cause', 'cerebellar medulloblastoma'] ['cataract', 'has cause', 'diabetes mellitus']
ASK WHERE { resource:cataract property:has_cause resource:diabetes_mellitus . resource:cataract property:has_cause resource:cerebellar_medulloblastoma }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q127724
P2175
Q8386
USER
Which drugs are used as a medication for cataract ?
action filter_type
action find_reverse
entity Q127724
relation P2175
type Q8386
SELECT DISTINCT ?z WHERE { ?z property:P2175 resource:Q127724 . ?z rdf:type ontology:Q8386 }
cataract
action filter_type
action find_reverse
entity cataract
relation medical condition treated
type drug
SELECT DISTINCT ?z WHERE { ?z property:medical_condition_treated resource:cataract . ?z rdf:type ontology:drug }
[]
drug
Q422252 Q684379 Q419608
SYSTEM
dexamethasone, nepafenac, Tetracaine
Q4673274 Q684379 Q422252 Q419608
action filter_type
action find_reverse
entity Q127724
relation P2175
type Q8386
[ANSWERS] are used as a medication for cataract
SELECT DISTINCT ?z WHERE { ?z property:P2175 resource:Q127724 . ?z rdf:type ontology:Q8386 }
acetohexamide nepafenac dexamethasone Tetracaine
Dexamethasone, nepafenac and Tetracaine are used as a medication for cataract
dexamethasone nepafenac Tetracaine
action filter_type
action find_reverse
entity cataract
relation medical condition treated
type drug
SELECT DISTINCT ?z WHERE { ?z property:medical_condition_treated resource:cataract . ?z rdf:type ontology:drug }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q127724
P1542
Q12136 Q2057971
USER
How many diseases or health problems caused cataract ?
(c(Q12136),P1542,Q127724) (c(Q2057971),P1542,Q127724)
action count
action union
action filter_type
action find_reverse
entity Q127724
relation P1542
type Q12136
action filter_type
action find_reverse
entity Q127724
relation P1542
type Q2057971
[{'concept': 'Q12136'}, 'P1542', 'Q127724'] [{'concept': 'Q2057971'}, 'P1542', 'Q127724']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?f . VALUES ( ?f ) { ( ontology:Q12136 ) ( ontology:Q2057971 ) } }
cataract
action count
action union
action filter_type
action find_reverse
entity cataract
relation cause of
type disease
action filter_type
action find_reverse
entity cataract
relation cause of
type health problem
[{'concept': 'disease'}, 'cause of', 'cataract'] [{'concept': 'health problem'}, 'cause of', 'cataract']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?f . VALUES ( ?f ) { ( ontology:disease ) ( ontology:health_problem ) } }
[]
disease health problem
SYSTEM
4
Q523893 Q155857 Q180152 Q12206
(c(Q12136),P1542,Q127724) (c(Q2057971),P1542,Q127724)
action count
action union
action filter_type
action find_reverse
entity Q127724
relation P1542
type Q12136
action filter_type
action find_reverse
entity Q127724
relation P1542
type Q2057971
[ANSWER]
[{'concept': 'Q12136'}, 'P1542', 'Q127724'] [{'concept': 'Q2057971'}, 'P1542', 'Q127724']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?f . VALUES ( ?f ) { ( ontology:Q12136 ) ( ontology:Q2057971 ) } }
Ichthyosis rubella Vitiligo diabetes mellitus
4
action count
action union
action filter_type
action find_reverse
entity cataract
relation cause of
type disease
action filter_type
action find_reverse
entity cataract
relation cause of
type health problem
[{'concept': 'disease'}, 'cause of', 'cataract'] [{'concept': 'health problem'}, 'cause of', 'cataract']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?f . VALUES ( ?f ) { ( ontology:disease ) ( ontology:health_problem ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q909745 Q127724
P2176 P1542
Q2057971
USER
Which health problems caused cataract and are treated with linagliptin ?
AND((c(Q2057971),P1542,Q127724), (c(Q2057971),P2176,Q909745))
action filter_type
action intersection
action find_reverse
entity Q127724
relation P1542
action find_reverse
entity Q909745
relation P2176
type Q2057971
{'AND': [[{'concept': 'Q2057971'}, 'P1542', 'Q127724'], [{'concept': 'Q2057971'}, 'P2176', 'Q909745']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2057971 . ?q property:P1542 resource:Q127724 . ?q property:P2176 resource:Q909745 }
linagliptin cataract
action filter_type
action intersection
action find_reverse
entity cataract
relation cause of
action find_reverse
entity linagliptin
relation drug used for treatment
type health problem
{'AND': [[{'concept': 'health problem'}, 'cause of', 'cataract'], [{'concept': 'health problem'}, 'drug used for treatment', 'linagliptin']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:health_problem . ?q property:cause_of resource:cataract . ?q property:drug_used_for_treatment resource:linagliptin }
[]
health problem
Q12206
SYSTEM
diabetes mellitus
Q12206
AND((c(Q2057971),P1542,Q127724), (c(Q2057971),P2176,Q909745))
action filter_type
action intersection
action find_reverse
entity Q127724
relation P1542
action find_reverse
entity Q909745
relation P2176
type Q2057971
In [ANSWER] caused cataract and are treated with linagliptin
{'AND': [[{'concept': 'Q2057971'}, 'P1542', 'Q127724'], [{'concept': 'Q2057971'}, 'P2176', 'Q909745']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q2057971 . ?q property:P1542 resource:Q127724 . ?q property:P2176 resource:Q909745 }
diabetes mellitus
In diabetes mellitus caused cataract and are treated with linagliptin
diabetes mellitus
action filter_type
action intersection
action find_reverse
entity cataract
relation cause of
action find_reverse
entity linagliptin
relation drug used for treatment
type health problem
{'AND': [[{'concept': 'health problem'}, 'cause of', 'cataract'], [{'concept': 'health problem'}, 'drug used for treatment', 'linagliptin']]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:health_problem . ?q property:cause_of resource:cataract . ?q property:drug_used_for_treatment resource:linagliptin }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q7165022
P780
Q12136 Q1441305 Q2057971
USER
How many health problems does presence of less number of diseases or medical signs indicate than pentalogy of Cantrell ?
(c(Q2057971),P780,c(Q12136)|c(Q1441305))
action count
action less
action union
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q7165022
relation P780
type Q12136
type Q1441305
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q12136'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:Q7165022 property:P780 ?u . { VALUES ( ?g ) { ( ontology:Q1441305 ) ( ontology:Q12136 ) } . ?u rdf:type ?g } } } . FILTER ( ?y < ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?l WHERE { { ?l property:P780 ?m . ?l rdf:type ontology:Q2057971 . ?m rdf:type ontology:Q12136 } UNION { ?l rdf:type ontology:Q2057971 . ?m rdf:type ontology:Q1441305 . ?l property:P780 ?m } } GROUP BY ?l } }
pentalogy of Cantrell
action count
action less
action union
action find_tuple_counts
relation symptoms
type health problem
type disease
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action count
action filter_multi_types
action find
entity pentalogy of Cantrell
relation symptoms
type disease
type medical sign
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'disease'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:pentalogy_of_Cantrell property:symptoms ?u . { VALUES ( ?g ) { ( ontology:medical_sign ) ( ontology:disease ) } . ?u rdf:type ?g } } } . FILTER ( ?y < ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?l WHERE { { ?l property:symptoms ?m . ?l rdf:type ontology:health_problem . ?m rdf:type ontology:disease } UNION { ?l rdf:type ontology:health_problem . ?m rdf:type ontology:medical_sign . ?l property:symptoms ?m } } GROUP BY ?l } }
[]
disease medical sign health problem
SYSTEM
95
Q3281274 Q18589315 Q4813631 Q16889762 Q154869 Q19000456 Q7080278 Q2070695 Q836356 Q3508686 Q721073 Q5319554 Q623031 Q558077 Q7688951 Q3843800 Q585011 Q3508664 Q2388598 Q26492785 Q6853 Q5432941 Q191779 Q18553762 Q192100 Q3508705 Q5064113 Q774483 Q17120992 Q190564 Q1154422 Q156103 Q10529545 Q205214 Q12152 Q1515119 Q5526844 Q7243138 Q207133 Q12252367 Q174651 Q18554801 Q632228 Q1432717 Q18556319 Q3298999 Q4421929 Q4352832 Q180266 Q21505506 Q21505507 Q6668132 Q2836 Q460167 Q124604 Q799615 Q1518637 Q18557231 Q1648128 Q19000484 Q145790 Q2845978 Q378681 Q27164422 Q281928 Q15401621 Q4676384 Q506433 Q432396 Q959457 Q332293 Q133087 Q522163 Q21505526 Q9390463 Q1286320 Q1117652 Q3508585 Q1077139 Q4865826 Q5032577 Q17089792 Q335555 Q265936 Q1952467 Q129279 Q18555385 Q2106232 Q25345593 Q208562 Q664174 Q1641153 Q14509067 Q18557404 Q26492775
(c(Q2057971),P780,c(Q12136)|c(Q1441305))
action count
action less
action union
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q7165022
relation P780
type Q12136
type Q1441305
[ANSWER]
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q12136'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:Q7165022 property:P780 ?u . { VALUES ( ?g ) { ( ontology:Q1441305 ) ( ontology:Q12136 ) } . ?u rdf:type ?g } } } . FILTER ( ?y < ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?l WHERE { { ?l property:P780 ?m . ?l rdf:type ontology:Q2057971 . ?m rdf:type ontology:Q12136 } UNION { ?l rdf:type ontology:Q2057971 . ?m rdf:type ontology:Q1441305 . ?l property:P780 ?m } } GROUP BY ?l } }
Griscelli syndrome Cataract-microcornea syndrome dyskinetic cerebral palsy multiple pterygium syndrome hepatitis C syphilitic alopecia Oguchi disease macrocytic anemia croup Saethre–Chotzen syndrome delusional disorder dysplastic nevus syndrome liver cancer Williams Syndrome Taussig–Bing syndrome chronic congestive splenomegaly Antley-Bixler syndrome Lasthenie de Ferjol syndrome Ollier disease hypertrichotic osteochondrodysplasia Cantu type hepatitis B hyperlipoproteinemia type IV Gilles de la Tourette syndrome migraine with aura lymphatic filariasis Timothy syndrome Cerebrospinal fluid leak Galactosemia Hyperglycerolemia Huntington's disease leukocyte-adhesion deficiency syndrome gastroenteritis hyperandrogenism Guillain–Barré syndrome myocardial infarction Gerstmann syndrome Gastrojejunocolic fistula Primary hypertrophic osteoathropathy Klinefelter's syndrome atherosclerosis Bálint's syndrome multiple intestinal atresia Hajdu-Cheney syndrome Catatonic schizophrenia sea-blue histiocyte syndrome microcytic anemia Hippocampal sclerosis urofacial syndrome scarlet fever hypophosphatemic nephrolithiasis/osteoporosis 1 hypophosphatemic nephrolithiasis/osteoporosis 2 Loin pain hematuria syndrome aphasia Meniere's disease portal hypertension osteitis fibrosa VIPoma hypersplenism geniculate herpes zoster arteriosclerosis obliterans iridocyclitis stereotypic movement disorder peripheral artery disease X-linked cleft palate with or without ankyloglossia social phobia Trousseau sign of malignancy Acroosteolysis Trimethylaminuria achromatopsia inappropriate ADH syndrome carpal tunnel syndrome gout Sydenham's chorea myopathy, lactic acidosis, and sideroblastic anemia temtamy preaxial brachydactyly syndrome Schwannomatosis Thygeson's superficial punctate keratopathy ablepharon macrostomia syndrome tic disorder Bart-Pumphrey syndrome Cannabinoid hyperemesis syndrome Psoriatic erythroderma Sjögren's syndrome Kawasaki disease hereditary multiple exostoses dysentery xanthomatosis Postanesthetic shivering Intermittent hydrarthrosis Marfan syndrome asbestosis secondary hypertrophic osteoarthropathy exanthem peroneal nerve paralysis poikiloderma with neutropenia
95
action count
action less
action union
action find_tuple_counts
relation symptoms
type health problem
type disease
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action count
action filter_multi_types
action find
entity pentalogy of Cantrell
relation symptoms
type disease
type medical sign
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'disease'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { resource:pentalogy_of_Cantrell property:symptoms ?u . { VALUES ( ?g ) { ( ontology:medical_sign ) ( ontology:disease ) } . ?u rdf:type ?g } } } . FILTER ( ?y < ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) ?l WHERE { { ?l property:symptoms ?m . ?l rdf:type ontology:health_problem . ?m rdf:type ontology:disease } UNION { ?l rdf:type ontology:health_problem . ?m rdf:type ontology:medical_sign . ?l property:symptoms ?m } } GROUP BY ?l } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q6668132
P780
Q12136 Q1441305 Q2057971
USER
And also tell me about Loin pain hematuria syndrome?
(c(Q2057971),P780,c(Q12136)|c(Q1441305))
action count
action less
action union
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q6668132
relation P780
type Q12136
type Q1441305
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q12136'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?c ) WHERE { VALUES ( ?g ) { ( ontology:Q12136 ) ( ontology:Q1441305 ) } . ?b rdf:type ?g } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:Q6668132 property:P780 ?k . { { ?k rdf:type ontology:Q12136 } UNION { ?k rdf:type ontology:Q1441305 } } } } . FILTER ( ?c < ?r ) }
Loin pain hematuria syndrome
action count
action less
action union
action find_tuple_counts
relation symptoms
type health problem
type disease
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action count
action filter_multi_types
action find
entity Loin pain hematuria syndrome
relation symptoms
type disease
type medical sign
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'disease'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?c ) WHERE { VALUES ( ?g ) { ( ontology:disease ) ( ontology:medical_sign ) } . ?b rdf:type ?g } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:Loin_pain_hematuria_syndrome property:symptoms ?k . { { ?k rdf:type ontology:disease } UNION { ?k rdf:type ontology:medical_sign } } } } . FILTER ( ?c < ?r ) }
[]
disease medical sign health problem
SYSTEM
72
Q3281274 Q18589315 Q4813631 Q16889762 Q19000456 Q7080278 Q2070695 Q3508686 Q5319554 Q558077 Q7688951 Q3843800 Q585011 Q3508664 Q26492785 Q191779 Q18553762 Q192100 Q5064113 Q774483 Q17120992 Q1154422 Q10529545 Q205214 Q1515119 Q7243138 Q207133 Q12252367 Q18554801 Q632228 Q1432717 Q18556319 Q3298999 Q4421929 Q4352832 Q21505506 Q21505507 Q2836 Q460167 Q124604 Q799615 Q1518637 Q18557231 Q1648128 Q19000484 Q2845978 Q378681 Q27164422 Q281928 Q15401621 Q4676384 Q506433 Q959457 Q522163 Q21505526 Q9390463 Q1286320 Q1117652 Q3508585 Q1077139 Q4865826 Q5032577 Q17089792 Q1952467 Q129279 Q18555385 Q2106232 Q25345593 Q208562 Q1641153 Q14509067 Q26492775
(c(Q2057971),P780,c(Q12136)|c(Q1441305))
action count
action less
action union
action find_tuple_counts
relation P780
type Q2057971
type Q12136
action find_tuple_counts
relation P780
type Q2057971
type Q1441305
action count
action filter_multi_types
action find
entity Q6668132
relation P780
type Q12136
type Q1441305
[ANSWER]
[{'concept': 'Q2057971'}, 'P780', [{'concept': 'Q12136'}, {'concept': 'Q1441305'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?c ) WHERE { VALUES ( ?g ) { ( ontology:Q12136 ) ( ontology:Q1441305 ) } . ?b rdf:type ?g } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:Q6668132 property:P780 ?k . { { ?k rdf:type ontology:Q12136 } UNION { ?k rdf:type ontology:Q1441305 } } } } . FILTER ( ?c < ?r ) }
Griscelli syndrome Cataract-microcornea syndrome dyskinetic cerebral palsy multiple pterygium syndrome syphilitic alopecia Oguchi disease macrocytic anemia Saethre–Chotzen syndrome dysplastic nevus syndrome Williams Syndrome Taussig–Bing syndrome chronic congestive splenomegaly Antley-Bixler syndrome Lasthenie de Ferjol syndrome hypertrichotic osteochondrodysplasia Cantu type Gilles de la Tourette syndrome migraine with aura lymphatic filariasis Cerebrospinal fluid leak Galactosemia Hyperglycerolemia leukocyte-adhesion deficiency syndrome hyperandrogenism Guillain–Barré syndrome Gerstmann syndrome Primary hypertrophic osteoathropathy Klinefelter's syndrome atherosclerosis multiple intestinal atresia Hajdu-Cheney syndrome Catatonic schizophrenia sea-blue histiocyte syndrome microcytic anemia Hippocampal sclerosis urofacial syndrome hypophosphatemic nephrolithiasis/osteoporosis 1 hypophosphatemic nephrolithiasis/osteoporosis 2 aphasia Meniere's disease portal hypertension osteitis fibrosa VIPoma hypersplenism geniculate herpes zoster arteriosclerosis obliterans stereotypic movement disorder peripheral artery disease X-linked cleft palate with or without ankyloglossia social phobia Trousseau sign of malignancy Acroosteolysis Trimethylaminuria inappropriate ADH syndrome Sydenham's chorea myopathy, lactic acidosis, and sideroblastic anemia temtamy preaxial brachydactyly syndrome Schwannomatosis Thygeson's superficial punctate keratopathy ablepharon macrostomia syndrome tic disorder Bart-Pumphrey syndrome Cannabinoid hyperemesis syndrome Psoriatic erythroderma hereditary multiple exostoses dysentery xanthomatosis Postanesthetic shivering Intermittent hydrarthrosis Marfan syndrome secondary hypertrophic osteoarthropathy exanthem poikiloderma with neutropenia
72
action count
action less
action union
action find_tuple_counts
relation symptoms
type health problem
type disease
action find_tuple_counts
relation symptoms
type health problem
type medical sign
action count
action filter_multi_types
action find
entity Loin pain hematuria syndrome
relation symptoms
type disease
type medical sign
[{'concept': 'health problem'}, 'symptoms', [{'concept': 'disease'}, {'concept': 'medical sign'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?c ) WHERE { VALUES ( ?g ) { ( ontology:disease ) ( ontology:medical_sign ) } . ?b rdf:type ?g } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { resource:Loin_pain_hematuria_syndrome property:symptoms ?k . { { ?k rdf:type ontology:disease } UNION { ?k rdf:type ontology:medical_sign } } } } . FILTER ( ?c < ?r ) }
[]