Simple Question (Direct)
Simple Question
Q5094075
P106
Q151885
USER
What is the profession of Chet Bulger ?
(Q5094075,P106,c(Q151885))
action filter_type
action find
entity Q5094075
relation P106
type Q151885
['Q5094075', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { resource:Q5094075 property:P106 ?b . ?b rdf:type ontology:Q151885 }
Chet Bulger
action filter_type
action find
entity Chet Bulger
relation occupation
type concept
['Chet Bulger', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { resource:Chet_Bulger property:occupation ?b . ?b rdf:type ontology:concept }
[]
concept
Q11513337
SYSTEM
athletics competitor
Q11513337
(Q5094075,P106,c(Q151885))
action filter_type
action find
entity Q5094075
relation P106
type Q151885
The profession of Chet Bulger is an [ANSWER]
['Q5094075', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { resource:Q5094075 property:P106 ?b . ?b rdf:type ontology:Q151885 }
athletics competitor
The profession of Chet Bulger is an athletics competitor
athletics competitor
action filter_type
action find
entity Chet Bulger
relation occupation
type concept
['Chet Bulger', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { resource:Chet_Bulger property:occupation ?b . ?b rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5094075
P54
Q847017
USER
What is that person a member of ?
(Q11513337,P54,c(Q847017))
action filter_type
action find
entity Q5094075
relation P54
type Q847017
['Q11513337', 'P54', {'concept': 'Q847017'}]
SELECT DISTINCT ?z WHERE { resource:Q5094075 property:P54 ?z . ?z rdf:type ontology:Q847017 }
Chet Bulger
action filter_type
action find
entity Chet Bulger
relation member of sports team
type sports club
['athletics competitor', 'member of sports team', {'concept': 'sports club'}]
SELECT DISTINCT ?z WHERE { resource:Chet_Bulger property:member_of_sports_team ?z . ?z rdf:type ontology:sports_club }
[]
sports club
Q3528311
SYSTEM
Auburn Tigers
Q3528311
(Q11513337,P54,c(Q847017))
action filter_type
action find
entity Q5094075
relation P54
type Q847017
That person a member of is the [ANSWER]
['Q11513337', 'P54', {'concept': 'Q847017'}]
SELECT DISTINCT ?z WHERE { resource:Q5094075 property:P54 ?z . ?z rdf:type ontology:Q847017 }
Auburn Tigers
That person a member of is the Auburn Tigers
Auburn Tigers
action filter_type
action find
entity Chet Bulger
relation member of sports team
type sports club
['athletics competitor', 'member of sports team', {'concept': 'sports club'}]
SELECT DISTINCT ?z WHERE { resource:Chet_Bulger property:member_of_sports_team ?z . ?z rdf:type ontology:sports_club }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q420054
P636
Q151885 Q79529 Q8386
USER
Which concepts represents the administration route of around the same number of chemical substances or drugs as topical medication ?
(c(Q79529)|c(Q8386),P636,c(Q151885))
action approx
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action count
action filter_multi_types
action find_reverse
entity Q420054
relation P636
type Q79529
type Q8386
[[{'concept': 'Q79529'}, {'concept': 'Q8386'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?d WHERE { { ?o property:P636 ?d . ?o rdf:type ontology:Q8386 . ?d rdf:type ontology:Q151885 } UNION { ?o property:P636 ?d . ?d rdf:type ontology:Q151885 . ?o rdf:type ontology:Q79529 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:P636 resource:Q420054 . { { ?a rdf:type ontology:Q79529 } UNION { ?a rdf:type ontology:Q8386 } } } } . FILTER ( ?v = ?u ) }
topical medication
action approx
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action count
action filter_multi_types
action find_reverse
entity topical medication
relation route of administration
type chemical substance
type drug
[[{'concept': 'chemical substance'}, {'concept': 'drug'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?d WHERE { { ?o property:route_of_administration ?d . ?o rdf:type ontology:drug . ?d rdf:type ontology:concept } UNION { ?o property:route_of_administration ?d . ?d rdf:type ontology:concept . ?o rdf:type ontology:chemical_substance } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:route_of_administration resource:topical_medication . { { ?a rdf:type ontology:chemical_substance } UNION { ?a rdf:type ontology:drug } } } } . FILTER ( ?v = ?u ) }
[]
concept chemical substance drug
Q1663054 Q1400536 Q1344580
SYSTEM
ingestion, intraperitoneal injection, enteral
Q1400536 Q1344580 Q366155 Q6058566 Q180609 Q419892 Q21074571 Q245359 Q420054 Q7833952 Q3153701 Q1369403 Q4669896 Q16920397 Q1320251 Q1663054 Q16861468 Q784720 Q10268830
(c(Q79529)|c(Q8386),P636,c(Q151885))
action approx
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action count
action filter_multi_types
action find_reverse
entity Q420054
relation P636
type Q79529
type Q8386
[ANSWERS] represent the administration route of around the same number of chemical substances or drugs as topical medication
[[{'concept': 'Q79529'}, {'concept': 'Q8386'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?d WHERE { { ?o property:P636 ?d . ?o rdf:type ontology:Q8386 . ?d rdf:type ontology:Q151885 } UNION { ?o property:P636 ?d . ?d rdf:type ontology:Q151885 . ?o rdf:type ontology:Q79529 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:P636 resource:Q420054 . { { ?a rdf:type ontology:Q79529 } UNION { ?a rdf:type ontology:Q8386 } } } } . FILTER ( ?v = ?u ) }
intraperitoneal injection enteral intracardiac injection intravaginal administration intravitreal administration rectal eye contact injection topical medication transdermal insufflation intravenous injection skin absorption conjunctival Intrathecal ingestion intra-arterial infusion sublingual administration inhalation
Ingestion, intraperitoneal injection and enteral represent the administration route of around the same number of chemical substances or drugs as topical medication
ingestion intraperitoneal injection enteral
action approx
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action count
action filter_multi_types
action find_reverse
entity topical medication
relation route of administration
type chemical substance
type drug
[[{'concept': 'chemical substance'}, {'concept': 'drug'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?d WHERE { { ?o property:route_of_administration ?d . ?o rdf:type ontology:drug . ?d rdf:type ontology:concept } UNION { ?o property:route_of_administration ?d . ?d rdf:type ontology:concept . ?o rdf:type ontology:chemical_substance } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { ?a property:route_of_administration resource:topical_medication . { { ?a rdf:type ontology:chemical_substance } UNION { ?a rdf:type ontology:drug } } } } . FILTER ( ?v = ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q21074571
P636
Q151885 Q79529 Q8386
USER
And what about eye contact?
(c(Q79529)|c(Q8386),P636,c(Q151885))
action approx
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action count
action filter_multi_types
action find_reverse
entity Q21074571
relation P636
type Q79529
type Q8386
[[{'concept': 'Q79529'}, {'concept': 'Q8386'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) ?k WHERE { VALUES ( ?r ) { ( ontology:Q79529 ) ( ontology:Q8386 ) } . ?o rdf:type ?r } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:P636 resource:Q21074571 . { { ?s rdf:type ontology:Q79529 } UNION { ?s rdf:type ontology:Q8386 } } } } . FILTER ( ?m = ?p ) }
eye contact
action approx
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action count
action filter_multi_types
action find_reverse
entity eye contact
relation route of administration
type chemical substance
type drug
[[{'concept': 'chemical substance'}, {'concept': 'drug'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) ?k WHERE { VALUES ( ?r ) { ( ontology:chemical_substance ) ( ontology:drug ) } . ?o rdf:type ?r } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:route_of_administration resource:eye_contact . { { ?s rdf:type ontology:chemical_substance } UNION { ?s rdf:type ontology:drug } } } } . FILTER ( ?m = ?p ) }
[]
concept chemical substance drug
Q1663054 Q1400536 Q1344580
SYSTEM
ingestion, intraperitoneal injection, enteral
Q1400536 Q1344580 Q366155 Q6058566 Q180609 Q419892 Q21074571 Q245359 Q420054 Q7833952 Q3153701 Q1369403 Q4669896 Q16920397 Q1320251 Q1663054 Q16861468 Q784720 Q10268830
(c(Q79529)|c(Q8386),P636,c(Q151885))
action approx
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action count
action filter_multi_types
action find_reverse
entity Q21074571
relation P636
type Q79529
type Q8386
[ANSWERS]
[[{'concept': 'Q79529'}, {'concept': 'Q8386'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) ?k WHERE { VALUES ( ?r ) { ( ontology:Q79529 ) ( ontology:Q8386 ) } . ?o rdf:type ?r } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:P636 resource:Q21074571 . { { ?s rdf:type ontology:Q79529 } UNION { ?s rdf:type ontology:Q8386 } } } } . FILTER ( ?m = ?p ) }
intraperitoneal injection enteral intracardiac injection intravaginal administration intravitreal administration rectal eye contact injection topical medication transdermal insufflation intravenous injection skin absorption conjunctival Intrathecal ingestion intra-arterial infusion sublingual administration inhalation
ingestion intraperitoneal injection enteral
action approx
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action count
action filter_multi_types
action find_reverse
entity eye contact
relation route of administration
type chemical substance
type drug
[[{'concept': 'chemical substance'}, {'concept': 'drug'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?m ) ?k WHERE { VALUES ( ?r ) { ( ontology:chemical_substance ) ( ontology:drug ) } . ?o rdf:type ?r } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:route_of_administration resource:eye_contact . { { ?s rdf:type ontology:chemical_substance } UNION { ?s rdf:type ontology:drug } } } } . FILTER ( ?m = ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q700039
P138
Q15617994 Q79529 Q151885
USER
How many concepts come from around the same number of administrative territories or chemical substances as Wielbark culture ?
(c(Q151885),P138,c(Q15617994)|c(Q79529))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q151885
type Q15617994
action find_tuple_counts
relation P138
type Q151885
type Q79529
action count
action filter_multi_types
action find
entity Q700039
relation P138
type Q15617994
type Q79529
[{'concept': 'Q151885'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?h ) WHERE { ?a rdf:type ?l . VALUES ( ?l ) { ( ontology:Q79529 ) ( ontology:Q15617994 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { resource:Q700039 property:P138 ?q . { { ?q rdf:type ontology:Q79529 } UNION { ?q rdf:type ontology:Q15617994 } } } } . FILTER ( ?h = ?m ) }
Wielbark culture
action count
action approx
action union
action find_tuple_counts
relation named after
type concept
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type concept
type chemical substance
action count
action filter_multi_types
action find
entity Wielbark culture
relation named after
type designation for an administrative territorial entity
type chemical substance
[{'concept': 'concept'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?h ) WHERE { ?a rdf:type ?l . VALUES ( ?l ) { ( ontology:chemical_substance ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { resource:Wielbark_culture property:named_after ?q . { { ?q rdf:type ontology:chemical_substance } UNION { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?h = ?m ) }
[]
designation for an administrative territorial entity chemical substance concept
SYSTEM
152
Q1154021 Q367704 Q314639 Q7202432 Q207182 Q13409799 Q2332687 Q575396 Q2064825 Q17125263 Q2036267 Q1536466 Q15472169 Q182324 Q7996763 Q1154017 Q1127723 Q831336 Q318756 Q911141 Q1816952 Q8066794 Q6797944 Q1053997 Q687230 Q693549 Q1121344 Q6535335 Q1508613 Q211188 Q1187191 Q21042436 Q2624476 Q1540562 Q139965 Q1816967 Q3229348 Q700039 Q2478141 Q1041623 Q10363580 Q2625916 Q855546 Q11660484 Q1282276 Q4181995 Q1859432 Q5588468 Q1728968 Q6354030 Q773818 Q896513 Q6914275 Q570798 Q571515 Q2710557 Q378100 Q3229339 Q3229352 Q1688286 Q169349 Q2732554 Q7974787 Q169451 Q203549 Q785653 Q2115578 Q259118 Q127455 Q1090851 Q672010 Q871703 Q2896863 Q1137778 Q5266831 Q3115494 Q113965 Q3485378 Q2126650 Q6401692 Q739604 Q1886212 Q1503556 Q134178 Q2216194 Q1088939 Q2252048 Q1207347 Q1707076 Q1759091 Q4508563 Q1423912 Q668742 Q1421436 Q1002169 Q775614 Q916387 Q7540131 Q5967435 Q6268577 Q20830227 Q624580 Q3115519 Q1703597 Q961596 Q1586067 Q5319218 Q556036 Q2226746 Q1017984 Q2526246 Q5876138 Q1808482 Q1062400 Q2061755 Q1234153 Q5638607 Q1139760 Q1208706 Q1241067 Q6552215 Q208247 Q3258351 Q1816937 Q2995537 Q1816932 Q746287 Q221901 Q1755265 Q48584 Q6868046 Q38433 Q309187 Q675717 Q82029 Q502702 Q3509098 Q169320 Q5867319 Q847163 Q26473 Q819095 Q900337 Q303479 Q2612317 Q1068118 Q5776002 Q206793 Q484179 Q611017 Q260801 Q1189968
(c(Q151885),P138,c(Q15617994)|c(Q79529))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q151885
type Q15617994
action find_tuple_counts
relation P138
type Q151885
type Q79529
action count
action filter_multi_types
action find
entity Q700039
relation P138
type Q15617994
type Q79529
[ANSWER]
[{'concept': 'Q151885'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?h ) WHERE { ?a rdf:type ?l . VALUES ( ?l ) { ( ontology:Q79529 ) ( ontology:Q15617994 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { resource:Q700039 property:P138 ?q . { { ?q rdf:type ontology:Q79529 } UNION { ?q rdf:type ontology:Q15617994 } } } } . FILTER ( ?h = ?m ) }
Xinglongwa culture Bradley effect Baalberge group Platonic idealism Zlatkoisierung Argaric culture Piliny culture Cernavodă culture Pavlovian culture YouTuber Siegel's lemma Shephard's lemma patron of the arts Antikythera mechanism Whitney covering lemma Crocodile tears Paracas culture Vinča culture Abelian Lemma Kronecker's lemma Schur's lemma Zariski's lemma Mayroubian Frattini's argument Baden culture Magdalenian Solutrean Levi's lemma House Urns culture Pettis integral Platonic realism Corrádi's lemma Marajoara culture Gozintograph Hotelling's lemma Urysohn's lemma Zassenhaus lemma Wielbark culture aristocrat Tisza culture cabaret rock Gandhara grave culture Bükk culture denpa song patriarchate Rzucewo culture Varna culture Goursat tetrahedron Karanovo culture Kalman–Yakubovich–Popov lemma Unetice culture Hamburger Schule Morse–Palais lemma Michelsberg culture Warrior of Hirschlanden Dnieper–Donets culture Vlaardingen culture Gauss's lemma Vitali covering lemma Esik Bes-Shatir Culture Kura–Araxes culture Kiev culture Watson's lemma Coxeter–Dynkin diagram scientific management Jungian archetype Hasse principle Mousterian Ordos culture Châtelperronian Horgen culture Walternienburg-Bernburg Culture Knaster–Kuratowski–Mazurkiewicz lemma White-collar crime Developments at Zoo Basel Grötzsch graph Khvalynsk culture Clovis culture Radon measure Khinchin integral Körös culture Rössen culture Modified Newtonian dynamics Minoan civilization Salzmünde group Kebaran Schussenried culture Shibuya-kei Calderón–Zygmund lemma Micoquien Cheddar Man Przeworsk culture Lengyel culture Nuragic civilization Bug-Dniester culture neofolk exotica Slepian's lemma Death of the Author theory Johnson–Lindenstrauss lemma Garay Square Eulerian path Möbius–Kantor graph Jordan measure Stokes drift Harpstedt-Nienburg culture Dynkin diagram Brønsted–Lowry acid–base theory Lindenbaum's lemma Butmir culture Gauss's lemma Hodge–Arakelov theory Tardenoisian chanson Frucht graph Almeria culture Kolmogorov integral Creswellian culture Newman's lemma Old Europe Lindelöf's lemma La Tène culture Sarnoff's law Rasiowa–Sikorski lemma Soanian Jordan's lemma Oldowan Aurignacian Kulli culture Rosetta Stone Minneapolis sound Newton's laws of motion Big Mac Index Clactonian Henstock–Kurzweil integral Hamburg culture Hatvan Culture Trialeti culture History of Zoo Basel Cobb–Douglas production function Gregorian chant Vapnik–Chervonenkis theory Lewis acids and bases hermaphrodite Milavce culture Fatou's lemma History of Edinburgh Zoo Euclid's lemma folk metal Lusatian culture Havelland culture Riesz's lemma
152
action count
action approx
action union
action find_tuple_counts
relation named after
type concept
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type concept
type chemical substance
action count
action filter_multi_types
action find
entity Wielbark culture
relation named after
type designation for an administrative territorial entity
type chemical substance
[{'concept': 'concept'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?t ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?h ) WHERE { ?a rdf:type ?l . VALUES ( ?l ) { ( ontology:chemical_substance ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { resource:Wielbark_culture property:named_after ?q . { { ?q rdf:type ontology:chemical_substance } UNION { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?h = ?m ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q254327 Q1663054
P636 P780
Q12136
USER
Which diseases have ingestion as their route of administration and do not have a symtom named anorexia ?
AND((c(Q12136),P636,Q1663054), NOT((c(Q12136),P780,Q254327)))
action filter_type
action difference
action find_reverse
entity Q1663054
relation P636
action find_reverse
entity Q254327
relation P780
type Q12136
{'AND': [[{'concept': 'Q12136'}, 'P636', 'Q1663054'], {'NOT': [[{'concept': 'Q12136'}, 'P780', 'Q254327']]}]}
SELECT DISTINCT ?k WHERE { ?k property:P636 resource:Q1663054 . FILTER NOT EXISTS { ?k property:P780 resource:Q254327 } . ?k rdf:type ontology:Q12136 }
anorexia ingestion
action filter_type
action difference
action find_reverse
entity ingestion
relation route of administration
action find_reverse
entity anorexia
relation symptoms
type disease
{'AND': [[{'concept': 'disease'}, 'route of administration', 'ingestion'], {'NOT': [[{'concept': 'disease'}, 'symptoms', 'anorexia']]}]}
SELECT DISTINCT ?k WHERE { ?k property:route_of_administration resource:ingestion . FILTER NOT EXISTS { ?k property:symptoms resource:anorexia } . ?k rdf:type ontology:disease }
[]
disease
Q730249
SYSTEM
arsenic poisoning
Q730249
AND((c(Q12136),P636,Q1663054), NOT((c(Q12136),P780,Q254327)))
action filter_type
action difference
action find_reverse
entity Q1663054
relation P636
action find_reverse
entity Q254327
relation P780
type Q12136
[ANSWER] have ingestion as their route of administration and do not have a symtom named anorexia
{'AND': [[{'concept': 'Q12136'}, 'P636', 'Q1663054'], {'NOT': [[{'concept': 'Q12136'}, 'P780', 'Q254327']]}]}
SELECT DISTINCT ?k WHERE { ?k property:P636 resource:Q1663054 . FILTER NOT EXISTS { ?k property:P780 resource:Q254327 } . ?k rdf:type ontology:Q12136 }
arsenic poisoning
Arsenic poisoning have ingestion as their route of administration and do not have a symtom named anorexia
arsenic poisoning
action filter_type
action difference
action find_reverse
entity ingestion
relation route of administration
action find_reverse
entity anorexia
relation symptoms
type disease
{'AND': [[{'concept': 'disease'}, 'route of administration', 'ingestion'], {'NOT': [[{'concept': 'disease'}, 'symptoms', 'anorexia']]}]}
SELECT DISTINCT ?k WHERE { ?k property:route_of_administration resource:ingestion . FILTER NOT EXISTS { ?k property:symptoms resource:anorexia } . ?k rdf:type ontology:disease }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q730249 Q5445 Q19001263
P1542
Q2057971
USER
Did that disease caused anemia and Hodgkin's sarcoma involving lymph nodes of axilla and upper limb ?
(Q730249,P1542,Q5445) (Q730249,P1542,Q19001263)
action is_in
entity Q730249
action intersection
action find_reverse
entity Q5445
relation P1542
action find_reverse
entity Q19001263
relation P1542
['Q730249', 'P1542', 'Q5445'] ['Q730249', 'P1542', 'Q19001263']
ASK WHERE { resource:Q730249 property:P1542 resource:Q5445 . resource:Q730249 property:P1542 resource:Q19001263 }
arsenic poisoning anemia Hodgkin's sarcoma involving lymph nodes of axilla and upper limb
action is_in
entity arsenic poisoning
action intersection
action find_reverse
entity anemia
relation cause of
action find_reverse
entity Hodgkin's sarcoma involving lymph nodes of axilla and upper limb
relation cause of
['arsenic poisoning', 'cause of', 'anemia'] ['arsenic poisoning', 'cause of', "Hodgkin's sarcoma involving lymph nodes of axilla and upper limb"]
ASK WHERE { resource:arsenic_poisoning property:cause_of resource:anemia . resource:arsenic_poisoning property:cause_of resource:Hodgkin's_sarcoma_involving_lymph_nodes_of_axilla_and_upper_limb }
[]
health problem
SYSTEM
YES and NO respectively
(Q730249,P1542,Q5445) (Q730249,P1542,Q19001263)
action is_in
entity Q730249
action intersection
action find_reverse
entity Q5445
relation P1542
action find_reverse
entity Q19001263
relation P1542
[ANSWER]
['Q730249', 'P1542', 'Q5445'] ['Q730249', 'P1542', 'Q19001263']
ASK WHERE { resource:Q730249 property:P1542 resource:Q5445 . resource:Q730249 property:P1542 resource:Q19001263 }
YES and NO respectively
action is_in
entity arsenic poisoning
action intersection
action find_reverse
entity anemia
relation cause of
action find_reverse
entity Hodgkin's sarcoma involving lymph nodes of axilla and upper limb
relation cause of
['arsenic poisoning', 'cause of', 'anemia'] ['arsenic poisoning', 'cause of', "Hodgkin's sarcoma involving lymph nodes of axilla and upper limb"]
ASK WHERE { resource:arsenic_poisoning property:cause_of resource:anemia . resource:arsenic_poisoning property:cause_of resource:Hodgkin's_sarcoma_involving_lymph_nodes_of_axilla_and_upper_limb }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q730249
P780
Q1441305
USER
How many medical signs are a symptom of arsenic poisoning ?
(Q730249,P780,c(Q1441305))
action count
action filter_type
action find
entity Q730249
relation P780
type Q1441305
['Q730249', 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Q730249 property:P780 ?a . ?a rdf:type ontology:Q1441305 }
arsenic poisoning
action count
action filter_type
action find
entity arsenic poisoning
relation symptoms
type medical sign
['arsenic poisoning', 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:arsenic_poisoning property:symptoms ?a . ?a rdf:type ontology:medical_sign }
[]
medical sign
SYSTEM
10
Q188008 Q186889 Q633403 Q127076 Q183425 Q21117237 Q21112283 Q18356391 Q35805 Q1292082
(Q730249,P780,c(Q1441305))
action count
action filter_type
action find
entity Q730249
relation P780
type Q1441305
[ANSWER]
['Q730249', 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:Q730249 property:P780 ?a . ?a rdf:type ontology:Q1441305 }
dyspnea nausea weakness vomiting abdominal pain ulceration of nasal septum respiratory irritation unconsciousness cough sore throat
10
action count
action filter_type
action find
entity arsenic poisoning
relation symptoms
type medical sign
['arsenic poisoning', 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { resource:arsenic_poisoning property:symptoms ?a . ?a rdf:type ontology:medical_sign }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q21175375
P780
Q1441305
USER
And also tell me about Diaminotoluene exposure?
(Q21175375,P780,c(Q1441305))
action count
action filter_type
action find
entity Q21175375
relation P780
type Q1441305
['Q21175375', 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { resource:Q21175375 property:P780 ?c . ?c rdf:type ontology:Q1441305 }
Diaminotoluene exposure
action count
action filter_type
action find
entity Diaminotoluene exposure
relation symptoms
type medical sign
['Diaminotoluene exposure', 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { resource:Diaminotoluene_exposure property:symptoms ?c . ?c rdf:type ontology:medical_sign }
[]
medical sign
SYSTEM
6
Q21111972 Q127076 Q10916362 Q186889 Q213373 Q21112290
(Q21175375,P780,c(Q1441305))
action count
action filter_type
action find
entity Q21175375
relation P780
type Q1441305
[ANSWER]
['Q21175375', 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { resource:Q21175375 property:P780 ?c . ?c rdf:type ontology:Q1441305 }
eye irritation vomiting dizziness nausea ataxia skin irritation
6
action count
action filter_type
action find
entity Diaminotoluene exposure
relation symptoms
type medical sign
['Diaminotoluene exposure', 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { resource:Diaminotoluene_exposure property:symptoms ?c . ?c rdf:type ontology:medical_sign }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q21175420
Q1441305
USER
And how about Warfarin exposure?
(Q21175420,P780,c(Q1441305))
action count
action filter_type
action find
entity Q21175420
relation P780
type Q1441305
['Q21175420', 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:Q1441305 . resource:Q21175420 property:P780 ?o }
Warfarin exposure
action count
action filter_type
action find
entity Warfarin exposure
relation symptoms
type medical sign
['Warfarin exposure', 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:medical_sign . resource:Warfarin_exposure property:symptoms ?o }
[]
medical sign
SYSTEM
6
(Q21175420,P780,c(Q1441305))
action count
action filter_type
action find
entity Q21175420
relation P780
type Q1441305
[ANSWER]
['Q21175420', 'P780', {'concept': 'Q1441305'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:Q1441305 . resource:Q21175420 property:P780 ?o }
6
action count
action filter_type
action find
entity Warfarin exposure
relation symptoms
type medical sign
['Warfarin exposure', 'symptoms', {'concept': 'medical sign'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o rdf:type ontology:medical_sign . resource:Warfarin_exposure property:symptoms ?o }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q2057971 Q12136
USER
How many health problems are the causes of atmost 2 diseases ?
(c(Q12136),P828,c(Q2057971))
action count
action atmost
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
value 2
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { FILTER ( ?n <= 2 ) . { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?n ) WHERE { ?t rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q12136 . ?y property:P828 ?t } GROUP BY ?t } }
action count
action atmost
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
value 2
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { FILTER ( ?n <= 2 ) . { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?n ) WHERE { ?t rdf:type ontology:health_problem . ?y rdf:type ontology:disease . ?y property:has_cause ?t } GROUP BY ?t } }
[]
health problem disease
SYSTEM
103
Q972514 Q83319 Q271759 Q41478 Q1346016 Q1909343 Q18554545 Q7080278 Q836356 Q721073 Q1485 Q1186703 Q18642366 Q121041 Q188151 Q15734316 Q599683 Q147778 Q243257 Q558070 Q41571 Q1077139 Q221159 Q3339235 Q183392 Q155857 Q131742 Q7206990 Q2753827 Q604075 Q192100 Q746001 Q12167 Q5064113 Q1899576 Q478389 Q1704044 Q6673122 Q12090 Q8084905 Q180152 Q12152 Q1135338 Q12156 Q217519 Q2047938 Q2351083 Q3043145 Q199804 Q13365776 Q511097 Q7331102 Q847057 Q727028 Q3149939 Q18554068 Q42982 Q3043158 Q5384031 Q847583 Q460167 Q767485 Q799615 Q32446 Q662298 Q1518637 Q5160454 Q3087172 Q181754 Q68833 Q105688 Q1601794 Q11085 Q378681 Q221668 Q124604 Q281928 Q79793 Q4366062 Q2450598 Q2064603 Q661015 Q12204 Q12206 Q4862390 Q477390 Q736715 Q12125 Q273510 Q12199 Q12195 Q124407 Q179945 Q23037744 Q29496 Q152100 Q16244733 Q943897 Q133823 Q664174 Q133780 Q15715457 Q2840
(c(Q12136),P828,c(Q2057971))
action count
action atmost
action find_reverse_tuple_counts
relation P828
type Q2057971
type Q12136
value 2
[ANSWER]
[{'concept': 'Q12136'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { FILTER ( ?n <= 2 ) . { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?n ) WHERE { ?t rdf:type ontology:Q2057971 . ?y rdf:type ontology:Q12136 . ?y property:P828 ?t } GROUP BY ?t } }
optic neuritis typhoid fever porphyria hemorrhoid pernicious anemia dermatophytosis angle-closure glaucoma Oguchi disease croup delusional disorder systemic lupus erythematosus demyelinating disease intoxication appendicitis ischemia underlying disease Brugada syndrome liver cirrhosis chikungunya pelvic inflammatory disease epilepsy tic disorder schistosomiasis nervous system disease rickets rubella hepatitis podoconiosis Pigment dispersion syndrome multiple endocrine neoplasia type 2A lymphatic filariasis Thromboangiitis obliterans malnutrition Cerebrospinal fluid leak Vasa praevia kyphosis portal vein thrombosis thyroid gland disease Cholera autoimmune neuromuscular disease Vitiligo myocardial infarction Bell's palsy malaria bubonic plague side effect disease of metabolism cytochrome P450 Oxidoreductase Deficiency chronic obstructive pulmonary disease uremia psoriatic arthritis alcohol abuse retinitis pigmentosa bacterial infectious disease neonatal alloimmune disease lens subluxation type I hypersensitivity mevalonic aciduria Epstein–Barr virus infection cardiomyopathy Meniere's disease respiratory failure osteitis fibrosa pulmonary fibrosis ectropion VIPoma congenital syphilis developmental disorder of mental health heart failure bone fracture hypoxia parasitic infectious disease Parkinson's disease peripheral artery disease acute cystitis portal hypertension social phobia measles Pneumococcal infection infective endocarditis pleomorphic adenoma achalasia tuberculosis diabetes mellitus brain ischemia Hyperinsulinism chronic kidney disease common cold candidiasis acquired immunodeficiency syndrome poliomyelitis type 1 diabetes mellitus psoriasis respiratory allergy leukemia nicotine addiction intestinal obstruction gastroparesis migraine asbestosis plague hepatobiliary disease influenza
103
action count
action atmost
action find_reverse_tuple_counts
relation has cause
type health problem
type disease
value 2
[{'concept': 'disease'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { FILTER ( ?n <= 2 ) . { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?n ) WHERE { ?t rdf:type ontology:health_problem . ?y rdf:type ontology:disease . ?y property:has_cause ?t } GROUP BY ?t } }
[]