Simple Question (Direct)
Simple Question
Q212510
P509
Q2057971
USER
What caused the death of Fitz James O'Brien ?
(Q212510,P509,c(Q2057971))
action filter_type
action find
entity Q212510
relation P509
type Q2057971
['Q212510', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { resource:Q212510 property:P509 ?v . ?v rdf:type ontology:Q2057971 }
Fitz James O'Brien
action filter_type
action find
entity Fitz James O'Brien
relation cause of death
type health problem
["Fitz James O'Brien", 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { resource:Fitz_James_O'Brien property:cause_of_death ?v . ?v rdf:type ontology:health_problem }
[]
health problem
Q47790
SYSTEM
tetanus
Q47790
(Q212510,P509,c(Q2057971))
action filter_type
action find
entity Q212510
relation P509
type Q2057971
[ANSWER] caused the death of Fitz James O'Brien
['Q212510', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { resource:Q212510 property:P509 ?v . ?v rdf:type ontology:Q2057971 }
tetanus
Tetanus caused the death of Fitz James O'Brien
tetanus
action filter_type
action find
entity Fitz James O'Brien
relation cause of death
type health problem
["Fitz James O'Brien", 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { resource:Fitz_James_O'Brien property:cause_of_death ?v . ?v rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q212510
P1196
Q1931388
USER
What situation did that person die in ?
(Q47790,P1196,c(Q1931388))
action filter_type
action find
entity Q212510
relation P1196
type Q1931388
['Q47790', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { resource:Q212510 property:P1196 ?p . ?p rdf:type ontology:Q1931388 }
Fitz James O'Brien
action filter_type
action find
entity Fitz James O'Brien
relation manner of death
type cause of death
['tetanus', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { resource:Fitz_James_O'Brien property:manner_of_death ?p . ?p rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q47790,P1196,c(Q1931388))
action filter_type
action find
entity Q212510
relation P1196
type Q1931388
That person died in [ANSWER]
['Q47790', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { resource:Q212510 property:P1196 ?p . ?p rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Fitz James O'Brien
relation manner of death
type cause of death
['tetanus', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { resource:Fitz_James_O'Brien property:manner_of_death ?p . ?p rdf:type ontology:cause_of_death }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q47790
P2176
Q8386
USER
Which drugs are used for treating tetanus ?
(Q47790,P2176,c(Q8386))
action filter_type
action find
entity Q47790
relation P2176
type Q8386
['Q47790', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ?e WHERE { resource:Q47790 property:P2176 ?e . ?e rdf:type ontology:Q8386 }
tetanus
action filter_type
action find
entity tetanus
relation drug used for treatment
type drug
['tetanus', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ?e WHERE { resource:tetanus property:drug_used_for_treatment ?e . ?e rdf:type ontology:drug }
[]
drug
Q407972 Q5198674 Q411456
SYSTEM
chlorpromazine, cyclobenzaprine, methocarbamol
Q407972 Q20817012 Q3292273 Q5198674 Q411456
(Q47790,P2176,c(Q8386))
action filter_type
action find
entity Q47790
relation P2176
type Q8386
[ANSWERS] are used for treating tetanus
['Q47790', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ?e WHERE { resource:Q47790 property:P2176 ?e . ?e rdf:type ontology:Q8386 }
chlorpromazine Metocurine Iodide orphenadrine cyclobenzaprine methocarbamol
Chlorpromazine, cyclobenzaprine and methocarbamol are used for treating tetanus
chlorpromazine cyclobenzaprine methocarbamol
action filter_type
action find
entity tetanus
relation drug used for treatment
type drug
['tetanus', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ?e WHERE { resource:tetanus property:drug_used_for_treatment ?e . ?e rdf:type ontology:drug }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q221668
Q8386
USER
And how about acute cystitis?
(Q221668,P2176,c(Q8386))
action filter_type
action find
entity Q221668
relation P2176
type Q8386
['Q221668', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ?v WHERE { resource:Q221668 property:P2176 ?v . ?v rdf:type ontology:Q8386 }
acute cystitis
action filter_type
action find
entity acute cystitis
relation drug used for treatment
type drug
['acute cystitis', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ?v WHERE { resource:acute_cystitis property:drug_used_for_treatment ?v . ?v rdf:type ontology:drug }
[]
drug
Q424940 Q367700 Q216935
SYSTEM
Moxifloxacin, Cyclosporine, lidocaine
Q1758380 Q1050019 Q1638852 Q2313471 Q348260 Q418725 Q2552927 Q183554 Q367700 Q1639588 Q1639616 Q203618 Q216935 Q3307752 Q20817140 Q2319020 Q422669 Q422482 Q411447 Q2601530 Q412223 Q2736402 Q808845 Q422665 Q7636169 Q422219 Q2878140 Q421713 Q163901 Q418546 Q423787 Q3976824 Q372598 Q417897 Q425152 Q281082 Q244150 Q411417 Q1082945 Q417968 Q424193 Q2365016 Q413728 Q5119441 Q1639595 Q415843 Q2325775 Q415739 Q201928 Q2602246 Q415167 Q424940 Q2555060 Q256602 Q421670 Q2601832
(Q221668,P2176,c(Q8386))
action filter_type
action find
entity Q221668
relation P2176
type Q8386
[ANSWERS]
['Q221668', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ?v WHERE { resource:Q221668 property:P2176 ?v . ?v rdf:type ontology:Q8386 }
Tobramycin Carbenicillin Nafcillin Dicloxacillin Adalimumab Oxacillin Cefepime Fosfomycin Cyclosporine Cinoxacin enoxacin Lomefloxacin lidocaine Mezlocillin Colistimethate cefadroxil Nitrofurantoin gentamicin Ofloxacin Cefamandole Amphotericin B Demeclocycline Ceftazidime Trimethoprim Sulfacytine Cloxacillin Bacampicillin ceftriaxone Cefixime Aztreonam Piperacillin Sulfamethizole Sulfisoxazole Norfloxacin Imipenem Nalidixic Acid Ampicillin cephalexin Ceftizoxime Cefotaxime Levofloxacin Gatifloxacin Cefuroxime cyclacillin Gemifloxacin Sulfamethoxazole cefoperazone Cefazolin Amoxicillin Cefotetan Cefaclor Moxifloxacin Sulfadiazine Ciprofloxacin Meropenem Ticarcillin
Moxifloxacin Cyclosporine lidocaine
action filter_type
action find
entity acute cystitis
relation drug used for treatment
type drug
['acute cystitis', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ?v WHERE { resource:acute_cystitis property:drug_used_for_treatment ?v . ?v rdf:type ontology:drug }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q424940
P2176
Q12136 Q2057971
USER
How many diseases and health problems are cured by Moxifloxacin ?
(c(Q12136),P2176,Q424940) (c(Q2057971),P2176,Q424940)
action count
action union
action filter_type
action find_reverse
entity Q424940
relation P2176
type Q12136
action filter_type
action find_reverse
entity Q424940
relation P2176
type Q2057971
[{'concept': 'Q12136'}, 'P2176', 'Q424940'] [{'concept': 'Q2057971'}, 'P2176', 'Q424940']
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:Q12136 ) ( ontology:Q2057971 ) } }
Moxifloxacin
action count
action union
action filter_type
action find_reverse
entity Moxifloxacin
relation drug used for treatment
type disease
action filter_type
action find_reverse
entity Moxifloxacin
relation drug used for treatment
type health problem
[{'concept': 'disease'}, 'drug used for treatment', 'Moxifloxacin'] [{'concept': 'health problem'}, 'drug used for treatment', 'Moxifloxacin']
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:disease ) ( ontology:health_problem ) } }
[]
disease health problem
SYSTEM
3 diseases and 6 health problems
Q506652 Q19597369 Q23772742 Q2622199 Q221668 Q3776920 Q18975220 Q183344 Q101896
(c(Q12136),P2176,Q424940) (c(Q2057971),P2176,Q424940)
action count
action union
action filter_type
action find_reverse
entity Q424940
relation P2176
type Q12136
action filter_type
action find_reverse
entity Q424940
relation P2176
type Q2057971
[ANSWER]
[{'concept': 'Q12136'}, 'P2176', 'Q424940'] [{'concept': 'Q2057971'}, 'P2176', 'Q424940']
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:Q12136 ) ( ontology:Q2057971 ) } }
pyelonephritis Gram-negative bacterial infection Bacteroides Infections upper respiratory tract infection acute cystitis bacterial pneumonia Escherichia coli infectious disease sinusitis gonorrhea
3 diseases and 6 health problems
action count
action union
action filter_type
action find_reverse
entity Moxifloxacin
relation drug used for treatment
type disease
action filter_type
action find_reverse
entity Moxifloxacin
relation drug used for treatment
type health problem
[{'concept': 'disease'}, 'drug used for treatment', 'Moxifloxacin'] [{'concept': 'health problem'}, 'drug used for treatment', 'Moxifloxacin']
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { ?r rdf:type ?h . VALUES ( ?h ) { ( ontology:disease ) ( ontology:health_problem ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q424940
P769
Q8386
USER
What do Moxifloxacin significantly interact with ?
(c(Q8386),P769,Q424940)
action filter_type
action find
entity Q424940
relation P769
type Q8386
[{'concept': 'Q8386'}, 'P769', 'Q424940']
SELECT DISTINCT ?z WHERE { resource:Q424940 property:P769 ?z . ?z rdf:type ontology:Q8386 }
Moxifloxacin
action filter_type
action find
entity Moxifloxacin
relation significant drug interaction
type drug
[{'concept': 'drug'}, 'significant drug interaction', 'Moxifloxacin']
SELECT DISTINCT ?z WHERE { resource:Moxifloxacin property:significant_drug_interaction ?z . ?z rdf:type ontology:drug }
[]
drug
Q407972 Q251347 Q144085
SYSTEM
chlorpromazine, haloperidol, pimozide
Q58375 Q41576 Q422418 Q408163 Q422438 Q10354103 Q3791612 Q407972 Q144085 Q6821618 Q424238 Q410011 Q412496 Q4890934 Q3712521 Q413591 Q976559 Q165399 Q423757 Q425295 Q425120 Q213511 Q408637 Q118551 Q251347 Q417597 Q174259 Q419394 Q417909 Q947595 Q423437 Q409672 Q179996 Q410061 Q421381 Q7739 Q416206
(c(Q8386),P769,Q424940)
action filter_type
action find
entity Q424940
relation P769
type Q8386
Moxifloxacin interact significantly with [ANSWERS]
[{'concept': 'Q8386'}, 'P769', 'Q424940']
SELECT DISTINCT ?z WHERE { resource:Q424940 property:P769 ?z . ?z rdf:type ontology:Q8386 }
thioridazine cocaine sulpiride anagrelide chloroquine probucol ibutilide chlorpromazine pimozide mesoridazine domperidone ondansetron quinidine bepridil dofetilide sotalol Sparfloxacin Azithromycin escitalopram Cisapride Disopyramide Erythromycin dronedarone Clarithromycin haloperidol procainamide droperidol sevoflurane terfenadine Halofantrine astemizole citalopram methadone amiodarone flecainide Arsenic trioxide Pentamidine
Moxifloxacin interact significantly with chlorpromazine, haloperidol and pimozide
chlorpromazine haloperidol pimozide
action filter_type
action find
entity Moxifloxacin
relation significant drug interaction
type drug
[{'concept': 'drug'}, 'significant drug interaction', 'Moxifloxacin']
SELECT DISTINCT ?z WHERE { resource:Moxifloxacin property:significant_drug_interaction ?z . ?z rdf:type ontology:drug }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q407972 Q251347 Q144085
P2176
Q2057971
USER
Which health problems require chlorpromazine, haloperidol and pimozide as a remedy ?
(c(Q2057971),P2176,Q407972) (c(Q2057971),P2176,Q251347) (c(Q2057971),P2176,Q144085)
action union
action filter_type
action find_reverse
entity Q407972
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q251347
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q144085
relation P2176
type Q2057971
[{'concept': 'Q2057971'}, 'P2176', 'Q407972'] [{'concept': 'Q2057971'}, 'P2176', 'Q251347'] [{'concept': 'Q2057971'}, 'P2176', 'Q144085']
SELECT DISTINCT ?q WHERE { { ?q property:P2176 resource:Q251347 . ?q rdf:type ontology:Q2057971 } UNION { ?q property:P2176 resource:Q407972 . ?q rdf:type ontology:Q2057971 } }
chlorpromazine haloperidol pimozide
action union
action filter_type
action find_reverse
entity chlorpromazine
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity haloperidol
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity pimozide
relation drug used for treatment
type health problem
[{'concept': 'health problem'}, 'drug used for treatment', 'chlorpromazine'] [{'concept': 'health problem'}, 'drug used for treatment', 'haloperidol'] [{'concept': 'health problem'}, 'drug used for treatment', 'pimozide']
SELECT DISTINCT ?q WHERE { { ?q property:drug_used_for_treatment resource:haloperidol . ?q rdf:type ontology:health_problem } UNION { ?q property:drug_used_for_treatment resource:chlorpromazine . ?q rdf:type ontology:health_problem } }
[]
health problem
Q131755 Q2157462 Q2157462
SYSTEM
bipolar disorder for 1st, schizophreniform disorder for 2nd, 3rd
Q1328833 Q2157462 Q544006 Q47790 Q424247 Q191779 Q2157462 Q131755 Q191779 Q2157462 Q18555190 Q190564
(c(Q2057971),P2176,Q407972) (c(Q2057971),P2176,Q251347) (c(Q2057971),P2176,Q144085)
action union
action filter_type
action find_reverse
entity Q407972
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q251347
relation P2176
type Q2057971
action filter_type
action find_reverse
entity Q144085
relation P2176
type Q2057971
[ANSWERS]
[{'concept': 'Q2057971'}, 'P2176', 'Q407972'] [{'concept': 'Q2057971'}, 'P2176', 'Q251347'] [{'concept': 'Q2057971'}, 'P2176', 'Q144085']
SELECT DISTINCT ?q WHERE { { ?q property:P2176 resource:Q251347 . ?q rdf:type ontology:Q2057971 } UNION { ?q property:P2176 resource:Q407972 . ?q rdf:type ontology:Q2057971 } }
oppositional defiant disorder schizophreniform disorder anxiety disorder tetanus acute intermittent porphyria Gilles de la Tourette syndrome schizophreniform disorder bipolar disorder Gilles de la Tourette syndrome schizophreniform disorder transient tic disorder Huntington's disease
Bipolar disorder, schizophreniform disorder and schizophreniform disorder require chlorpromazine, haloperidol and pimozide as a remedy
bipolar disorder schizophreniform disorder schizophreniform disorder
action union
action filter_type
action find_reverse
entity chlorpromazine
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity haloperidol
relation drug used for treatment
type health problem
action filter_type
action find_reverse
entity pimozide
relation drug used for treatment
type health problem
[{'concept': 'health problem'}, 'drug used for treatment', 'chlorpromazine'] [{'concept': 'health problem'}, 'drug used for treatment', 'haloperidol'] [{'concept': 'health problem'}, 'drug used for treatment', 'pimozide']
SELECT DISTINCT ?q WHERE { { ?q property:drug_used_for_treatment resource:haloperidol . ?q rdf:type ontology:health_problem } UNION { ?q property:drug_used_for_treatment resource:chlorpromazine . ?q rdf:type ontology:health_problem } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q407972
P921
Q386724
USER
Which work was mainly based on chlorpromazine ?
(c(Q386724),P921,Q131755) (c(Q386724),P921,Q2157462) (c(Q386724),P921,Q2157462)
action filter_type
action find_reverse
entity Q407972
relation P921
type Q386724
[{'concept': 'Q386724'}, 'P921', 'Q131755'] [{'concept': 'Q386724'}, 'P921', 'Q2157462'] [{'concept': 'Q386724'}, 'P921', 'Q2157462']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q386724 . ?x property:P921 resource:Q407972 }
chlorpromazine
action filter_type
action find_reverse
entity chlorpromazine
relation main subject
type work
[{'concept': 'work'}, 'main subject', 'bipolar disorder'] [{'concept': 'work'}, 'main subject', 'schizophreniform disorder'] [{'concept': 'work'}, 'main subject', 'schizophreniform disorder']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:work . ?x property:main_subject resource:chlorpromazine }
[]
work
Q26379254
SYSTEM
The application of a computer-controlled time discrimination performance to problems in behavioral toxicology
Q26379254
(c(Q386724),P921,Q131755) (c(Q386724),P921,Q2157462) (c(Q386724),P921,Q2157462)
action filter_type
action find_reverse
entity Q407972
relation P921
type Q386724
[ANSWER] was mainly based on chlorpromazine
[{'concept': 'Q386724'}, 'P921', 'Q131755'] [{'concept': 'Q386724'}, 'P921', 'Q2157462'] [{'concept': 'Q386724'}, 'P921', 'Q2157462']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q386724 . ?x property:P921 resource:Q407972 }
The application of a computer-controlled time discrimination performance to problems in behavioral toxicology
The application of a computer-controlled time discrimination performance to problems in behavioral toxicology was mainly based on chlorpromazine
The application of a computer-controlled time discrimination performance to problems in behavioral toxicology
action filter_type
action find_reverse
entity chlorpromazine
relation main subject
type work
[{'concept': 'work'}, 'main subject', 'bipolar disorder'] [{'concept': 'work'}, 'main subject', 'schizophreniform disorder'] [{'concept': 'work'}, 'main subject', 'schizophreniform disorder']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:work . ?x property:main_subject resource:chlorpromazine }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1128595 Q2157462
P2176
Q8386
USER
Which drugs are prescribed for schizophreniform disorder and pulmonary hypertension ?
AND((Q2157462,P2176,c(Q8386)), (Q1128595,P2176,c(Q8386)))
action filter_type
action intersection
action find
entity Q2157462
relation P2176
action find
entity Q1128595
relation P2176
type Q8386
{'AND': [['Q2157462', 'P2176', {'concept': 'Q8386'}], ['Q1128595', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?r WHERE { resource:Q2157462 property:P2176 ?r . resource:Q1128595 property:P2176 ?r . ?r rdf:type ontology:Q8386 }
pulmonary hypertension schizophreniform disorder
action filter_type
action intersection
action find
entity schizophreniform disorder
relation drug used for treatment
action find
entity pulmonary hypertension
relation drug used for treatment
type drug
{'AND': [['schizophreniform disorder', 'drug used for treatment', {'concept': 'drug'}], ['pulmonary hypertension', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?r WHERE { resource:schizophreniform_disorder property:drug_used_for_treatment ?r . resource:pulmonary_hypertension property:drug_used_for_treatment ?r . ?r rdf:type ontology:drug }
[]
drug
Q18216
SYSTEM
acetylsalicylic acid
Q18216
AND((Q2157462,P2176,c(Q8386)), (Q1128595,P2176,c(Q8386)))
action filter_type
action intersection
action find
entity Q2157462
relation P2176
action find
entity Q1128595
relation P2176
type Q8386
Acid [ANSWER] is prescribed for schizophreniform disorder and pulmonary hypertension
{'AND': [['Q2157462', 'P2176', {'concept': 'Q8386'}], ['Q1128595', 'P2176', {'concept': 'Q8386'}]]}
SELECT DISTINCT ?r WHERE { resource:Q2157462 property:P2176 ?r . resource:Q1128595 property:P2176 ?r . ?r rdf:type ontology:Q8386 }
acetylsalicylic acid
Acid acetylsalicylic acid is prescribed for schizophreniform disorder and pulmonary hypertension
acetylsalicylic acid
action filter_type
action intersection
action find
entity schizophreniform disorder
relation drug used for treatment
action find
entity pulmonary hypertension
relation drug used for treatment
type drug
{'AND': [['schizophreniform disorder', 'drug used for treatment', {'concept': 'drug'}], ['pulmonary hypertension', 'drug used for treatment', {'concept': 'drug'}]]}
SELECT DISTINCT ?r WHERE { resource:schizophreniform_disorder property:drug_used_for_treatment ?r . resource:pulmonary_hypertension property:drug_used_for_treatment ?r . ?r rdf:type ontology:drug }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q23922654 Q424940
P2175 P921
Q12136
USER
Which diseases are cured by Moxifloxacin or were the main subjects of Influence of cartilage on reactivity and on the effectiveness of verapamil in guinea pig isolated airway smooth muscle 's work ?
OR((Q424940,P2175,c(Q12136)), (Q23922654,P921,c(Q12136)))
action filter_type
action union
action find
entity Q424940
relation P2175
action find
entity Q23922654
relation P921
type Q12136
{'OR': [['Q424940', 'P2175', {'concept': 'Q12136'}], ['Q23922654', 'P921', {'concept': 'Q12136'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q424940 property:P2175 ?l } UNION { resource:Q23922654 property:P921 ?l } } . ?l rdf:type ontology:Q12136 }
Influence of cartilage on reactivity and on the effectiveness of verapamil in guinea pig isolated airway smooth muscle Moxifloxacin
action filter_type
action union
action find
entity Moxifloxacin
relation medical condition treated
action find
entity Influence of cartilage on reactivity and on the effectiveness of verapamil in guinea pig isolated airway smooth muscle
relation main subject
type disease
{'OR': [['Moxifloxacin', 'medical condition treated', {'concept': 'disease'}], ['Influence of cartilage on reactivity and on the effectiveness of verapamil in guinea pig isolated airway smooth muscle', 'main subject', {'concept': 'disease'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Moxifloxacin property:medical_condition_treated ?l } UNION { resource:Influence_of_cartilage_on_reactivity_and_on_the_effectiveness_of_verapamil_in_guinea_pig_isolated_airway_smooth_muscle property:main_subject ?l } } . ?l rdf:type ontology:disease }
[]
disease
Q2622199 Q23772742 Q18975220 Q7075805
SYSTEM
upper respiratory tract infection, Bacteroides Infections, Escherichia coli infectious disease, Occupational lung disease
Q2622199 Q23772742 Q18975220 Q7075805
OR((Q424940,P2175,c(Q12136)), (Q23922654,P921,c(Q12136)))
action filter_type
action union
action find
entity Q424940
relation P2175
action find
entity Q23922654
relation P921
type Q12136
[ANSWERS] are cured by Moxifloxacin or were the main subjects of Influence of cartilage on reactivity and on the effectiveness of verapamil in guinea pig isolated airway smooth muscle 's work
{'OR': [['Q424940', 'P2175', {'concept': 'Q12136'}], ['Q23922654', 'P921', {'concept': 'Q12136'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q424940 property:P2175 ?l } UNION { resource:Q23922654 property:P921 ?l } } . ?l rdf:type ontology:Q12136 }
upper respiratory tract infection Bacteroides Infections Escherichia coli infectious disease Occupational lung disease
Upper respiratory tract infection, Bacteroides Infections, Escherichia coli infectious disease and Occupational lung disease are cured by Moxifloxacin or were the main subjects of Influence of cartilage on reactivity and on the effectiveness of verapamil in guinea pig isolated airway smooth muscle 's work
upper respiratory tract infection Bacteroides Infections Escherichia coli infectious disease Occupational lung disease
action filter_type
action union
action find
entity Moxifloxacin
relation medical condition treated
action find
entity Influence of cartilage on reactivity and on the effectiveness of verapamil in guinea pig isolated airway smooth muscle
relation main subject
type disease
{'OR': [['Moxifloxacin', 'medical condition treated', {'concept': 'disease'}], ['Influence of cartilage on reactivity and on the effectiveness of verapamil in guinea pig isolated airway smooth muscle', 'main subject', {'concept': 'disease'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Moxifloxacin property:medical_condition_treated ?l } UNION { resource:Influence_of_cartilage_on_reactivity_and_on_the_effectiveness_of_verapamil_in_guinea_pig_isolated_airway_smooth_muscle property:main_subject ?l } } . ?l rdf:type ontology:disease }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q407972 Q1135705
P769
Q8386
USER
How many drugs have a significant interaction with chlorpromazine or Rifabutin ?
(c(Q8386),P769,Q407972) (c(Q8386),P769,Q1135705)
action count
action union
action filter_type
action find_reverse
entity Q407972
relation P769
type Q8386
action filter_type
action find_reverse
entity Q1135705
relation P769
type Q8386
[{'concept': 'Q8386'}, 'P769', 'Q407972'] [{'concept': 'Q8386'}, 'P769', 'Q1135705']
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { ?y property:P769 resource:Q407972 . ?y rdf:type ontology:Q8386 } UNION { ?y property:P769 resource:Q1135705 . ?y rdf:type ontology:Q8386 } }
chlorpromazine Rifabutin
action count
action union
action filter_type
action find_reverse
entity chlorpromazine
relation significant drug interaction
type drug
action filter_type
action find_reverse
entity Rifabutin
relation significant drug interaction
type drug
[{'concept': 'drug'}, 'significant drug interaction', 'chlorpromazine'] [{'concept': 'drug'}, 'significant drug interaction', 'Rifabutin']
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { ?y property:significant_drug_interaction resource:chlorpromazine . ?y rdf:type ontology:drug } UNION { ?y property:significant_drug_interaction resource:Rifabutin . ?y rdf:type ontology:drug } }
[]
drug
SYSTEM
48
Q422198 Q58375 Q41576 Q422418 Q408163 Q423366 Q422438 Q10354103 Q425120 Q144085 Q6821618 Q424238 Q410011 Q412496 Q3765251 Q4890934 Q3712521 Q413591 Q976559 Q165399 Q422585 Q423467 Q423757 Q425295 Q1385311 Q57055 Q213511 Q408637 Q118551 Q251347 Q421381 Q425490 Q3791612 Q417597 Q174259 Q419394 Q417909 Q422654 Q423404 Q947595 Q423437 Q409672 Q179996 Q422618 Q410061 Q424940 Q7739 Q416206
(c(Q8386),P769,Q407972) (c(Q8386),P769,Q1135705)
action count
action union
action filter_type
action find_reverse
entity Q407972
relation P769
type Q8386
action filter_type
action find_reverse
entity Q1135705
relation P769
type Q8386
[ANSWER]
[{'concept': 'Q8386'}, 'P769', 'Q407972'] [{'concept': 'Q8386'}, 'P769', 'Q1135705']
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { ?y property:P769 resource:Q407972 . ?y rdf:type ontology:Q8386 } UNION { ?y property:P769 resource:Q1135705 . ?y rdf:type ontology:Q8386 } }
Amprenavir thioridazine cocaine sulpiride anagrelide Nelfinavir chloroquine probucol Disopyramide pimozide mesoridazine domperidone ondansetron quinidine Darunavir bepridil dofetilide sotalol Sparfloxacin Azithromycin Lopinavir Atazanavir escitalopram Cisapride Fosamprenavir paracetamol Erythromycin dronedarone Clarithromycin haloperidol flecainide Indinavir ibutilide procainamide droperidol sevoflurane terfenadine saquinavir Tipranavir Halofantrine astemizole citalopram methadone ritonavir amiodarone Moxifloxacin Arsenic trioxide Pentamidine
48
action count
action union
action filter_type
action find_reverse
entity chlorpromazine
relation significant drug interaction
type drug
action filter_type
action find_reverse
entity Rifabutin
relation significant drug interaction
type drug
[{'concept': 'drug'}, 'significant drug interaction', 'chlorpromazine'] [{'concept': 'drug'}, 'significant drug interaction', 'Rifabutin']
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { { ?y property:significant_drug_interaction resource:chlorpromazine . ?y rdf:type ontology:drug } UNION { ?y property:significant_drug_interaction resource:Rifabutin . ?y rdf:type ontology:drug } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q407972
P129
Q181394
USER
Which nutrients can communicate with chlorpromazine ?
action filter_type
action find
entity Q407972
relation P129
type Q181394
SELECT DISTINCT ?i WHERE { resource:Q407972 property:P129 ?i . ?i rdf:type ontology:Q181394 }
chlorpromazine
action filter_type
action find
entity chlorpromazine
relation physically interacts with
type nutrient
SELECT DISTINCT ?i WHERE { resource:chlorpromazine property:physically_interacts_with ?i . ?i rdf:type ontology:nutrient }
[]
nutrient
Q2034004 Q1949517 Q21108118
SYSTEM
D(2) dopamine receptor, 5-hydroxytryptamine receptor 2A, 5-hydroxytryptamine receptor 2C
Q21497939 Q21115043 Q309513 Q1949517 Q21110867 Q4734894 Q308856 Q4734892 Q21110872 Q21109355 Q4734891 Q2034004 Q21109363 Q21108118 Q7671468 Q21131500
action filter_type
action find
entity Q407972
relation P129
type Q181394
[ANSWERS] can communicate with chlorpromazine
SELECT DISTINCT ?i WHERE { resource:Q407972 property:P129 ?i . ?i rdf:type ontology:Q181394 }
5-hydroxytryptamine receptor 7 5-hydroxytryptamine receptor 1A Histamine H1 receptor 5-hydroxytryptamine receptor 2A D(1A) dopamine receptor Alpha-2B adrenergic receptor D(4) dopamine receptor Alpha-2A adrenergic receptor D(3) dopamine receptor 5-hydroxytryptamine receptor 7 Alpha-2C adrenergic receptor D(2) dopamine receptor 5-hydroxytryptamine receptor 6 5-hydroxytryptamine receptor 2C Short transient receptor potential channel 5 D(1B) dopamine receptor
D(2) dopamine receptor, 5-hydroxytryptamine receptor 2A and 5-hydroxytryptamine receptor 2C can communicate with chlorpromazine
D(2) dopamine receptor 5-hydroxytryptamine receptor 2A 5-hydroxytryptamine receptor 2C
action filter_type
action find
entity chlorpromazine
relation physically interacts with
type nutrient
SELECT DISTINCT ?i WHERE { resource:chlorpromazine property:physically_interacts_with ?i . ?i rdf:type ontology:nutrient }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q21126810 Q1135705
P769 P129
Q8386
USER
Which drugs do Rifabutin have a significant interaction with or communicates with Prostaglandin G/H synthase 1 ?
OR((c(Q8386),P769,Q1135705), (c(Q8386),P129,Q21126810))
action filter_type
action union
action find_reverse
entity Q1135705
relation P769
action find_reverse
entity Q21126810
relation P129
type Q8386
{'OR': [[{'concept': 'Q8386'}, 'P769', 'Q1135705'], [{'concept': 'Q8386'}, 'P129', 'Q21126810']]}
SELECT DISTINCT ?w WHERE { { { ?w property:P769 resource:Q1135705 } UNION { ?w property:P129 resource:Q21126810 } } . ?w rdf:type ontology:Q8386 }
Prostaglandin G/H synthase 1 Rifabutin
action filter_type
action union
action find_reverse
entity Rifabutin
relation significant drug interaction
action find_reverse
entity Prostaglandin G/H synthase 1
relation physically interacts with
type drug
{'OR': [[{'concept': 'drug'}, 'significant drug interaction', 'Rifabutin'], [{'concept': 'drug'}, 'physically interacts with', 'Prostaglandin G/H synthase 1']]}
SELECT DISTINCT ?w WHERE { { { ?w property:significant_drug_interaction resource:Rifabutin } UNION { ?w property:physically_interacts_with resource:Prostaglandin_G/H_synthase_1 } } . ?w rdf:type ontology:drug }
[]
drug
Q57055 Q2823284 Q422654 Q1749609 Q1215575 Q422585 Q18216 Q1385311 Q423404 Q425490
SYSTEM
Some of them are paracetamol, meclofenamic acid, saquinavir, oxaprozin, naproxen, Lopinavir, acetylsalicylic acid, Fosamprenavir, Tipranavir, Indinavir
Q422198 Q18216 Q423366 Q3978097 Q2487682 Q409192 Q3765251 Q186969 Q1215575 Q414028 Q419890 Q423404 Q2823284 Q422585 Q408676 Q423467 Q2014797 Q1385311 Q2555245 Q57055 Q425490 Q244408 Q1749609 Q284321 Q422654 Q421342 Q422618 Q20994
OR((c(Q8386),P769,Q1135705), (c(Q8386),P129,Q21126810))
action filter_type
action union
action find_reverse
entity Q1135705
relation P769
action find_reverse
entity Q21126810
relation P129
type Q8386
Rifabutin have a significant interaction with or communicates with Prostaglandin G/ H synthase 1 [ANSWERS]
{'OR': [[{'concept': 'Q8386'}, 'P769', 'Q1135705'], [{'concept': 'Q8386'}, 'P129', 'Q21126810']]}
SELECT DISTINCT ?w WHERE { { { ?w property:P769 resource:Q1135705 } UNION { ?w property:P129 resource:Q21126810 } } . ?w rdf:type ontology:Q8386 }
Amprenavir acetylsalicylic acid Nelfinavir suprofen bromfenac Ketoprofen Darunavir ibuprofen naproxen meloxicam flurbiprofen Tipranavir meclofenamic acid Lopinavir piroxicam Atazanavir Ketorolac Fosamprenavir fenoprofen paracetamol Indinavir diclofenac oxaprozin mefenamic acid saquinavir phenylbutazone ritonavir nimesulide
Rifabutin have a significant interaction with or communicates with Prostaglandin G/ H synthase 1 paracetamol, meclofenamic acid, saquinavir, oxaprozin, naproxen, Lopinavir, acetylsalicylic acid, Fosamprenavir, Tipranavir and Indinavir
paracetamol meclofenamic acid saquinavir oxaprozin naproxen Lopinavir acetylsalicylic acid Fosamprenavir Tipranavir Indinavir
action filter_type
action union
action find_reverse
entity Rifabutin
relation significant drug interaction
action find_reverse
entity Prostaglandin G/H synthase 1
relation physically interacts with
type drug
{'OR': [[{'concept': 'drug'}, 'significant drug interaction', 'Rifabutin'], [{'concept': 'drug'}, 'physically interacts with', 'Prostaglandin G/H synthase 1']]}
SELECT DISTINCT ?w WHERE { { { ?w property:significant_drug_interaction resource:Rifabutin } UNION { ?w property:physically_interacts_with resource:Prostaglandin_G/H_synthase_1 } } . ?w rdf:type ontology:drug }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q8386 Q386724 Q2342494
USER
Which drugs were the main subjects of max number of works and collectables 's work ?
(c(Q386724)|c(Q2342494),P921,c(Q8386))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q386724
action find_reverse_tuple_counts
relation P921
type Q8386
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?k ) WHERE { VALUES ( ?b ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } . ?t rdf:type ?b } GROUP BY ?h } . FILTER ( ?k = ?v ) . { SELECT DISTINCT ( MAX ( ?z ) AS ?v ) { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?z ) WHERE { { ?c property:P921 ?u . ?c rdf:type ontology:Q386724 . ?u rdf:type ontology:Q8386 } UNION { ?c property:P921 ?u . ?u rdf:type ontology:Q8386 . ?c rdf:type ontology:Q2342494 } } GROUP BY ?u } } }
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work
action find_reverse_tuple_counts
relation main subject
type drug
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?k ) WHERE { VALUES ( ?b ) { ( ontology:work ) ( ontology:collectable ) } . ?t rdf:type ?b } GROUP BY ?h } . FILTER ( ?k = ?v ) . { SELECT DISTINCT ( MAX ( ?z ) AS ?v ) { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?z ) WHERE { { ?c property:main_subject ?u . ?c rdf:type ontology:work . ?u rdf:type ontology:drug } UNION { ?c property:main_subject ?u . ?u rdf:type ontology:drug . ?c rdf:type ontology:collectable } } GROUP BY ?u } } }
[]
drug work collectable
Q753
SYSTEM
copper
Q753
(c(Q386724)|c(Q2342494),P921,c(Q8386))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q386724
action find_reverse_tuple_counts
relation P921
type Q8386
type Q2342494
[ANSWER] was the main subjects of max number of works and collectables 's work
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?k ) WHERE { VALUES ( ?b ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } . ?t rdf:type ?b } GROUP BY ?h } . FILTER ( ?k = ?v ) . { SELECT DISTINCT ( MAX ( ?z ) AS ?v ) { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?z ) WHERE { { ?c property:P921 ?u . ?c rdf:type ontology:Q386724 . ?u rdf:type ontology:Q8386 } UNION { ?c property:P921 ?u . ?u rdf:type ontology:Q8386 . ?c rdf:type ontology:Q2342494 } } GROUP BY ?u } } }
copper
Copper was the main subjects of max number of works and collectables 's work
copper
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work
action find_reverse_tuple_counts
relation main subject
type drug
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?k ) WHERE { VALUES ( ?b ) { ( ontology:work ) ( ontology:collectable ) } . ?t rdf:type ?b } GROUP BY ?h } . FILTER ( ?k = ?v ) . { SELECT DISTINCT ( MAX ( ?z ) AS ?v ) { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?z ) WHERE { { ?c property:main_subject ?u . ?c rdf:type ontology:work . ?u rdf:type ontology:drug } UNION { ?c property:main_subject ?u . ?u rdf:type ontology:drug . ?c rdf:type ontology:collectable } } GROUP BY ?u } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q753
P138
Q271669
USER
How many landforms are the origin of copper ?
(Q753,P138,c(Q271669))
action count
action filter_type
action find
entity Q753
relation P138
type Q271669
['Q753', 'P138', {'concept': 'Q271669'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { resource:Q753 property:P138 ?a . ?a rdf:type ontology:Q271669 }
copper
action count
action filter_type
action find
entity copper
relation named after
type landform
['copper', 'named after', {'concept': 'landform'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { resource:copper property:named_after ?a . ?a rdf:type ontology:landform }
[]
landform
SYSTEM
1
Q644636
(Q753,P138,c(Q271669))
action count
action filter_type
action find
entity Q753
relation P138
type Q271669
[ANSWER]
['Q753', 'P138', {'concept': 'Q271669'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { resource:Q753 property:P138 ?a . ?a rdf:type ontology:Q271669 }
Cyprus
1
action count
action filter_type
action find
entity copper
relation named after
type landform
['copper', 'named after', {'concept': 'landform'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { resource:copper property:named_after ?a . ?a rdf:type ontology:landform }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q753
P186
Q838948
USER
Which works of art are constructed copper ?
(c(Q838948),P186,Q753)
action filter_type
action find_reverse
entity Q753
relation P186
type Q838948
[{'concept': 'Q838948'}, 'P186', 'Q753']
SELECT DISTINCT ?s WHERE { ?s property:P186 resource:Q753 . ?s rdf:type ontology:Q838948 }
copper
action filter_type
action find_reverse
entity copper
relation material used
type work of art
[{'concept': 'work of art'}, 'material used', 'copper']
SELECT DISTINCT ?s WHERE { ?s property:material_used resource:copper . ?s rdf:type ontology:work_of_art }
[]
work of art
Q9202 Q3555769 Q2858460
SYSTEM
Statue of Liberty, Vercingétorix, Apollo of Piombino
Q3707830 Q12873513 Q4302168 Q19878377 Q3555769 Q5168696 Q2962557 Q9202 Q19017414 Q3036228 Q2858460 Q7578024 Q2886319 Q470763 Q3209104 Q1345100 Q558537
(c(Q838948),P186,Q753)
action filter_type
action find_reverse
entity Q753
relation P186
type Q838948
The [ANSWERS] are constructed copper
[{'concept': 'Q838948'}, 'P186', 'Q753']
SELECT DISTINCT ?s WHERE { ?s property:P186 resource:Q753 . ?s rdf:type ontology:Q838948 }
Dynamism of a Speeding Horse + Houses Votive Offering (Anathema) of Attalos Defenders of the Fatherland of the Don Cossacks Grasshopper Vercingétorix Copper Bull Cheminée végétale Statue of Liberty effigy of Blanche de Champagne Flame of Liberty Apollo of Piombino Spirit of the American Doughboy Bas-relief en cuivre African Renaissance Monument La Fontaine des corolles Kryptos Golden Rider
The Statue of Liberty, Vercingétorix and Apollo of Piombino are constructed copper
Statue of Liberty Vercingétorix Apollo of Piombino
action filter_type
action find_reverse
entity copper
relation material used
type work of art
[{'concept': 'work of art'}, 'material used', 'copper']
SELECT DISTINCT ?s WHERE { ?s property:material_used resource:copper . ?s rdf:type ontology:work_of_art }
[]