Simple Question (Direct)
Simple Question
Q690927
P19
Q56061
USER
Which administrative territory was Jean-Jacques Nkouloukidi born in ?
(Q690927,P19,c(Q56061))
action filter_type
action find
entity Q690927
relation P19
type Q56061
['Q690927', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q690927 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Jean-Jacques Nkouloukidi
action filter_type
action find
entity Jean-Jacques Nkouloukidi
relation place of birth
type administrative territorial entity
['Jean-Jacques Nkouloukidi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Jean-Jacques_Nkouloukidi property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q690927,P19,c(Q56061))
action filter_type
action find
entity Q690927
relation P19
type Q56061
Which administrative territory was Jean-Jacques Nkouloukidi born in
['Q690927', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q690927 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Rome
Which administrative territory was Jean-Jacques Nkouloukidi born in
Rome
action filter_type
action find
entity Jean-Jacques Nkouloukidi
relation place of birth
type administrative territorial entity
['Jean-Jacques Nkouloukidi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Jean-Jacques_Nkouloukidi property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q690927
P106
Q151885
USER
What is the profession of that person ?
(Q220,P106,c(Q151885))
action filter_type
action find
entity Q690927
relation P106
type Q151885
['Q220', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?a WHERE { resource:Q690927 property:P106 ?a . ?a rdf:type ontology:Q151885 }
Jean-Jacques Nkouloukidi
action filter_type
action find
entity Jean-Jacques Nkouloukidi
relation occupation
type concept
['Rome', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?a WHERE { resource:Jean-Jacques_Nkouloukidi property:occupation ?a . ?a rdf:type ontology:concept }
[]
concept
Q11513337
SYSTEM
athletics competitor
Q11513337
(Q220,P106,c(Q151885))
action filter_type
action find
entity Q690927
relation P106
type Q151885
The profession of that person is an [ANSWER]
['Q220', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?a WHERE { resource:Q690927 property:P106 ?a . ?a rdf:type ontology:Q151885 }
athletics competitor
The profession of that person is an athletics competitor
athletics competitor
action filter_type
action find
entity Jean-Jacques Nkouloukidi
relation occupation
type concept
['Rome', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?a WHERE { resource:Jean-Jacques_Nkouloukidi property:occupation ?a . ?a rdf:type ontology:concept }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1663054
P636
Q151885 Q79529 Q3249551
USER
How many concepts are the way to administer lesser number of chemical substances and processes than ingestion ?
(c(Q79529)|c(Q3249551),P636,c(Q151885))
action count
action less
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q1663054
relation P636
type Q79529
type Q3249551
[[{'concept': 'Q79529'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?f ) WHERE { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:Q79529 ) ( ontology:Q3249551 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:P636 resource:Q1663054 . { { ?v rdf:type ontology:Q79529 } UNION { ?v rdf:type ontology:Q3249551 } } } } . FILTER ( ?f < ?r ) }
ingestion
action count
action less
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 process
action count
action filter_multi_types
action find_reverse
entity ingestion
relation route of administration
type chemical substance
type process
[[{'concept': 'chemical substance'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?f ) WHERE { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:chemical_substance ) ( ontology:process ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:route_of_administration resource:ingestion . { { ?v rdf:type ontology:chemical_substance } UNION { ?v rdf:type ontology:process } } } } . FILTER ( ?f < ?r ) }
[]
concept chemical substance process
SYSTEM
17
Q1400536 Q1344580 Q366155 Q6058566 Q180609 Q419892 Q21074571 Q245359 Q7833952 Q3153701 Q1369403 Q4669896 Q16920397 Q1320251 Q16861468 Q784720 Q10268830
(c(Q79529)|c(Q3249551),P636,c(Q151885))
action count
action less
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q1663054
relation P636
type Q79529
type Q3249551
[ANSWER]
[[{'concept': 'Q79529'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?f ) WHERE { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:Q79529 ) ( ontology:Q3249551 ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:P636 resource:Q1663054 . { { ?v rdf:type ontology:Q79529 } UNION { ?v rdf:type ontology:Q3249551 } } } } . FILTER ( ?f < ?r ) }
intraperitoneal injection enteral intracardiac injection intravaginal administration intravitreal administration rectal eye contact injection transdermal insufflation intravenous injection skin absorption conjunctival Intrathecal intra-arterial infusion sublingual administration inhalation
17
action count
action less
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 process
action count
action filter_multi_types
action find_reverse
entity ingestion
relation route of administration
type chemical substance
type process
[[{'concept': 'chemical substance'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?f ) WHERE { ?n rdf:type ?w . VALUES ( ?w ) { ( ontology:chemical_substance ) ( ontology:process ) } } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:route_of_administration resource:ingestion . { { ?v rdf:type ontology:chemical_substance } UNION { ?v rdf:type ontology:process } } } } . FILTER ( ?f < ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q285166
P636
Q151885 Q79529 Q3249551
USER
And also tell me about oral administration?
(c(Q79529)|c(Q3249551),P636,c(Q151885))
action count
action less
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q285166
relation P636
type Q79529
type Q3249551
[[{'concept': 'Q79529'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?z ) WHERE { VALUES ( ?v ) { ( ontology:Q79529 ) ( ontology:Q3249551 ) } . ?j rdf:type ?v } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:P636 resource:Q285166 . { VALUES ( ?c ) { ( ontology:Q79529 ) ( ontology:Q3249551 ) } . ?x rdf:type ?c } } } . FILTER ( ?z < ?y ) }
oral administration
action count
action less
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 process
action count
action filter_multi_types
action find_reverse
entity oral administration
relation route of administration
type chemical substance
type process
[[{'concept': 'chemical substance'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?z ) WHERE { VALUES ( ?v ) { ( ontology:chemical_substance ) ( ontology:process ) } . ?j rdf:type ?v } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:route_of_administration resource:oral_administration . { VALUES ( ?c ) { ( ontology:chemical_substance ) ( ontology:process ) } . ?x rdf:type ?c } } } . FILTER ( ?z < ?y ) }
[]
concept chemical substance process
SYSTEM
20
Q1400536 Q1344580 Q366155 Q6058566 Q180609 Q419892 Q21074571 Q245359 Q420054 Q640448 Q7833952 Q3153701 Q1369403 Q4669896 Q16920397 Q1320251 Q1663054 Q16861468 Q784720 Q10268830
(c(Q79529)|c(Q3249551),P636,c(Q151885))
action count
action less
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q285166
relation P636
type Q79529
type Q3249551
[ANSWER]
[[{'concept': 'Q79529'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?z ) WHERE { VALUES ( ?v ) { ( ontology:Q79529 ) ( ontology:Q3249551 ) } . ?j rdf:type ?v } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:P636 resource:Q285166 . { VALUES ( ?c ) { ( ontology:Q79529 ) ( ontology:Q3249551 ) } . ?x rdf:type ?c } } } . FILTER ( ?z < ?y ) }
intraperitoneal injection enteral intracardiac injection intravaginal administration intravitreal administration rectal eye contact injection topical medication intravenous infusion transdermal insufflation intravenous injection skin absorption conjunctival Intrathecal ingestion intra-arterial infusion sublingual administration inhalation
20
action count
action less
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 process
action count
action filter_multi_types
action find_reverse
entity oral administration
relation route of administration
type chemical substance
type process
[[{'concept': 'chemical substance'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?z ) WHERE { VALUES ( ?v ) { ( ontology:chemical_substance ) ( ontology:process ) } . ?j rdf:type ?v } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { ?x property:route_of_administration resource:oral_administration . { VALUES ( ?c ) { ( ontology:chemical_substance ) ( ontology:process ) } . ?x rdf:type ?c } } } . FILTER ( ?z < ?y ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q9152577 Q220
P47 P27
Q15617994
USER
Which administrative territories share border with Rome or are Andrzej Kozioł a civilian of ?
OR((Q220,P47,c(Q15617994)), (Q9152577,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q220
relation P47
action find
entity Q9152577
relation P27
type Q15617994
{'OR': [['Q220', 'P47', {'concept': 'Q15617994'}], ['Q9152577', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q220 property:P47 ?n } UNION { resource:Q9152577 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Andrzej Kozioł Rome
action filter_type
action union
action find
entity Rome
relation shares border with
action find
entity Andrzej Kozioł
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Rome', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Andrzej Kozioł', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Rome property:shares_border_with ?n } UNION { resource:Andrzej_Kozioł property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q191115 Q243172 Q242120 Q241911 Q242942 Q19326 Q243168 Q243497 Q241733 Q242637
SYSTEM
Some of them are Albano Laziale, Pomezia, Castel San Pietro Romano, Campagnano di Roma, Mentana, Fiumicino, Poli, Lazio, Trevignano Romano, Ardea, Fonte Nuova
Q241693 Q242710 Q242637 Q242558 Q242513 Q191115 Q243364 Q242926 Q243188 Q140255 Q242965 Q242645 Q242105 Q19326 Q242942 Q242661 Q242120 Q36 Q241733 Q242703 Q243133 Q241911 Q243311 Q242998 Q243497 Q159605 Q190963 Q243168 Q243172
OR((Q220,P47,c(Q15617994)), (Q9152577,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q220
relation P47
action find
entity Q9152577
relation P27
type Q15617994
[ANSWERS] share border with Rome or are Andrzej Kozioł a civilian of
{'OR': [['Q220', 'P47', {'concept': 'Q15617994'}], ['Q9152577', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q220 property:P47 ?n } UNION { resource:Q9152577 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Anguillara Sabazia Guidonia Montecelio Fonte Nuova Colonna, Lazio Ciampino Albano Laziale San Gregorio da Sassola Marino, Lazio Riano, Lazio Zagarolo Monte Porzio Catone Formello Castel Gandolfo Fiumicino Mentana Gallicano nel Lazio Castel San Pietro Romano Poland Ardea Grottaferrata Palestrina Campagnano di Roma Sacrofano Monterotondo Trevignano Romano Tivoli Frascati Poli, Lazio Pomezia
Albano Laziale, Pomezia, Castel San Pietro Romano, Campagnano di Roma, Mentana, Fiumicino, Poli, Lazio, Trevignano Romano, Ardea and Fonte Nuova share border with Rome or are Andrzej Kozioł a civilian of
Albano Laziale Pomezia Castel San Pietro Romano Campagnano di Roma Mentana Fiumicino Poli, Lazio Trevignano Romano Ardea Fonte Nuova
action filter_type
action union
action find
entity Rome
relation shares border with
action find
entity Andrzej Kozioł
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Rome', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Andrzej Kozioł', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Rome property:shares_border_with ?n } UNION { resource:Andrzej_Kozioł property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10268830 Q1663054
P636
Q3249551
USER
Which processes have ingestion or inhalation as administration route ?
OR((c(Q3249551),P636,Q1663054), (c(Q3249551),P636,Q10268830))
action filter_type
action union
action find_reverse
entity Q1663054
relation P636
action find_reverse
entity Q10268830
relation P636
type Q3249551
{'OR': [[{'concept': 'Q3249551'}, 'P636', 'Q1663054'], [{'concept': 'Q3249551'}, 'P636', 'Q10268830']]}
SELECT DISTINCT ?u WHERE { { { ?u property:P636 resource:Q1663054 } UNION { ?u property:P636 resource:Q10268830 } } . ?u rdf:type ontology:Q3249551 }
inhalation ingestion
action filter_type
action union
action find_reverse
entity ingestion
relation route of administration
action find_reverse
entity inhalation
relation route of administration
type process
{'OR': [[{'concept': 'process'}, 'route of administration', 'ingestion'], [{'concept': 'process'}, 'route of administration', 'inhalation']]}
SELECT DISTINCT ?u WHERE { { { ?u property:route_of_administration resource:ingestion } UNION { ?u property:route_of_administration resource:inhalation } } . ?u rdf:type ontology:process }
[]
process
Q4896104 Q7625508 Q7030575 Q21862830
SYSTEM
Beryllium poisoning, strychnine poisoning, nicotine poisoning, Tetrodotoxin poisoning
Q4896104 Q7625508 Q7030575 Q21862830
OR((c(Q3249551),P636,Q1663054), (c(Q3249551),P636,Q10268830))
action filter_type
action union
action find_reverse
entity Q1663054
relation P636
action find_reverse
entity Q10268830
relation P636
type Q3249551
[ANSWERS] have ingestion or inhalation as administration route
{'OR': [[{'concept': 'Q3249551'}, 'P636', 'Q1663054'], [{'concept': 'Q3249551'}, 'P636', 'Q10268830']]}
SELECT DISTINCT ?u WHERE { { { ?u property:P636 resource:Q1663054 } UNION { ?u property:P636 resource:Q10268830 } } . ?u rdf:type ontology:Q3249551 }
Beryllium poisoning strychnine poisoning nicotine poisoning Tetrodotoxin poisoning
Beryllium poisoning, strychnine poisoning, nicotine poisoning and Tetrodotoxin poisoning have ingestion or inhalation as administration route
Beryllium poisoning strychnine poisoning nicotine poisoning Tetrodotoxin poisoning
action filter_type
action union
action find_reverse
entity ingestion
relation route of administration
action find_reverse
entity inhalation
relation route of administration
type process
{'OR': [[{'concept': 'process'}, 'route of administration', 'ingestion'], [{'concept': 'process'}, 'route of administration', 'inhalation']]}
SELECT DISTINCT ?u WHERE { { { ?u property:route_of_administration resource:ingestion } UNION { ?u property:route_of_administration resource:inhalation } } . ?u rdf:type ontology:process }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1344580
P636
Q151885 Q12136 Q79529
USER
Which concepts are the routes of administration of approximately the same number of diseases and chemical substances as enteral ?
(c(Q12136)|c(Q79529),P636,c(Q151885))
action approx
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action count
action filter_multi_types
action find_reverse
entity Q1344580
relation P636
type Q12136
type Q79529
[[{'concept': 'Q12136'}, {'concept': 'Q79529'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?c WHERE { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:Q12136 ) ( ontology:Q79529 ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P636 resource:Q1344580 . { ?e rdf:type ?z . VALUES ( ?z ) { ( ontology:Q79529 ) ( ontology:Q12136 ) } } } } . FILTER ( ?o = ?n ) }
enteral
action approx
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type disease
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action count
action filter_multi_types
action find_reverse
entity enteral
relation route of administration
type disease
type chemical substance
[[{'concept': 'disease'}, {'concept': 'chemical substance'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?c WHERE { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:disease ) ( ontology:chemical_substance ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:route_of_administration resource:enteral . { ?e rdf:type ?z . VALUES ( ?z ) { ( ontology:chemical_substance ) ( ontology:disease ) } } } } . FILTER ( ?o = ?n ) }
[]
concept disease chemical substance
Q1663054 Q1400536 Q1344580
SYSTEM
ingestion, intraperitoneal injection, enteral
Q1400536 Q1344580 Q366155 Q6058566 Q180609 Q419892 Q21074571 Q245359 Q7833952 Q3153701 Q1369403 Q4669896 Q16920397 Q1320251 Q1663054 Q16861468 Q784720 Q10268830
(c(Q12136)|c(Q79529),P636,c(Q151885))
action approx
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action count
action filter_multi_types
action find_reverse
entity Q1344580
relation P636
type Q12136
type Q79529
[ANSWERS] are the routes of administration of approximately the same number of diseases and chemical substances as enteral
[[{'concept': 'Q12136'}, {'concept': 'Q79529'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?c WHERE { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:Q12136 ) ( ontology:Q79529 ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P636 resource:Q1344580 . { ?e rdf:type ?z . VALUES ( ?z ) { ( ontology:Q79529 ) ( ontology:Q12136 ) } } } } . FILTER ( ?o = ?n ) }
intraperitoneal injection enteral intracardiac injection intravaginal administration intravitreal administration rectal eye contact injection transdermal insufflation intravenous injection skin absorption conjunctival Intrathecal ingestion intra-arterial infusion sublingual administration inhalation
Ingestion, intraperitoneal injection and enteral are the routes of administration of approximately the same number of diseases and chemical substances as enteral
ingestion intraperitoneal injection enteral
action approx
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type disease
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action count
action filter_multi_types
action find_reverse
entity enteral
relation route of administration
type disease
type chemical substance
[[{'concept': 'disease'}, {'concept': 'chemical substance'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) ?c WHERE { ?g rdf:type ?l . VALUES ( ?l ) { ( ontology:disease ) ( ontology:chemical_substance ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:route_of_administration resource:enteral . { ?e rdf:type ?z . VALUES ( ?z ) { ( ontology:chemical_substance ) ( ontology:disease ) } } } } . FILTER ( ?o = ?n ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q10268830 Q1663054
P636
Q3249551
USER
Which processes follow the administration route of ingestion and inhalation ?
AND((c(Q3249551),P636,Q1663054), (c(Q3249551),P636,Q10268830))
action filter_type
action intersection
action find_reverse
entity Q1663054
relation P636
action find_reverse
entity Q10268830
relation P636
type Q3249551
{'AND': [[{'concept': 'Q3249551'}, 'P636', 'Q1663054'], [{'concept': 'Q3249551'}, 'P636', 'Q10268830']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q3249551 . ?f property:P636 resource:Q1663054 . ?f property:P636 resource:Q10268830 }
inhalation ingestion
action filter_type
action intersection
action find_reverse
entity ingestion
relation route of administration
action find_reverse
entity inhalation
relation route of administration
type process
{'AND': [[{'concept': 'process'}, 'route of administration', 'ingestion'], [{'concept': 'process'}, 'route of administration', 'inhalation']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:process . ?f property:route_of_administration resource:ingestion . ?f property:route_of_administration resource:inhalation }
[]
process
Q7625508 Q7030575
SYSTEM
strychnine poisoning, nicotine poisoning
Q7625508 Q7030575
AND((c(Q3249551),P636,Q1663054), (c(Q3249551),P636,Q10268830))
action filter_type
action intersection
action find_reverse
entity Q1663054
relation P636
action find_reverse
entity Q10268830
relation P636
type Q3249551
[ANSWERS] follow the administration route of ingestion and inhalation
{'AND': [[{'concept': 'Q3249551'}, 'P636', 'Q1663054'], [{'concept': 'Q3249551'}, 'P636', 'Q10268830']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q3249551 . ?f property:P636 resource:Q1663054 . ?f property:P636 resource:Q10268830 }
strychnine poisoning nicotine poisoning
Strychnine poisoning and nicotine poisoning follow the administration route of ingestion and inhalation
strychnine poisoning nicotine poisoning
action filter_type
action intersection
action find_reverse
entity ingestion
relation route of administration
action find_reverse
entity inhalation
relation route of administration
type process
{'AND': [[{'concept': 'process'}, 'route of administration', 'ingestion'], [{'concept': 'process'}, 'route of administration', 'inhalation']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:process . ?f property:route_of_administration resource:ingestion . ?f property:route_of_administration resource:inhalation }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P1542
Q3249551 Q79529
USER
Which processes are caused by lesser number of chemical substances than that process ?
(c(Q79529),P1542,c(Q3249551))
[{'concept': 'Q79529'}, 'P1542', {'concept': 'Q3249551'}]
SELECT DISTINCT ?y WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q79529 . ?y rdf:type ontology:Q619671 }
[{'concept': 'chemical substance'}, 'cause of', {'concept': 'process'}]
SELECT DISTINCT ?y WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:chemical_substance . ?y rdf:type ontology:process }
[]
process chemical substance
Comparative|More/Less|Single entity type|Clarification
Q7030575
SYSTEM
Did you mean nicotine poisoning ?
(c(Q79529),P1542,c(Q3249551))
[ANSWER]
[{'concept': 'Q79529'}, 'P1542', {'concept': 'Q3249551'}]
SELECT DISTINCT ?y WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q79529 . ?y rdf:type ontology:Q619671 }
Did you mean nicotine poisoning ?
nicotine poisoning
[{'concept': 'chemical substance'}, 'cause of', {'concept': 'process'}]
SELECT DISTINCT ?y WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:chemical_substance . ?y rdf:type ontology:process }
[]
Comparative Reasoning (All)
USER
No, I meant strychnine poisoning. Could you tell me the answer for that?
(c(Q79529),P1542,c(Q3249551))
Q7625508
[{'concept': 'Q79529'}, 'P1542', {'concept': 'Q3249551'}]
[{'concept': 'chemical substance'}, 'cause of', {'concept': 'process'}]
[]
Q7030575 Q4896104 Q33196
SYSTEM
nicotine poisoning, Beryllium poisoning, embryo
Q3196 Q786054 Q4896104 Q33196 Q7030575 Q144083
(c(Q79529),P1542,c(Q3249551))
[ANSWERS] are caused by lesser number of chemical substances than that process
[{'concept': 'Q79529'}, 'P1542', {'concept': 'Q3249551'}]
SELECT DISTINCT ?y WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q79529 . ?y rdf:type ontology:Q619671 }
fire detonation Beryllium poisoning embryo nicotine poisoning Tooth discoloration
Nicotine poisoning, Beryllium poisoning and embryo are caused by lesser number of chemical substances than that process
nicotine poisoning Beryllium poisoning embryo
[{'concept': 'chemical substance'}, 'cause of', {'concept': 'process'}]
SELECT DISTINCT ?y WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:chemical_substance . ?y rdf:type ontology:process }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q7625508 Q7030575
P2239
Q796194
USER
How many medical procedures are used as the first aid measure for strychnine poisoning and nicotine poisoning ?
(Q7625508,P2239,c(Q796194)) (Q7030575,P2239,c(Q796194))
action count
action intersection
action filter_type
action find
entity Q7625508
relation P2239
type Q796194
action filter_type
action find
entity Q7030575
relation P2239
type Q796194
['Q7625508', 'P2239', {'concept': 'Q796194'}] ['Q7030575', 'P2239', {'concept': 'Q796194'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q7030575 property:P2239 ?w . ?w rdf:type ontology:Q796194 . resource:Q7625508 property:P2239 ?w . ?w rdf:type ontology:Q796194 }
strychnine poisoning nicotine poisoning
action count
action intersection
action filter_type
action find
entity strychnine poisoning
relation first aid measures
type medical procedure
action filter_type
action find
entity nicotine poisoning
relation first aid measures
type medical procedure
['strychnine poisoning', 'first aid measures', {'concept': 'medical procedure'}] ['nicotine poisoning', 'first aid measures', {'concept': 'medical procedure'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:nicotine_poisoning property:first_aid_measures ?w . ?w rdf:type ontology:medical_procedure . resource:strychnine_poisoning property:first_aid_measures ?w . ?w rdf:type ontology:medical_procedure }
[]
medical procedure
SYSTEM
2
Q545991 Q1988216
(Q7625508,P2239,c(Q796194)) (Q7030575,P2239,c(Q796194))
action count
action intersection
action filter_type
action find
entity Q7625508
relation P2239
type Q796194
action filter_type
action find
entity Q7030575
relation P2239
type Q796194
[ANSWER]
['Q7625508', 'P2239', {'concept': 'Q796194'}] ['Q7030575', 'P2239', {'concept': 'Q796194'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q7030575 property:P2239 ?w . ?w rdf:type ontology:Q796194 . resource:Q7625508 property:P2239 ?w . ?w rdf:type ontology:Q796194 }
artificial respiration oxygen therapy
2
action count
action intersection
action filter_type
action find
entity strychnine poisoning
relation first aid measures
type medical procedure
action filter_type
action find
entity nicotine poisoning
relation first aid measures
type medical procedure
['strychnine poisoning', 'first aid measures', {'concept': 'medical procedure'}] ['nicotine poisoning', 'first aid measures', {'concept': 'medical procedure'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:nicotine_poisoning property:first_aid_measures ?w . ?w rdf:type ontology:medical_procedure . resource:strychnine_poisoning property:first_aid_measures ?w . ?w rdf:type ontology:medical_procedure }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7625508
P1542
Q79529
USER
What was the cause of strychnine poisoning ?
action filter_type
action find_reverse
entity Q7625508
relation P1542
type Q79529
SELECT DISTINCT ?o WHERE { ?o property:P1542 resource:Q7625508 . ?o rdf:type ontology:Q79529 }
strychnine poisoning
action filter_type
action find_reverse
entity strychnine poisoning
relation cause of
type chemical substance
SELECT DISTINCT ?o WHERE { ?o property:cause_of resource:strychnine_poisoning . ?o rdf:type ontology:chemical_substance }
[]
chemical substance
Q194406
SYSTEM
strychnine
Q194406
action filter_type
action find_reverse
entity Q7625508
relation P1542
type Q79529
The cause of [ANSWER] poisoning was not [ANSWER]
SELECT DISTINCT ?o WHERE { ?o property:P1542 resource:Q7625508 . ?o rdf:type ontology:Q79529 }
strychnine
The cause of strychnine poisoning was not strychnine
strychnine
action filter_type
action find_reverse
entity strychnine poisoning
relation cause of
type chemical substance
SELECT DISTINCT ?o WHERE { ?o property:cause_of resource:strychnine_poisoning . ?o rdf:type ontology:chemical_substance }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q243172
P190
Q56061
USER
Which administrative territories are the sister cities of Pomezia ?
(Q243172,P190,c(Q56061))
action filter_type
action find
entity Q243172
relation P190
type Q56061
['Q243172', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q243172 property:P190 ?r . ?r rdf:type ontology:Q56061 }
Pomezia
action filter_type
action find
entity Pomezia
relation sister city
type administrative territorial entity
['Pomezia', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Pomezia property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q6979 Q745307 Q199712
SYSTEM
Singen (Hohentwiel), Itápolis, Çanakkale
Q6979 Q745307 Q199712
(Q243172,P190,c(Q56061))
action filter_type
action find
entity Q243172
relation P190
type Q56061
[ANSWERS] are the sister cities of Pomezia
['Q243172', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q243172 property:P190 ?r . ?r rdf:type ontology:Q56061 }
Singen (Hohentwiel) Itápolis Çanakkale
Singen (Hohentwiel), Itápolis and Çanakkale are the sister cities of Pomezia
Singen (Hohentwiel) Itápolis Çanakkale
action filter_type
action find
entity Pomezia
relation sister city
type administrative territorial entity
['Pomezia', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Pomezia property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q6979 Q745307 Q199712
P190
Q15617994
USER
Which administrative territories are a sister city of Singen (Hohentwiel), Itápolis and Çanakkale ?
(c(Q15617994),P190,Q6979) (c(Q15617994),P190,Q745307) (c(Q15617994),P190,Q199712)
action union
action filter_type
action find
entity Q6979
relation P190
type Q15617994
action filter_type
action find
entity Q745307
relation P190
type Q15617994
action filter_type
action find
entity Q199712
relation P190
type Q15617994
[{'concept': 'Q15617994'}, 'P190', 'Q6979'] [{'concept': 'Q15617994'}, 'P190', 'Q745307'] [{'concept': 'Q15617994'}, 'P190', 'Q199712']
SELECT DISTINCT ?t WHERE { { resource:Q745307 property:P190 ?t . ?t rdf:type ontology:Q15617994 } UNION { resource:Q6979 property:P190 ?t . ?t rdf:type ontology:Q15617994 } }
Singen (Hohentwiel) Itápolis Çanakkale
action union
action filter_type
action find
entity Singen (Hohentwiel)
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Itápolis
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Çanakkale
relation sister city
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Singen (Hohentwiel)'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Itápolis'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Çanakkale']
SELECT DISTINCT ?t WHERE { { resource:Itápolis property:sister_city ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Singen_(Hohentwiel) property:sister_city ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q243172
SYSTEM
Pomezia
Q243172
(c(Q15617994),P190,Q6979) (c(Q15617994),P190,Q745307) (c(Q15617994),P190,Q199712)
action union
action filter_type
action find
entity Q6979
relation P190
type Q15617994
action filter_type
action find
entity Q745307
relation P190
type Q15617994
action filter_type
action find
entity Q199712
relation P190
type Q15617994
[ANSWER] is a sister city of Singen (Hohentwiel), Itápolis and Çanakkale
[{'concept': 'Q15617994'}, 'P190', 'Q6979'] [{'concept': 'Q15617994'}, 'P190', 'Q745307'] [{'concept': 'Q15617994'}, 'P190', 'Q199712']
SELECT DISTINCT ?t WHERE { { resource:Q745307 property:P190 ?t . ?t rdf:type ontology:Q15617994 } UNION { resource:Q6979 property:P190 ?t . ?t rdf:type ontology:Q15617994 } }
Pomezia
Pomezia is a sister city of Singen (Hohentwiel), Itápolis and Çanakkale
Pomezia
action union
action filter_type
action find
entity Singen (Hohentwiel)
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Itápolis
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Çanakkale
relation sister city
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Singen (Hohentwiel)'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Itápolis'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Çanakkale']
SELECT DISTINCT ?t WHERE { { resource:Itápolis property:sister_city ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Singen_(Hohentwiel) property:sister_city ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q243172
P17
Q15617994
USER
Which administrative territory is that one present in ?
(Q243172,P17,c(Q15617994))
action filter_type
action find
entity Q243172
relation P17
type Q15617994
['Q243172', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q243172 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Pomezia
action filter_type
action find
entity Pomezia
relation country
type designation for an administrative territorial entity
['Pomezia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Pomezia property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q243172,P17,c(Q15617994))
action filter_type
action find
entity Q243172
relation P17
type Q15617994
That one is in [ANSWER]
['Q243172', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q243172 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Italy
That one is in Italy
Italy
action filter_type
action find
entity Pomezia
relation country
type designation for an administrative territorial entity
['Pomezia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Pomezia property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]