Simple Question (Direct)
Simple Question
Q4480363
P102
Q766570
USER
Which political party in Russia is Sergey Fabrichny a member of ?
(Q4480363,P102,c(Q766570))
action filter_type
action find
entity Q4480363
relation P102
type Q766570
['Q4480363', 'P102', {'concept': 'Q766570'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q766570 . resource:Q4480363 property:P102 ?p }
Sergey Fabrichny
action filter_type
action find
entity Sergey Fabrichny
relation member of political party
type political party in Russia
['Sergey Fabrichny', 'member of political party', {'concept': 'political party in Russia'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_party_in_Russia . resource:Sergey_Fabrichny property:member_of_political_party ?p }
[]
political party in Russia
Q151469
SYSTEM
United Russia
Q151469
(Q4480363,P102,c(Q766570))
action filter_type
action find
entity Q4480363
relation P102
type Q766570
The [ANSWER] is Sergey Fabrichny a member of
['Q4480363', 'P102', {'concept': 'Q766570'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q766570 . resource:Q4480363 property:P102 ?p }
United Russia
The United Russia is Sergey Fabrichny a member of
United Russia
action filter_type
action find
entity Sergey Fabrichny
relation member of political party
type political party in Russia
['Sergey Fabrichny', 'member of political party', {'concept': 'political party in Russia'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:political_party_in_Russia . resource:Sergey_Fabrichny property:member_of_political_party ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4480363
P512
Q3412758
USER
What is the degree held by Sergey Fabrichny ?
(Q4480363,P512,c(Q3412758))
action filter_type
action find
entity Q4480363
relation P512
type Q3412758
['Q4480363', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?z WHERE { resource:Q4480363 property:P512 ?z . ?z rdf:type ontology:Q3412758 }
Sergey Fabrichny
action filter_type
action find
entity Sergey Fabrichny
relation academic degree
type qualification
['Sergey Fabrichny', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?z WHERE { resource:Sergey_Fabrichny property:academic_degree ?z . ?z rdf:type ontology:qualification }
[]
qualification
Q18745564
SYSTEM
Doktor Nauk in Juridical Science
Q18745564
(Q4480363,P512,c(Q3412758))
action filter_type
action find
entity Q4480363
relation P512
type Q3412758
The degree held by Sergey Fabrichny is a [ANSWER]
['Q4480363', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?z WHERE { resource:Q4480363 property:P512 ?z . ?z rdf:type ontology:Q3412758 }
Doktor Nauk in Juridical Science
The degree held by Sergey Fabrichny is a Doktor Nauk in Juridical Science
Doktor Nauk in Juridical Science
action filter_type
action find
entity Sergey Fabrichny
relation academic degree
type qualification
['Sergey Fabrichny', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?z WHERE { resource:Sergey_Fabrichny property:academic_degree ?z . ?z rdf:type ontology:qualification }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q18745564 Q212 Q561233
P17
Q15617994
USER
Is that qualification present in Ukraine and Strande ?
(Q18745564,P17,Q212) (Q18745564,P17,Q561233)
action is_in
entity Q18745564
action intersection
action find_reverse
entity Q212
relation P17
action find_reverse
entity Q561233
relation P17
['Q18745564', 'P17', 'Q212'] ['Q18745564', 'P17', 'Q561233']
ASK WHERE { resource:Q18745564 property:P17 resource:Q212 . resource:Q18745564 property:P17 resource:Q561233 }
Doktor Nauk in Juridical Science Ukraine Strande
action is_in
entity Doktor Nauk in Juridical Science
action intersection
action find_reverse
entity Ukraine
relation country
action find_reverse
entity Strande
relation country
['Doktor Nauk in Juridical Science', 'country', 'Ukraine'] ['Doktor Nauk in Juridical Science', 'country', 'Strande']
ASK WHERE { resource:Doktor_Nauk_in_Juridical_Science property:country resource:Ukraine . resource:Doktor_Nauk_in_Juridical_Science property:country resource:Strande }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q18745564,P17,Q212) (Q18745564,P17,Q561233)
action is_in
entity Q18745564
action intersection
action find_reverse
entity Q212
relation P17
action find_reverse
entity Q561233
relation P17
[ANSWER]
['Q18745564', 'P17', 'Q212'] ['Q18745564', 'P17', 'Q561233']
ASK WHERE { resource:Q18745564 property:P17 resource:Q212 . resource:Q18745564 property:P17 resource:Q561233 }
YES and NO respectively
action is_in
entity Doktor Nauk in Juridical Science
action intersection
action find_reverse
entity Ukraine
relation country
action find_reverse
entity Strande
relation country
['Doktor Nauk in Juridical Science', 'country', 'Ukraine'] ['Doktor Nauk in Juridical Science', 'country', 'Strande']
ASK WHERE { resource:Doktor_Nauk_in_Juridical_Science property:country resource:Ukraine . resource:Doktor_Nauk_in_Juridical_Science property:country resource:Strande }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3960438 Q561233
P27 P17
Q1048835
USER
Which political territories are Strande located in or are the countries of citizenship of Sigrid Chatel ?
OR((Q561233,P17,c(Q1048835)), (Q3960438,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q561233
relation P17
action find
entity Q3960438
relation P27
type Q1048835
{'OR': [['Q561233', 'P17', {'concept': 'Q1048835'}], ['Q3960438', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q561233 property:P17 ?z } UNION { resource:Q3960438 property:P27 ?z } } . ?z rdf:type ontology:Q1048835 }
Sigrid Chatel Strande
action filter_type
action union
action find
entity Strande
relation country
action find
entity Sigrid Chatel
relation country of citizenship
type political territorial entity
{'OR': [['Strande', 'country', {'concept': 'political territorial entity'}], ['Sigrid Chatel', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Strande property:country ?z } UNION { resource:Sigrid_Chatel property:country_of_citizenship ?z } } . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q561233,P17,c(Q1048835)), (Q3960438,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q561233
relation P17
action find
entity Q3960438
relation P27
type Q1048835
[ANSWERS]
{'OR': [['Q561233', 'P17', {'concept': 'Q1048835'}], ['Q3960438', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q561233 property:P17 ?z } UNION { resource:Q3960438 property:P27 ?z } } . ?z rdf:type ontology:Q1048835 }
Canada Germany
Which political territories are Strande located in or are the countries of citizenship of Sigrid Chatel
Canada Germany
action filter_type
action union
action find
entity Strande
relation country
action find
entity Sigrid Chatel
relation country of citizenship
type political territorial entity
{'OR': [['Strande', 'country', {'concept': 'political territorial entity'}], ['Sigrid Chatel', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Strande property:country ?z } UNION { resource:Sigrid_Chatel property:country_of_citizenship ?z } } . ?z rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11453195 Q16
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Canada or are the countries of citizenship of Naoki Miyashita ?
OR((Q16,P530,c(Q15617994)), (Q11453195,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16
relation P530
action find
entity Q11453195
relation P27
type Q15617994
{'OR': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q11453195', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q16 property:P530 ?z } UNION { resource:Q11453195 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Naoki Miyashita Canada
action filter_type
action union
action find
entity Canada
relation diplomatic relation
action find
entity Naoki Miyashita
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Naoki Miyashita', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Canada property:diplomatic_relation ?z } UNION { resource:Naoki_Miyashita property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1029 Q145 Q43 Q1030 Q878 Q833 Q159 Q258 Q77 Q801
SYSTEM
Some of them are Mozambique, United Kingdom, Turkey, Namibia, United Arab Emirates, Malaysia, Russia, South Africa, Uruguay, Israel
Q804 Q801 Q843 Q1029 Q1028 Q145 Q229 Q33 Q17 Q30 Q36 Q79 Q34 Q928 Q39 Q38 Q878 Q739 Q833 Q711 Q1030 Q851 Q29999 Q77 Q115 Q258 Q212 Q159 Q43 Q155 Q218 Q20 Q423 Q252 Q884
OR((Q16,P530,c(Q15617994)), (Q11453195,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16
relation P530
action find
entity Q11453195
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Canada or are the countries of citizenship of Naoki Miyashita
{'OR': [['Q16', 'P530', {'concept': 'Q15617994'}], ['Q11453195', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q16 property:P530 ?z } UNION { resource:Q11453195 property:P27 ?z } } . ?z rdf:type ontology:Q15617994 }
Panama Israel Pakistan Mozambique Morocco United Kingdom Cyprus Finland Japan United States of America Poland Egypt Sweden Philippines Switzerland Italy United Arab Emirates Colombia Malaysia Mongolia Namibia Saudi Arabia Kingdom of the Netherlands Uruguay Ethiopia South Africa Ukraine Russia Turkey Brazil Romania Norway North Korea Indonesia South Korea
Mozambique, United Kingdom, Turkey, Namibia, United Arab Emirates, Malaysia, Russia, South Africa, Uruguay and Israel have a diplomatic relationship with Canada or are the countries of citizenship of Naoki Miyashita
Mozambique United Kingdom Turkey Namibia United Arab Emirates Malaysia Russia South Africa Uruguay Israel
action filter_type
action union
action find
entity Canada
relation diplomatic relation
action find
entity Naoki Miyashita
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Canada', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Naoki Miyashita', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Canada property:diplomatic_relation ?z } UNION { resource:Naoki_Miyashita property:country_of_citizenship ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q663530
P530
Q1048835
USER
Do Dima have ambassadorial relations with those administrative territories ?
(Q663530,P530,Q1029) (Q663530,P530,Q145) (Q663530,P530,Q43) (Q663530,P530,Q1030) (Q663530,P530,Q878) (Q663530,P530,Q833) (Q663530,P530,Q159) (Q663530,P530,Q258) (Q663530,P530,Q77) (Q663530,P530,Q801)
action is_in
entity prev_answer
action find
entity Q663530
relation P530
['Q663530', 'P530', 'Q1029'] ['Q663530', 'P530', 'Q145'] ['Q663530', 'P530', 'Q43'] ['Q663530', 'P530', 'Q1030'] ['Q663530', 'P530', 'Q878'] ['Q663530', 'P530', 'Q833'] ['Q663530', 'P530', 'Q159'] ['Q663530', 'P530', 'Q258'] ['Q663530', 'P530', 'Q77'] ['Q663530', 'P530', 'Q801']
ASK WHERE { VALUES ( ?l ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q843 ) } . resource:Q663530 property:P530 ?l }
Dima
action is_in
entity prev_answer
action find
entity Dima
relation diplomatic relation
['Dima', 'diplomatic relation', 'Mozambique'] ['Dima', 'diplomatic relation', 'United Kingdom'] ['Dima', 'diplomatic relation', 'Turkey'] ['Dima', 'diplomatic relation', 'Namibia'] ['Dima', 'diplomatic relation', 'United Arab Emirates'] ['Dima', 'diplomatic relation', 'Malaysia'] ['Dima', 'diplomatic relation', 'Russia'] ['Dima', 'diplomatic relation', 'South Africa'] ['Dima', 'diplomatic relation', 'Uruguay'] ['Dima', 'diplomatic relation', 'Israel']
ASK WHERE { VALUES ( ?l ) { ( resource:Panama ) ( resource:Israel ) ( resource:Pakistan ) } . resource:Dima property:diplomatic_relation ?l }
[]
political territorial entity
SYSTEM
NO
(Q663530,P530,Q1029) (Q663530,P530,Q145) (Q663530,P530,Q43) (Q663530,P530,Q1030) (Q663530,P530,Q878) (Q663530,P530,Q833) (Q663530,P530,Q159) (Q663530,P530,Q258) (Q663530,P530,Q77) (Q663530,P530,Q801)
action is_in
entity prev_answer
action find
entity Q663530
relation P530
[ANSWER]
['Q663530', 'P530', 'Q1029'] ['Q663530', 'P530', 'Q145'] ['Q663530', 'P530', 'Q43'] ['Q663530', 'P530', 'Q1030'] ['Q663530', 'P530', 'Q878'] ['Q663530', 'P530', 'Q833'] ['Q663530', 'P530', 'Q159'] ['Q663530', 'P530', 'Q258'] ['Q663530', 'P530', 'Q77'] ['Q663530', 'P530', 'Q801']
ASK WHERE { VALUES ( ?l ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q843 ) } . resource:Q663530 property:P530 ?l }
No
action is_in
entity prev_answer
action find
entity Dima
relation diplomatic relation
['Dima', 'diplomatic relation', 'Mozambique'] ['Dima', 'diplomatic relation', 'United Kingdom'] ['Dima', 'diplomatic relation', 'Turkey'] ['Dima', 'diplomatic relation', 'Namibia'] ['Dima', 'diplomatic relation', 'United Arab Emirates'] ['Dima', 'diplomatic relation', 'Malaysia'] ['Dima', 'diplomatic relation', 'Russia'] ['Dima', 'diplomatic relation', 'South Africa'] ['Dima', 'diplomatic relation', 'Uruguay'] ['Dima', 'diplomatic relation', 'Israel']
ASK WHERE { VALUES ( ?l ) { ( resource:Panama ) ( resource:Israel ) ( resource:Pakistan ) } . resource:Dima property:diplomatic_relation ?l }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q258 Q53155
P530
Q15617994
USER
Does Budoia hold diplomatic relationship with South Africa ?
(Q258,P530,Q53155)
action is_in
entity Q53155
action find
entity Q258
relation P530
['Q258', 'P530', 'Q53155']
ASK WHERE { resource:Q258 property:P530 resource:Q53155 }
South Africa Budoia
action is_in
entity Budoia
action find
entity South Africa
relation diplomatic relation
['South Africa', 'diplomatic relation', 'Budoia']
ASK WHERE { resource:South_Africa property:diplomatic_relation resource:Budoia }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q258,P530,Q53155)
action is_in
entity Q53155
action find
entity Q258
relation P530
[ANSWER]
['Q258', 'P530', 'Q53155']
ASK WHERE { resource:Q258 property:P530 resource:Q53155 }
No
action is_in
entity Budoia
action find
entity South Africa
relation diplomatic relation
['South Africa', 'diplomatic relation', 'Budoia']
ASK WHERE { resource:South_Africa property:diplomatic_relation resource:Budoia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q20667921 Q56061
USER
How many administrative territories have exactly 2 french administrative divisions or administrative territories as their capital ?
(c(Q20667921)|c(Q56061),P1376,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
value 2
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?l WHERE { { ?f property:P1376 ?l . ?l rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q20667921 } UNION { ?f property:P1376 ?l . ?f rdf:type ontology:Q56061 . ?l rdf:type ontology:Q15617994 } } GROUP BY ?l } . FILTER ( ?n = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
value 2
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?l WHERE { { ?f property:capital_of ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:type_of_french_administrative_division } UNION { ?f property:capital_of ?l . ?f rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?l } . FILTER ( ?n = 2 ) }
[]
designation for an administrative territorial entity type of french administrative division administrative territorial entity
SYSTEM
14
Q805 Q258 Q3259 Q12798 Q1020 Q41 Q30 Q38 Q12730 Q199688 Q3278 Q12772 Q12661 Q517333
(c(Q20667921)|c(Q56061),P1376,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
value 2
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?l WHERE { { ?f property:P1376 ?l . ?l rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q20667921 } UNION { ?f property:P1376 ?l . ?f rdf:type ontology:Q56061 . ?l rdf:type ontology:Q15617994 } } GROUP BY ?l } . FILTER ( ?n = 2 ) }
Yemen South Africa Cantal Vendée Malawi Greece United States of America Italy Haute-Saône Almohad Charente-Maritime Tarn Nord Principality of Polotsk
14
action count
action equal
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
value 2
[[{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?l WHERE { { ?f property:capital_of ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:type_of_french_administrative_division } UNION { ?f property:capital_of ?l . ?f rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?l } . FILTER ( ?n = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q47609 Q43
P47
Q15617994
USER
Which administrative territories have a shared border with Turkey or Dongo ?
OR((Q43,P47,c(Q15617994)), (Q47609,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q43
relation P47
action find
entity Q47609
relation P47
type Q15617994
{'OR': [['Q43', 'P47', {'concept': 'Q15617994'}], ['Q47609', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q43 property:P47 ?x } UNION { resource:Q47609 property:P47 ?x } } . ?x rdf:type ontology:Q15617994 }
Dongo Turkey
action filter_type
action union
action find
entity Turkey
relation shares border with
action find
entity Dongo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Turkey', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Dongo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Turkey property:shares_border_with ?x } UNION { resource:Dongo property:shares_border_with ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794 Q858 Q47485 Q47450 Q227 Q230 Q47459 Q219 Q399 Q796
SYSTEM
Some of them are Iran, Syria, Stazzona, Pianello del Lario, Azerbaijan, Georgia, Gravedona ed Uniti, Bulgaria, Armenia, Iraq
Q858 Q227 Q230 Q399 Q41 Q219 Q47668 Q796 Q42892 Q794 Q47332 Q47459 Q47612 Q47485 Q47450
OR((Q43,P47,c(Q15617994)), (Q47609,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q43
relation P47
action find
entity Q47609
relation P47
type Q15617994
[ANSWERS] have a shared border with Turkey or Dongo
{'OR': [['Q43', 'P47', {'concept': 'Q15617994'}], ['Q47609', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q43 property:P47 ?x } UNION { resource:Q47609 property:P47 ?x } } . ?x rdf:type ontology:Q15617994 }
Syria Azerbaijan Georgia Armenia Greece Bulgaria Musso Iraq Colico Iran Garzeno Gravedona ed Uniti Domaso Stazzona Pianello del Lario
Iran, Syria, Stazzona, Pianello del Lario, Azerbaijan, Georgia, Gravedona ed Uniti, Bulgaria, Armenia and Iraq have a shared border with Turkey or Dongo
Iran Syria Stazzona Pianello del Lario Azerbaijan Georgia Gravedona ed Uniti Bulgaria Armenia Iraq
action filter_type
action union
action find
entity Turkey
relation shares border with
action find
entity Dongo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Turkey', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Dongo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Turkey property:shares_border_with ?x } UNION { resource:Dongo property:shares_border_with ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q159 Q736
P463
Q43229
USER
How many organizations were Russia and Ecuador a member of ?
(Q159,P463,c(Q43229)) (Q736,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q159
relation P463
type Q43229
action filter_type
action find
entity Q736
relation P463
type Q43229
['Q159', 'P463', {'concept': 'Q43229'}] ['Q736', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Q736 property:P463 ?p . ?p rdf:type ontology:Q43229 . resource:Q159 property:P463 ?p . ?p rdf:type ontology:Q43229 }
Russia Ecuador
action count
action intersection
action filter_type
action find
entity Russia
relation member of
type organization
action filter_type
action find
entity Ecuador
relation member of
type organization
['Russia', 'member of', {'concept': 'organization'}] ['Ecuador', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Ecuador property:member_of ?p . ?p rdf:type ontology:organization . resource:Russia property:member_of ?p . ?p rdf:type ontology:organization }
[]
organization
SYSTEM
4
Q7825 Q191384 Q656801 Q827525
(Q159,P463,c(Q43229)) (Q736,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q159
relation P463
type Q43229
action filter_type
action find
entity Q736
relation P463
type Q43229
[ANSWER]
['Q159', 'P463', {'concept': 'Q43229'}] ['Q736', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Q736 property:P463 ?p . ?p rdf:type ontology:Q43229 . resource:Q159 property:P463 ?p . ?p rdf:type ontology:Q43229 }
World Trade Organization International Bank for Reconstruction and Development International Finance Corporation International Development Association
4
action count
action intersection
action filter_type
action find
entity Russia
relation member of
type organization
action filter_type
action find
entity Ecuador
relation member of
type organization
['Russia', 'member of', {'concept': 'organization'}] ['Ecuador', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Ecuador property:member_of ?p . ?p rdf:type ontology:organization . resource:Russia property:member_of ?p . ?p rdf:type ontology:organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q80554
P417
Q1445650 Q502895 Q15617994
USER
How many administrative territories are greater number of holidays and people a patron saint of than Alfano ?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q80554
relation P417
type Q1445650
type Q502895
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) ?b WHERE { VALUES ( ?c ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?l rdf:type ?c } GROUP BY ?b } . FILTER ( ?d > ?z ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:Q80554 property:P417 ?t . { ?t rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } } } }
Alfano
action count
action greater
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Alfano
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) ?b WHERE { VALUES ( ?c ) { ( ontology:holiday ) ( ontology:common_name ) } . ?l rdf:type ?c } GROUP BY ?b } . FILTER ( ?d > ?z ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:Alfano property:patron_saint ?t . { ?t rdf:type ?m . VALUES ( ?m ) { ( ontology:holiday ) ( ontology:common_name ) } } } } }
[]
holiday common name designation for an administrative territorial entity
SYSTEM
4
Q36 Q25198 Q286808 Q38
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q80554
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) ?b WHERE { VALUES ( ?c ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?l rdf:type ?c } GROUP BY ?b } . FILTER ( ?d > ?z ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:Q80554 property:P417 ?t . { ?t rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } } } }
Poland Olgiate Olona Fiavè Italy
4
action count
action greater
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Alfano
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) ?b WHERE { VALUES ( ?c ) { ( ontology:holiday ) ( ontology:common_name ) } . ?l rdf:type ?c } GROUP BY ?b } . FILTER ( ?d > ?z ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:Alfano property:patron_saint ?t . { ?t rdf:type ?m . VALUES ( ?m ) { ( ontology:holiday ) ( ontology:common_name ) } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q20028
P417
Q1445650 Q502895 Q15617994
USER
And also tell me about Entracque?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q20028
relation P417
type Q1445650
type Q502895
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Q20028 property:P417 ?c . { ?c rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } } } . FILTER ( ?e > ?u ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?s WHERE { { ?s property:P417 ?l . ?l rdf:type ontology:Q1445650 . ?s rdf:type ontology:Q15617994 } UNION { ?s property:P417 ?l . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q502895 } } GROUP BY ?s } }
Entracque
action count
action greater
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Entracque
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Entracque property:patron_saint ?c . { ?c rdf:type ?d . VALUES ( ?d ) { ( ontology:holiday ) ( ontology:common_name ) } } } } . FILTER ( ?e > ?u ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?s WHERE { { ?s property:patron_saint ?l . ?l rdf:type ontology:holiday . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s property:patron_saint ?l . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:common_name } } GROUP BY ?s } }
[]
holiday common name designation for an administrative territorial entity
SYSTEM
4
Q36 Q25198 Q286808 Q38
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q20028
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Q20028 property:P417 ?c . { ?c rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } } } . FILTER ( ?e > ?u ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?s WHERE { { ?s property:P417 ?l . ?l rdf:type ontology:Q1445650 . ?s rdf:type ontology:Q15617994 } UNION { ?s property:P417 ?l . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q502895 } } GROUP BY ?s } }
Poland Olgiate Olona Fiavè Italy
4
action count
action greater
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Entracque
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Entracque property:patron_saint ?c . { ?c rdf:type ?d . VALUES ( ?d ) { ( ontology:holiday ) ( ontology:common_name ) } } } } . FILTER ( ?e > ?u ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?s WHERE { { ?s property:patron_saint ?l . ?l rdf:type ontology:holiday . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s property:patron_saint ?l . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:common_name } } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q215
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with greater number of administrative territories than Slovenia ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q215
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?i property:P530 ?h } GROUP BY ?i } . FILTER ( ?g > ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q215 property:P530 ?m } } }
Slovenia
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Slovenia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?h } GROUP BY ?i } . FILTER ( ?g > ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Slovenia property:diplomatic_relation ?m } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q34 Q38 Q423 Q27 Q843 Q227 Q222 Q347 Q17 Q1033 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q215
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with greater number of administrative territories than Slovenia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?i property:P530 ?h } GROUP BY ?i } . FILTER ( ?g > ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q215 property:P530 ?m } } }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Sweden Italy North Korea Ireland Pakistan Azerbaijan Albania Liechtenstein Japan Nigeria Czech Republic Angola Egypt Libya Cape Verde Zambia
Italy, Brazil and United States of America have diplomatic relationships with greater number of administrative territories than Slovenia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Slovenia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?h } GROUP BY ?i } . FILTER ( ?g > ?k ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Slovenia property:diplomatic_relation ?m } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q836
P530
Q15617994 Q15617994
USER
And how about Myanmar?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q836
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:P530 ?x . ?d rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:Q836 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?a > ?c ) }
Myanmar
action greater
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Myanmar
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:diplomatic_relation ?x . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:Myanmar property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a > ?c ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q37 Q711 Q710 Q717 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q819 Q424 Q1013 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q34020 Q686 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q836
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:P530 ?x . ?d rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:Q836 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } . FILTER ( ?a > ?c ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Lithuania Mongolia Kiribati Venezuela Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Laos Cambodia Lesotho Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Niue Vanuatu East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy Brazil United States of America
action greater
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Myanmar
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:diplomatic_relation ?x . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:Myanmar property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a > ?c ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q56061 Q486972 Q15617994
USER
Which administrative territories have max number of administrative territories and human settlements as their capital ?
(c(Q15617994),P36,c(Q56061)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q486972
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?g rdf:type ?s } GROUP BY ?p } . FILTER ( ?z = ?u ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?w ) WHERE { { ?y property:P36 ?i . ?y rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q486972 } UNION { ?y property:P36 ?i . ?y rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q56061 } } GROUP BY ?y } } }
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?g rdf:type ?s } GROUP BY ?p } . FILTER ( ?z = ?u ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?w ) WHERE { { ?y property:capital ?i . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:human_settlement } UNION { ?y property:capital ?i . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:administrative_territorial_entity } } GROUP BY ?y } } }
[]
administrative territorial entity human settlement designation for an administrative territorial entity
Q160307
SYSTEM
Fatimid caliphate
Q160307
(c(Q15617994),P36,c(Q56061)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q56061
action find_tuple_counts
relation P36
type Q15617994
type Q486972
[ANSWER] have max number of administrative territories and human settlements as their capital
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q486972 ) } . ?g rdf:type ?s } GROUP BY ?p } . FILTER ( ?z = ?u ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?w ) WHERE { { ?y property:P36 ?i . ?y rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q486972 } UNION { ?y property:P36 ?i . ?y rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q56061 } } GROUP BY ?y } } }
Fatimid caliphate
Fatimid caliphate have max number of administrative territories and human settlements as their capital
Fatimid caliphate
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type administrative territorial entity
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:human_settlement ) } . ?g rdf:type ?s } GROUP BY ?p } . FILTER ( ?z = ?u ) . { SELECT DISTINCT ( MAX ( ?w ) AS ?u ) { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?w ) WHERE { { ?y property:capital ?i . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:human_settlement } UNION { ?y property:capital ?i . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:administrative_territorial_entity } } GROUP BY ?y } } }
[]