Simple Question (Direct)
Simple Question
Q4354354
P136
Q151885
USER
Which genre does Mars Bonfire belong to ?
(Q4354354,P136,c(Q151885))
action filter_type
action find
entity Q4354354
relation P136
type Q151885
['Q4354354', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?l WHERE { resource:Q4354354 property:P136 ?l . ?l rdf:type ontology:Q151885 }
Mars Bonfire
action filter_type
action find
entity Mars Bonfire
relation genre
type concept
['Mars Bonfire', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?l WHERE { resource:Mars_Bonfire property:genre ?l . ?l rdf:type ontology:concept }
[]
concept
Q11399
SYSTEM
rock music
Q11399
(Q4354354,P136,c(Q151885))
action filter_type
action find
entity Q4354354
relation P136
type Q151885
Mars Bonfire belongs to [ANSWER]
['Q4354354', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?l WHERE { resource:Q4354354 property:P136 ?l . ?l rdf:type ontology:Q151885 }
rock music
Mars Bonfire belongs to rock music
rock music
action filter_type
action find
entity Mars Bonfire
relation genre
type concept
['Mars Bonfire', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?l WHERE { resource:Mars_Bonfire property:genre ?l . ?l rdf:type ontology:concept }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q10268830
P636
Q151885 Q12136 Q3249551
USER
Which concepts are the routes of administration of less number of diseases and processes than inhalation ?
(c(Q12136)|c(Q3249551),P636,c(Q151885))
action less
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q10268830
relation P636
type Q12136
type Q3249551
[[{'concept': 'Q12136'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:P636 resource:Q10268830 . { { ?f rdf:type ontology:Q3249551 } UNION { ?f rdf:type ontology:Q12136 } } } } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?v ) WHERE { { ?y property:P636 ?b . ?b rdf:type ontology:Q151885 . ?y rdf:type ontology:Q12136 } UNION { ?y property:P636 ?b . ?b rdf:type ontology:Q151885 . ?y rdf:type ontology:Q3249551 } } GROUP BY ?b } }
inhalation
action less
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 process
action count
action filter_multi_types
action find_reverse
entity inhalation
relation route of administration
type disease
type process
[[{'concept': 'disease'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:route_of_administration resource:inhalation . { { ?f rdf:type ontology:process } UNION { ?f rdf:type ontology:disease } } } } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?v ) WHERE { { ?y property:route_of_administration ?b . ?b rdf:type ontology:concept . ?y rdf:type ontology:disease } UNION { ?y property:route_of_administration ?b . ?b rdf:type ontology:concept . ?y rdf:type ontology:process } } GROUP BY ?b } }
[]
concept disease process
Q1400536 Q1344580 Q366155
SYSTEM
intraperitoneal injection, enteral, intracardiac injection
Q1400536 Q1344580 Q366155 Q6058566 Q180609 Q419892 Q245359 Q420054 Q640448 Q7833952 Q3153701 Q1369403 Q285166 Q16920397 Q1320251 Q16861468 Q784720
(c(Q12136)|c(Q3249551),P636,c(Q151885))
action less
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q10268830
relation P636
type Q12136
type Q3249551
[ANSWERS] are the routes of administration of less number of diseases and processes than inhalation
[[{'concept': 'Q12136'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:P636 resource:Q10268830 . { { ?f rdf:type ontology:Q3249551 } UNION { ?f rdf:type ontology:Q12136 } } } } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?v ) WHERE { { ?y property:P636 ?b . ?b rdf:type ontology:Q151885 . ?y rdf:type ontology:Q12136 } UNION { ?y property:P636 ?b . ?b rdf:type ontology:Q151885 . ?y rdf:type ontology:Q3249551 } } GROUP BY ?b } }
intraperitoneal injection enteral intracardiac injection intravaginal administration intravitreal administration rectal injection topical medication intravenous infusion transdermal insufflation intravenous injection oral administration conjunctival Intrathecal intra-arterial infusion sublingual administration
Intraperitoneal injection, enteral and intracardiac injection are the routes of administration of less number of diseases and processes than inhalation
intraperitoneal injection enteral intracardiac injection
action less
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 process
action count
action filter_multi_types
action find_reverse
entity inhalation
relation route of administration
type disease
type process
[[{'concept': 'disease'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { ?f property:route_of_administration resource:inhalation . { { ?f rdf:type ontology:process } UNION { ?f rdf:type ontology:disease } } } } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ?b ( COUNT ( ?y ) AS ?v ) WHERE { { ?y property:route_of_administration ?b . ?b rdf:type ontology:concept . ?y rdf:type ontology:disease } UNION { ?y property:route_of_administration ?b . ?b rdf:type ontology:concept . ?y rdf:type ontology:process } } GROUP BY ?b } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q640448
P636
Q151885 Q12136 Q3249551
USER
And what about intravenous infusion?
(c(Q12136)|c(Q3249551),P636,c(Q151885))
action less
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q640448
relation P636
type Q12136
type Q3249551
[[{'concept': 'Q12136'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?l WHERE { { ?b property:P636 ?l . ?b rdf:type ontology:Q12136 . ?l rdf:type ontology:Q151885 } UNION { ?b property:P636 ?l . ?l rdf:type ontology:Q151885 . ?b rdf:type ontology:Q3249551 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:P636 resource:Q640448 . { ?m rdf:type ?d . VALUES ( ?d ) { ( ontology:Q12136 ) ( ontology:Q3249551 ) } } } } . FILTER ( ?a < ?c ) }
intravenous infusion
action less
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 process
action count
action filter_multi_types
action find_reverse
entity intravenous infusion
relation route of administration
type disease
type process
[[{'concept': 'disease'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?l WHERE { { ?b property:route_of_administration ?l . ?b rdf:type ontology:disease . ?l rdf:type ontology:concept } UNION { ?b property:route_of_administration ?l . ?l rdf:type ontology:concept . ?b rdf:type ontology:process } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:route_of_administration resource:intravenous_infusion . { ?m rdf:type ?d . VALUES ( ?d ) { ( ontology:disease ) ( ontology:process ) } } } } . FILTER ( ?a < ?c ) }
[]
concept disease process
Q1400536 Q1344580 Q366155
SYSTEM
intraperitoneal injection, enteral, intracardiac injection
Q1400536 Q1344580 Q366155 Q6058566 Q180609 Q419892 Q245359 Q420054 Q7833952 Q3153701 Q1369403 Q285166 Q16920397 Q1320251 Q16861468 Q784720
(c(Q12136)|c(Q3249551),P636,c(Q151885))
action less
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q640448
relation P636
type Q12136
type Q3249551
[ANSWERS]
[[{'concept': 'Q12136'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?l WHERE { { ?b property:P636 ?l . ?b rdf:type ontology:Q12136 . ?l rdf:type ontology:Q151885 } UNION { ?b property:P636 ?l . ?l rdf:type ontology:Q151885 . ?b rdf:type ontology:Q3249551 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:P636 resource:Q640448 . { ?m rdf:type ?d . VALUES ( ?d ) { ( ontology:Q12136 ) ( ontology:Q3249551 ) } } } } . FILTER ( ?a < ?c ) }
intraperitoneal injection enteral intracardiac injection intravaginal administration intravitreal administration rectal injection topical medication transdermal insufflation intravenous injection oral administration conjunctival Intrathecal intra-arterial infusion sublingual administration
intraperitoneal injection enteral intracardiac injection
action less
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 process
action count
action filter_multi_types
action find_reverse
entity intravenous infusion
relation route of administration
type disease
type process
[[{'concept': 'disease'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?l WHERE { { ?b property:route_of_administration ?l . ?b rdf:type ontology:disease . ?l rdf:type ontology:concept } UNION { ?b property:route_of_administration ?l . ?l rdf:type ontology:concept . ?b rdf:type ontology:process } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { ?m property:route_of_administration resource:intravenous_infusion . { ?m rdf:type ?d . VALUES ( ?d ) { ( ontology:disease ) ( ontology:process ) } } } } . FILTER ( ?a < ?c ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4354354
P27
Q1048835
USER
Which political territory is Mars Bonfire a civilian of ?
(Q4354354,P27,c(Q1048835))
action filter_type
action find
entity Q4354354
relation P27
type Q1048835
['Q4354354', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q4354354 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Mars Bonfire
action filter_type
action find
entity Mars Bonfire
relation country of citizenship
type political territorial entity
['Mars Bonfire', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Mars_Bonfire property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q4354354,P27,c(Q1048835))
action filter_type
action find
entity Q4354354
relation P27
type Q1048835
[ANSWER] is Mars Bonfire a civilian of
['Q4354354', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q4354354 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Canada
Canada is Mars Bonfire a civilian of
Canada
action filter_type
action find
entity Mars Bonfire
relation country of citizenship
type political territorial entity
['Mars Bonfire', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Mars_Bonfire property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q395 Q640448
P636 P366
Q3249551
USER
Which processes follow the administration route of intravenous infusion or mainly plays the role of a mathematics ?
OR((c(Q3249551),P636,Q640448), (c(Q3249551),P366,Q395))
action filter_type
action union
action find_reverse
entity Q640448
relation P636
action find_reverse
entity Q395
relation P366
type Q3249551
{'OR': [[{'concept': 'Q3249551'}, 'P636', 'Q640448'], [{'concept': 'Q3249551'}, 'P366', 'Q395']]}
SELECT DISTINCT ?u WHERE { { { ?u property:P636 resource:Q640448 } UNION { ?u property:P366 resource:Q395 } } . ?u rdf:type ontology:Q3249551 }
mathematics intravenous infusion
action filter_type
action union
action find_reverse
entity intravenous infusion
relation route of administration
action find_reverse
entity mathematics
relation use
type process
{'OR': [[{'concept': 'process'}, 'route of administration', 'intravenous infusion'], [{'concept': 'process'}, 'use', 'mathematics']]}
SELECT DISTINCT ?u WHERE { { { ?u property:route_of_administration resource:intravenous_infusion } UNION { ?u property:use resource:mathematics } } . ?u rdf:type ontology:process }
[]
process
Q228185 Q7625508
SYSTEM
Zufallsprinzip, strychnine poisoning
Q228185 Q7625508
OR((c(Q3249551),P636,Q640448), (c(Q3249551),P366,Q395))
action filter_type
action union
action find_reverse
entity Q640448
relation P636
action find_reverse
entity Q395
relation P366
type Q3249551
[ANSWERS] follow the administration route of intravenous infusion or mainly plays the role of a mathematics
{'OR': [[{'concept': 'Q3249551'}, 'P636', 'Q640448'], [{'concept': 'Q3249551'}, 'P366', 'Q395']]}
SELECT DISTINCT ?u WHERE { { { ?u property:P636 resource:Q640448 } UNION { ?u property:P366 resource:Q395 } } . ?u rdf:type ontology:Q3249551 }
Zufallsprinzip strychnine poisoning
Zufallsprinzip and strychnine poisoning follow the administration route of intravenous infusion or mainly plays the role of a mathematics
Zufallsprinzip strychnine poisoning
action filter_type
action union
action find_reverse
entity intravenous infusion
relation route of administration
action find_reverse
entity mathematics
relation use
type process
{'OR': [[{'concept': 'process'}, 'route of administration', 'intravenous infusion'], [{'concept': 'process'}, 'use', 'mathematics']]}
SELECT DISTINCT ?u WHERE { { { ?u property:route_of_administration resource:intravenous_infusion } UNION { ?u property:use resource:mathematics } } . ?u rdf:type ontology:process }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P366
Q11862829 Q43229 Q3249551
USER
Which processes are mainly used as more number of academic disciplines or organizations than that process ?
(c(Q3249551),P366,c(Q11862829)|c(Q43229))
[{'concept': 'Q3249551'}, 'P366', [{'concept': 'Q11862829'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q21263333 ?y } UNION { ?z property:Q21263333 ?x } } . ?z rdf:type ontology:Q619671 . ?y rdf:type ontology:Q11862829 . ?x rdf:type ontology:Q43229 }
[{'concept': 'process'}, 'use', [{'concept': 'academic discipline'}, {'concept': 'organization'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:use ?y } UNION { ?z property:use ?x } } . ?z rdf:type ontology:process . ?y rdf:type ontology:academic_discipline . ?x rdf:type ontology:organization }
[]
academic discipline organization process
Comparative|More/Less|Mult. entity type|Clarification
Q228185
SYSTEM
Did you mean Zufallsprinzip ?
(c(Q3249551),P366,c(Q11862829)|c(Q43229))
[ANSWER]
[{'concept': 'Q3249551'}, 'P366', [{'concept': 'Q11862829'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q21263333 ?y } UNION { ?z property:Q21263333 ?x } } . ?z rdf:type ontology:Q619671 . ?y rdf:type ontology:Q11862829 . ?x rdf:type ontology:Q43229 }
Did you mean Zufallsprinzip ?
Zufallsprinzip
[{'concept': 'process'}, 'use', [{'concept': 'academic discipline'}, {'concept': 'organization'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:use ?y } UNION { ?z property:use ?x } } . ?z rdf:type ontology:process . ?y rdf:type ontology:academic_discipline . ?x rdf:type ontology:organization }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q3249551),P366,c(Q11862829)|c(Q43229))
[{'concept': 'Q3249551'}, 'P366', [{'concept': 'Q11862829'}, {'concept': 'Q43229'}]]
[{'concept': 'process'}, 'use', [{'concept': 'academic discipline'}, {'concept': 'organization'}]]
[]
SYSTEM
3
Q198947 Q1002535 Q229344
(c(Q3249551),P366,c(Q11862829)|c(Q43229))
[ANSWER]
[{'concept': 'Q3249551'}, 'P366', [{'concept': 'Q11862829'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:Q21263333 ?y } UNION { ?z property:Q21263333 ?x } } . ?z rdf:type ontology:Q619671 . ?y rdf:type ontology:Q11862829 . ?x rdf:type ontology:Q43229 }
Zielbeleuchtung geometric modeling 3D Documentation
3
[{'concept': 'process'}, 'use', [{'concept': 'academic discipline'}, {'concept': 'organization'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:use ?y } UNION { ?z property:use ?x } } . ?z rdf:type ontology:process . ?y rdf:type ontology:academic_discipline . ?x rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q41571 Q1344580
P636 P2175
Q8386
USER
Which drugs have enteral as administration route and are used to cure epilepsy ?
AND((c(Q8386),P636,Q1344580), (c(Q8386),P2175,Q41571))
action filter_type
action intersection
action find_reverse
entity Q1344580
relation P636
action find_reverse
entity Q41571
relation P2175
type Q8386
{'AND': [[{'concept': 'Q8386'}, 'P636', 'Q1344580'], [{'concept': 'Q8386'}, 'P2175', 'Q41571']]}
SELECT DISTINCT ?u WHERE { ?u property:P2175 resource:Q41571 . ?u property:P636 resource:Q1344580 . ?u rdf:type ontology:Q8386 }
epilepsy enteral
action filter_type
action intersection
action find_reverse
entity enteral
relation route of administration
action find_reverse
entity epilepsy
relation medical condition treated
type drug
{'AND': [[{'concept': 'drug'}, 'route of administration', 'enteral'], [{'concept': 'drug'}, 'medical condition treated', 'epilepsy']]}
SELECT DISTINCT ?u WHERE { ?u property:medical_condition_treated resource:epilepsy . ?u property:route_of_administration resource:enteral . ?u rdf:type ontology:drug }
[]
drug
Q210402
SYSTEM
diazepam
Q210402
AND((c(Q8386),P636,Q1344580), (c(Q8386),P2175,Q41571))
action filter_type
action intersection
action find_reverse
entity Q1344580
relation P636
action find_reverse
entity Q41571
relation P2175
type Q8386
[ANSWER] have enteral as administration route and are used to cure epilepsy
{'AND': [[{'concept': 'Q8386'}, 'P636', 'Q1344580'], [{'concept': 'Q8386'}, 'P2175', 'Q41571']]}
SELECT DISTINCT ?u WHERE { ?u property:P2175 resource:Q41571 . ?u property:P636 resource:Q1344580 . ?u rdf:type ontology:Q8386 }
diazepam
Diazepam have enteral as administration route and are used to cure epilepsy
diazepam
action filter_type
action intersection
action find_reverse
entity enteral
relation route of administration
action find_reverse
entity epilepsy
relation medical condition treated
type drug
{'AND': [[{'concept': 'drug'}, 'route of administration', 'enteral'], [{'concept': 'drug'}, 'medical condition treated', 'epilepsy']]}
SELECT DISTINCT ?u WHERE { ?u property:medical_condition_treated resource:epilepsy . ?u property:route_of_administration resource:enteral . ?u rdf:type ontology:drug }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q285166 Q1344580
P636
Q8386
USER
Which drugs have enteral and oral administration as their route of administration ?
AND((c(Q8386),P636,Q1344580), (c(Q8386),P636,Q285166))
action filter_type
action intersection
action find_reverse
entity Q1344580
relation P636
action find_reverse
entity Q285166
relation P636
type Q8386
{'AND': [[{'concept': 'Q8386'}, 'P636', 'Q1344580'], [{'concept': 'Q8386'}, 'P636', 'Q285166']]}
SELECT DISTINCT ?f WHERE { ?f property:P636 resource:Q1344580 . ?f property:P636 resource:Q285166 . ?f rdf:type ontology:Q8386 }
oral administration enteral
action filter_type
action intersection
action find_reverse
entity enteral
relation route of administration
action find_reverse
entity oral administration
relation route of administration
type drug
{'AND': [[{'concept': 'drug'}, 'route of administration', 'enteral'], [{'concept': 'drug'}, 'route of administration', 'oral administration']]}
SELECT DISTINCT ?f WHERE { ?f property:route_of_administration resource:enteral . ?f property:route_of_administration resource:oral_administration . ?f rdf:type ontology:drug }
[]
drug
Q210402
SYSTEM
diazepam
Q210402
AND((c(Q8386),P636,Q1344580), (c(Q8386),P636,Q285166))
action filter_type
action intersection
action find_reverse
entity Q1344580
relation P636
action find_reverse
entity Q285166
relation P636
type Q8386
[ANSWER] have enteral and oral administration as their route of administration
{'AND': [[{'concept': 'Q8386'}, 'P636', 'Q1344580'], [{'concept': 'Q8386'}, 'P636', 'Q285166']]}
SELECT DISTINCT ?f WHERE { ?f property:P636 resource:Q1344580 . ?f property:P636 resource:Q285166 . ?f rdf:type ontology:Q8386 }
diazepam
Diazepam have enteral and oral administration as their route of administration
diazepam
action filter_type
action intersection
action find_reverse
entity enteral
relation route of administration
action find_reverse
entity oral administration
relation route of administration
type drug
{'AND': [[{'concept': 'drug'}, 'route of administration', 'enteral'], [{'concept': 'drug'}, 'route of administration', 'oral administration']]}
SELECT DISTINCT ?f WHERE { ?f property:route_of_administration resource:enteral . ?f property:route_of_administration resource:oral_administration . ?f rdf:type ontology:drug }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q151885 Q340169 Q15709879
USER
Which concepts are expressed in exactly 1 medias and artwork series ?
(c(Q340169)|c(Q15709879),P180,c(Q151885))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q340169
action find_reverse_tuple_counts
relation P180
type Q151885
type Q15709879
value 1
[[{'concept': 'Q340169'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?s WHERE { { ?d property:P180 ?s . ?s rdf:type ontology:Q151885 . ?d rdf:type ontology:Q340169 } UNION { ?d property:P180 ?s . ?s rdf:type ontology:Q151885 . ?d rdf:type ontology:Q15709879 } } GROUP BY ?s } . FILTER ( ?c = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation depicts
type concept
type media
action find_reverse_tuple_counts
relation depicts
type concept
type artwork series
value 1
[[{'concept': 'media'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?s WHERE { { ?d property:depicts ?s . ?s rdf:type ontology:concept . ?d rdf:type ontology:media } UNION { ?d property:depicts ?s . ?s rdf:type ontology:concept . ?d rdf:type ontology:artwork_series } } GROUP BY ?s } . FILTER ( ?c = 1 ) }
[]
concept media artwork series
Q6388 Q12773225 Q177923
SYSTEM
human swimming, slave, auction
Q177923 Q12773225 Q327055 Q6388 Q6537379
(c(Q340169)|c(Q15709879),P180,c(Q151885))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q340169
action find_reverse_tuple_counts
relation P180
type Q151885
type Q15709879
value 1
[ANSWERS] are expressed in exactly 1 medias and artwork series
[[{'concept': 'Q340169'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?s WHERE { { ?d property:P180 ?s . ?s rdf:type ontology:Q151885 . ?d rdf:type ontology:Q340169 } UNION { ?d property:P180 ?s . ?s rdf:type ontology:Q151885 . ?d rdf:type ontology:Q15709879 } } GROUP BY ?s } . FILTER ( ?c = 1 ) }
auction slave worker human swimming walking
Human swimming, slave and auction are expressed in exactly 1 medias and artwork series
human swimming slave auction
action equal
action union
action find_reverse_tuple_counts
relation depicts
type concept
type media
action find_reverse_tuple_counts
relation depicts
type concept
type artwork series
value 1
[[{'concept': 'media'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) ?s WHERE { { ?d property:depicts ?s . ?s rdf:type ontology:concept . ?d rdf:type ontology:media } UNION { ?d property:depicts ?s . ?s rdf:type ontology:concept . ?d rdf:type ontology:artwork_series } } GROUP BY ?s } . FILTER ( ?c = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q151885 Q16970
USER
Which churches have atleast 1 concept as their toponym ?
(c(Q16970),P138,c(Q151885))
action atleast
action find_tuple_counts
relation P138
type Q16970
type Q151885
value 1
[{'concept': 'Q16970'}, 'P138', {'concept': 'Q151885'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?d ) WHERE { ?e rdf:type ontology:Q16970 . ?h rdf:type ontology:Q151885 . ?e property:P138 ?h } GROUP BY ?e } . FILTER ( ?d >= 1 ) }
action atleast
action find_tuple_counts
relation named after
type church
type concept
value 1
[{'concept': 'church'}, 'named after', {'concept': 'concept'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?d ) WHERE { ?e rdf:type ontology:church . ?h rdf:type ontology:concept . ?e property:named_after ?h } GROUP BY ?e } . FILTER ( ?d >= 1 ) }
[]
concept church
Q589634
SYSTEM
Churches of Peace
Q589634
(c(Q16970),P138,c(Q151885))
action atleast
action find_tuple_counts
relation P138
type Q16970
type Q151885
value 1
[ANSWER] have atleast 1 concept as their toponym
[{'concept': 'Q16970'}, 'P138', {'concept': 'Q151885'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?d ) WHERE { ?e rdf:type ontology:Q16970 . ?h rdf:type ontology:Q151885 . ?e property:P138 ?h } GROUP BY ?e } . FILTER ( ?d >= 1 ) }
Churches of Peace
Churches of Peace have atleast 1 concept as their toponym
Churches of Peace
action atleast
action find_tuple_counts
relation named after
type church
type concept
value 1
[{'concept': 'church'}, 'named after', {'concept': 'concept'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?d ) WHERE { ?e rdf:type ontology:church . ?h rdf:type ontology:concept . ?e property:named_after ?h } GROUP BY ?e } . FILTER ( ?d >= 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q152771
P417
Q1445650 Q16970
USER
Which holidays are the patron saints of approximately the same number of churches as Presentation of Jesus at the Temple ?
(c(Q16970),P417,c(Q1445650))
action approx
action find_reverse_tuple_counts
relation P417
type Q1445650
type Q16970
action count
action filter_type
action find
entity Q152771
relation P417
type Q1445650
[{'concept': 'Q16970'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:P417 ?y . ?y rdf:type ontology:Q1445650 . ?f rdf:type ontology:Q16970 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:Q152771 property:P417 ?r . ?r rdf:type ontology:Q1445650 } } . FILTER ( ?p = ?o ) }
Presentation of Jesus at the Temple
action approx
action find_reverse_tuple_counts
relation patron saint
type holiday
type church
action count
action filter_type
action find
entity Presentation of Jesus at the Temple
relation patron saint
type holiday
[{'concept': 'church'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:patron_saint ?y . ?y rdf:type ontology:holiday . ?f rdf:type ontology:church } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:Presentation_of_Jesus_at_the_Temple property:patron_saint ?r . ?r rdf:type ontology:holiday } } . FILTER ( ?p = ?o ) }
[]
holiday church
Q152771 Q587
SYSTEM
Presentation of Jesus at the Temple, All Saints
Q152771 Q587
(c(Q16970),P417,c(Q1445650))
action approx
action find_reverse_tuple_counts
relation P417
type Q1445650
type Q16970
action count
action filter_type
action find
entity Q152771
relation P417
type Q1445650
[ANSWERS] are the patron saints of approximately the same number of churches as Presentation of Jesus at the Temple
[{'concept': 'Q16970'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:P417 ?y . ?y rdf:type ontology:Q1445650 . ?f rdf:type ontology:Q16970 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:Q152771 property:P417 ?r . ?r rdf:type ontology:Q1445650 } } . FILTER ( ?p = ?o ) }
Presentation of Jesus at the Temple All Saints
Presentation of Jesus at the Temple and All Saints are the patron saints of approximately the same number of churches as Presentation of Jesus at the Temple
Presentation of Jesus at the Temple All Saints
action approx
action find_reverse_tuple_counts
relation patron saint
type holiday
type church
action count
action filter_type
action find
entity Presentation of Jesus at the Temple
relation patron saint
type holiday
[{'concept': 'church'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?p ) WHERE { ?f property:patron_saint ?y . ?y rdf:type ontology:holiday . ?f rdf:type ontology:church } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?o ) WHERE { resource:Presentation_of_Jesus_at_the_Temple property:patron_saint ?r . ?r rdf:type ontology:holiday } } . FILTER ( ?p = ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q587
P417
Q1445650 Q16970
USER
And how about All Saints?
(c(Q16970),P417,c(Q1445650))
action approx
action find_reverse_tuple_counts
relation P417
type Q1445650
type Q16970
action count
action filter_type
action find
entity Q587
relation P417
type Q1445650
[{'concept': 'Q16970'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?k ) WHERE { ?p property:P417 ?d . ?d rdf:type ontology:Q1445650 . ?p rdf:type ontology:Q16970 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:Q587 property:P417 ?v . ?v rdf:type ontology:Q1445650 } } . FILTER ( ?k = ?a ) }
All Saints
action approx
action find_reverse_tuple_counts
relation patron saint
type holiday
type church
action count
action filter_type
action find
entity All Saints
relation patron saint
type holiday
[{'concept': 'church'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?k ) WHERE { ?p property:patron_saint ?d . ?d rdf:type ontology:holiday . ?p rdf:type ontology:church } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:All_Saints property:patron_saint ?v . ?v rdf:type ontology:holiday } } . FILTER ( ?k = ?a ) }
[]
holiday church
Q152771 Q154326 Q587
SYSTEM
Presentation of Jesus at the Temple, Annunciation, All Saints
Q152771 Q154326 Q587
(c(Q16970),P417,c(Q1445650))
action approx
action find_reverse_tuple_counts
relation P417
type Q1445650
type Q16970
action count
action filter_type
action find
entity Q587
relation P417
type Q1445650
[ANSWERS]
[{'concept': 'Q16970'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?k ) WHERE { ?p property:P417 ?d . ?d rdf:type ontology:Q1445650 . ?p rdf:type ontology:Q16970 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:Q587 property:P417 ?v . ?v rdf:type ontology:Q1445650 } } . FILTER ( ?k = ?a ) }
Presentation of Jesus at the Temple Annunciation All Saints
Presentation of Jesus at the Temple Annunciation All Saints
action approx
action find_reverse_tuple_counts
relation patron saint
type holiday
type church
action count
action filter_type
action find
entity All Saints
relation patron saint
type holiday
[{'concept': 'church'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?k ) WHERE { ?p property:patron_saint ?d . ?d rdf:type ontology:holiday . ?p rdf:type ontology:church } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:All_Saints property:patron_saint ?v . ?v rdf:type ontology:holiday } } . FILTER ( ?k = ?a ) }
[]