Simple Question (Direct)
Simple Question
Q2129510
P7
Q502895
USER
Who is the brother of Carlo Giorgio Augusto di Brunswick-Wolfenbüttel ?
(Q2129510,P7,c(Q502895))
action filter_type
action find
entity Q2129510
relation P7
type Q502895
['Q2129510', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q2129510 property:P7 ?q . ?q rdf:type ontology:Q502895 }
Carlo Giorgio Augusto di Brunswick-Wolfenbüttel
action filter_type
action find
entity Carlo Giorgio Augusto di Brunswick-Wolfenbüttel
relation brother
type common name
['Carlo Giorgio Augusto di Brunswick-Wolfenbüttel', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Carlo_Giorgio_Augusto_di_Brunswick-Wolfenbüttel property:brother ?q . ?q rdf:type ontology:common_name }
[]
common name
Q62029
SYSTEM
Frederick William, Duke of Brunswick-Wolfenbüttel
Q62029
(Q2129510,P7,c(Q502895))
action filter_type
action find
entity Q2129510
relation P7
type Q502895
The brother of Carlo Giorgio Augusto di Brunswick-Wolfenbüttel is born [ANSWER]
['Q2129510', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q2129510 property:P7 ?q . ?q rdf:type ontology:Q502895 }
Frederick William, Duke of Brunswick-Wolfenbüttel
The brother of Carlo Giorgio Augusto di Brunswick-Wolfenbüttel is born Frederick William, Duke of Brunswick-Wolfenbüttel
Frederick William, Duke of Brunswick-Wolfenbüttel
action filter_type
action find
entity Carlo Giorgio Augusto di Brunswick-Wolfenbüttel
relation brother
type common name
['Carlo Giorgio Augusto di Brunswick-Wolfenbüttel', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Carlo_Giorgio_Augusto_di_Brunswick-Wolfenbüttel property:brother ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q62029
P26
Q502895
USER
Which person has that one as spouse ?
(c(Q502895),P26,Q62029)
action filter_type
action find
entity Q62029
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q62029']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q62029 property:P26 ?w }
Frederick William, Duke of Brunswick-Wolfenbüttel
action filter_type
action find
entity Frederick William, Duke of Brunswick-Wolfenbüttel
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Frederick William, Duke of Brunswick-Wolfenbüttel']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Frederick_William,_Duke_of_Brunswick-Wolfenbüttel property:spouse ?w }
[]
common name
Q272010
SYSTEM
Princess Marie of Baden
Q272010
(c(Q502895),P26,Q62029)
action filter_type
action find
entity Q62029
relation P26
type Q502895
[ANSWER] has that one as spouse
[{'concept': 'Q502895'}, 'P26', 'Q62029']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q62029 property:P26 ?w }
Princess Marie of Baden
Princess Marie of Baden has that one as spouse
Princess Marie of Baden
action filter_type
action find
entity Frederick William, Duke of Brunswick-Wolfenbüttel
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Frederick William, Duke of Brunswick-Wolfenbüttel']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Frederick_William,_Duke_of_Brunswick-Wolfenbüttel property:spouse ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q272010
P53
Q13417114
USER
What dynasty does that person belong to ?
(Q272010,P53,c(Q13417114))
action filter_type
action find
entity Q272010
relation P53
type Q13417114
['Q272010', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?m WHERE { resource:Q272010 property:P53 ?m . ?m rdf:type ontology:Q13417114 }
Princess Marie of Baden
action filter_type
action find
entity Princess Marie of Baden
relation noble family
type noble family
['Princess Marie of Baden', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?m WHERE { resource:Princess_Marie_of_Baden property:noble_family ?m . ?m rdf:type ontology:noble_family }
[]
noble family
Q247331
SYSTEM
House of Zähringen
Q247331
(Q272010,P53,c(Q13417114))
action filter_type
action find
entity Q272010
relation P53
type Q13417114
That person belongs to [ANSWER]
['Q272010', 'P53', {'concept': 'Q13417114'}]
SELECT DISTINCT ?m WHERE { resource:Q272010 property:P53 ?m . ?m rdf:type ontology:Q13417114 }
House of Zähringen
That person belongs to House of Zähringen
House of Zähringen
action filter_type
action find
entity Princess Marie of Baden
relation noble family
type noble family
['Princess Marie of Baden', 'noble family', {'concept': 'noble family'}]
SELECT DISTINCT ?m WHERE { resource:Princess_Marie_of_Baden property:noble_family ?m . ?m rdf:type ontology:noble_family }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q247331
P112
Q502895
USER
Who founded that noble family ?
(Q247331,P112,c(Q502895))
action filter_type
action find
entity Q247331
relation P112
type Q502895
['Q247331', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q247331 property:P112 ?y . ?y rdf:type ontology:Q502895 }
House of Zähringen
action filter_type
action find
entity House of Zähringen
relation founder
type common name
['House of Zähringen', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:House_of_Zähringen property:founder ?y . ?y rdf:type ontology:common_name }
[]
common name
Q700087
SYSTEM
Berthold II, Duke of Carinthia
Q700087
(Q247331,P112,c(Q502895))
action filter_type
action find
entity Q247331
relation P112
type Q502895
[ANSWER] founded that noble family
['Q247331', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q247331 property:P112 ?y . ?y rdf:type ontology:Q502895 }
Berthold II, Duke of Carinthia
Berthold II, Duke of Carinthia founded that noble family
Berthold II, Duke of Carinthia
action filter_type
action find
entity House of Zähringen
relation founder
type common name
['House of Zähringen', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:House_of_Zähringen property:founder ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2129510
P40
Q502895
USER
Whose child are Carlo Giorgio Augusto di Brunswick-Wolfenbüttel ?
(c(Q502895),P40,Q2129510)
action filter_type
action find_reverse
entity Q2129510
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q2129510']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q2129510 . ?b rdf:type ontology:Q502895 }
Carlo Giorgio Augusto di Brunswick-Wolfenbüttel
action filter_type
action find_reverse
entity Carlo Giorgio Augusto di Brunswick-Wolfenbüttel
relation child
type common name
[{'concept': 'common name'}, 'child', 'Carlo Giorgio Augusto di Brunswick-Wolfenbüttel']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Carlo_Giorgio_Augusto_di_Brunswick-Wolfenbüttel . ?b rdf:type ontology:common_name }
[]
common name
Q58773 Q238458
SYSTEM
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel, Princess Augusta of Great Britain
Q58773 Q238458
(c(Q502895),P40,Q2129510)
action filter_type
action find_reverse
entity Q2129510
relation P40
type Q502895
[ANSWERS] are Carlo Giorgio Augusto di Brunswick-Wolfenbüttel
[{'concept': 'Q502895'}, 'P40', 'Q2129510']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q2129510 . ?b rdf:type ontology:Q502895 }
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel Princess Augusta of Great Britain
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel and Princess Augusta of Great Britain are Carlo Giorgio Augusto di Brunswick-Wolfenbüttel
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel Princess Augusta of Great Britain
action filter_type
action find_reverse
entity Carlo Giorgio Augusto di Brunswick-Wolfenbüttel
relation child
type common name
[{'concept': 'common name'}, 'child', 'Carlo Giorgio Augusto di Brunswick-Wolfenbüttel']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Carlo_Giorgio_Augusto_di_Brunswick-Wolfenbüttel . ?b rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q238458
P1050
Q2057971
USER
What is that person affected by ?
(Q238458,P1050,c(Q2057971))
action filter_type
action find
entity Q238458
relation P1050
type Q2057971
['Q238458', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q238458 property:P1050 ?g . ?g rdf:type ontology:Q2057971 }
Princess Augusta of Great Britain
action filter_type
action find
entity Princess Augusta of Great Britain
relation medical condition
type health problem
['Princess Augusta of Great Britain', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:Princess_Augusta_of_Great_Britain property:medical_condition ?g . ?g rdf:type ontology:health_problem }
[]
health problem
Clarification for simple ques.
Q58773
SYSTEM
Did you mean Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel ?
Q58773 Q238458
(Q58773,P1050,c(Q2057971)) (Q238458,P1050,c(Q2057971))
[ANSWER]
['Q58773', 'P1050', {'concept': 'Q2057971'}] ['Q238458', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q238458 property:P1050 ?g . ?g rdf:type ontology:Q2057971 }
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel Princess Augusta of Great Britain
Did you mean Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel ?
Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel
['Charles William Ferdinand, Duke of Brunswick-Wolfenbüttel', 'medical condition', {'concept': 'health problem'}] ['Princess Augusta of Great Britain', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:Princess_Augusta_of_Great_Britain property:medical_condition ?g . ?g rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
USER
No, I meant Princess Augusta of Great Britain. Could you tell me the answer for that?
(Q238458,P1050,c(Q2057971))
Q238458
['Q238458', 'P1050', {'concept': 'Q2057971'}]
['Princess Augusta of Great Britain', 'medical condition', {'concept': 'health problem'}]
[]
Q2840
SYSTEM
influenza
Q2840
(Q238458,P1050,c(Q2057971))
action filter_type
action find
entity Q238458
relation P1050
type Q2057971
Is affected by the [ANSWER]
['Q238458', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q238458 property:P1050 ?g . ?g rdf:type ontology:Q2057971 }
influenza
Is affected by the influenza
influenza
action filter_type
action find
entity Princess Augusta of Great Britain
relation medical condition
type health problem
['Princess Augusta of Great Britain', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:Princess_Augusta_of_Great_Britain property:medical_condition ?g . ?g rdf:type ontology:health_problem }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P1050
Q2057971 Q502895
USER
Which health problems have approximately the same number of people contracted as that health problem ?
(c(Q502895),P1050,c(Q2057971))
action approx
action find_reverse_tuple_counts
relation P1050
type Q2057971
type Q502895
action count
action filter_type
action find
entity Q2840
relation P1050
type Q2057971
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?r ) WHERE { ?t rdf:type ontology:Q2057971 . ?z rdf:type ontology:Q502895 . ?z property:P1050 ?t } GROUP BY ?t } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:Q2840 property:P1050 ?k . ?k rdf:type ontology:Q2057971 } } }
action approx
action find_reverse_tuple_counts
relation medical condition
type health problem
type common name
action count
action filter_type
action find
entity influenza
relation medical condition
type health problem
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?r ) WHERE { ?t rdf:type ontology:health_problem . ?z rdf:type ontology:common_name . ?z property:medical_condition ?t } GROUP BY ?t } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:influenza property:medical_condition ?k . ?k rdf:type ontology:health_problem } } }
[]
health problem common name
Q12174 Q187255 Q128581
SYSTEM
obesity, rheumatoid arthritis, breast cancer
Q6052272 Q372701 Q83319 Q1151507 Q794457 Q1198391 Q749409 Q160649 Q500695 Q3280669 Q16501 Q173022 Q2290446 Q35869 Q12199 Q7578960 Q36956 Q3025883 Q658873 Q18657 Q727096 Q16483 Q478389 Q2307256 Q41083 Q155098 Q727153 Q170990 Q1143025 Q147778 Q1209744 Q12174 Q623031 Q954625 Q857667 Q1282114 Q2035074 Q572169 Q1165179 Q202837 Q844935 Q131742 Q847057 Q178190 Q134649 Q213098 Q191779 Q1137767 Q185034 Q12167 Q223591 Q2562598 Q187255 Q1436063 Q208414 Q644318 Q12195 Q118418 Q622427 Q1138590 Q916398 Q168403 Q12152 Q48143 Q536269 Q244438 Q188874 Q944758 Q134003 Q159701 Q11088 Q156050 Q206901 Q939364 Q190805 Q199804 Q653078 Q202387 Q1331905 Q616087 Q4117241 Q41571 Q8388 Q625164 Q181257 Q180664 Q8277 Q1049655 Q38404 Q844717 Q180266 Q938983 Q568865 Q504775 Q2836 Q671776 Q131755 Q133696 Q124292 Q12156 Q925092 Q744790 Q42844 Q5445 Q10860654 Q132971 Q15283847 Q189580 Q181754 Q5282843 Q753904 Q189588 Q264118 Q220570 Q580290 Q2500124 Q684924 Q12135 Q131749 Q1755568 Q161790 Q572111 Q3144986 Q3041498 Q418418 Q174857 Q340594 Q154874 Q281115 Q1112977 Q693519 Q181923 Q12202 Q12206 Q1161568 Q501829 Q595010 Q133087 Q18554893 Q128581 Q193894 Q39222 Q47715 Q12214 Q2406697 Q207133 Q124407 Q476921 Q12192 Q1209150 Q4839317 Q29496 Q467635 Q1066311 Q194101 Q210427 Q1410831 Q208562 Q188605 Q7162621 Q653318 Q2606101 Q2840 Q81867 Q1141499 Q83030
(c(Q502895),P1050,c(Q2057971))
action approx
action find_reverse_tuple_counts
relation P1050
type Q2057971
type Q502895
action count
action filter_type
action find
entity Q2840
relation P1050
type Q2057971
[ANSWERS] have approximately the same number of people contracted as that health problem
[{'concept': 'Q502895'}, 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?r ) WHERE { ?t rdf:type ontology:Q2057971 . ?z rdf:type ontology:Q502895 . ?z property:P1050 ?t } GROUP BY ?t } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:Q2840 property:P1050 ?k . ?k rdf:type ontology:Q2057971 } } }
Mozart ear esophageal cancer typhoid fever dermatitis herpetiformis Locked-in syndrome intracranial aneurysm osteogenesis imperfecta typhus retinoblastoma brain injury hypothyroidisms bronchitis idiopathic pulmonary fibrosis asthma acquired immunodeficiency syndrome Spondyloepiphyseal dysplasia congenita leprosy type 2 diabetes mellitus Radiation burn multiple personality disorder physical disorder toxic diffuse goiter kyphosis neuritis syphilis leptospirosis hiatus hernia arthritis oral cavity cancer liver cirrhosis uterine cancer obesity liver cancer myelodysplastic syndrome pulmonary edema speech disorder Paget's disease of bone Seckel syndrome Kallmann syndrome cardiac arrest coronary artery disease hepatitis retinitis pigmentosa obsessive-compulsive disorder diphtheria progeria Gilles de la Tourette syndrome muscular dystrophy sickle cell anemia malnutrition gastroesophageal reflux disease hemophilia B rheumatoid arthritis autism spectrum disorder lymphoma vasculitis poliomyelitis antisocial personality disorder ptosis non-Hodgkin lymphoma lymphedema myopia myocardial infarction meningitis phaeochromocytoma prosopagnosia colorectal cancer Tetraplegia inherited blood coagulation disease glaucoma celiac disease brucellosis amyotrophic lateral sclerosis congenital heart disease heart disease chronic obstructive pulmonary disease Whipple disease post-traumatic stress disorder dementia with Lewy bodies aortic valve insufficiency autoimmune polyendocrine syndrome type 2 epilepsy pedophilia retinal detachment prostate cancer acute lymphocytic leukemia multiple sclerosis paraplegia autism spina bifida scarlet fever osteomyelitis cherubism urinary bladder cancer aphasia mutism bipolar disorder color blindness cholangiocarcinoma malaria Wolff-Parkinson-White syndrome Treacher Collins syndrome major depressive disorder anemia Iron overload dyslexia knee injury acromegaly heart failure Distal muscular dystrophy rheumatic fever stomach cancer acute myeloid leukemia pulmonary embolism Spinal muscular atrophy Urbach–Wiethe disease rheumatism mental disorder anorexia nervosa osteopetrosis Asperger syndrome anterograde amnesia Alcoholic hepatitis eye disease ankylosis scoliosis achondroplasia yellow fever Proteus syndrome syringomyelia essential tremor attention deficit hyperactivity disorder stroke diabetes mellitus Granulomatosis with polyangiits gigantism hypertrichosis gout ocular melanoma breast cancer sarcoidosis rabies Down syndrome smallpox Tetraamelie Klinefelter's syndrome type 1 diabetes mellitus kidney failure pneumonia cerebral infarction back injury leukemia multiple myeloma complex regional pain syndrome dwarfism cerebral palsy fibrodysplasia ossificans progressiva Marfan syndrome pulmonary emphysema penetrating trauma silicosis Paranoid schizophrenia influenza albino Ehlers–Danlos syndrome dementia
Obesity, rheumatoid arthritis and breast cancer have approximately the same number of people contracted as that health problem
obesity rheumatoid arthritis breast cancer
action approx
action find_reverse_tuple_counts
relation medical condition
type health problem
type common name
action count
action filter_type
action find
entity influenza
relation medical condition
type health problem
[{'concept': 'common name'}, 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?z ) AS ?r ) WHERE { ?t rdf:type ontology:health_problem . ?z rdf:type ontology:common_name . ?z property:medical_condition ?t } GROUP BY ?t } . FILTER ( ?r = ?w ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { resource:influenza property:medical_condition ?k . ?k rdf:type ontology:health_problem } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2840
P2176
Q8386
USER
How many drugs are used to cure influenza ?
(Q2840,P2176,c(Q8386))
action count
action filter_type
action find
entity Q2840
relation P2176
type Q8386
['Q2840', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Q2840 property:P2176 ?w . ?w rdf:type ontology:Q8386 }
influenza
action count
action filter_type
action find
entity influenza
relation drug used for treatment
type drug
['influenza', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:influenza property:drug_used_for_treatment ?w . ?w rdf:type ontology:drug }
[]
drug
SYSTEM
4
Q15353101 Q139347 Q57055 Q412734
(Q2840,P2176,c(Q8386))
action count
action filter_type
action find
entity Q2840
relation P2176
type Q8386
[ANSWER]
['Q2840', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:Q2840 property:P2176 ?w . ?w rdf:type ontology:Q8386 }
Interferon alfacon-1 Cholecalciferol paracetamol Peramivir
4
action count
action filter_type
action find
entity influenza
relation drug used for treatment
type drug
['influenza', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { resource:influenza property:drug_used_for_treatment ?w . ?w rdf:type ontology:drug }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q18558279
Q8386
USER
And how about tertiary neurosyphilis?
(Q18558279,P2176,c(Q8386))
action count
action filter_type
action find
entity Q18558279
relation P2176
type Q8386
['Q18558279', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:Q18558279 property:P2176 ?c . ?c rdf:type ontology:Q8386 }
tertiary neurosyphilis
action count
action filter_type
action find
entity tertiary neurosyphilis
relation drug used for treatment
type drug
['tertiary neurosyphilis', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:tertiary_neurosyphilis property:drug_used_for_treatment ?c . ?c rdf:type ontology:drug }
[]
drug
SYSTEM
1
(Q18558279,P2176,c(Q8386))
action count
action filter_type
action find
entity Q18558279
relation P2176
type Q8386
[ANSWER]
['Q18558279', 'P2176', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:Q18558279 property:P2176 ?c . ?c rdf:type ontology:Q8386 }
1
action count
action filter_type
action find
entity tertiary neurosyphilis
relation drug used for treatment
type drug
['tertiary neurosyphilis', 'drug used for treatment', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:tertiary_neurosyphilis property:drug_used_for_treatment ?c . ?c rdf:type ontology:drug }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q128581
P2175
Q8386 Q79529
USER
How many drugs and chemical substances are prescribed for breast cancer ?
(c(Q8386),P2175,Q128581) (c(Q79529),P2175,Q128581)
action count
action union
action filter_type
action find_reverse
entity Q128581
relation P2175
type Q8386
action filter_type
action find_reverse
entity Q128581
relation P2175
type Q79529
[{'concept': 'Q8386'}, 'P2175', 'Q128581'] [{'concept': 'Q79529'}, 'P2175', 'Q128581']
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { ?x property:P2175 resource:Q128581 . ?x rdf:type ontology:Q79529 } UNION { ?x property:P2175 resource:Q128581 . ?x rdf:type ontology:Q8386 } }
breast cancer
action count
action union
action filter_type
action find_reverse
entity breast cancer
relation medical condition treated
type drug
action filter_type
action find_reverse
entity breast cancer
relation medical condition treated
type chemical substance
[{'concept': 'drug'}, 'medical condition treated', 'breast cancer'] [{'concept': 'chemical substance'}, 'medical condition treated', 'breast cancer']
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { ?x property:medical_condition_treated resource:breast_cancer . ?x rdf:type ontology:chemical_substance } UNION { ?x property:medical_condition_treated resource:breast_cancer . ?x rdf:type ontology:drug } }
[]
drug chemical substance
SYSTEM
72 drugs and 1 chemical substances
Q412415 Q11711607 Q422416 Q4347890 Q415939 Q139347 Q425122 Q412197 Q216935 Q3985253 Q420532 Q408283 Q239426 Q412616 Q1988832 Q422252 Q421052 Q238512 Q424049 Q7083106 Q670131 Q18216 Q2178381 Q423989 Q415588 Q1998021 Q18936 Q413299 Q5462791 Q5508491 Q26963 Q408524 Q194974 Q3950557 Q410663 Q419940 Q412534 Q421862 Q524995 Q422806 Q907160 Q412178 Q1592932 Q420207 Q1215575 Q419143 Q418192 Q418560 Q15269707 Q282629 Q241150 Q905901 Q1996756 Q418817 Q418819 Q180983 Q218507 Q422222 Q1063862 Q139195 Q408801 Q6808975 Q417740 Q409587 Q417824 Q412963 Q421768 Q422232 Q3993743 Q2298283 Q420436 Q240642 Q423762
(c(Q8386),P2175,Q128581) (c(Q79529),P2175,Q128581)
action count
action union
action filter_type
action find_reverse
entity Q128581
relation P2175
type Q8386
action filter_type
action find_reverse
entity Q128581
relation P2175
type Q79529
[ANSWER]
[{'concept': 'Q8386'}, 'P2175', 'Q128581'] [{'concept': 'Q79529'}, 'P2175', 'Q128581']
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { ?x property:P2175 resource:Q128581 . ?x rdf:type ontology:Q79529 } UNION { ?x property:P2175 resource:Q128581 . ?x rdf:type ontology:Q8386 } }
cisplatin Ixabepilone 17β-estradiol sodium valproate chlorambucil Cholecalciferol Epirubicin irinotecan lidocaine testolactone Vinorelbine Denosumab mitoxantrone Trastuzumab bicalutamide dexamethasone Everolimus 5-fluorouracil loratadine olaparib simvastatin acetylsalicylic acid Darbepoetin alfa diethylstilbestrol Carboplatin Pertuzumab doxorubicin Bevacizumab fluocinonide Fulvestrant progesterone cyclophosphamide letrozole Sargramostim fluoxymesterone dasatinib carvedilol ribavirin dexrazoxane bupivacaine leuprolide tamoxifen Pegfilgrastim capecitabine naproxen anastrozole bexarotene ifosfamide palbociclib Vinblastine aminoglutethimide vorinostat enzalutamide etoposide exemestane cytarabine zoledronic acid Digoxin idarubicin Calcitriol celecoxib megestrol acetate lovastatin naltrexone gefitinib cabazitaxel methyltestosterone methotrexate toremifene melphalan docetaxel valproic acid Paclitaxel
72 drugs and 1 chemical substances
action count
action union
action filter_type
action find_reverse
entity breast cancer
relation medical condition treated
type drug
action filter_type
action find_reverse
entity breast cancer
relation medical condition treated
type chemical substance
[{'concept': 'drug'}, 'medical condition treated', 'breast cancer'] [{'concept': 'chemical substance'}, 'medical condition treated', 'breast cancer']
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { ?x property:medical_condition_treated resource:breast_cancer . ?x rdf:type ontology:chemical_substance } UNION { ?x property:medical_condition_treated resource:breast_cancer . ?x rdf:type ontology:drug } }
[]