Simple Question (Direct)
Simple Question
Q321357
P106
Q12737077
USER
What are the professions of Richie Ray ?
(Q321357,P106,c(Q12737077))
action filter_type
action find
entity Q321357
relation P106
type Q12737077
['Q321357', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q321357 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Richie Ray
action filter_type
action find
entity Richie Ray
relation occupation
type occupation
['Richie Ray', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Richie_Ray property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q177220 Q36834 Q486748
SYSTEM
singer, composer, pianist
Q177220 Q36834 Q486748
(Q321357,P106,c(Q12737077))
action filter_type
action find
entity Q321357
relation P106
type Q12737077
The professions of Richie Ray are [ANSWERS]
['Q321357', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q321357 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
singer composer pianist
The professions of Richie Ray are singer, composer and pianist
singer composer pianist
action filter_type
action find
entity Richie Ray
relation occupation
type occupation
['Richie Ray', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Richie_Ray property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q321357
P69
Q163740
USER
Which nonprofit organization is that person an alumni of ?
(Q177220,P69,c(Q163740)) (Q36834,P69,c(Q163740)) (Q486748,P69,c(Q163740))
action filter_type
action find
entity Q321357
relation P69
type Q163740
['Q177220', 'P69', {'concept': 'Q163740'}] ['Q36834', 'P69', {'concept': 'Q163740'}] ['Q486748', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?r WHERE { resource:Q321357 property:P69 ?r . ?r rdf:type ontology:Q163740 }
Richie Ray
action filter_type
action find
entity Richie Ray
relation educated at
type nonprofit organization
['singer', 'educated at', {'concept': 'nonprofit organization'}] ['composer', 'educated at', {'concept': 'nonprofit organization'}] ['pianist', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?r WHERE { resource:Richie_Ray property:educated_at ?r . ?r rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q503246
SYSTEM
Juilliard School
Q503246
(Q177220,P69,c(Q163740)) (Q36834,P69,c(Q163740)) (Q486748,P69,c(Q163740))
action filter_type
action find
entity Q321357
relation P69
type Q163740
[ANSWER] is that person an alumni of
['Q177220', 'P69', {'concept': 'Q163740'}] ['Q36834', 'P69', {'concept': 'Q163740'}] ['Q486748', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?r WHERE { resource:Q321357 property:P69 ?r . ?r rdf:type ontology:Q163740 }
Juilliard School
Juilliard School is that person an alumni of
Juilliard School
action filter_type
action find
entity Richie Ray
relation educated at
type nonprofit organization
['singer', 'educated at', {'concept': 'nonprofit organization'}] ['composer', 'educated at', {'concept': 'nonprofit organization'}] ['pianist', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?r WHERE { resource:Richie_Ray property:educated_at ?r . ?r rdf:type ontology:nonprofit_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q321357
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Richie Ray ?
(Q321357,P27,c(Q15617994))
action filter_type
action find
entity Q321357
relation P27
type Q15617994
['Q321357', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q321357 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Richie Ray
action filter_type
action find
entity Richie Ray
relation country of citizenship
type designation for an administrative territorial entity
['Richie Ray', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Richie_Ray property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q321357,P27,c(Q15617994))
action filter_type
action find
entity Q321357
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of Richie Ray
['Q321357', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q321357 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
United States of America
The United States of America is the country of citizenship of Richie Ray
United States of America
action filter_type
action find
entity Richie Ray
relation country of citizenship
type designation for an administrative territorial entity
['Richie Ray', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Richie_Ray property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q321357
P136
Q151885
USER
What can be considered as category for that person ?
(Q30,P136,c(Q151885))
action filter_type
action find
entity Q321357
relation P136
type Q151885
['Q30', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q151885 . resource:Q321357 property:P136 ?z }
Richie Ray
action filter_type
action find
entity Richie Ray
relation genre
type concept
['United States of America', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:concept . resource:Richie_Ray property:genre ?z }
[]
concept
Q208239
SYSTEM
salsa music
Q208239
(Q30,P136,c(Q151885))
action filter_type
action find
entity Q321357
relation P136
type Q151885
[ANSWER] can be considered as category for that person
['Q30', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q151885 . resource:Q321357 property:P136 ?z }
salsa music
Salsa music can be considered as category for that person
salsa music
action filter_type
action find
entity Richie Ray
relation genre
type concept
['United States of America', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:concept . resource:Richie_Ray property:genre ?z }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q754365
P706
Q2221906 Q151885
USER
Which geographic locations are greater number of concepts located on than Penobscot Bay ?
(c(Q151885),P706,c(Q2221906))
action greater
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q151885
action count
action filter_type
action find
entity Q754365
relation P706
type Q2221906
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:P706 ?m . ?m rdf:type ontology:Q2221906 . ?b rdf:type ontology:Q151885 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Q754365 property:P706 ?k . ?k rdf:type ontology:Q2221906 } } . FILTER ( ?r > ?x ) }
Penobscot Bay
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type concept
action count
action filter_type
action find
entity Penobscot Bay
relation located on terrain feature
type geographic location
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:located_on_terrain_feature ?m . ?m rdf:type ontology:geographic_location . ?b rdf:type ontology:concept } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Penobscot_Bay property:located_on_terrain_feature ?k . ?k rdf:type ontology:geographic_location } } . FILTER ( ?r > ?x ) }
[]
geographic location concept
Q15 Q46 Q81483
SYSTEM
Africa, Europe, The Levant
Q27468 Q27509 Q27394 Q21195 Q46 Q4345530 Q27381 Q81483 Q29876 Q43266 Q49 Q27407 Q263686 Q27496 Q1057925 Q46519 Q27275 Q15 Q46613 Q5428 Q644111 Q524856 Q27449 Q1134643 Q805727 Q1670841 Q207989 Q5401 Q181103 Q48214 Q919721
(c(Q151885),P706,c(Q2221906))
action greater
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q151885
action count
action filter_type
action find
entity Q754365
relation P706
type Q2221906
[ANSWERS] are greater number of concepts located on than Penobscot Bay
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:P706 ?m . ?m rdf:type ontology:Q2221906 . ?b rdf:type ontology:Q151885 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Q754365 property:P706 ?k . ?k rdf:type ontology:Q2221906 } } . FILTER ( ?r > ?x ) }
Eastern Europe Central Europe Southern Africa Scandinavia Europe Northern Italy North Africa The Levant Middle America Moravia North America East Africa Southeast Europe Western Europe Northeast China Southern Germany Central Asia Africa Northern Germany Siberia Transbaikal Central Germany Southern Europe Southern England Baltics Ordos Desert Southern Italy Eurasia Balochistan Near East eastern Germany
Africa, Europe and The Levant are greater number of concepts located on than Penobscot Bay
Africa Europe The Levant
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type concept
action count
action filter_type
action find
entity Penobscot Bay
relation located on terrain feature
type geographic location
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?b ) AS ?r ) WHERE { ?b property:located_on_terrain_feature ?m . ?m rdf:type ontology:geographic_location . ?b rdf:type ontology:concept } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Penobscot_Bay property:located_on_terrain_feature ?k . ?k rdf:type ontology:geographic_location } } . FILTER ( ?r > ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1998580
P706
Q2221906 Q151885
USER
And also tell me about Northern Black Forest?
(c(Q151885),P706,c(Q2221906))
action greater
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q151885
action count
action filter_type
action find
entity Q1998580
relation P706
type Q2221906
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P706 ?y . ?y rdf:type ontology:Q2221906 . ?x rdf:type ontology:Q151885 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Q1998580 property:P706 ?t . ?t rdf:type ontology:Q2221906 } } . FILTER ( ?a > ?j ) }
Northern Black Forest
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type concept
action count
action filter_type
action find
entity Northern Black Forest
relation located on terrain feature
type geographic location
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:located_on_terrain_feature ?y . ?y rdf:type ontology:geographic_location . ?x rdf:type ontology:concept } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Northern_Black_Forest property:located_on_terrain_feature ?t . ?t rdf:type ontology:geographic_location } } . FILTER ( ?a > ?j ) }
[]
geographic location concept
Q15 Q46 Q81483
SYSTEM
Africa, Europe, The Levant
Q27468 Q27509 Q27394 Q21195 Q46 Q4345530 Q27381 Q81483 Q29876 Q43266 Q49 Q27407 Q263686 Q27496 Q1057925 Q46519 Q27275 Q15 Q46613 Q5428 Q644111 Q524856 Q27449 Q1134643 Q805727 Q1670841 Q207989 Q5401 Q181103 Q48214 Q919721
(c(Q151885),P706,c(Q2221906))
action greater
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q151885
action count
action filter_type
action find
entity Q1998580
relation P706
type Q2221906
[ANSWERS]
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P706 ?y . ?y rdf:type ontology:Q2221906 . ?x rdf:type ontology:Q151885 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Q1998580 property:P706 ?t . ?t rdf:type ontology:Q2221906 } } . FILTER ( ?a > ?j ) }
Eastern Europe Central Europe Southern Africa Scandinavia Europe Northern Italy North Africa The Levant Middle America Moravia North America East Africa Southeast Europe Western Europe Northeast China Southern Germany Central Asia Africa Northern Germany Siberia Transbaikal Central Germany Southern Europe Southern England Baltics Ordos Desert Southern Italy Eurasia Balochistan Near East eastern Germany
Africa Europe The Levant
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type concept
action count
action filter_type
action find
entity Northern Black Forest
relation located on terrain feature
type geographic location
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:located_on_terrain_feature ?y . ?y rdf:type ontology:geographic_location . ?x rdf:type ontology:concept } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Northern_Black_Forest property:located_on_terrain_feature ?t . ?t rdf:type ontology:geographic_location } } . FILTER ( ?a > ?j ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q15 Q46 Q81483
P706
Q151885
USER
Which concepts have their location as those geographic locations ?
(c(Q151885),P706,Q15) (c(Q151885),P706,Q46) (c(Q151885),P706,Q81483)
action filter_type
action find_reverse
entity prev_answer
relation P706
type Q151885
[{'concept': 'Q151885'}, 'P706', 'Q15'] [{'concept': 'Q151885'}, 'P706', 'Q46'] [{'concept': 'Q151885'}, 'P706', 'Q81483']
SELECT DISTINCT ?n WHERE { ?n property:P706 ?g . VALUES ( ?g ) { ( resource:Q27468 ) ( resource:Q27509 ) ( resource:Q27394 ) } . ?n rdf:type ontology:Q151885 }
Africa Europe The Levant
action filter_type
action find_reverse
entity prev_answer
relation located on terrain feature
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Africa'] [{'concept': 'concept'}, 'located on terrain feature', 'Europe'] [{'concept': 'concept'}, 'located on terrain feature', 'The Levant']
SELECT DISTINCT ?n WHERE { ?n property:located_on_terrain_feature ?g . VALUES ( ?g ) { ( resource:Eastern_Europe ) ( resource:Central_Europe ) ( resource:Southern_Africa ) } . ?n rdf:type ontology:concept }
[]
concept
Q746287 Q746287 Q202165
SYSTEM
Oldowan for 1st, 2nd, Hallstatt culture for 3rd
Q746287 Q746287 Q202165 Q733489 Q1088939
(c(Q151885),P706,Q15) (c(Q151885),P706,Q46) (c(Q151885),P706,Q81483)
action filter_type
action find_reverse
entity prev_answer
relation P706
type Q151885
[ANSWERS]
[{'concept': 'Q151885'}, 'P706', 'Q15'] [{'concept': 'Q151885'}, 'P706', 'Q46'] [{'concept': 'Q151885'}, 'P706', 'Q81483']
SELECT DISTINCT ?n WHERE { ?n property:P706 ?g . VALUES ( ?g ) { ( resource:Q27468 ) ( resource:Q27509 ) ( resource:Q27394 ) } . ?n rdf:type ontology:Q151885 }
Oldowan Oldowan Hallstatt culture Natufian culture Kebaran
Oldowan, Oldowan and Hallstatt culture have their location as those geographic locations
Oldowan Oldowan Hallstatt culture
action filter_type
action find_reverse
entity prev_answer
relation located on terrain feature
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Africa'] [{'concept': 'concept'}, 'located on terrain feature', 'Europe'] [{'concept': 'concept'}, 'located on terrain feature', 'The Levant']
SELECT DISTINCT ?n WHERE { ?n property:located_on_terrain_feature ?g . VALUES ( ?g ) { ( resource:Eastern_Europe ) ( resource:Central_Europe ) ( resource:Southern_Africa ) } . ?n rdf:type ontology:concept }
[]
Clarification
Simple Question|Single Entity|Indirect
Q202165
P361
Q151885
USER
Which concepts are parts of that one ?
(c(Q151885),P361,Q202165)
action filter_type
action find_reverse
entity Q202165
relation P361
type Q151885
[{'concept': 'Q151885'}, 'P361', 'Q202165']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q151885 . ?u property:P361 resource:Q202165 }
Hallstatt culture
action filter_type
action find_reverse
entity Hallstatt culture
relation part of
type concept
[{'concept': 'concept'}, 'part of', 'Hallstatt culture']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:concept . ?u property:part_of resource:Hallstatt_culture }
[]
concept
Clarification for simple ques.
Q746287
SYSTEM
Did you mean Oldowan ?
Q746287 Q746287 Q202165
(c(Q151885),P361,Q746287) (c(Q151885),P361,Q746287) (c(Q151885),P361,Q202165)
[ANSWER]
[{'concept': 'Q151885'}, 'P361', 'Q746287'] [{'concept': 'Q151885'}, 'P361', 'Q746287'] [{'concept': 'Q151885'}, 'P361', 'Q202165']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q151885 . ?u property:P361 resource:Q202165 }
Oldowan Oldowan Hallstatt culture
Did you mean Oldowan ?
Oldowan
[{'concept': 'concept'}, 'part of', 'Oldowan'] [{'concept': 'concept'}, 'part of', 'Oldowan'] [{'concept': 'concept'}, 'part of', 'Hallstatt culture']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:concept . ?u property:part_of resource:Hallstatt_culture }
[]
Simple Question (Coreferenced)
USER
No, I meant Hallstatt culture. Could you tell me the answer for that?
(c(Q151885),P361,Q202165)
Q202165
[{'concept': 'Q151885'}, 'P361', 'Q202165']
[{'concept': 'concept'}, 'part of', 'Hallstatt culture']
[]
Q694751 Q571515
SYSTEM
Cult Wagon of Strettweg, Warrior of Hirschlanden
Q694751 Q571515
(c(Q151885),P361,Q202165)
action filter_type
action find_reverse
entity Q202165
relation P361
type Q151885
[ANSWERS] are parts of that one
[{'concept': 'Q151885'}, 'P361', 'Q202165']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q151885 . ?u property:P361 resource:Q202165 }
Cult Wagon of Strettweg Warrior of Hirschlanden
Cult Wagon of Strettweg and Warrior of Hirschlanden are parts of that one
Cult Wagon of Strettweg Warrior of Hirschlanden
action filter_type
action find_reverse
entity Hallstatt culture
relation part of
type concept
[{'concept': 'concept'}, 'part of', 'Hallstatt culture']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:concept . ?u property:part_of resource:Hallstatt_culture }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1998580 Q3365788
P17
Q1048835
USER
How many political territories are Northern Black Forest or Brunswick Parish present in ?
(Q1998580,P17,c(Q1048835)) (Q3365788,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1998580
relation P17
type Q1048835
action filter_type
action find
entity Q3365788
relation P17
type Q1048835
['Q1998580', 'P17', {'concept': 'Q1048835'}] ['Q3365788', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { resource:Q1998580 property:P17 ?q . ?q rdf:type ontology:Q1048835 } UNION { resource:Q3365788 property:P17 ?q . ?q rdf:type ontology:Q1048835 } }
Northern Black Forest Brunswick Parish
action count
action union
action filter_type
action find
entity Northern Black Forest
relation country
type political territorial entity
action filter_type
action find
entity Brunswick Parish
relation country
type political territorial entity
['Northern Black Forest', 'country', {'concept': 'political territorial entity'}] ['Brunswick Parish', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { resource:Northern_Black_Forest property:country ?q . ?q rdf:type ontology:political_territorial_entity } UNION { resource:Brunswick_Parish property:country ?q . ?q rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
SYSTEM
2
Q16 Q183
(Q1998580,P17,c(Q1048835)) (Q3365788,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q1998580
relation P17
type Q1048835
action filter_type
action find
entity Q3365788
relation P17
type Q1048835
[ANSWER]
['Q1998580', 'P17', {'concept': 'Q1048835'}] ['Q3365788', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { resource:Q1998580 property:P17 ?q . ?q rdf:type ontology:Q1048835 } UNION { resource:Q3365788 property:P17 ?q . ?q rdf:type ontology:Q1048835 } }
Canada Germany
2
action count
action union
action filter_type
action find
entity Northern Black Forest
relation country
type political territorial entity
action filter_type
action find
entity Brunswick Parish
relation country
type political territorial entity
['Northern Black Forest', 'country', {'concept': 'political territorial entity'}] ['Brunswick Parish', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { resource:Northern_Black_Forest property:country ?q . ?q rdf:type ontology:political_territorial_entity } UNION { resource:Brunswick_Parish property:country ?q . ?q rdf:type ontology:political_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q200231 Q746287
P30 P706
Q2221906
USER
Which geographic locations are the location where Oldowan are located and are Oise situated in ?
AND((Q746287,P706,c(Q2221906)), (Q200231,P30,c(Q2221906)))
action filter_type
action intersection
action find
entity Q746287
relation P706
action find
entity Q200231
relation P30
type Q2221906
{'AND': [['Q746287', 'P706', {'concept': 'Q2221906'}], ['Q200231', 'P30', {'concept': 'Q2221906'}]]}
SELECT DISTINCT ?i WHERE { resource:Q200231 property:P30 ?i . resource:Q746287 property:P706 ?i . ?i rdf:type ontology:Q2221906 }
Oise Oldowan
action filter_type
action intersection
action find
entity Oldowan
relation located on terrain feature
action find
entity Oise
relation continent
type geographic location
{'AND': [['Oldowan', 'located on terrain feature', {'concept': 'geographic location'}], ['Oise', 'continent', {'concept': 'geographic location'}]]}
SELECT DISTINCT ?i WHERE { resource:Oise property:continent ?i . resource:Oldowan property:located_on_terrain_feature ?i . ?i rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
AND((Q746287,P706,c(Q2221906)), (Q200231,P30,c(Q2221906)))
action filter_type
action intersection
action find
entity Q746287
relation P706
action find
entity Q200231
relation P30
type Q2221906
The location Oldowan are located and are Oise situated in are in [ANSWER]
{'AND': [['Q746287', 'P706', {'concept': 'Q2221906'}], ['Q200231', 'P30', {'concept': 'Q2221906'}]]}
SELECT DISTINCT ?i WHERE { resource:Q200231 property:P30 ?i . resource:Q746287 property:P706 ?i . ?i rdf:type ontology:Q2221906 }
Europe
The location Oldowan are located and are Oise situated in are in Europe
Europe
action filter_type
action intersection
action find
entity Oldowan
relation located on terrain feature
action find
entity Oise
relation continent
type geographic location
{'AND': [['Oldowan', 'located on terrain feature', {'concept': 'geographic location'}], ['Oise', 'continent', {'concept': 'geographic location'}]]}
SELECT DISTINCT ?i WHERE { resource:Oise property:continent ?i . resource:Oldowan property:located_on_terrain_feature ?i . ?i rdf:type ontology:geographic_location }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3153701
P636
Q151885 Q8386 Q3249551
USER
Which concepts are the way to administer more number of drugs or processes than insufflation ?
(c(Q8386)|c(Q3249551),P636,c(Q151885))
action greater
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q3153701
relation P636
type Q8386
type Q3249551
[[{'concept': 'Q8386'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?o ) WHERE { { ?q rdf:type ontology:Q151885 . ?u rdf:type ontology:Q8386 . ?u property:P636 ?q } UNION { ?u property:P636 ?q . ?q rdf:type ontology:Q151885 . ?u rdf:type ontology:Q3249551 } } GROUP BY ?q } . FILTER ( ?o > ?t ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:P636 resource:Q3153701 . { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:Q8386 ) ( ontology:Q3249551 ) } } } } }
insufflation
action greater
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type process
action count
action filter_multi_types
action find_reverse
entity insufflation
relation route of administration
type drug
type process
[[{'concept': 'drug'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?o ) WHERE { { ?q rdf:type ontology:concept . ?u rdf:type ontology:drug . ?u property:route_of_administration ?q } UNION { ?u property:route_of_administration ?q . ?q rdf:type ontology:concept . ?u rdf:type ontology:process } } GROUP BY ?q } . FILTER ( ?o > ?t ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:route_of_administration resource:insufflation . { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:drug ) ( ontology:process ) } } } } }
[]
concept drug process
Q1663054 Q419892 Q21074571
SYSTEM
ingestion, rectal, eye contact
Q419892 Q21074571 Q420054 Q640448 Q7833952 Q1369403 Q4669896 Q285166 Q1663054 Q16861468 Q10268830
(c(Q8386)|c(Q3249551),P636,c(Q151885))
action greater
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q3153701
relation P636
type Q8386
type Q3249551
[ANSWERS] are the way to administer more number of drugs or processes than insufflation
[[{'concept': 'Q8386'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?o ) WHERE { { ?q rdf:type ontology:Q151885 . ?u rdf:type ontology:Q8386 . ?u property:P636 ?q } UNION { ?u property:P636 ?q . ?q rdf:type ontology:Q151885 . ?u rdf:type ontology:Q3249551 } } GROUP BY ?q } . FILTER ( ?o > ?t ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:P636 resource:Q3153701 . { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:Q8386 ) ( ontology:Q3249551 ) } } } } }
rectal eye contact topical medication intravenous infusion transdermal intravenous injection skin absorption oral administration ingestion intra-arterial infusion inhalation
Ingestion, rectal and eye contact are the way to administer more number of drugs or processes than insufflation
ingestion rectal eye contact
action greater
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type process
action count
action filter_multi_types
action find_reverse
entity insufflation
relation route of administration
type drug
type process
[[{'concept': 'drug'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?o ) WHERE { { ?q rdf:type ontology:concept . ?u rdf:type ontology:drug . ?u property:route_of_administration ?q } UNION { ?u property:route_of_administration ?q . ?q rdf:type ontology:concept . ?u rdf:type ontology:process } } GROUP BY ?q } . FILTER ( ?o > ?t ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:route_of_administration resource:insufflation . { ?e rdf:type ?g . VALUES ( ?g ) { ( ontology:drug ) ( ontology:process ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1400536
P636
Q151885 Q8386 Q3249551
USER
And what about intraperitoneal injection?
(c(Q8386)|c(Q3249551),P636,c(Q151885))
action greater
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q1400536
relation P636
type Q8386
type Q3249551
[[{'concept': 'Q8386'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?g WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q3249551 ) ( ontology:Q8386 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:Q8386 ) ( ontology:Q3249551 ) } } . ?s property:P636 resource:Q1400536 } } . FILTER ( ?x > ?j ) }
intraperitoneal injection
action greater
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type process
action count
action filter_multi_types
action find_reverse
entity intraperitoneal injection
relation route of administration
type drug
type process
[[{'concept': 'drug'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?g WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:process ) ( ontology:drug ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:drug ) ( ontology:process ) } } . ?s property:route_of_administration resource:intraperitoneal_injection } } . FILTER ( ?x > ?j ) }
[]
concept drug process
Q1663054 Q419892 Q21074571
SYSTEM
ingestion, rectal, eye contact
Q419892 Q21074571 Q420054 Q640448 Q7833952 Q1369403 Q4669896 Q285166 Q1663054 Q16861468 Q10268830
(c(Q8386)|c(Q3249551),P636,c(Q151885))
action greater
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
action count
action filter_multi_types
action find_reverse
entity Q1400536
relation P636
type Q8386
type Q3249551
[ANSWERS]
[[{'concept': 'Q8386'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?g WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q3249551 ) ( ontology:Q8386 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:Q8386 ) ( ontology:Q3249551 ) } } . ?s property:P636 resource:Q1400536 } } . FILTER ( ?x > ?j ) }
rectal eye contact topical medication intravenous infusion transdermal intravenous injection skin absorption oral administration ingestion intra-arterial infusion inhalation
ingestion rectal eye contact
action greater
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type process
action count
action filter_multi_types
action find_reverse
entity intraperitoneal injection
relation route of administration
type drug
type process
[[{'concept': 'drug'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?g WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:process ) ( ontology:drug ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:drug ) ( ontology:process ) } } . ?s property:route_of_administration resource:intraperitoneal_injection } } . FILTER ( ?x > ?j ) }
[]