Simple Question (Direct)
Simple Question
Q24116886
P703
Q631147
USER
What is the taxon to which prephenate dehydrogenase    BN112_1274 belongs to ?
(Q24116886,P703,c(Q631147))
action filter_type
action find
entity Q24116886
relation P703
type Q631147
['Q24116886', 'P703', {'concept': 'Q631147'}]
SELECT DISTINCT ?v WHERE { resource:Q24116886 property:P703 ?v . ?v rdf:type ontology:Q631147 }
prephenate dehydrogenase    BN112_1274
action filter_type
action find
entity prephenate dehydrogenase    BN112_1274
relation found in taxon
type infraspecific name
['prephenate dehydrogenase    BN112_1274', 'found in taxon', {'concept': 'infraspecific name'}]
SELECT DISTINCT ?v WHERE { resource:prephenate_dehydrogenase____BN112_1274 property:found_in_taxon ?v . ?v rdf:type ontology:infraspecific_name }
[]
infraspecific name
Q21102924
SYSTEM
Bordetella bronchiseptica 253
Q21102924
(Q24116886,P703,c(Q631147))
action filter_type
action find
entity Q24116886
relation P703
type Q631147
[ANSWER]
['Q24116886', 'P703', {'concept': 'Q631147'}]
SELECT DISTINCT ?v WHERE { resource:Q24116886 property:P703 ?v . ?v rdf:type ontology:Q631147 }
Bordetella bronchiseptica 253
Bordetella bronchiseptica 253
Bordetella bronchiseptica 253
action filter_type
action find
entity prephenate dehydrogenase    BN112_1274
relation found in taxon
type infraspecific name
['prephenate dehydrogenase    BN112_1274', 'found in taxon', {'concept': 'infraspecific name'}]
SELECT DISTINCT ?v WHERE { resource:prephenate_dehydrogenase____BN112_1274 property:found_in_taxon ?v . ?v rdf:type ontology:infraspecific_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q24116886
P681
Q15989253
USER
Which is the cell component of that nutrient ?
(Q21102924,P681,c(Q15989253))
action filter_type
action find
entity Q24116886
relation P681
type Q15989253
['Q21102924', 'P681', {'concept': 'Q15989253'}]
SELECT DISTINCT ?q WHERE { resource:Q24116886 property:P681 ?q . ?q rdf:type ontology:Q15989253 }
prephenate dehydrogenase    BN112_1274
action filter_type
action find
entity prephenate dehydrogenase    BN112_1274
relation cell component
type part
['Bordetella bronchiseptica 253', 'cell component', {'concept': 'part'}]
SELECT DISTINCT ?q WHERE { resource:prephenate_dehydrogenase____BN112_1274 property:cell_component ?q . ?q rdf:type ontology:part }
[]
part
Q14349455
SYSTEM
membrane
Q14349455
(Q21102924,P681,c(Q15989253))
action filter_type
action find
entity Q24116886
relation P681
type Q15989253
The [ANSWER] is the cell component of that nutrient
['Q21102924', 'P681', {'concept': 'Q15989253'}]
SELECT DISTINCT ?q WHERE { resource:Q24116886 property:P681 ?q . ?q rdf:type ontology:Q15989253 }
membrane
The membrane is the cell component of that nutrient
membrane
action filter_type
action find
entity prephenate dehydrogenase    BN112_1274
relation cell component
type part
['Bordetella bronchiseptica 253', 'cell component', {'concept': 'part'}]
SELECT DISTINCT ?q WHERE { resource:prephenate_dehydrogenase____BN112_1274 property:cell_component ?q . ?q rdf:type ontology:part }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P129
Q181394 Q79529 Q8386
USER
Which nutrients do atleast 54 chemical substances or drugs interact with ?
(c(Q79529)|c(Q8386),P129,c(Q181394))
action atleast
action union
action find_reverse_tuple_counts
relation P129
type Q181394
type Q79529
action find_reverse_tuple_counts
relation P129
type Q181394
type Q8386
value 54
[[{'concept': 'Q79529'}, {'concept': 'Q8386'}], 'P129', {'concept': 'Q181394'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) ?d WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:Q79529 ) ( ontology:Q8386 ) } } GROUP BY ?d } . FILTER ( ?l >= 54 ) }
action atleast
action union
action find_reverse_tuple_counts
relation physically interacts with
type nutrient
type chemical substance
action find_reverse_tuple_counts
relation physically interacts with
type nutrient
type drug
value 54
[[{'concept': 'chemical substance'}, {'concept': 'drug'}], 'physically interacts with', {'concept': 'nutrient'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) ?d WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:chemical_substance ) ( ontology:drug ) } } GROUP BY ?d } . FILTER ( ?l >= 54 ) }
[]
nutrient chemical substance drug
Q1949517 Q4639596 Q21108118
SYSTEM
5-hydroxytryptamine receptor 2A, 5-hydroxytryptamine receptor 2B, 5-hydroxytryptamine receptor 2C
Q4639596 Q21108118 Q21115046 Q21115043 Q1949517
(c(Q79529)|c(Q8386),P129,c(Q181394))
action atleast
action union
action find_reverse_tuple_counts
relation P129
type Q181394
type Q79529
action find_reverse_tuple_counts
relation P129
type Q181394
type Q8386
value 54
[ANSWERS]
[[{'concept': 'Q79529'}, {'concept': 'Q8386'}], 'P129', {'concept': 'Q181394'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) ?d WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:Q79529 ) ( ontology:Q8386 ) } } GROUP BY ?d } . FILTER ( ?l >= 54 ) }
5-hydroxytryptamine receptor 2B 5-hydroxytryptamine receptor 2C 5-hydroxytryptamine receptor 1D 5-hydroxytryptamine receptor 1A 5-hydroxytryptamine receptor 2A
Which nutrients atleast 54 chemical substances or drugs interact with
5-hydroxytryptamine receptor 2A 5-hydroxytryptamine receptor 2B 5-hydroxytryptamine receptor 2C
action atleast
action union
action find_reverse_tuple_counts
relation physically interacts with
type nutrient
type chemical substance
action find_reverse_tuple_counts
relation physically interacts with
type nutrient
type drug
value 54
[[{'concept': 'chemical substance'}, {'concept': 'drug'}], 'physically interacts with', {'concept': 'nutrient'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) ?d WHERE { ?f rdf:type ?w . VALUES ( ?w ) { ( ontology:chemical_substance ) ( ontology:drug ) } } GROUP BY ?d } . FILTER ( ?l >= 54 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6823517
P129
Q79529
USER
Does metergoline communicate with those nutrients ?
(Q6823517,P129,Q1949517) (Q6823517,P129,Q4639596) (Q6823517,P129,Q21108118)
action is_in
entity prev_answer
action find
entity Q6823517
relation P129
['Q6823517', 'P129', 'Q1949517'] ['Q6823517', 'P129', 'Q4639596'] ['Q6823517', 'P129', 'Q21108118']
ASK WHERE { resource:Q6823517 property:P129 ?g . VALUES ( ?g ) { ( resource:Q4639596 ) ( resource:Q21108118 ) ( resource:Q21115046 ) } }
metergoline
action is_in
entity prev_answer
action find
entity metergoline
relation physically interacts with
['metergoline', 'physically interacts with', '5-hydroxytryptamine receptor 2A'] ['metergoline', 'physically interacts with', '5-hydroxytryptamine receptor 2B'] ['metergoline', 'physically interacts with', '5-hydroxytryptamine receptor 2C']
ASK WHERE { resource:metergoline property:physically_interacts_with ?g . VALUES ( ?g ) { ( resource:5-hydroxytryptamine_receptor_2B ) ( resource:5-hydroxytryptamine_receptor_2C ) ( resource:5-hydroxytryptamine_receptor_1D ) } }
[]
chemical substance
SYSTEM
YES
(Q6823517,P129,Q1949517) (Q6823517,P129,Q4639596) (Q6823517,P129,Q21108118)
action is_in
entity prev_answer
action find
entity Q6823517
relation P129
[ANSWER]
['Q6823517', 'P129', 'Q1949517'] ['Q6823517', 'P129', 'Q4639596'] ['Q6823517', 'P129', 'Q21108118']
ASK WHERE { resource:Q6823517 property:P129 ?g . VALUES ( ?g ) { ( resource:Q4639596 ) ( resource:Q21108118 ) ( resource:Q21115046 ) } }
Yes
action is_in
entity prev_answer
action find
entity metergoline
relation physically interacts with
['metergoline', 'physically interacts with', '5-hydroxytryptamine receptor 2A'] ['metergoline', 'physically interacts with', '5-hydroxytryptamine receptor 2B'] ['metergoline', 'physically interacts with', '5-hydroxytryptamine receptor 2C']
ASK WHERE { resource:metergoline property:physically_interacts_with ?g . VALUES ( ?g ) { ( resource:5-hydroxytryptamine_receptor_2B ) ( resource:5-hydroxytryptamine_receptor_2C ) ( resource:5-hydroxytryptamine_receptor_1D ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7739 Q4639596
P769 P129
Q8386
USER
What do 5-hydroxytryptamine receptor 2B interact with and shows a significant drug interaction with Arsenic trioxide ?
AND((Q4639596,P129,c(Q8386)), (Q7739,P769,c(Q8386)))
action filter_type
action intersection
action find
entity Q4639596
relation P129
action find
entity Q7739
relation P769
type Q8386
{'AND': [['Q4639596', 'P129', {'concept': 'Q8386'}], ['Q7739', 'P769', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?w WHERE { resource:Q4639596 property:P129 ?w . resource:Q7739 property:P769 ?w . ?w rdf:type ontology:Q8386 }
Arsenic trioxide 5-hydroxytryptamine receptor 2B
action filter_type
action intersection
action find
entity 5-hydroxytryptamine receptor 2B
relation physically interacts with
action find
entity Arsenic trioxide
relation significant drug interaction
type drug
{'AND': [['5-hydroxytryptamine receptor 2B', 'physically interacts with', {'concept': 'drug'}], ['Arsenic trioxide', 'significant drug interaction', {'concept': 'drug'}]]}
SELECT DISTINCT ?w WHERE { resource:5-hydroxytryptamine_receptor_2B property:physically_interacts_with ?w . resource:Arsenic_trioxide property:significant_drug_interaction ?w . ?w rdf:type ontology:drug }
[]
drug
Q251347
SYSTEM
haloperidol
Q251347
AND((Q4639596,P129,c(Q8386)), (Q7739,P769,c(Q8386)))
action filter_type
action intersection
action find
entity Q4639596
relation P129
action find
entity Q7739
relation P769
type Q8386
5-hydroxytryptamine receptor 2B interact with [ANSWER]
{'AND': [['Q4639596', 'P129', {'concept': 'Q8386'}], ['Q7739', 'P769', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?w WHERE { resource:Q4639596 property:P129 ?w . resource:Q7739 property:P769 ?w . ?w rdf:type ontology:Q8386 }
haloperidol
5-hydroxytryptamine receptor 2B interact with haloperidol
haloperidol
action filter_type
action intersection
action find
entity 5-hydroxytryptamine receptor 2B
relation physically interacts with
action find
entity Arsenic trioxide
relation significant drug interaction
type drug
{'AND': [['5-hydroxytryptamine receptor 2B', 'physically interacts with', {'concept': 'drug'}], ['Arsenic trioxide', 'significant drug interaction', {'concept': 'drug'}]]}
SELECT DISTINCT ?w WHERE { resource:5-hydroxytryptamine_receptor_2B property:physically_interacts_with ?w . resource:Arsenic_trioxide property:significant_drug_interaction ?w . ?w rdf:type ontology:drug }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q251347 Q21110867 Q21110532
P129
Q181394
USER
Does haloperidol contact D(1A) dopamine receptor and Potassium voltage-gated channel subfamily H member 1 ?
(Q251347,P129,Q21110867) (Q251347,P129,Q21110532)
action is_in
entity Q251347
action intersection
action find_reverse
entity Q21110867
relation P129
action find_reverse
entity Q21110532
relation P129
['Q251347', 'P129', 'Q21110867'] ['Q251347', 'P129', 'Q21110532']
ASK WHERE { resource:Q251347 property:P129 resource:Q21110867 . resource:Q251347 property:P129 resource:Q21110532 }
haloperidol D(1A) dopamine receptor Potassium voltage-gated channel subfamily H member 1
action is_in
entity haloperidol
action intersection
action find_reverse
entity D(1A) dopamine receptor
relation physically interacts with
action find_reverse
entity Potassium voltage-gated channel subfamily H member 1
relation physically interacts with
['haloperidol', 'physically interacts with', 'D(1A) dopamine receptor'] ['haloperidol', 'physically interacts with', 'Potassium voltage-gated channel subfamily H member 1']
ASK WHERE { resource:haloperidol property:physically_interacts_with resource:D(1A)_dopamine_receptor . resource:haloperidol property:physically_interacts_with resource:Potassium_voltage-gated_channel_subfamily_H_member_1 }
[]
nutrient
SYSTEM
YES
(Q251347,P129,Q21110867) (Q251347,P129,Q21110532)
action is_in
entity Q251347
action intersection
action find_reverse
entity Q21110867
relation P129
action find_reverse
entity Q21110532
relation P129
[ANSWER]
['Q251347', 'P129', 'Q21110867'] ['Q251347', 'P129', 'Q21110532']
ASK WHERE { resource:Q251347 property:P129 resource:Q21110867 . resource:Q251347 property:P129 resource:Q21110532 }
Yes
action is_in
entity haloperidol
action intersection
action find_reverse
entity D(1A) dopamine receptor
relation physically interacts with
action find_reverse
entity Potassium voltage-gated channel subfamily H member 1
relation physically interacts with
['haloperidol', 'physically interacts with', 'D(1A) dopamine receptor'] ['haloperidol', 'physically interacts with', 'Potassium voltage-gated channel subfamily H member 1']
ASK WHERE { resource:haloperidol property:physically_interacts_with resource:D(1A)_dopamine_receptor . resource:haloperidol property:physically_interacts_with resource:Potassium_voltage-gated_channel_subfamily_H_member_1 }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18975220 Q21110867
P2176 P129
Q8386
USER
Which drugs do D(1A) dopamine receptor communicate with or are used as an antidote for Escherichia coli infectious disease ?
OR((Q21110867,P129,c(Q8386)), (Q18975220,P2176,c(Q8386)))
action filter_type
action union
action find
entity Q21110867
relation P129
action find
entity Q18975220
relation P2176
type Q8386
{'OR': [['Q21110867', 'P129', {'concept': 'Q8386'}], ['Q18975220', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q8386 . { { resource:Q18975220 property:P2176 ?u } UNION { resource:Q21110867 property:P129 ?u } } }
Escherichia coli infectious disease D(1A) dopamine receptor
action filter_type
action union
action find
entity D(1A) dopamine receptor
relation physically interacts with
action find
entity Escherichia coli infectious disease
relation drug used for treatment
type drug
{'OR': [['D(1A) dopamine receptor', 'physically interacts with', {'concept': 'drug'}], ['Escherichia coli infectious disease', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:drug . { { resource:Escherichia_coli_infectious_disease property:drug_used_for_treatment ?u } UNION { resource:D(1A)_dopamine_receptor property:physically_interacts_with ?u } } }
[]
drug
Q422665 Q2325775 Q256602 Q413581 Q1082945 Q415167 Q421670 Q2878140 Q415739 Q415752
SYSTEM
Some of them are Trimethoprim, cefoperazone, Ciprofloxacin, bromocriptine, Ceftizoxime, Cefaclor, Meropenem, Bacampicillin, Cefazolin, pergolide
Q58376 Q413581 Q424446 Q58375 Q423308 Q170304 Q2359690 Q2552927 Q183554 Q808845 Q2878140 Q1639616 Q407972 Q6821618 Q269111 Q20817140 Q2319020 Q2365016 Q411447 Q2601530 Q244150 Q422665 Q1453445 Q421713 Q417897 Q976559 Q544393 Q203618 Q2602246 Q553220 Q1082945 Q163901 Q281082 Q251347 Q415167 Q417968 Q424193 Q3231623 Q413728 Q2325775 Q415739 Q221361 Q419521 Q411985 Q420350 Q423787 Q415752 Q2357007 Q411417 Q424940 Q421670 Q256602
OR((Q21110867,P129,c(Q8386)), (Q18975220,P2176,c(Q8386)))
action filter_type
action union
action find
entity Q21110867
relation P129
action find
entity Q18975220
relation P2176
type Q8386
[ANSWERS] D(1A) pamine receptor communicate with or are used as an antite for Escherichia coli infectious disease
{'OR': [['Q21110867', 'P129', {'concept': 'Q8386'}], ['Q18975220', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q8386 . { { resource:Q18975220 property:P2176 ?u } UNION { resource:Q21110867 property:P129 ?u } } }
fluphenazine bromocriptine lisuride thioridazine cabergoline dopamine prochlorperazine Cefepime Fosfomycin Ceftazidime Bacampicillin enoxacin chlorpromazine mesoridazine apomorphine Colistimethate cefadroxil Gatifloxacin Ofloxacin Cefamandole Ampicillin Trimethoprim Cefdinir ceftriaxone Norfloxacin Sparfloxacin Trovafloxacin Lomefloxacin Cefotetan Ertapenem Ceftizoxime Cefixime Nalidixic Acid haloperidol Cefaclor Cefotaxime Levofloxacin Cefprozil Cefuroxime cefoperazone Cefazolin clozapine Ceftibuten rotigotine flupentixol Piperacillin pergolide fenoldopam cephalexin Moxifloxacin Meropenem Ciprofloxacin
Trimethoprim, cefoperazone, Ciprofloxacin, bromocriptine, Ceftizoxime, Cefaclor, Meropenem, Bacampicillin, Cefazolin and pergolide D(1A) pamine receptor communicate with or are used as an antite for Escherichia coli infectious disease
Trimethoprim cefoperazone Ciprofloxacin bromocriptine Ceftizoxime Cefaclor Meropenem Bacampicillin Cefazolin pergolide
action filter_type
action union
action find
entity D(1A) dopamine receptor
relation physically interacts with
action find
entity Escherichia coli infectious disease
relation drug used for treatment
type drug
{'OR': [['D(1A) dopamine receptor', 'physically interacts with', {'concept': 'drug'}], ['Escherichia coli infectious disease', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:drug . { { resource:Escherichia_coli_infectious_disease property:drug_used_for_treatment ?u } UNION { resource:D(1A)_dopamine_receptor property:physically_interacts_with ?u } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q422665 Q2325775 Q256602 Q413581 Q1082945 Q415167 Q421670 Q2878140 Q415739 Q415752
P2175
Q2057971
USER
Which health problems require those drugs to be prescribed ?
(Q422665,P2175,c(Q2057971)) (Q2325775,P2175,c(Q2057971)) (Q256602,P2175,c(Q2057971)) (Q413581,P2175,c(Q2057971)) (Q1082945,P2175,c(Q2057971)) (Q415167,P2175,c(Q2057971)) (Q421670,P2175,c(Q2057971)) (Q2878140,P2175,c(Q2057971)) (Q415739,P2175,c(Q2057971)) (Q415752,P2175,c(Q2057971))
action filter_type
action find
entity prev_answer
relation P2175
type Q2057971
['Q422665', 'P2175', {'concept': 'Q2057971'}] ['Q2325775', 'P2175', {'concept': 'Q2057971'}] ['Q256602', 'P2175', {'concept': 'Q2057971'}] ['Q413581', 'P2175', {'concept': 'Q2057971'}] ['Q1082945', 'P2175', {'concept': 'Q2057971'}] ['Q415167', 'P2175', {'concept': 'Q2057971'}] ['Q421670', 'P2175', {'concept': 'Q2057971'}] ['Q2878140', 'P2175', {'concept': 'Q2057971'}] ['Q415739', 'P2175', {'concept': 'Q2057971'}] ['Q415752', 'P2175', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { ?m property:P2175 ?v . VALUES ( ?m ) { ( resource:Q58376 ) ( resource:Q413581 ) ( resource:Q424446 ) } . ?v rdf:type ontology:Q2057971 }
Trimethoprim cefoperazone Ciprofloxacin bromocriptine Ceftizoxime Cefaclor Meropenem Bacampicillin Cefazolin pergolide
action filter_type
action find
entity prev_answer
relation medical condition treated
type health problem
['Trimethoprim', 'medical condition treated', {'concept': 'health problem'}] ['cefoperazone', 'medical condition treated', {'concept': 'health problem'}] ['Ciprofloxacin', 'medical condition treated', {'concept': 'health problem'}] ['bromocriptine', 'medical condition treated', {'concept': 'health problem'}] ['Ceftizoxime', 'medical condition treated', {'concept': 'health problem'}] ['Cefaclor', 'medical condition treated', {'concept': 'health problem'}] ['Meropenem', 'medical condition treated', {'concept': 'health problem'}] ['Bacampicillin', 'medical condition treated', {'concept': 'health problem'}] ['Cefazolin', 'medical condition treated', {'concept': 'health problem'}] ['pergolide', 'medical condition treated', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { ?m property:medical_condition_treated ?v . VALUES ( ?m ) { ( resource:fluphenazine ) ( resource:bromocriptine ) ( resource:lisuride ) } . ?v rdf:type ontology:health_problem }
[]
health problem
Q221668 Q221668 Q221668
SYSTEM
acute cystitis
Q7205993 Q221668 Q154878 Q5442760 Q16935263 Q221668 Q3776920 Q19597369 Q19597369 Q83319 Q938983 Q1435822 Q129104 Q221668 Q18558195 Q129279 Q183344 Q246084 Q372752 Q727028 Q683861 Q101896 Q334655 Q1433936 Q179399 Q11085 Q938107 Q1424956 Q189580 Q5442760 Q16935263 Q221668 Q3776920 Q19597369 Q101896 Q19597369 Q2085267 Q221668 Q3776920 Q223254 Q121041 Q221668 Q223102 Q17119372 Q160653 Q221668 Q101896 Q19597369 Q2450598 Q221668 Q3776920 Q191779 Q11085
(Q422665,P2175,c(Q2057971)) (Q2325775,P2175,c(Q2057971)) (Q256602,P2175,c(Q2057971)) (Q413581,P2175,c(Q2057971)) (Q1082945,P2175,c(Q2057971)) (Q415167,P2175,c(Q2057971)) (Q421670,P2175,c(Q2057971)) (Q2878140,P2175,c(Q2057971)) (Q415739,P2175,c(Q2057971)) (Q415752,P2175,c(Q2057971))
action filter_type
action find
entity prev_answer
relation P2175
type Q2057971
[ANSWER], [ANSWER] and [ANSWER] require those drugs to be prescribed
['Q422665', 'P2175', {'concept': 'Q2057971'}] ['Q2325775', 'P2175', {'concept': 'Q2057971'}] ['Q256602', 'P2175', {'concept': 'Q2057971'}] ['Q413581', 'P2175', {'concept': 'Q2057971'}] ['Q1082945', 'P2175', {'concept': 'Q2057971'}] ['Q415167', 'P2175', {'concept': 'Q2057971'}] ['Q421670', 'P2175', {'concept': 'Q2057971'}] ['Q2878140', 'P2175', {'concept': 'Q2057971'}] ['Q415739', 'P2175', {'concept': 'Q2057971'}] ['Q415752', 'P2175', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { ?m property:P2175 ?v . VALUES ( ?m ) { ( resource:Q58376 ) ( resource:Q413581 ) ( resource:Q424446 ) } . ?v rdf:type ontology:Q2057971 }
pneumocystosis acute cystitis toxoplasmosis female reproductive system disease Serratia infection acute cystitis bacterial pneumonia Gram-negative bacterial infection Gram-negative bacterial infection typhoid fever osteomyelitis neutropenia anthrax disease acute cystitis bacterial conjunctivitis dysentery sinusitis cystitis Prostatitis bacterial infectious disease campylobacteriosis gonorrhea amenorrhea Hyperprolactinaemia infertility Parkinson's disease hypogonadism Neuroleptic malignant syndrome acromegaly female reproductive system disease Serratia infection acute cystitis bacterial pneumonia Gram-negative bacterial infection gonorrhea Gram-negative bacterial infection pharyngitis acute cystitis bacterial pneumonia otitis media appendicitis acute cystitis peritonitis Haemophilus meningitis listeriosis acute cystitis gonorrhea Gram-negative bacterial infection infective endocarditis acute cystitis bacterial pneumonia Gilles de la Tourette syndrome Parkinson's disease
Acute cystitis, acute cystitis and acute cystitis require those drugs to be prescribed
acute cystitis acute cystitis acute cystitis
action filter_type
action find
entity prev_answer
relation medical condition treated
type health problem
['Trimethoprim', 'medical condition treated', {'concept': 'health problem'}] ['cefoperazone', 'medical condition treated', {'concept': 'health problem'}] ['Ciprofloxacin', 'medical condition treated', {'concept': 'health problem'}] ['bromocriptine', 'medical condition treated', {'concept': 'health problem'}] ['Ceftizoxime', 'medical condition treated', {'concept': 'health problem'}] ['Cefaclor', 'medical condition treated', {'concept': 'health problem'}] ['Meropenem', 'medical condition treated', {'concept': 'health problem'}] ['Bacampicillin', 'medical condition treated', {'concept': 'health problem'}] ['Cefazolin', 'medical condition treated', {'concept': 'health problem'}] ['pergolide', 'medical condition treated', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { ?m property:medical_condition_treated ?v . VALUES ( ?m ) { ( resource:fluphenazine ) ( resource:bromocriptine ) ( resource:lisuride ) } . ?v rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q221668
P828
Q2057971
USER
What does acute cystitis lead to ?
(c(Q2057971),P828,Q221668)
action filter_type
action find_reverse
entity Q221668
relation P828
type Q2057971
[{'concept': 'Q2057971'}, 'P828', 'Q221668']
SELECT DISTINCT ?b WHERE { ?b property:P828 resource:Q221668 . ?b rdf:type ontology:Q2057971 }
acute cystitis
action filter_type
action find_reverse
entity acute cystitis
relation has cause
type health problem
[{'concept': 'health problem'}, 'has cause', 'acute cystitis']
SELECT DISTINCT ?b WHERE { ?b property:has_cause resource:acute_cystitis . ?b rdf:type ontology:health_problem }
[]
health problem
Q632522
SYSTEM
bacteriuria
Q632522
(c(Q2057971),P828,Q221668)
action filter_type
action find_reverse
entity Q221668
relation P828
type Q2057971
Acute cystitis leads to [ANSWER]
[{'concept': 'Q2057971'}, 'P828', 'Q221668']
SELECT DISTINCT ?b WHERE { ?b property:P828 resource:Q221668 . ?b rdf:type ontology:Q2057971 }
bacteriuria
Acute cystitis leads to bacteriuria
bacteriuria
action filter_type
action find_reverse
entity acute cystitis
relation has cause
type health problem
[{'concept': 'health problem'}, 'has cause', 'acute cystitis']
SELECT DISTINCT ?b WHERE { ?b property:has_cause resource:acute_cystitis . ?b rdf:type ontology:health_problem }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q189643
P828
Q2057971 Q1441305
USER
Which medical signs are the result of having more number of health problems than delusion ?
(c(Q1441305),P828,c(Q2057971))
action greater
action find_tuple_counts
relation P828
type Q1441305
type Q2057971
action count
action filter_type
action find
entity Q189643
relation P828
type Q1441305
[{'concept': 'Q1441305'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?s ) WHERE { ?z property:P828 ?b . ?z rdf:type ontology:Q1441305 . ?b rdf:type ontology:Q2057971 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { resource:Q189643 property:P828 ?p . ?p rdf:type ontology:Q1441305 } } . FILTER ( ?s > ?o ) }
delusion
action greater
action find_tuple_counts
relation has cause
type medical sign
type health problem
action count
action filter_type
action find
entity delusion
relation has cause
type medical sign
[{'concept': 'medical sign'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?s ) WHERE { ?z property:has_cause ?b . ?z rdf:type ontology:medical_sign . ?b rdf:type ontology:health_problem } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { resource:delusion property:has_cause ?p . ?p rdf:type ontology:medical_sign } } . FILTER ( ?s > ?o ) }
[]
health problem medical sign
Q1115038 Q127076
SYSTEM
runny nose, vomiting
Q1115038 Q127076
(c(Q1441305),P828,c(Q2057971))
action greater
action find_tuple_counts
relation P828
type Q1441305
type Q2057971
action count
action filter_type
action find
entity Q189643
relation P828
type Q1441305
[ANSWERS] are the result of having more number of health problems than delusion
[{'concept': 'Q1441305'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?s ) WHERE { ?z property:P828 ?b . ?z rdf:type ontology:Q1441305 . ?b rdf:type ontology:Q2057971 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { resource:Q189643 property:P828 ?p . ?p rdf:type ontology:Q1441305 } } . FILTER ( ?s > ?o ) }
runny nose vomiting
Runny nose and vomiting are the result of having more number of health problems than delusion
runny nose vomiting
action greater
action find_tuple_counts
relation has cause
type medical sign
type health problem
action count
action filter_type
action find
entity delusion
relation has cause
type medical sign
[{'concept': 'medical sign'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?b ) AS ?s ) WHERE { ?z property:has_cause ?b . ?z rdf:type ontology:medical_sign . ?b rdf:type ontology:health_problem } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { resource:delusion property:has_cause ?p . ?p rdf:type ontology:medical_sign } } . FILTER ( ?s > ?o ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q908663
P921
Q8386 Q838948 Q386724
USER
How many drugs were the main subjects in the work less number of works of art and works than kaolin ?
(c(Q838948)|c(Q386724),P921,c(Q8386))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q838948
action find_reverse_tuple_counts
relation P921
type Q8386
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q908663
relation P921
type Q838948
type Q386724
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?z WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:P921 resource:Q908663 . { VALUES ( ?q ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } . ?a rdf:type ?q } } } . FILTER ( ?n < ?x ) }
kaolin
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work of art
action find_reverse_tuple_counts
relation main subject
type drug
type work
action count
action filter_multi_types
action find_reverse
entity kaolin
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?z WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:work ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:main_subject resource:kaolin . { VALUES ( ?q ) { ( ontology:work_of_art ) ( ontology:work ) } . ?a rdf:type ?q } } } . FILTER ( ?n < ?x ) }
[]
drug work of art work
SYSTEM
234
Q377270 Q422416 Q410083 Q20816880 Q193572 Q192717 Q243547 Q1147309 Q409262 Q3273062 Q412194 Q5134338 Q415550 Q411441 Q418351 Q413486 Q71969 Q898739 Q421352 Q816759 Q212272 Q1752915 Q422252 Q238512 Q3108899 Q424976 Q414796 Q184630 Q413188 Q193166 Q620730 Q188017 Q238474 Q281082 Q388801 Q134658 Q18939 Q170545 Q424145 Q423989 Q421183 Q408471 Q18936 Q413690 Q258450 Q685119 Q190067 Q554881 Q80863 Q174723 Q199678 Q422241 Q408646 Q425362 Q26963 Q412143 Q416206 Q326224 Q192471 Q76560 Q2467555 Q170304 Q421862 Q423364 Q384993 Q421781 Q1215575 Q127060 Q407972 Q193045 Q190875 Q423930 Q412208 Q60235 Q411461 Q121874 Q244150 Q3800087 Q413968 Q415869 Q273169 Q180912 Q421910 Q282629 Q410352 Q213511 Q192464 Q416821 Q23118 Q29417 Q200774 Q416905 Q419642 Q132621 Q221520 Q414547 Q375613 Q423169 Q423005 Q415734 Q407617 Q413504 Q134808 Q81225 Q412221 Q416507 Q179996 Q416503 Q846227 Q285911 Q412299 Q423762 Q411635 Q412415 Q41576 Q181003 Q152763 Q421119 Q410441 Q411885 Q407781 Q179731 Q5103230 Q415939 Q46452 Q422745 Q518114 Q186127 Q190012 Q19484 Q5319614 Q186969 Q409231 Q420673 Q2701912 Q422669 Q408977 Q300989 Q412496 Q191924 Q407172 Q423357 Q419995 Q423423 Q186521 Q415588 Q407308 Q422215 Q407541 Q3322838 Q287029 Q418157 Q418011 Q219626 Q425296 Q348922 Q900898 Q186242 Q2768526 Q318369 Q423746 Q485277 Q181619 Q407431 Q411237 Q419175 Q413918 Q62947 Q191700 Q203174 Q183290 Q425289 Q904308 Q409632 Q420360 Q2603363 Q169569 Q407535 Q410358 Q339975 Q2341200 Q18216 Q821641 Q1318776 Q52353 Q408427 Q773449 Q2502747 Q409492 Q208451 Q422232 Q414065 Q19856779 Q418560 Q408032 Q415850 Q182040 Q385347 Q410595 Q2354337 Q251698 Q419401 Q418817 Q416516 Q57055 Q422112 Q178566 Q415571 Q407927 Q425502 Q39798 Q408570 Q20817216 Q407841 Q418523 Q410829 Q423814 Q192423 Q582356 Q423890 Q26272 Q411456 Q186474 Q198504 Q22124685 Q327362 Q411594 Q418656 Q2298283 Q410374 Q420436 Q410061 Q407125 Q7739
(c(Q838948)|c(Q386724),P921,c(Q8386))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q838948
action find_reverse_tuple_counts
relation P921
type Q8386
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q908663
relation P921
type Q838948
type Q386724
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?z WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:P921 resource:Q908663 . { VALUES ( ?q ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } . ?a rdf:type ?q } } } . FILTER ( ?n < ?x ) }
dihydrocodeine 17β-estradiol Polyethylene glycol L-Lysine salicylic acid Streptomycin Ketamine Cyclandelate Meticillin MM1 buspirone Clioquinol Isoprenaline hydrocodone meprobamate diphenhydramine Hexamethylenetetramine Laudanum norethisterone Beta blocker hydroxyurea trifluoperazine dexamethasone 5-fluorouracil glipizide Vitamin A temazepam Potassium Chloride methacholine Choline Glycine L-Tyrosine 5-aminolevulinic acid Nalidixic Acid furosemide nicotinic acid azathioprine L-Phenylalanine Praziquantel diethylstilbestrol Hexobarbital Paroxetine doxorubicin acetazolamide penicillin G methoxamine Δ9-tetrahydrocannabinol Ethylmorphine Adenosine triphosphate codeine Vitamin C Sodium lauryl sulfate Triclosan Hexachlorophene progesterone triazolam Pentamidine Colchicine Menadione antidepressant Furazolidone dopamine ribavirin propranolol Isoflurophate Cupric Chloride naproxen Folic Acid chlorpromazine Tetracycline cortisol hydrochlorothiazide lisinopril caffeine pilocarpine Potassium Iodide Ampicillin pyrilamine Dimercaprol carmustine capsaicin melatonin phenylephrine Vinblastine gabapentin Erythromycin Levoleucovorin Menotropins LSD all-trans-retinoic acid Follitropin beta carisoprodol Trypan blue (-)-adrenaline triamterene Sodium salicylate RK-0202 Isoniazid Malathion Aminopterin sertraline azelaic acid vaccine morphine clonidine thiotepa methadone Aminophenazone antiviral drug ouabain oxazepam Paclitaxel Permethrin cisplatin cocaine L-Tryptophan Lithium captopril modafinil Chromic chloride dextromethorphan Sodium bicarbonate Chlorphentermine chlorambucil opiumerty Benzocaine Oxybenzone Dactinomycin adenosine metformin Dz13 ibuprofen indomethacin guanethidine clofibrate Nitrofurantoin vincristine levodopa quinidine Methamphetamine Chorionic gonadotropin eugenol amiloride Sulfanilamide L-Threonine Carboplatin theophylline Phenoxymethylpenicillin fentanyl (+/-)-benzphetamine Isotretinoin Phentermine mechlorethamine (-)-ephedrine prazosin busulfan probenecid (-)-noradrenaline monobenzone Adenosine monophosphate Pyridoxine L-Histidine L-Glutamine Warfarin 4-hydroxyproline Phenacetin Isoflurane flunitrazepam Benzoic Acid thalidomide L-Serine chlorthalidone Mestranol pentobarbital phentolamine chlorothiazide Metronidazole oxycodone salbutamol Sodium Nitrite Clodronate acetylsalicylic acid metyrapone testosterone Benzyl alcohol Sulfathiazole T4 Sofosbuvir cimetidine calcium chloride methotrexate attapulgite mitomycin C ifosfamide Edetic Acid Amobarbital Aspartame thioguanine physostigmine Phosphatidyl serine Amifostine Carbachol etoposide enoxaparin paracetamol methylphenidate chlordiazepoxide Bleomycin Dimethyl sulfoxide Nitrofural Insulin Methoxsalen testosterone propionate reserpine niclosamide Heptabarbital dimercaptosuccinic acid Nicotinamide Interferon gamma-1b digitoxin Atropine methocarbamol L-Cysteine zidovudine L-Methionine triiodothyronine methoxyflurane procarbazine melphalan Papaverine docetaxel amiodarone Aluminum hydroxide Arsenic trioxide
234
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work of art
action find_reverse_tuple_counts
relation main subject
type drug
type work
action count
action filter_multi_types
action find_reverse
entity kaolin
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?z WHERE { ?i rdf:type ?h . VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:work ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { ?a property:main_subject resource:kaolin . { VALUES ( ?q ) { ( ontology:work_of_art ) ( ontology:work ) } . ?a rdf:type ?q } } } . FILTER ( ?n < ?x ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q127076
P780
Q3249551
USER
Which processes are indicated by the existence of vomiting ?
(c(Q3249551),P780,Q127076)
action filter_type
action find_reverse
entity Q127076
relation P780
type Q3249551
[{'concept': 'Q3249551'}, 'P780', 'Q127076']
SELECT DISTINCT ?k WHERE { ?k property:P780 resource:Q127076 . ?k rdf:type ontology:Q3249551 }
vomiting
action filter_type
action find_reverse
entity vomiting
relation symptoms
type process
[{'concept': 'process'}, 'symptoms', 'vomiting']
SELECT DISTINCT ?k WHERE { ?k property:symptoms resource:vomiting . ?k rdf:type ontology:process }
[]
process
Q21862830 Q7030575 Q7625508
SYSTEM
Tetrodotoxin poisoning, nicotine poisoning, strychnine poisoning
Q21862830 Q7030575 Q7625508
(c(Q3249551),P780,Q127076)
action filter_type
action find_reverse
entity Q127076
relation P780
type Q3249551
[ANSWERS] are indicated by the existence of vomiting
[{'concept': 'Q3249551'}, 'P780', 'Q127076']
SELECT DISTINCT ?k WHERE { ?k property:P780 resource:Q127076 . ?k rdf:type ontology:Q3249551 }
Tetrodotoxin poisoning nicotine poisoning strychnine poisoning
Tetrodotoxin poisoning, nicotine poisoning and strychnine poisoning are indicated by the existence of vomiting
Tetrodotoxin poisoning nicotine poisoning strychnine poisoning
action filter_type
action find_reverse
entity vomiting
relation symptoms
type process
[{'concept': 'process'}, 'symptoms', 'vomiting']
SELECT DISTINCT ?k WHERE { ?k property:symptoms resource:vomiting . ?k rdf:type ontology:process }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21174338
Q3249551
USER
And what about furfuryl alcohol exposure?
(Q21174338,P780,c(Q3249551))
action filter_type
action find
entity Q21174338
relation P780
type Q3249551
['Q21174338', 'P780', {'concept': 'Q3249551'}]
SELECT DISTINCT ?i WHERE { resource:Q21174338 property:P780 ?i . ?i rdf:type ontology:Q3249551 }
furfuryl alcohol exposure
action filter_type
action find
entity furfuryl alcohol exposure
relation symptoms
type process
['furfuryl alcohol exposure', 'symptoms', {'concept': 'process'}]
SELECT DISTINCT ?i WHERE { resource:furfuryl_alcohol_exposure property:symptoms ?i . ?i rdf:type ontology:process }
[]
process
Q584691
SYSTEM
urine output
Q584691
(Q21174338,P780,c(Q3249551))
action filter_type
action find
entity Q21174338
relation P780
type Q3249551
[ANSWER]
['Q21174338', 'P780', {'concept': 'Q3249551'}]
SELECT DISTINCT ?i WHERE { resource:Q21174338 property:P780 ?i . ?i rdf:type ontology:Q3249551 }
urine output
urine output
action filter_type
action find
entity furfuryl alcohol exposure
relation symptoms
type process
['furfuryl alcohol exposure', 'symptoms', {'concept': 'process'}]
SELECT DISTINCT ?i WHERE { resource:furfuryl_alcohol_exposure property:symptoms ?i . ?i rdf:type ontology:process }
[]