Simple Question (Direct)
Simple Question
Q1528918
P20
Q178706
USER
Where did the demise of Louise Peete occur ?
(Q1528918,P20,c(Q178706))
action filter_type
action find
entity Q1528918
relation P20
type Q178706
['Q1528918', 'P20', {'concept': 'Q178706'}]
SELECT DISTINCT ?u WHERE { resource:Q1528918 property:P20 ?u . ?u rdf:type ontology:Q178706 }
Louise Peete
action filter_type
action find
entity Louise Peete
relation place of death
type institution
['Louise Peete', 'place of death', {'concept': 'institution'}]
SELECT DISTINCT ?u WHERE { resource:Louise_Peete property:place_of_death ?u . ?u rdf:type ontology:institution }
[]
institution
Q912407
SYSTEM
San Quentin State Prison
Q912407
(Q1528918,P20,c(Q178706))
action filter_type
action find
entity Q1528918
relation P20
type Q178706
The demise of Louise Peete occurred in [ANSWER]
['Q1528918', 'P20', {'concept': 'Q178706'}]
SELECT DISTINCT ?u WHERE { resource:Q1528918 property:P20 ?u . ?u rdf:type ontology:Q178706 }
San Quentin State Prison
The demise of Louise Peete occurred in San Quentin State Prison
San Quentin State Prison
action filter_type
action find
entity Louise Peete
relation place of death
type institution
['Louise Peete', 'place of death', {'concept': 'institution'}]
SELECT DISTINCT ?u WHERE { resource:Louise_Peete property:place_of_death ?u . ?u rdf:type ontology:institution }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q912407 Q30 Q25205
P17
Q15617994
USER
Is that institution situated in United States of America and San Giacomo Vercellese ?
(Q912407,P17,Q30) (Q912407,P17,Q25205)
action is_in
entity Q912407
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q25205
relation P17
['Q912407', 'P17', 'Q30'] ['Q912407', 'P17', 'Q25205']
ASK WHERE { resource:Q912407 property:P17 resource:Q30 . resource:Q912407 property:P17 resource:Q25205 }
San Quentin State Prison United States of America San Giacomo Vercellese
action is_in
entity San Quentin State Prison
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity San Giacomo Vercellese
relation country
['San Quentin State Prison', 'country', 'United States of America'] ['San Quentin State Prison', 'country', 'San Giacomo Vercellese']
ASK WHERE { resource:San_Quentin_State_Prison property:country resource:United_States_of_America . resource:San_Quentin_State_Prison property:country resource:San_Giacomo_Vercellese }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q912407,P17,Q30) (Q912407,P17,Q25205)
action is_in
entity Q912407
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q25205
relation P17
[ANSWER]
['Q912407', 'P17', 'Q30'] ['Q912407', 'P17', 'Q25205']
ASK WHERE { resource:Q912407 property:P17 resource:Q30 . resource:Q912407 property:P17 resource:Q25205 }
YES and NO respectively
action is_in
entity San Quentin State Prison
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity San Giacomo Vercellese
relation country
['San Quentin State Prison', 'country', 'United States of America'] ['San Quentin State Prison', 'country', 'San Giacomo Vercellese']
ASK WHERE { resource:San_Quentin_State_Prison property:country resource:United_States_of_America . resource:San_Quentin_State_Prison property:country resource:San_Giacomo_Vercellese }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1528918 Q48111
P27
Q15617994
USER
Is Louise Peete an inhabitant of Lavagno ?
(Q1528918,P27,Q48111)
action is_in
entity Q48111
action find
entity Q1528918
relation P27
['Q1528918', 'P27', 'Q48111']
ASK WHERE { resource:Q1528918 property:P27 resource:Q48111 }
Louise Peete Lavagno
action is_in
entity Lavagno
action find
entity Louise Peete
relation country of citizenship
['Louise Peete', 'country of citizenship', 'Lavagno']
ASK WHERE { resource:Louise_Peete property:country_of_citizenship resource:Lavagno }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1528918,P27,Q48111)
action is_in
entity Q48111
action find
entity Q1528918
relation P27
[ANSWER]
['Q1528918', 'P27', 'Q48111']
ASK WHERE { resource:Q1528918 property:P27 resource:Q48111 }
No
action is_in
entity Lavagno
action find
entity Louise Peete
relation country of citizenship
['Louise Peete', 'country of citizenship', 'Lavagno']
ASK WHERE { resource:Louise_Peete property:country_of_citizenship resource:Lavagno }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3235151
P725
Q502895 Q15961987
USER
Which television genres did approximately the same number of people do the dubbing for as VeggieTales ?
(c(Q15961987),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q3235151
relation P725
type Q15961987
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?o ) WHERE { ?c property:P725 ?n . ?c rdf:type ontology:Q15961987 . ?n rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?o = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q3235151 property:P725 ?u . ?u rdf:type ontology:Q15961987 } } }
VeggieTales
action approx
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity VeggieTales
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?o ) WHERE { ?c property:voice_actor ?n . ?c rdf:type ontology:television_genre . ?n rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?o = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:VeggieTales property:voice_actor ?u . ?u rdf:type ontology:television_genre } } }
[]
common name television genre
Q886 Q11572 Q24034511
SYSTEM
The Simpsons, Avatar: The Last Airbender, Voltron: Legendary Defender
Q11572 Q24034511 Q11296848 Q3235151 Q576501 Q847219 Q753848 Q886 Q917543 Q2750339
(c(Q15961987),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q3235151
relation P725
type Q15961987
[ANSWERS] approximately the same number of people did the dubbing for as VeggieTales
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?o ) WHERE { ?c property:P725 ?n . ?c rdf:type ontology:Q15961987 . ?n rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?o = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q3235151 property:P725 ?u . ?u rdf:type ontology:Q15961987 } } }
Avatar: The Last Airbender Voltron: Legendary Defender Kiteretsu Daihyakka VeggieTales Garfield and Friends Pururun! Shizuku-chan TaleSpin The Simpsons The Garfield Show Hellsing Ultimate
The Simpsons, Avatar: The Last Airbender and Voltron: Legendary Defender approximately the same number of people did the dubbing for as VeggieTales
The Simpsons Avatar: The Last Airbender Voltron: Legendary Defender
action approx
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity VeggieTales
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?o ) WHERE { ?c property:voice_actor ?n . ?c rdf:type ontology:television_genre . ?n rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?o = ?h ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:VeggieTales property:voice_actor ?u . ?u rdf:type ontology:television_genre } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q917543
P725
Q502895 Q15961987
USER
And what about The Garfield Show?
(c(Q15961987),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q917543
relation P725
type Q15961987
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?j ) WHERE { ?i property:P725 ?y . ?i rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ontology:Q15961987 . resource:Q917543 property:P725 ?v } } . FILTER ( ?j = ?g ) }
The Garfield Show
action approx
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity The Garfield Show
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?j ) WHERE { ?i property:voice_actor ?y . ?i rdf:type ontology:television_genre . ?y rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ontology:television_genre . resource:The_Garfield_Show property:voice_actor ?v } } . FILTER ( ?j = ?g ) }
[]
common name television genre
Q11572 Q576501 Q917543
SYSTEM
Avatar: The Last Airbender, Garfield and Friends, The Garfield Show
Q11572 Q11296848 Q3235151 Q576501 Q847219 Q753848 Q917543 Q2750339
(c(Q15961987),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q917543
relation P725
type Q15961987
[ANSWERS]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?j ) WHERE { ?i property:P725 ?y . ?i rdf:type ontology:Q15961987 . ?y rdf:type ontology:Q502895 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ontology:Q15961987 . resource:Q917543 property:P725 ?v } } . FILTER ( ?j = ?g ) }
Avatar: The Last Airbender Kiteretsu Daihyakka VeggieTales Garfield and Friends Pururun! Shizuku-chan TaleSpin The Garfield Show Hellsing Ultimate
Avatar: The Last Airbender Garfield and Friends The Garfield Show
action approx
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity The Garfield Show
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?j ) WHERE { ?i property:voice_actor ?y . ?i rdf:type ontology:television_genre . ?y rdf:type ontology:common_name } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { ?v rdf:type ontology:television_genre . resource:The_Garfield_Show property:voice_actor ?v } } . FILTER ( ?j = ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11572
P58
Q502895
USER
Who served as the screenwriter for Avatar: The Last Airbender ?
(Q11572,P58,c(Q502895))
action filter_type
action find
entity Q11572
relation P58
type Q502895
['Q11572', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q11572 property:P58 ?m . ?m rdf:type ontology:Q502895 }
Avatar: The Last Airbender
action filter_type
action find
entity Avatar: The Last Airbender
relation screenwriter
type common name
['Avatar: The Last Airbender', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Avatar:_The_Last_Airbender property:screenwriter ?m . ?m rdf:type ontology:common_name }
[]
common name
Q26204996 Q3310084
SYSTEM
Tim Hedrick, Aaron Ehasz
Q26204996 Q3310084
(Q11572,P58,c(Q502895))
action filter_type
action find
entity Q11572
relation P58
type Q502895
The [ANSWERS] served as the screenwriter for Avatar: The Last Airbender
['Q11572', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q11572 property:P58 ?m . ?m rdf:type ontology:Q502895 }
Tim Hedrick Aaron Ehasz
The Tim Hedrick and Aaron Ehasz served as the screenwriter for Avatar: The Last Airbender
Tim Hedrick Aaron Ehasz
action filter_type
action find
entity Avatar: The Last Airbender
relation screenwriter
type common name
['Avatar: The Last Airbender', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Avatar:_The_Last_Airbender property:screenwriter ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3785951
Q502895
USER
And also tell me about Hitched?
(Q3785951,P58,c(Q502895))
action filter_type
action find
entity Q3785951
relation P58
type Q502895
['Q3785951', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q3785951 property:P58 ?m . ?m rdf:type ontology:Q502895 }
Hitched
action filter_type
action find
entity Hitched
relation screenwriter
type common name
['Hitched', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Hitched property:screenwriter ?m . ?m rdf:type ontology:common_name }
[]
common name
Q1236442
SYSTEM
Wesley Strick
Q1236442
(Q3785951,P58,c(Q502895))
action filter_type
action find
entity Q3785951
relation P58
type Q502895
[ANSWER]
['Q3785951', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q3785951 property:P58 ?m . ?m rdf:type ontology:Q502895 }
Wesley Strick
Wesley Strick
action filter_type
action find
entity Hitched
relation screenwriter
type common name
['Hitched', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Hitched property:screenwriter ?m . ?m rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1016712 Q912407
P17
Q15617994
USER
Which administrative territories are San Quentin State Prison or Lilla Edet present in ?
OR((Q912407,P17,c(Q15617994)), (Q1016712,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q912407
relation P17
action find
entity Q1016712
relation P17
type Q15617994
{'OR': [['Q912407', 'P17', {'concept': 'Q15617994'}], ['Q1016712', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q912407 property:P17 ?n } UNION { resource:Q1016712 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
Lilla Edet San Quentin State Prison
action filter_type
action union
action find
entity San Quentin State Prison
relation country
action find
entity Lilla Edet
relation country
type designation for an administrative territorial entity
{'OR': [['San Quentin State Prison', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Lilla Edet', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:San_Quentin_State_Prison property:country ?n } UNION { resource:Lilla_Edet property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q34
SYSTEM
United States of America, Sweden
Q30 Q34
OR((Q912407,P17,c(Q15617994)), (Q1016712,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q912407
relation P17
action find
entity Q1016712
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q912407', 'P17', {'concept': 'Q15617994'}], ['Q1016712', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q912407 property:P17 ?n } UNION { resource:Q1016712 property:P17 ?n } } . ?n rdf:type ontology:Q15617994 }
United States of America Sweden
Which administrative territories are San Quentin State Prison or Lilla Edet present in
United States of America Sweden
action filter_type
action union
action find
entity San Quentin State Prison
relation country
action find
entity Lilla Edet
relation country
type designation for an administrative territorial entity
{'OR': [['San Quentin State Prison', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Lilla Edet', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:San_Quentin_State_Prison property:country ?n } UNION { resource:Lilla_Edet property:country ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q34
P183
Q16521
USER
Which taxon is endemic to that administrative territory ?
(c(Q16521),P183,Q34)
action filter_type
action find_reverse
entity Q34
relation P183
type Q16521
[{'concept': 'Q16521'}, 'P183', 'Q34']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q16521 . ?e property:P183 resource:Q34 }
Sweden
action filter_type
action find_reverse
entity Sweden
relation endemic to
type taxon
[{'concept': 'taxon'}, 'endemic to', 'Sweden']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:taxon . ?e property:endemic_to resource:Sweden }
[]
taxon
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q30 Q34
(c(Q16521),P183,Q30) (c(Q16521),P183,Q34)
[ANSWER]
[{'concept': 'Q16521'}, 'P183', 'Q30'] [{'concept': 'Q16521'}, 'P183', 'Q34']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q16521 . ?e property:P183 resource:Q34 }
United States of America Sweden
Did you mean United States of America ?
United States of America
[{'concept': 'taxon'}, 'endemic to', 'United States of America'] [{'concept': 'taxon'}, 'endemic to', 'Sweden']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:taxon . ?e property:endemic_to resource:Sweden }
[]
Simple Question (Coreferenced)
USER
No, I meant Sweden. Could you tell me the answer for that?
(c(Q16521),P183,Q34)
Q34
[{'concept': 'Q16521'}, 'P183', 'Q34']
[{'concept': 'taxon'}, 'endemic to', 'Sweden']
[]
Q303180
SYSTEM
Coregonus trybomi
Q303180
(c(Q16521),P183,Q34)
action filter_type
action find_reverse
entity Q34
relation P183
type Q16521
[ANSWER] is endemic to that administrative territory
[{'concept': 'Q16521'}, 'P183', 'Q34']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q16521 . ?e property:P183 resource:Q34 }
Coregonus trybomi
Coregonus trybomi is endemic to that administrative territory
Coregonus trybomi
action filter_type
action find_reverse
entity Sweden
relation endemic to
type taxon
[{'concept': 'taxon'}, 'endemic to', 'Sweden']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:taxon . ?e property:endemic_to resource:Sweden }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q238
P1376
Q15617994 Q515 Q56061
USER
How many administrative territories have approximately the same number of cities or administrative territories as their county seat as San Marino ?
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q238
relation P1376
type Q515
type Q56061
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?o ) WHERE { VALUES ( ?m ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?d rdf:type ?m } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } . ?r property:P1376 resource:Q238 } } . FILTER ( ?o = ?w ) }
San Marino
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity San Marino
relation capital of
type city
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?o ) WHERE { VALUES ( ?m ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?d rdf:type ?m } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } . ?r property:capital_of resource:San_Marino } } . FILTER ( ?o = ?w ) }
[]
designation for an administrative territorial entity city administrative territorial entity
SYSTEM
384
Q804 Q801 Q800 Q1098820 Q419 Q414 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q2998020 Q399 Q398 Q1465069 Q1324549 Q1979 Q159 Q1664120 Q12526 Q1974 Q611074 Q2007299 Q1254171 Q220249 Q979470 Q1270648 Q1899307 Q30675 Q983 Q730 Q734 Q736 Q1280 Q1282 Q1338277 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q189 Q843 Q2007 Q184 Q1029 Q1028 Q1390630 Q1452 Q815731 Q31074 Q31075 Q96 Q1050 Q311803 Q298 Q29937 Q115 Q114 Q117 Q30786 Q1270638 Q1788988 Q1544445 Q466061 Q1515346 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q34020 Q760 Q14762300 Q696651 Q3528124 Q2719360 Q948 Q1243 Q945 Q639100 Q855327 Q328134 Q1237 Q701 Q702 Q968630 Q705 Q707 Q4450475 Q668 Q1093 Q1090684 Q1263830 Q833 Q3509886 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q45 Q43 Q792 Q790 Q796 Q794 Q1232680 Q889 Q884 Q881 Q231168 Q241 Q1965 Q242 Q1437719 Q1244497 Q29965 Q33 Q32 Q31 Q37 Q36 Q34 Q3361 Q39 Q302479 Q541095 Q2567535 Q3068 Q3389 Q30644 Q236 Q230 Q232 Q233 Q1777256 Q238 Q12549 Q129003 Q1101 Q1206596 Q3139 Q902 Q1036 Q1037 Q1032 Q1030 Q1024985 Q1039 Q694 Q695 Q754 Q752 Q750 Q2562901 Q31068 Q31067 Q31065 Q1773268 Q30835 Q30831 Q574 Q1558632 Q191 Q79 Q77 Q878 Q46130 Q3044651 Q3044714 Q3044715 Q30682 Q30683 Q1951 Q2091235 Q2006764 Q1952 Q669802 Q753795 Q1256 Q1250 Q452565 Q3305157 Q684030 Q2567507 Q3044623 Q651394 Q30946 Q3044781 Q712 Q711 Q710 Q717 Q3044777 Q12770 Q657 Q1789890 Q12538 Q954 Q1393469 Q953 Q2001966 Q1886098 Q958 Q986 Q219 Q957825 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1974486 Q153091 Q693658 Q1508927 Q1948 Q654849 Q2038939 Q311794 Q12661 Q20 Q27 Q28 Q1366860 Q148 Q227 Q225 Q30650 Q223 Q222 Q221 Q47261 Q311668 Q229 Q228 Q1410315 Q1989 Q60011 Q967 Q963 Q2921370 Q2921378 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q1008 Q2380910 Q1438 Q686 Q30832 Q891165 Q817 Q810 Q811 Q813 Q18046648 Q819 Q29 Q617646 Q72670 Q12545 Q2309262 Q863 Q2023 Q869 Q568751 Q334714 Q15116736 Q2150573 Q142 Q685048 Q29943 Q145 Q262 Q2009 Q12820 Q265 Q3342 Q842 Q378004 Q1150452 Q691368 Q1263 Q475035 Q2003 Q3240 Q2662372 Q686924 Q30669 Q30662 Q4628 Q455705 Q770 Q1856181 Q1077283 Q921 Q4712 Q928 Q929 Q858 Q423 Q424 Q851 Q29999 Q854 Q2226837 Q165763 Q1447 Q2360428 Q30656 Q12717 Q1045 Q1044 Q1042 Q1041 Q31070 Q3336 Q30797 Q1904 Q347 Q3462133 Q30815 Q153402 Q3207 Q894973 Q894972 Q894971 Q894970 Q1053888 Q3044677 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q244 Q1090691 Q977 Q2218506 Q692290 Q974 Q971 Q970 Q4464271 Q2502354 Q30630 Q775 Q774 Q776 Q1019 Q773 Q772 Q1014 Q1016 Q1011 Q1013 Q678 Q8575586 Q1579364 Q31079 Q2629692 Q549746 Q695660
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q238
relation P1376
type Q515
type Q56061
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?o ) WHERE { VALUES ( ?m ) { ( ontology:Q515 ) ( ontology:Q56061 ) } . ?d rdf:type ?m } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } . ?r property:P1376 resource:Q238 } } . FILTER ( ?o = ?w ) }
Panama Israel Costa Rica Gênes Peru Argentina Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Corse Armenia Bahrain Frise Uthukela District Municipality Prince Edward Island Russia Alfred Nzo District Municipality Gironde British Columbia Mopani District Municipality OR Tambo District Municipality Dr Ruth Segomotsi Mompati District Municipality Eden District Municipality Seine-et-Oise Sieg Overberg District Municipality Minya Governorate Equatorial Guinea Suriname Guyana Ecuador Umbria Lazio Sambre-et-Meuse John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Iceland Pakistan Northwest Territories Belarus Mozambique Morocco Ourthe Basilicata Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Swaziland Umgungundlovu District Municipality Chile Aswan Governorate Ethiopia Kenya Ghana Monufia Governorate Rhine Trasimène Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Samoa Principality of Wales Province of Brescia Isère Ruhr Niue Saint Lucia single-tier municipality Saxe-Eisenach Tibre Duchy of Luxembourg Tunisia Veneto Togo Principality of Reuss-Gera Kouilou Department 6th of October Governorate Trentino-South Tyrol North Holland Federated States of Micronesia Taro Zeeland Flevoland Talitsky District India Limburg Montserrat Frances Baard District Municipality Malaysia Sègre-Ter Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Portugal Turkey El Salvador Haiti Iraq Iran Ithaque Afghanistan South Korea Vietnam Zuyderzée Cuba New Brunswick Belize Thabo Mofutsanyana District Municipality Ehlanzeni District Municipality Asyut Governorate Finland Luxembourg Belgium Lithuania Poland Sweden Doubs Switzerland Ems-Occidental Rhin-et-Moselle Pô Loire-Atlantique Finistère Damietta Governorate Montenegro Georgia Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine French Southern and Antarctic Lands North Brabant Deux-Nèthes Alpes-Maritimes Bangladesh Uganda Rwanda Niger Namibia Cacadu District Municipality Sao Tomé and Príncipe South Holland Palau Trinidad and Tobago Groningen Bolivia West Coast District Municipality Dakahlia Governorate Ismailia Governorate Qena Governorate ZF Mgcawu District Municipality Gharbia Governorate Red Sea Governorate East Timor Rome Estonia Egypt Uruguay United Arab Emirates Rhône Louverture Ouest Ozama Matrouh Governorate Beni Suef Governorate Alberta Ugu District Municipality Xhariep District Municipality Nova Scotia Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Mella Principality of Serbia Arno Cibao Ramensky District Kafr el-Sheikh Governorate Sud Fiji Mongolia Kiribati Venezuela Nord Somme Chad West Rand District Municipality Haute-Garonne Zimbabwe Jemmapes Zambia Company rule in India Pixley ka Seme District Municipality South Sudan Eritrea Bulgaria Yssel-Supérieur Maldives Lebanon Spanish Sahara Seine Habsburg Empire Principality of Vitebsk Cape Winelands District Municipality Duchy of Prussia Izabal Department Méditerranée Manitoba Joe Gqabi District Municipality Sedibeng District Municipality iLembe District Municipality Nord Norway Ireland Hungary Escaut People's Republic of China Azerbaijan Bosnia and Herzegovina New Valley Governorate Greenland Albania Republic of Macedonia Duchy of Bavaria UThungulu District Municipality Cyprus Andorra Fezile Dabi District Municipality Saskatchewan Kars Oblast Burundi Botswana Bouches-de-l'Èbre-Montserrat Bouches-de-l'Èbre Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Côte d'Ivoire Duchy of Zaslawye Campania Vanuatu Giza Governorate Bojanala Platinum District Municipality Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Spain Namakwa District Municipality Batumi Oblast Hérault Zululand District Municipality Tajikistan Nunavut Thailand Mont-Tonnerre Duchy of Athens Jaén District Unterelsaß France Simplon Alexandria Governorate United Kingdom Algeria Yukon Yvelines Uzbekistan Côte-d'Or Oman Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Newfoundland and Labrador Bouches-du-Rhône Principality of Minsk Mer-Égée Sohag Governorate North Sinai Governorate Faroe Islands Amathole District Municipality Friesland Nkangala District Municipality Chris Hani District Municipality Brunei Duchy of Burgundy Philippines Central African Republic Syria North Korea Cambodia Saudi Arabia Kingdom of the Netherlands Sri Lanka Umzinyathi District Municipality Waldeck Apulia Tijuana Municipality Faiyum Governorate Bas-Rhin Somalia Sierra Leone Seychelles Senegal Suez Governorate Corse-du-Sud Luxor Governorate Ontario Liechtenstein Saxe-Coburg and Gotha South Sinai Governorate Roer Aude Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Bouches-de-la-Meuse Central Karoo District Municipality Samaná Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Barbados Ter Djibouti Kineshemsky District Capricorn District Municipality Democratic Republic of the Congo Republic of the Congo Comoros Principality of Trubetsk Principality of Goroden Beheira Governorate Gelderland Guatemala Utrecht Madagascar Overijssel Drenthe Liberia Libya Cape Verde Lesotho Tonga Umayyad Caliphate Lys Port Said Governorate Simferopol municipality Sisonke District Municipality Guatemala Department
384
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity San Marino
relation capital of
type city
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?o ) WHERE { VALUES ( ?m ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } . ?d rdf:type ?m } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { ?r rdf:type ?t . VALUES ( ?t ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } . ?r property:capital_of resource:San_Marino } } . FILTER ( ?o = ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q311794
P1376
Q15617994 Q515 Q56061
USER
And how about iLembe District Municipality?
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q311794
relation P1376
type Q515
type Q56061
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?o ) WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } GROUP BY ?b } . FILTER ( ?o = ?c ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { ?v property:P1376 resource:Q311794 . { { ?v rdf:type ontology:Q515 } UNION { ?v rdf:type ontology:Q56061 } } } } }
iLembe District Municipality
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity iLembe District Municipality
relation capital of
type city
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?o ) WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } GROUP BY ?b } . FILTER ( ?o = ?c ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { ?v property:capital_of resource:iLembe_District_Municipality . { { ?v rdf:type ontology:city } UNION { ?v rdf:type ontology:administrative_territorial_entity } } } } }
[]
designation for an administrative territorial entity city administrative territorial entity
SYSTEM
384
Q804 Q801 Q800 Q1098820 Q419 Q414 Q55 Q783 Q784 Q786 Q568833 Q1452650 Q2998020 Q399 Q398 Q1465069 Q1324549 Q1979 Q159 Q1664120 Q12526 Q1974 Q611074 Q2007299 Q1254171 Q220249 Q979470 Q1270648 Q1899307 Q30675 Q983 Q730 Q734 Q736 Q1280 Q1282 Q1338277 Q384731 Q1816477 Q1273 Q1279 Q1025 Q1049 Q1027 Q189 Q843 Q2007 Q184 Q1029 Q1028 Q1390630 Q1452 Q815731 Q31074 Q31075 Q96 Q1050 Q311803 Q298 Q29937 Q115 Q114 Q117 Q30786 Q1270638 Q1788988 Q1544445 Q466061 Q1515346 Q683 Q1483510 Q3924533 Q12559 Q1270636 Q34020 Q760 Q14762300 Q696651 Q3528124 Q2719360 Q948 Q1243 Q945 Q639100 Q855327 Q328134 Q1237 Q701 Q702 Q968630 Q705 Q707 Q4450475 Q668 Q1093 Q1090684 Q1263830 Q833 Q3509886 Q836 Q837 Q2305610 Q565812 Q1460 Q2068764 Q1462 Q403 Q691890 Q45 Q43 Q792 Q790 Q796 Q794 Q1232680 Q889 Q884 Q881 Q231168 Q241 Q1965 Q242 Q1437719 Q1244497 Q29965 Q33 Q32 Q31 Q37 Q36 Q34 Q3361 Q39 Q302479 Q541095 Q2567535 Q3068 Q3389 Q30644 Q236 Q230 Q232 Q233 Q1777256 Q238 Q12549 Q129003 Q1101 Q1206596 Q3139 Q902 Q1036 Q1037 Q1032 Q1030 Q1024985 Q1039 Q694 Q695 Q754 Q752 Q750 Q2562901 Q31068 Q31067 Q31065 Q1773268 Q30835 Q30831 Q574 Q1558632 Q191 Q79 Q77 Q878 Q46130 Q3044651 Q3044714 Q3044715 Q30682 Q30683 Q1951 Q2091235 Q2006764 Q1952 Q669802 Q753795 Q1256 Q1250 Q452565 Q3305157 Q684030 Q2567507 Q3044623 Q651394 Q30946 Q3044781 Q712 Q711 Q710 Q717 Q3044777 Q12770 Q657 Q1789890 Q12538 Q954 Q1393469 Q953 Q2001966 Q1886098 Q958 Q986 Q219 Q957825 Q826 Q822 Q689837 Q1142326 Q153136 Q2621010 Q1974486 Q153091 Q693658 Q1508927 Q1948 Q654849 Q2038939 Q311794 Q12661 Q20 Q27 Q28 Q1366860 Q148 Q227 Q225 Q30650 Q223 Q222 Q221 Q47261 Q311668 Q229 Q228 Q1410315 Q1989 Q60011 Q967 Q963 Q2921370 Q2921378 Q2310748 Q252157 Q1210 Q1216 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1786286 Q1009 Q1008 Q2380910 Q1438 Q686 Q30832 Q891165 Q817 Q810 Q811 Q813 Q18046648 Q819 Q29 Q617646 Q72670 Q12545 Q2309262 Q863 Q2023 Q869 Q568751 Q334714 Q15116736 Q2150573 Q142 Q685048 Q29943 Q145 Q262 Q2009 Q12820 Q265 Q3342 Q842 Q378004 Q1150452 Q691368 Q1263 Q475035 Q2003 Q3240 Q2662372 Q686924 Q30669 Q30662 Q4628 Q455705 Q770 Q1856181 Q1077283 Q921 Q4712 Q928 Q929 Q858 Q423 Q424 Q851 Q29999 Q854 Q2226837 Q165763 Q1447 Q2360428 Q30656 Q12717 Q1045 Q1044 Q1042 Q1041 Q31070 Q3336 Q30797 Q1904 Q347 Q3462133 Q30815 Q153402 Q3207 Q894973 Q894972 Q894971 Q894970 Q1053888 Q3044677 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q244 Q1090691 Q977 Q2218506 Q692290 Q974 Q971 Q970 Q4464271 Q2502354 Q30630 Q775 Q774 Q776 Q1019 Q773 Q772 Q1014 Q1016 Q1011 Q1013 Q678 Q8575586 Q1579364 Q31079 Q2629692 Q549746 Q695660
(c(Q515)|c(Q56061),P1376,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action count
action filter_multi_types
action find_reverse
entity Q311794
relation P1376
type Q515
type Q56061
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?o ) WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:Q56061 ) ( ontology:Q515 ) } } GROUP BY ?b } . FILTER ( ?o = ?c ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { ?v property:P1376 resource:Q311794 . { { ?v rdf:type ontology:Q515 } UNION { ?v rdf:type ontology:Q56061 } } } } }
Panama Israel Costa Rica Gênes Peru Argentina Netherlands Honduras Dominica Dominican Republic Meuse-Inférieure Ombrone Corse Armenia Bahrain Frise Uthukela District Municipality Prince Edward Island Russia Alfred Nzo District Municipality Gironde British Columbia Mopani District Municipality OR Tambo District Municipality Dr Ruth Segomotsi Mompati District Municipality Eden District Municipality Seine-et-Oise Sieg Overberg District Municipality Minya Governorate Equatorial Guinea Suriname Guyana Ecuador Umbria Lazio Sambre-et-Meuse John Taolo Gaetsewe District Municipality Lejweleputswa District Municipality Tuscany Marche Mauritania Sudan Mauritius Iceland Pakistan Northwest Territories Belarus Mozambique Morocco Ourthe Basilicata Principality of Bulgaria Al Sharqia Governorate Qalyubia Governorate Mexico Swaziland Umgungundlovu District Municipality Chile Aswan Governorate Ethiopia Kenya Ghana Monufia Governorate Rhine Trasimène Sekhukhune District Municipality Petén Department Gert Sibande District Municipality Samoa Principality of Wales Province of Brescia Isère Ruhr Niue Saint Lucia single-tier municipality Saxe-Eisenach Tibre Duchy of Luxembourg Tunisia Veneto Togo Principality of Reuss-Gera Kouilou Department 6th of October Governorate Trentino-South Tyrol North Holland Federated States of Micronesia Taro Zeeland Flevoland Talitsky District India Limburg Montserrat Frances Baard District Municipality Malaysia Sègre-Ter Myanmar Nepal Vhembe District Municipality Principality of Calenberg Sicily Archa Darugha Sardinia Serbia Corcyre Portugal Turkey El Salvador Haiti Iraq Iran Ithaque Afghanistan South Korea Vietnam Zuyderzée Cuba New Brunswick Belize Thabo Mofutsanyana District Municipality Ehlanzeni District Municipality Asyut Governorate Finland Luxembourg Belgium Lithuania Poland Sweden Doubs Switzerland Ems-Occidental Rhin-et-Moselle Pô Loire-Atlantique Finistère Damietta Governorate Montenegro Georgia Kazakhstan Malta Dzerzhinsky District, Kaluga Oblast San Marino Ille-et-Vilaine French Southern and Antarctic Lands North Brabant Deux-Nèthes Alpes-Maritimes Bangladesh Uganda Rwanda Niger Namibia Cacadu District Municipality Sao Tomé and Príncipe South Holland Palau Trinidad and Tobago Groningen Bolivia West Coast District Municipality Dakahlia Governorate Ismailia Governorate Qena Governorate ZF Mgcawu District Municipality Gharbia Governorate Red Sea Governorate East Timor Rome Estonia Egypt Uruguay United Arab Emirates Rhône Louverture Ouest Ozama Matrouh Governorate Beni Suef Governorate Alberta Ugu District Municipality Xhariep District Municipality Nova Scotia Quiché Department Briceni District Liguria Friuli–Venezia Giulia Amajuba District Municipality Mella Principality of Serbia Arno Cibao Ramensky District Kafr el-Sheikh Governorate Sud Fiji Mongolia Kiribati Venezuela Nord Somme Chad West Rand District Municipality Haute-Garonne Zimbabwe Jemmapes Zambia Company rule in India Pixley ka Seme District Municipality South Sudan Eritrea Bulgaria Yssel-Supérieur Maldives Lebanon Spanish Sahara Seine Habsburg Empire Principality of Vitebsk Cape Winelands District Municipality Duchy of Prussia Izabal Department Méditerranée Manitoba Joe Gqabi District Municipality Sedibeng District Municipality iLembe District Municipality Nord Norway Ireland Hungary Escaut People's Republic of China Azerbaijan Bosnia and Herzegovina New Valley Governorate Greenland Albania Republic of Macedonia Duchy of Bavaria UThungulu District Municipality Cyprus Andorra Fezile Dabi District Municipality Saskatchewan Kars Oblast Burundi Botswana Bouches-de-l'Èbre-Montserrat Bouches-de-l'Èbre Liamone Sarre Lombardy Piedmont Mali Bhutan Angola Guinea-Bissau Guinea Gambia Kuban Oblast Cameroon Côte d'Ivoire Duchy of Zaslawye Campania Vanuatu Giza Governorate Bojanala Platinum District Municipality Kuwait Jordan Nicaragua Kyrgyzstan department Stad en Landen of Groningen Laos Spain Namakwa District Municipality Batumi Oblast Hérault Zululand District Municipality Tajikistan Nunavut Thailand Mont-Tonnerre Duchy of Athens Jaén District Unterelsaß France Simplon Alexandria Governorate United Kingdom Algeria Yukon Yvelines Uzbekistan Côte-d'Or Oman Forêts Dr Kenneth Kaunda District Municipality Léman Emilia-Romagna Helwan Governorate Newfoundland and Labrador Bouches-du-Rhône Principality of Minsk Mer-Égée Sohag Governorate North Sinai Governorate Faroe Islands Amathole District Municipality Friesland Nkangala District Municipality Chris Hani District Municipality Brunei Duchy of Burgundy Philippines Central African Republic Syria North Korea Cambodia Saudi Arabia Kingdom of the Netherlands Sri Lanka Umzinyathi District Municipality Waldeck Apulia Tijuana Municipality Faiyum Governorate Bas-Rhin Somalia Sierra Leone Seychelles Senegal Suez Governorate Corse-du-Sud Luxor Governorate Ontario Liechtenstein Saxe-Coburg and Gotha South Sinai Governorate Roer Aude Bouches-du-Rhin Bouches-de-l'Yssel Bouches-de-l'Escaut Bouches-de-la-Meuse Central Karoo District Municipality Samaná Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Barbados Ter Djibouti Kineshemsky District Capricorn District Municipality Democratic Republic of the Congo Republic of the Congo Comoros Principality of Trubetsk Principality of Goroden Beheira Governorate Gelderland Guatemala Utrecht Madagascar Overijssel Drenthe Liberia Libya Cape Verde Lesotho Tonga Umayyad Caliphate Lys Port Said Governorate Simferopol municipality Sisonke District Municipality Guatemala Department
384
action count
action approx
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity iLembe District Municipality
relation capital of
type city
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?o ) WHERE { ?r rdf:type ?j . VALUES ( ?j ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } } GROUP BY ?b } . FILTER ( ?o = ?c ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?c ) WHERE { ?v property:capital_of resource:iLembe_District_Municipality . { { ?v rdf:type ontology:city } UNION { ?v rdf:type ontology:administrative_territorial_entity } } } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2354576 Q34
P530 P495
Q1048835
USER
Which political territories have diplomatic relations with Sweden and are the origins of I Killed My Mother ?
AND((Q34,P530,c(Q1048835)), (Q2354576,P495,c(Q1048835)))
action filter_type
action intersection
action find
entity Q34
relation P530
action find
entity Q2354576
relation P495
type Q1048835
{'AND': [['Q34', 'P530', {'concept': 'Q1048835'}], ['Q2354576', 'P495', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { resource:Q34 property:P530 ?u . resource:Q2354576 property:P495 ?u . ?u rdf:type ontology:Q1048835 }
I Killed My Mother Sweden
action filter_type
action intersection
action find
entity Sweden
relation diplomatic relation
action find
entity I Killed My Mother
relation country of origin
type political territorial entity
{'AND': [['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}], ['I Killed My Mother', 'country of origin', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Sweden property:diplomatic_relation ?u . resource:I_Killed_My_Mother property:country_of_origin ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
AND((Q34,P530,c(Q1048835)), (Q2354576,P495,c(Q1048835)))
action filter_type
action intersection
action find
entity Q34
relation P530
action find
entity Q2354576
relation P495
type Q1048835
[ANSWER] have diplomatic relations with Sweden and are the origins of I Killed My Mother
{'AND': [['Q34', 'P530', {'concept': 'Q1048835'}], ['Q2354576', 'P495', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { resource:Q34 property:P530 ?u . resource:Q2354576 property:P495 ?u . ?u rdf:type ontology:Q1048835 }
Canada
Canada have diplomatic relations with Sweden and are the origins of I Killed My Mother
Canada
action filter_type
action intersection
action find
entity Sweden
relation diplomatic relation
action find
entity I Killed My Mother
relation country of origin
type political territorial entity
{'AND': [['Sweden', 'diplomatic relation', {'concept': 'political territorial entity'}], ['I Killed My Mother', 'country of origin', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Sweden property:diplomatic_relation ?u . resource:I_Killed_My_Mother property:country_of_origin ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16 Q836915
P530
Q1048835
USER
Does Free state have diplomatic relations with Canada ?
(Q16,P530,Q836915)
action is_in
entity Q836915
action find
entity Q16
relation P530
['Q16', 'P530', 'Q836915']
ASK WHERE { resource:Q16 property:P530 resource:Q836915 }
Canada Free state
action is_in
entity Free state
action find
entity Canada
relation diplomatic relation
['Canada', 'diplomatic relation', 'Free state']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Free_state }
[]
political territorial entity
SYSTEM
NO
(Q16,P530,Q836915)
action is_in
entity Q836915
action find
entity Q16
relation P530
[ANSWER]
['Q16', 'P530', 'Q836915']
ASK WHERE { resource:Q16 property:P530 resource:Q836915 }
No
action is_in
entity Free state
action find
entity Canada
relation diplomatic relation
['Canada', 'diplomatic relation', 'Free state']
ASK WHERE { resource:Canada property:diplomatic_relation resource:Free_state }
[]