Simple Question (Direct)
Simple Question
Q16939468
P793
Q151885
USER
Which significant event is Mahjoub Sharif associated with ?
(Q16939468,P793,c(Q151885))
action filter_type
action find
entity Q16939468
relation P793
type Q151885
['Q16939468', 'P793', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q16939468 property:P793 ?r . ?r rdf:type ontology:Q151885 }
Mahjoub Sharif
action filter_type
action find
entity Mahjoub Sharif
relation significant event
type concept
['Mahjoub Sharif', 'significant event', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:Mahjoub_Sharif property:significant_event ?r . ?r rdf:type ontology:concept }
[]
concept
Q4667873
SYSTEM
prisoner of conscience
Q4667873
(Q16939468,P793,c(Q151885))
action filter_type
action find
entity Q16939468
relation P793
type Q151885
Mahjoub Sharif is associated with [ANSWER]
['Q16939468', 'P793', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { resource:Q16939468 property:P793 ?r . ?r rdf:type ontology:Q151885 }
prisoner of conscience
Mahjoub Sharif is associated with prisoner of conscience
prisoner of conscience
action filter_type
action find
entity Mahjoub Sharif
relation significant event
type concept
['Mahjoub Sharif', 'significant event', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { resource:Mahjoub_Sharif property:significant_event ?r . ?r rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16939468
P106
Q12737077
USER
Which occupations have Mahjoub Sharif as his/her 's career ?
(Q16939468,P106,c(Q12737077))
action filter_type
action find
entity Q16939468
relation P106
type Q12737077
['Q16939468', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q16939468 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Mahjoub Sharif
action filter_type
action find
entity Mahjoub Sharif
relation occupation
type occupation
['Mahjoub Sharif', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Mahjoub_Sharif property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q49757 Q37226
SYSTEM
poet, teacher
Q49757 Q37226
(Q16939468,P106,c(Q12737077))
action filter_type
action find
entity Q16939468
relation P106
type Q12737077
The [ANSWERS] have Mahjoub Sharif as his/her 's career
['Q16939468', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q16939468 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
poet teacher
The poet and teacher have Mahjoub Sharif as his/her 's career
poet teacher
action filter_type
action find
entity Mahjoub Sharif
relation occupation
type occupation
['Mahjoub Sharif', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Mahjoub_Sharif property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16939468
P1050
Q2057971
USER
What do Mahjoub Sharif suffer from ?
(Q16939468,P1050,c(Q2057971))
action filter_type
action find
entity Q16939468
relation P1050
type Q2057971
['Q16939468', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { resource:Q16939468 property:P1050 ?v . ?v rdf:type ontology:Q2057971 }
Mahjoub Sharif
action filter_type
action find
entity Mahjoub Sharif
relation medical condition
type health problem
['Mahjoub Sharif', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { resource:Mahjoub_Sharif property:medical_condition ?v . ?v rdf:type ontology:health_problem }
[]
health problem
Q2290446 Q12206
SYSTEM
idiopathic pulmonary fibrosis, diabetes mellitus
Q2290446 Q12206
(Q16939468,P1050,c(Q2057971))
action filter_type
action find
entity Q16939468
relation P1050
type Q2057971
Mahjoub Sharif suffer from [ANSWERS]
['Q16939468', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?v WHERE { resource:Q16939468 property:P1050 ?v . ?v rdf:type ontology:Q2057971 }
idiopathic pulmonary fibrosis diabetes mellitus
Mahjoub Sharif suffer from idiopathic pulmonary fibrosis and diabetes mellitus
idiopathic pulmonary fibrosis diabetes mellitus
action filter_type
action find
entity Mahjoub Sharif
relation medical condition
type health problem
['Mahjoub Sharif', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?v WHERE { resource:Mahjoub_Sharif property:medical_condition ?v . ?v rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2290446 Q12206
P1995
Q1047113
USER
Which special fields are the medical specalities concerned with those health problems ?
(Q2290446,P1995,c(Q1047113)) (Q12206,P1995,c(Q1047113))
action filter_type
action find
entity prev_answer
relation P1995
type Q1047113
['Q2290446', 'P1995', {'concept': 'Q1047113'}] ['Q12206', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?l WHERE { ?t property:P1995 ?l . ?l rdf:type ontology:Q1047113 . VALUES ( ?t ) { ( resource:Q2290446 ) ( resource:Q12206 ) } }
idiopathic pulmonary fibrosis diabetes mellitus
action filter_type
action find
entity prev_answer
relation medical specialty
type special field
['idiopathic pulmonary fibrosis', 'medical specialty', {'concept': 'special field'}] ['diabetes mellitus', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?l WHERE { ?t property:medical_specialty ?l . ?l rdf:type ontology:special_field . VALUES ( ?t ) { ( resource:idiopathic_pulmonary_fibrosis ) ( resource:diabetes_mellitus ) } }
[]
special field
Q203337 Q1207969
SYSTEM
pulmonology, diabetology
Q203337 Q1207969
(Q2290446,P1995,c(Q1047113)) (Q12206,P1995,c(Q1047113))
action filter_type
action find
entity prev_answer
relation P1995
type Q1047113
[ANSWERS] are the medical specalities concerned with those health problems
['Q2290446', 'P1995', {'concept': 'Q1047113'}] ['Q12206', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?l WHERE { ?t property:P1995 ?l . ?l rdf:type ontology:Q1047113 . VALUES ( ?t ) { ( resource:Q2290446 ) ( resource:Q12206 ) } }
pulmonology diabetology
Pulmonology and diabetology are the medical specalities concerned with those health problems
pulmonology diabetology
action filter_type
action find
entity prev_answer
relation medical specialty
type special field
['idiopathic pulmonary fibrosis', 'medical specialty', {'concept': 'special field'}] ['diabetes mellitus', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?l WHERE { ?t property:medical_specialty ?l . ?l rdf:type ontology:special_field . VALUES ( ?t ) { ( resource:idiopathic_pulmonary_fibrosis ) ( resource:diabetes_mellitus ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q203337
P509
Q502895
USER
Which person had pulmonology as cause of death ?
(c(Q502895),P509,Q203337)
action filter_type
action find_reverse
entity Q203337
relation P509
type Q502895
[{'concept': 'Q502895'}, 'P509', 'Q203337']
SELECT DISTINCT ?a WHERE { ?a property:P509 resource:Q203337 . ?a rdf:type ontology:Q502895 }
pulmonology
action filter_type
action find_reverse
entity pulmonology
relation cause of death
type common name
[{'concept': 'common name'}, 'cause of death', 'pulmonology']
SELECT DISTINCT ?a WHERE { ?a property:cause_of_death resource:pulmonology . ?a rdf:type ontology:common_name }
[]
common name
Q20971502
SYSTEM
Isidoor De Vos
Q20971502
(c(Q502895),P509,Q203337)
action filter_type
action find_reverse
entity Q203337
relation P509
type Q502895
[ANSWER] had pulmonology as cause of death
[{'concept': 'Q502895'}, 'P509', 'Q203337']
SELECT DISTINCT ?a WHERE { ?a property:P509 resource:Q203337 . ?a rdf:type ontology:Q502895 }
Isidoor De Vos
Isidoor De Vos had pulmonology as cause of death
Isidoor De Vos
action filter_type
action find_reverse
entity pulmonology
relation cause of death
type common name
[{'concept': 'common name'}, 'cause of death', 'pulmonology']
SELECT DISTINCT ?a WHERE { ?a property:cause_of_death resource:pulmonology . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q203337
P361
Q1047113
USER
Which special field is that one a part of ?
(Q20971502,P361,c(Q1047113))
action filter_type
action find
entity Q203337
relation P361
type Q1047113
['Q20971502', 'P361', {'concept': 'Q1047113'}]
SELECT DISTINCT ?p WHERE { resource:Q203337 property:P361 ?p . ?p rdf:type ontology:Q1047113 }
pulmonology
action filter_type
action find
entity pulmonology
relation part of
type special field
['Isidoor De Vos', 'part of', {'concept': 'special field'}]
SELECT DISTINCT ?p WHERE { resource:pulmonology property:part_of ?p . ?p rdf:type ontology:special_field }
[]
special field
Q11180
SYSTEM
internal medicine
Q11180
(Q20971502,P361,c(Q1047113))
action filter_type
action find
entity Q203337
relation P361
type Q1047113
[ANSWER] is that one a part of
['Q20971502', 'P361', {'concept': 'Q1047113'}]
SELECT DISTINCT ?p WHERE { resource:Q203337 property:P361 ?p . ?p rdf:type ontology:Q1047113 }
internal medicine
Internal medicine is that one a part of
internal medicine
action filter_type
action find
entity pulmonology
relation part of
type special field
['Isidoor De Vos', 'part of', {'concept': 'special field'}]
SELECT DISTINCT ?p WHERE { resource:pulmonology property:part_of ?p . ?p rdf:type ontology:special_field }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q182468
P361
Q11862829 Q1047113 Q1047113
USER
How many special fields are parts of approximately the same number of academic disciplines and special fields as hydrography ?
(c(Q1047113),P361,c(Q11862829)|c(Q1047113))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q1047113
type Q11862829
action find_tuple_counts
relation P361
type Q1047113
type Q1047113
action count
action filter_multi_types
action find
entity Q182468
relation P361
type Q11862829
type Q1047113
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q11862829'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:Q182468 property:P361 ?f . { VALUES ( ?r ) { ( ontology:Q11862829 ) ( ontology:Q1047113 ) } . ?f rdf:type ?r } } } . FILTER ( ?y = ?t ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) ?z WHERE { { ?z property:P361 ?u . ?u rdf:type ontology:Q11862829 . ?z rdf:type ontology:Q1047113 } UNION { ?z property:P361 ?u . ?z rdf:type ontology:Q1047113 . ?u rdf:type ontology:Q1047113 } } GROUP BY ?z } }
hydrography
action count
action approx
action union
action find_tuple_counts
relation part of
type special field
type academic discipline
action find_tuple_counts
relation part of
type special field
type special field
action count
action filter_multi_types
action find
entity hydrography
relation part of
type academic discipline
type special field
[{'concept': 'special field'}, 'part of', [{'concept': 'academic discipline'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:hydrography property:part_of ?f . { VALUES ( ?r ) { ( ontology:academic_discipline ) ( ontology:special_field ) } . ?f rdf:type ?r } } } . FILTER ( ?y = ?t ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) ?z WHERE { { ?z property:part_of ?u . ?u rdf:type ontology:academic_discipline . ?z rdf:type ontology:special_field } UNION { ?z property:part_of ?u . ?z rdf:type ontology:special_field . ?u rdf:type ontology:special_field } } GROUP BY ?z } }
[]
academic discipline special field special field
SYSTEM
44
Q614304 Q128406 Q745328 Q180502 Q21614234 Q4117183 Q7218 Q81009 Q598976 Q48803 Q739465 Q182468 Q861689 Q7922 Q1278791 Q213891 Q134435 Q11351 Q5611339 Q199655 Q47417 Q14177941 Q1569011 Q2442870 Q34178 Q4917288 Q80083 Q501778 Q1049976 Q102904 Q220821 Q1662333 Q131089 Q52120 Q454812 Q613566 Q3448005 Q1046686 Q164204 Q489119 Q141495 Q12016129 Q333024 Q200253
(c(Q1047113),P361,c(Q11862829)|c(Q1047113))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q1047113
type Q11862829
action find_tuple_counts
relation P361
type Q1047113
type Q1047113
action count
action filter_multi_types
action find
entity Q182468
relation P361
type Q11862829
type Q1047113
[ANSWER]
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q11862829'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:Q182468 property:P361 ?f . { VALUES ( ?r ) { ( ontology:Q11862829 ) ( ontology:Q1047113 ) } . ?f rdf:type ?r } } } . FILTER ( ?y = ?t ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) ?z WHERE { { ?z property:P361 ?u . ?u rdf:type ontology:Q11862829 . ?z rdf:type ontology:Q1047113 } UNION { ?z property:P361 ?u . ?z rdf:type ontology:Q1047113 . ?u rdf:type ontology:Q1047113 } } GROUP BY ?z } }
pharmacy pharmacology mathematical statistics parasitology agricultural business and management Open Biomedical Ontologies toxicology rhetoric medical microbiology horticulture study of the Hebrew language hydrography Education economics pedagogy anarchist schools of thought geochronology topography organic chemistry grouser library science international economics State/County Subdivision Outline Maps Urban history lepidopterology theology control engineering humanities translation studies transplantology volcanology visual sociology infection epidemiology geodesy glaciology forensic medicine software configuration management radical centrism allergology musicology Hellenic studies mathematical optimization hydrodynamics pluralism traditional Chinese medicine
44
action count
action approx
action union
action find_tuple_counts
relation part of
type special field
type academic discipline
action find_tuple_counts
relation part of
type special field
type special field
action count
action filter_multi_types
action find
entity hydrography
relation part of
type academic discipline
type special field
[{'concept': 'special field'}, 'part of', [{'concept': 'academic discipline'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { resource:hydrography property:part_of ?f . { VALUES ( ?r ) { ( ontology:academic_discipline ) ( ontology:special_field ) } . ?f rdf:type ?r } } } . FILTER ( ?y = ?t ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) ?z WHERE { { ?z property:part_of ?u . ?u rdf:type ontology:academic_discipline . ?z rdf:type ontology:special_field } UNION { ?z property:part_of ?u . ?z rdf:type ontology:special_field . ?u rdf:type ontology:special_field } } GROUP BY ?z } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q899279
P361
Q11862829 Q1047113 Q1047113
USER
And what about Controlling?
(c(Q1047113),P361,c(Q11862829)|c(Q1047113))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q1047113
type Q11862829
action find_tuple_counts
relation P361
type Q1047113
type Q1047113
action count
action filter_multi_types
action find
entity Q899279
relation P361
type Q11862829
type Q1047113
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q11862829'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?v WHERE { { ?v property:P361 ?k . ?k rdf:type ontology:Q1047113 . ?v rdf:type ontology:Q1047113 } UNION { ?v property:P361 ?k . ?k rdf:type ontology:Q11862829 . ?v rdf:type ontology:Q1047113 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { { ?p rdf:type ontology:Q11862829 } UNION { ?p rdf:type ontology:Q1047113 } } . resource:Q899279 property:P361 ?p } } . FILTER ( ?y = ?o ) }
Controlling
action count
action approx
action union
action find_tuple_counts
relation part of
type special field
type academic discipline
action find_tuple_counts
relation part of
type special field
type special field
action count
action filter_multi_types
action find
entity Controlling
relation part of
type academic discipline
type special field
[{'concept': 'special field'}, 'part of', [{'concept': 'academic discipline'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?v WHERE { { ?v property:part_of ?k . ?k rdf:type ontology:special_field . ?v rdf:type ontology:special_field } UNION { ?v property:part_of ?k . ?k rdf:type ontology:academic_discipline . ?v rdf:type ontology:special_field } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { { ?p rdf:type ontology:academic_discipline } UNION { ?p rdf:type ontology:special_field } } . resource:Controlling property:part_of ?p } } . FILTER ( ?y = ?o ) }
[]
academic discipline special field special field
SYSTEM
56
Q17002728 Q539690 Q2964004 Q203337 Q21572183 Q932510 Q488059 Q15304508 Q103824 Q235007 Q327657 Q7234391 Q208217 Q7754 Q177635 Q2027981 Q27133094 Q338379 Q4785472 Q2116549 Q120569 Q4260703 Q775325 Q642836 Q428691 Q10379 Q6497044 Q21928196 Q743664 Q459381 Q1207969 Q1000058 Q80006 Q1066186 Q623100 Q145903 Q898674 Q22811234 Q899279 Q9053037 Q121713 Q460162 Q162606 Q2108944 Q35395 Q760348 Q2713123 Q1916458 Q1774688 Q2728012 Q286452 Q1601482 Q504033 Q39645 Q15218776 Q52106
(c(Q1047113),P361,c(Q11862829)|c(Q1047113))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q1047113
type Q11862829
action find_tuple_counts
relation P361
type Q1047113
type Q1047113
action count
action filter_multi_types
action find
entity Q899279
relation P361
type Q11862829
type Q1047113
[ANSWER]
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q11862829'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?v WHERE { { ?v property:P361 ?k . ?k rdf:type ontology:Q1047113 . ?v rdf:type ontology:Q1047113 } UNION { ?v property:P361 ?k . ?k rdf:type ontology:Q11862829 . ?v rdf:type ontology:Q1047113 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { { ?p rdf:type ontology:Q11862829 } UNION { ?p rdf:type ontology:Q1047113 } } . resource:Q899279 property:P361 ?p } } . FILTER ( ?y = ?o ) }
branch of botany angiology thoracic surgery pulmonology modeling, virtual environments and simulation general surgery philosophical anthropology pathogen transmission ontology hematology cardiac surgery rheumatology Postmodernist anthropology literary science mathematical analysis nephrology oral surgery vaccine development trauma surgery archaeological sub-discipline science of journalism gastroenterology railway engineering transport engineering Neuroradiology computer engineering cardiology history of literature legal medicine Abdominal surgery literary theory diabetology psychoneuroendocrinology computer programming science of history business engineering egyptology neonatology branch of philosophy Controlling spatial planning acupuncture museology endocrinology press statistics phonetics eye surgery phlebology media economy clinical pharmacology neurobiology Hand surgery anthropology of Religion oral and maxillofacial surgery semantics orthopedic surgery biogeography
56
action count
action approx
action union
action find_tuple_counts
relation part of
type special field
type academic discipline
action find_tuple_counts
relation part of
type special field
type special field
action count
action filter_multi_types
action find
entity Controlling
relation part of
type academic discipline
type special field
[{'concept': 'special field'}, 'part of', [{'concept': 'academic discipline'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?v WHERE { { ?v property:part_of ?k . ?k rdf:type ontology:special_field . ?v rdf:type ontology:special_field } UNION { ?v property:part_of ?k . ?k rdf:type ontology:academic_discipline . ?v rdf:type ontology:special_field } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { { ?p rdf:type ontology:academic_discipline } UNION { ?p rdf:type ontology:special_field } } . resource:Controlling property:part_of ?p } } . FILTER ( ?y = ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q11862829 Q1047113
USER
How many academic disciplines are approximately 1 special field a portion of ?
(c(Q1047113),P361,c(Q11862829))
action count
action approx
action find_reverse_tuple_counts
relation P361
type Q11862829
type Q1047113
value 1
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q11862829'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:P361 ?l . ?l rdf:type ontology:Q11862829 . ?n rdf:type ontology:Q1047113 } GROUP BY ?l } . FILTER ( ?t = 1 ) }
action count
action approx
action find_reverse_tuple_counts
relation part of
type academic discipline
type special field
value 1
[{'concept': 'special field'}, 'part of', {'concept': 'academic discipline'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:part_of ?l . ?l rdf:type ontology:academic_discipline . ?n rdf:type ontology:special_field } GROUP BY ?l } . FILTER ( ?t = 1 ) }
[]
academic discipline special field
SYSTEM
2
Q11023 Q40634
(c(Q1047113),P361,c(Q11862829))
action count
action approx
action find_reverse_tuple_counts
relation P361
type Q11862829
type Q1047113
value 1
[ANSWER]
[{'concept': 'Q1047113'}, 'P361', {'concept': 'Q11862829'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:P361 ?l . ?l rdf:type ontology:Q11862829 . ?n rdf:type ontology:Q1047113 } GROUP BY ?l } . FILTER ( ?t = 1 ) }
engineering philology
2
action count
action approx
action find_reverse_tuple_counts
relation part of
type academic discipline
type special field
value 1
[{'concept': 'special field'}, 'part of', {'concept': 'academic discipline'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?n ) AS ?t ) WHERE { ?n property:part_of ?l . ?l rdf:type ontology:academic_discipline . ?n rdf:type ontology:special_field } GROUP BY ?l } . FILTER ( ?t = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q171171 Q203337
P1995
Q12136
USER
Which diseases have pulmonology or dermatology as the associated medical speciality ?
OR((c(Q12136),P1995,Q203337), (c(Q12136),P1995,Q171171))
action filter_type
action union
action find_reverse
entity Q203337
relation P1995
action find_reverse
entity Q171171
relation P1995
type Q12136
{'OR': [[{'concept': 'Q12136'}, 'P1995', 'Q203337'], [{'concept': 'Q12136'}, 'P1995', 'Q171171']]}
SELECT DISTINCT ?i WHERE { { { ?i property:P1995 resource:Q203337 } UNION { ?i property:P1995 resource:Q171171 } } . ?i rdf:type ontology:Q12136 }
dermatology pulmonology
action filter_type
action union
action find_reverse
entity pulmonology
relation medical specialty
action find_reverse
entity dermatology
relation medical specialty
type disease
{'OR': [[{'concept': 'disease'}, 'medical specialty', 'pulmonology'], [{'concept': 'disease'}, 'medical specialty', 'dermatology']]}
SELECT DISTINCT ?i WHERE { { { ?i property:medical_specialty resource:pulmonology } UNION { ?i property:medical_specialty resource:dermatology } } . ?i rdf:type ontology:disease }
[]
disease
Q5593571 Q1514476 Q1997180 Q904200 Q2514487 Q2633267 Q2495793 Q7075793 Q263609 Q2353024
SYSTEM
Some of them are Gram-negative folliculitis, Febrile neutrophilic dermatosis, Cutis marmorata telangiectatica congenita, Dermatillomania, Actinic cheilitis, Atypical pneumonia, Onychogryphosis, Occupational acne, Pemphigus foliaceus, Radiation-induced lung injury
Q7207847 Q7207846 Q1363738 Q5593571 Q6663548 Q5621891 Q1997180 Q5018783 Q809758 Q5068756 Q1228801 Q5428699 Q2562329 Q397860 Q7133231 Q7133237 Q2353024 Q2549292 Q7075793 Q4925480 Q2495793 Q7193990 Q1060425 Q3711810 Q767311 Q1435530 Q4873613 Q718675 Q5420019 Q4826986 Q3557890 Q1573613 Q263609 Q904200 Q4877328 Q11697109 Q3631290 Q4769723 Q6452285 Q860945 Q430438 Q3029644 Q2633267 Q6489167 Q2622199 Q1514476 Q7162042 Q4770022 Q766442 Q840143 Q3899830 Q2514487 Q6029030 Q5641790
OR((c(Q12136),P1995,Q203337), (c(Q12136),P1995,Q171171))
action filter_type
action union
action find_reverse
entity Q203337
relation P1995
action find_reverse
entity Q171171
relation P1995
type Q12136
[ANSWERS] have pulmonology or dermatology as the associated medical speciality
{'OR': [[{'concept': 'Q12136'}, 'P1995', 'Q203337'], [{'concept': 'Q12136'}, 'P1995', 'Q171171']]}
SELECT DISTINCT ?i WHERE { { { ?i property:P1995 resource:Q203337 } UNION { ?i property:P1995 resource:Q171171 } } . ?i rdf:type ontology:Q12136 }
Poikiloderma vasculare atrophicans Poikiloderma of Civatte Erythema nodosum Gram-negative folliculitis lobar pneumonia Guttate psoriasis Cutis marmorata telangiectatica congenita Calcinosis cutis basal-cell carcinoma Chalicosis Discoid lupus erythematosus Factitious dermatitis Pustulosis palmaris et plantaris angioma Papuloerythroderma of Ofuji papulosquamous disorder Radiation-induced lung injury Leukonychia Occupational acne Blastomycosis-like pyoderma Onychogryphosis Pili bifurcati Ingrown nail Twenty-nail dystrophy Acne conglobata Folliculitis decalvans Bauxite fibrosis Drug eruption Exercise-induced bronchoconstriction Autosensitization dermatitis psoriatic nails Venous ulcer Pemphigus foliaceus Dermatillomania Beau's lines Erythema gyratum repens lower respiratory tract infection Annular pustular psoriasis ulcer Ingrown hair onycholysis Subungual hematoma Atypical pneumonia Large plaque parapsoriasis upper respiratory tract infection Febrile neutrophilic dermatosis Pemphigus vegetans anonychia Acne fulminans streptococcal pharyngitis Nasal septal perforation Actinic cheilitis Infantile acne Half and half nails
Gram-negative folliculitis, Febrile neutrophilic dermatosis, Cutis marmorata telangiectatica congenita, Dermatillomania, Actinic cheilitis, Atypical pneumonia, Onychogryphosis, Occupational acne, Pemphigus foliaceus and Radiation-induced lung injury have pulmonology or dermatology as the associated medical speciality
Gram-negative folliculitis Febrile neutrophilic dermatosis Cutis marmorata telangiectatica congenita Dermatillomania Actinic cheilitis Atypical pneumonia Onychogryphosis Occupational acne Pemphigus foliaceus Radiation-induced lung injury
action filter_type
action union
action find_reverse
entity pulmonology
relation medical specialty
action find_reverse
entity dermatology
relation medical specialty
type disease
{'OR': [[{'concept': 'disease'}, 'medical specialty', 'pulmonology'], [{'concept': 'disease'}, 'medical specialty', 'dermatology']]}
SELECT DISTINCT ?i WHERE { { { ?i property:medical_specialty resource:pulmonology } UNION { ?i property:medical_specialty resource:dermatology } } . ?i rdf:type ontology:disease }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q5593571 Q1514476 Q1997180 Q904200 Q2514487 Q2633267 Q2495793 Q7075793 Q263609 Q2353024
P1995
Q1047113
USER
Which special fields do those diseases specializes in ?
(Q5593571,P1995,c(Q1047113)) (Q1514476,P1995,c(Q1047113)) (Q1997180,P1995,c(Q1047113)) (Q904200,P1995,c(Q1047113)) (Q2514487,P1995,c(Q1047113)) (Q2633267,P1995,c(Q1047113)) (Q2495793,P1995,c(Q1047113)) (Q7075793,P1995,c(Q1047113)) (Q263609,P1995,c(Q1047113)) (Q2353024,P1995,c(Q1047113))
action filter_type
action find
entity prev_answer
relation P1995
type Q1047113
['Q5593571', 'P1995', {'concept': 'Q1047113'}] ['Q1514476', 'P1995', {'concept': 'Q1047113'}] ['Q1997180', 'P1995', {'concept': 'Q1047113'}] ['Q904200', 'P1995', {'concept': 'Q1047113'}] ['Q2514487', 'P1995', {'concept': 'Q1047113'}] ['Q2633267', 'P1995', {'concept': 'Q1047113'}] ['Q2495793', 'P1995', {'concept': 'Q1047113'}] ['Q7075793', 'P1995', {'concept': 'Q1047113'}] ['Q263609', 'P1995', {'concept': 'Q1047113'}] ['Q2353024', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1047113 . VALUES ( ?y ) { ( resource:Q7207847 ) ( resource:Q7207846 ) ( resource:Q1363738 ) } . ?y property:P1995 ?k }
Gram-negative folliculitis Febrile neutrophilic dermatosis Cutis marmorata telangiectatica congenita Dermatillomania Actinic cheilitis Atypical pneumonia Onychogryphosis Occupational acne Pemphigus foliaceus Radiation-induced lung injury
action filter_type
action find
entity prev_answer
relation medical specialty
type special field
['Gram-negative folliculitis', 'medical specialty', {'concept': 'special field'}] ['Febrile neutrophilic dermatosis', 'medical specialty', {'concept': 'special field'}] ['Cutis marmorata telangiectatica congenita', 'medical specialty', {'concept': 'special field'}] ['Dermatillomania', 'medical specialty', {'concept': 'special field'}] ['Actinic cheilitis', 'medical specialty', {'concept': 'special field'}] ['Atypical pneumonia', 'medical specialty', {'concept': 'special field'}] ['Onychogryphosis', 'medical specialty', {'concept': 'special field'}] ['Occupational acne', 'medical specialty', {'concept': 'special field'}] ['Pemphigus foliaceus', 'medical specialty', {'concept': 'special field'}] ['Radiation-induced lung injury', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:special_field . VALUES ( ?y ) { ( resource:Poikiloderma_vasculare_atrophicans ) ( resource:Poikiloderma_of_Civatte ) ( resource:Erythema_nodosum ) } . ?y property:medical_specialty ?k }
[]
special field
Q203337 Q203337 Q171171
SYSTEM
dermatology for 3rd, pulmonology for 1st, 2nd
Q171171 Q171171 Q171171 Q171171 Q171171 Q203337 Q171171 Q171171 Q171171 Q203337
(Q5593571,P1995,c(Q1047113)) (Q1514476,P1995,c(Q1047113)) (Q1997180,P1995,c(Q1047113)) (Q904200,P1995,c(Q1047113)) (Q2514487,P1995,c(Q1047113)) (Q2633267,P1995,c(Q1047113)) (Q2495793,P1995,c(Q1047113)) (Q7075793,P1995,c(Q1047113)) (Q263609,P1995,c(Q1047113)) (Q2353024,P1995,c(Q1047113))
action filter_type
action find
entity prev_answer
relation P1995
type Q1047113
[ANSWERS]
['Q5593571', 'P1995', {'concept': 'Q1047113'}] ['Q1514476', 'P1995', {'concept': 'Q1047113'}] ['Q1997180', 'P1995', {'concept': 'Q1047113'}] ['Q904200', 'P1995', {'concept': 'Q1047113'}] ['Q2514487', 'P1995', {'concept': 'Q1047113'}] ['Q2633267', 'P1995', {'concept': 'Q1047113'}] ['Q2495793', 'P1995', {'concept': 'Q1047113'}] ['Q7075793', 'P1995', {'concept': 'Q1047113'}] ['Q263609', 'P1995', {'concept': 'Q1047113'}] ['Q2353024', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1047113 . VALUES ( ?y ) { ( resource:Q7207847 ) ( resource:Q7207846 ) ( resource:Q1363738 ) } . ?y property:P1995 ?k }
dermatology dermatology dermatology dermatology dermatology pulmonology dermatology dermatology dermatology pulmonology
Those diseases specialize in pulmonology, pulmonology and dermatology
pulmonology pulmonology dermatology
action filter_type
action find
entity prev_answer
relation medical specialty
type special field
['Gram-negative folliculitis', 'medical specialty', {'concept': 'special field'}] ['Febrile neutrophilic dermatosis', 'medical specialty', {'concept': 'special field'}] ['Cutis marmorata telangiectatica congenita', 'medical specialty', {'concept': 'special field'}] ['Dermatillomania', 'medical specialty', {'concept': 'special field'}] ['Actinic cheilitis', 'medical specialty', {'concept': 'special field'}] ['Atypical pneumonia', 'medical specialty', {'concept': 'special field'}] ['Onychogryphosis', 'medical specialty', {'concept': 'special field'}] ['Occupational acne', 'medical specialty', {'concept': 'special field'}] ['Pemphigus foliaceus', 'medical specialty', {'concept': 'special field'}] ['Radiation-induced lung injury', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:special_field . VALUES ( ?y ) { ( resource:Poikiloderma_vasculare_atrophicans ) ( resource:Poikiloderma_of_Civatte ) ( resource:Erythema_nodosum ) } . ?y property:medical_specialty ?k }
[]