Simple Question (Direct)
Simple Question
Q565388
P47
Q15617994
USER
Which administrative territories have a shared border with Winnemark ?
(Q565388,P47,c(Q15617994))
action filter_type
action find
entity Q565388
relation P47
type Q15617994
['Q565388', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q565388 property:P47 ?u . ?u rdf:type ontology:Q15617994 }
Winnemark
action filter_type
action find
entity Winnemark
relation shares border with
type designation for an administrative territorial entity
['Winnemark', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Winnemark property:shares_border_with ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q516567 Q557027 Q638425
SYSTEM
Kappeln, Karby, Grödersby
Q524018 Q557027 Q522492 Q638425 Q516567 Q638446 Q261524
(Q565388,P47,c(Q15617994))
action filter_type
action find
entity Q565388
relation P47
type Q15617994
[ANSWERS]
['Q565388', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q565388 property:P47 ?u . ?u rdf:type ontology:Q15617994 }
Thumby Karby Arnis Grödersby Kappeln Rabenkirchen-Faulück Dörphof
Kappeln Karby Grödersby
action filter_type
action find
entity Winnemark
relation shares border with
type designation for an administrative territorial entity
['Winnemark', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Winnemark property:shares_border_with ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q516567
P190
Q56061
USER
Which administrative territory is a sister city of that administrative territory ?
(c(Q56061),P190,Q516567)
action filter_type
action find
entity Q516567
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q516567']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q516567 property:P190 ?q }
Kappeln
action filter_type
action find
entity Kappeln
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Kappeln']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Kappeln property:sister_city ?q }
[]
administrative territorial entity
Clarification for simple ques.
Q516567
SYSTEM
Did you mean Kappeln ?
Q516567 Q557027 Q638425
(c(Q56061),P190,Q516567) (c(Q56061),P190,Q557027) (c(Q56061),P190,Q638425)
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q516567'] [{'concept': 'Q56061'}, 'P190', 'Q557027'] [{'concept': 'Q56061'}, 'P190', 'Q638425']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q516567 property:P190 ?q }
Kappeln Karby Grödersby
Did you mean Kappeln ?
Kappeln
[{'concept': 'administrative territorial entity'}, 'sister city', 'Kappeln'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Karby'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Grödersby']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Kappeln property:sister_city ?q }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q56061),P190,Q516567)
[{'concept': 'Q56061'}, 'P190', 'Q516567']
[{'concept': 'administrative territorial entity'}, 'sister city', 'Kappeln']
[]
Q3547421
SYSTEM
Faaborg
Q3547421
(c(Q56061),P190,Q516567)
action filter_type
action find
entity Q516567
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q516567']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q516567 property:P190 ?q }
Faaborg
Faaborg
action filter_type
action find
entity Kappeln
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Kappeln']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Kappeln property:sister_city ?q }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1001
Q15617994 Q192350 Q11204
USER
Which administrative territories come under the supervision of min number of ministries or legislatures ?
(c(Q192350)|c(Q11204),P1001,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
[[{'concept': 'Q192350'}, {'concept': 'Q11204'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?u ) { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?q ) WHERE { { ?l property:P1001 ?k . ?k rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q11204 } UNION { ?k rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q192350 . ?l property:P1001 ?k } } GROUP BY ?k } } . { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?m ) WHERE { { ?r rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q192350 . ?v property:P1001 ?r } UNION { ?v property:P1001 ?r . ?r rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q11204 } } GROUP BY ?r } . FILTER ( ?m = ?u ) }
action argmin
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
[[{'concept': 'ministry'}, {'concept': 'legislature'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?u ) { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?q ) WHERE { { ?l property:applies_to_jurisdiction ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:legislature } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:ministry . ?l property:applies_to_jurisdiction ?k } } GROUP BY ?k } } . { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?m ) WHERE { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:ministry . ?v property:applies_to_jurisdiction ?r } UNION { ?v property:applies_to_jurisdiction ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:legislature } } GROUP BY ?r } . FILTER ( ?m = ?u ) }
[]
designation for an administrative territorial entity ministry legislature
Q55 Q953 Q184
SYSTEM
Netherlands, Zambia, Belarus
Q701 Q702 Q804 Q705 Q707 Q709 Q811 Q706679 Q805 Q2765 Q163012 Q22273061 Q55 Q2871 Q784 Q265 Q24764 Q2742 Q842 Q398 Q874 Q712 Q711 Q717 Q443815 Q50198 Q1028 Q187035 Q252 Q22274206 Q399 Q1462 Q657 Q258 Q6465 Q1979 Q790 Q4628 Q881 Q7688 Q3097 Q826 Q158893 Q2942 Q822 Q241 Q817 Q11340 Q244 Q11343 Q1974 Q1019 Q2899 Q2758 Q921 Q4712 Q155019 Q39 Q986 Q423 Q983 Q851 Q733 Q734 Q163966 Q769680 Q3068 Q730 Q1013 Q11323 Q236 Q1948 Q233 Q1093 Q238 Q119284 Q1045 Q3403547 Q1042 Q1041 Q27 Q2667658 Q1049 Q1025 Q1027 Q783 Q1020 Q2009 Q2007 Q184 Q1101 Q1029 Q2003 Q736 Q32 Q228 Q3462133 Q223 Q221 Q229 Q1050 Q2838 Q1036 Q1037 Q974 Q1032 Q965 Q967 Q963 Q697 Q694 Q695 Q114 Q754 Q752 Q750 Q22274534 Q11337 Q11331 Q214 Q215 Q154547 Q683 Q242 Q1216 Q912 Q2805 Q916 Q2107 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q971 Q970 Q1438 Q34020 Q2380910 Q686 Q760 Q574 Q11301 Q2904 Q158095 Q1044 Q77 Q878 Q775 Q776 Q810 Q770 Q773 Q772 Q1016 Q158083 Q1011 Q945 Q72449 Q22273285 Q678 Q129003 Q800 Q1039 Q672 Q33788 Q929 Q1267638 Q329609 Q863 Q2938 Q2023 Q1231 Q953
(c(Q192350)|c(Q11204),P1001,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
[ANSWERS]
[[{'concept': 'Q192350'}, {'concept': 'Q11204'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?u ) { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?q ) WHERE { { ?l property:P1001 ?k . ?k rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q11204 } UNION { ?k rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q192350 . ?l property:P1001 ?k } } GROUP BY ?k } } . { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?m ) WHERE { { ?r rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q192350 . ?v property:P1001 ?r } UNION { ?v property:P1001 ?r . ?r rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q11204 } } GROUP BY ?r } . FILTER ( ?m = ?u ) }
North Holland Federated States of Micronesia Panama Zeeland Flevoland Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Pankow Duchy of Nemours Netherlands Hagen Dominica Uzbekistan municipality of the Philippines Münster Oman Bahrain Turkmenistan Fiji Mongolia Venezuela Altomünster province of Thailand Morocco Principality of Albania Indonesia Duchy of Mercoeur Armenia Sardinia Chad South Africa department of France Prince Edward Island Haiti Faroe Islands Vietnam raion Remscheid Maldives Friedrichshain-Kreuzberg Solingen Lebanon Cuba Kuwait Sprockhövel Barbados Wetter (Ruhr) British Columbia Madagascar Mülheim an der Ruhr Mönchengladbach Brunei Duchy of Burgundy Duchy of Lorraine Switzerland Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Mitte Bornholm Loire-Atlantique Suriname Lesotho Breckerfeld Montenegro Manitoba Malta Limburg San Marino Marzahn-Hellersdorf Somalia principality of Phalsbourg and Lixheim Seychelles Senegal Ireland Shushary, Saint Petersburg Sudan Mauritania Mauritius Honduras Malawi Yukon Northwest Territories Belarus North Brabant Mozambique Newfoundland and Labrador Ecuador Luxembourg Andorra Saxe-Coburg and Gotha Greenland Republic of Macedonia Cyprus Swaziland Oberhausen Uganda Rwanda Democratic Republic of the Congo Niger Burkina Faso Burundi Botswana Nauru South Holland Palau Kenya Trinidad and Tobago Groningen Bolivia Duchy of Elbeuf Herdecke Gevelsberg Slovakia Slovenia duchy Samoa Belize Piedmont Mali Krefeld Angola Wuppertal Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Republic of the Congo Comoros Campania Niue Duchy of Zaslawye Vanuatu Saint Lucia East Timor Ennepetal Herne Charlottenburg-Wilmersdorf Sierra Leone Uruguay United Arab Emirates Gelderland Utrecht Jordan Friesland Overijssel Drenthe Libya Spandau Cape Verde Togo Roccarainola Duchy of Guise Tonga French Southern and Antarctic Lands Costa Rica Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Beloostrov Lichtenberg Tajikistan Leverkusen Nunavut Kosovo Region Zambia
Netherlands Zambia Belarus
action argmin
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
[[{'concept': 'ministry'}, {'concept': 'legislature'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?q ) AS ?u ) { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?q ) WHERE { { ?l property:applies_to_jurisdiction ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:legislature } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:ministry . ?l property:applies_to_jurisdiction ?k } } GROUP BY ?k } } . { SELECT DISTINCT ?r ( COUNT ( ?v ) AS ?m ) WHERE { { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:ministry . ?v property:applies_to_jurisdiction ?r } UNION { ?v property:applies_to_jurisdiction ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:legislature } } GROUP BY ?r } . FILTER ( ?m = ?u ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q751643
P530
Q1048835
USER
Do Domashin have tactful political relations with those administrative territories ?
(Q751643,P530,Q55) (Q751643,P530,Q953) (Q751643,P530,Q184)
action is_in
entity prev_answer
action find
entity Q751643
relation P530
['Q751643', 'P530', 'Q55'] ['Q751643', 'P530', 'Q953'] ['Q751643', 'P530', 'Q184']
ASK WHERE { resource:Q751643 property:P530 ?s . VALUES ( ?s ) { ( resource:Q701 ) ( resource:Q702 ) ( resource:Q804 ) } }
Domashin
action is_in
entity prev_answer
action find
entity Domashin
relation diplomatic relation
['Domashin', 'diplomatic relation', 'Netherlands'] ['Domashin', 'diplomatic relation', 'Zambia'] ['Domashin', 'diplomatic relation', 'Belarus']
ASK WHERE { resource:Domashin property:diplomatic_relation ?s . VALUES ( ?s ) { ( resource:North_Holland ) ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) } }
[]
political territorial entity
SYSTEM
NO
(Q751643,P530,Q55) (Q751643,P530,Q953) (Q751643,P530,Q184)
action is_in
entity prev_answer
action find
entity Q751643
relation P530
[ANSWER]
['Q751643', 'P530', 'Q55'] ['Q751643', 'P530', 'Q953'] ['Q751643', 'P530', 'Q184']
ASK WHERE { resource:Q751643 property:P530 ?s . VALUES ( ?s ) { ( resource:Q701 ) ( resource:Q702 ) ( resource:Q804 ) } }
No
action is_in
entity prev_answer
action find
entity Domashin
relation diplomatic relation
['Domashin', 'diplomatic relation', 'Netherlands'] ['Domashin', 'diplomatic relation', 'Zambia'] ['Domashin', 'diplomatic relation', 'Belarus']
ASK WHERE { resource:Domashin property:diplomatic_relation ?s . VALUES ( ?s ) { ( resource:North_Holland ) ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1617430
P1313
Q12737077
USER
What is the occupation held by Moaña ?
(Q1617430,P1313,c(Q12737077))
action filter_type
action find
entity Q1617430
relation P1313
type Q12737077
['Q1617430', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1617430 property:P1313 ?x . ?x rdf:type ontology:Q12737077 }
Moaña
action filter_type
action find
entity Moaña
relation office held by head of government
type occupation
['Moaña', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Moaña property:office_held_by_head_of_government ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q26692354
SYSTEM
mayor of Moaña
Q26692354
(Q1617430,P1313,c(Q12737077))
action filter_type
action find
entity Q1617430
relation P1313
type Q12737077
[ANSWER]
['Q1617430', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1617430 property:P1313 ?x . ?x rdf:type ontology:Q12737077 }
mayor of Moaña
mayor of Moaña
action filter_type
action find
entity Moaña
relation office held by head of government
type occupation
['Moaña', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Moaña property:office_held_by_head_of_government ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1768923
Q12737077
USER
And what about Hontecillas?
(Q1768923,P1313,c(Q12737077))
action filter_type
action find
entity Q1768923
relation P1313
type Q12737077
['Q1768923', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q1768923 property:P1313 ?j }
Hontecillas
action filter_type
action find
entity Hontecillas
relation office held by head of government
type occupation
['Hontecillas', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Hontecillas property:office_held_by_head_of_government ?j }
[]
occupation
Q26696339
SYSTEM
mayor of Hontecillas
Q26696339
(Q1768923,P1313,c(Q12737077))
action filter_type
action find
entity Q1768923
relation P1313
type Q12737077
[ANSWER]
['Q1768923', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q12737077 . resource:Q1768923 property:P1313 ?j }
mayor of Hontecillas
mayor of Hontecillas
action filter_type
action find
entity Hontecillas
relation office held by head of government
type occupation
['Hontecillas', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:occupation . resource:Hontecillas property:office_held_by_head_of_government ?j }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q184
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories are known to have diplomatic connections with Belarus ?
(c(Q15617994),P530,Q184) (c(Q1048835),P530,Q184)
action count
action union
action filter_type
action find_reverse
entity Q184
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q184
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', 'Q184'] [{'concept': 'Q1048835'}, 'P530', 'Q184']
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
Belarus
action count
action union
action filter_type
action find_reverse
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Belarus
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Belarus'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Belarus']
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m rdf:type ?s . VALUES ( ?s ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
3
Q38 Q230 Q183
(c(Q15617994),P530,Q184) (c(Q1048835),P530,Q184)
action count
action union
action filter_type
action find_reverse
entity Q184
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q184
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q184'] [{'concept': 'Q1048835'}, 'P530', 'Q184']
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
Italy Georgia Germany
3
action count
action union
action filter_type
action find_reverse
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Belarus
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Belarus'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Belarus']
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m rdf:type ?s . VALUES ( ?s ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q694
P1001
Q15617994 Q17335294 Q1292279
USER
How many administrative territories belong to jurisdiction of less number of coats of arms or political borders than South Holland ?
(c(Q17335294)|c(Q1292279),P1001,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q1292279
action count
action filter_multi_types
action find_reverse
entity Q694
relation P1001
type Q17335294
type Q1292279
[[{'concept': 'Q17335294'}, {'concept': 'Q1292279'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) ?z WHERE { VALUES ( ?l ) { ( ontology:Q17335294 ) ( ontology:Q1292279 ) } . ?u rdf:type ?l } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:P1001 resource:Q694 . { VALUES ( ?k ) { ( ontology:Q17335294 ) ( ontology:Q1292279 ) } . ?p rdf:type ?k } } } . FILTER ( ?q < ?t ) }
South Holland
action count
action less
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type political border
action count
action filter_multi_types
action find_reverse
entity South Holland
relation applies to jurisdiction
type flag or coat of arms
type political border
[[{'concept': 'flag or coat of arms'}, {'concept': 'political border'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) ?z WHERE { VALUES ( ?l ) { ( ontology:flag_or_coat_of_arms ) ( ontology:political_border ) } . ?u rdf:type ?l } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:applies_to_jurisdiction resource:South_Holland . { VALUES ( ?k ) { ( ontology:flag_or_coat_of_arms ) ( ontology:political_border ) } . ?p rdf:type ?k } } } . FILTER ( ?q < ?t ) }
[]
designation for an administrative territorial entity flag or coat of arms political border
SYSTEM
70
Q706679 Q2765 Q163012 Q22273061 Q55 Q2871 Q24764 Q2742 Q443815 Q50198 Q187035 Q22274206 Q1462 Q6465 Q1979 Q4628 Q7688 Q3097 Q158893 Q2942 Q1965 Q11340 Q11343 Q1142326 Q1974 Q2899 Q2758 Q1952 Q4712 Q155019 Q3389 Q163966 Q3068 Q11323 Q1948 Q119284 Q3403547 Q2009 Q2007 Q2003 Q1904 Q3462133 Q223 Q1989 Q2838 Q22274534 Q11337 Q11331 Q12642 Q154547 Q1216 Q12753 Q2805 Q2107 Q1951 Q34020 Q2380910 Q11301 Q2904 Q158095 Q158083 Q1243 Q72449 Q12549 Q22273285 Q329609 Q2938 Q2023 Q1231 Q1237
(c(Q17335294)|c(Q1292279),P1001,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q1292279
action count
action filter_multi_types
action find_reverse
entity Q694
relation P1001
type Q17335294
type Q1292279
[ANSWER]
[[{'concept': 'Q17335294'}, {'concept': 'Q1292279'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) ?z WHERE { VALUES ( ?l ) { ( ontology:Q17335294 ) ( ontology:Q1292279 ) } . ?u rdf:type ?l } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:P1001 resource:Q694 . { VALUES ( ?k ) { ( ontology:Q17335294 ) ( ontology:Q1292279 ) } . ?p rdf:type ?k } } } . FILTER ( ?q < ?t ) }
Duchy of Bar Gelsenkirchen Pankow Duchy of Nemours Netherlands Hagen municipality of the Philippines Münster Altomünster province of Thailand Principality of Albania Duchy of Mercoeur Sardinia department of France Prince Edward Island Faroe Islands raion Remscheid Friedrichshain-Kreuzberg Solingen New Brunswick Sprockhövel Wetter (Ruhr) Seine British Columbia Mülheim an der Ruhr Mönchengladbach Nova Scotia Duchy of Burgundy Duchy of Lorraine Finistère Mitte Loire-Atlantique Breckerfeld Manitoba Marzahn-Hellersdorf principality of Phalsbourg and Lixheim Yukon Northwest Territories Newfoundland and Labrador Ontario Saxe-Coburg and Gotha Greenland Saskatchewan Oberhausen Duchy of Elbeuf Herdecke Gevelsberg Morbihan duchy Piedmont Seine-et-Marne Krefeld Wuppertal Alberta Niue Duchy of Zaslawye Ennepetal Herne Charlottenburg-Wilmersdorf Spandau Veneto Roccarainola Ille-et-Vilaine Duchy of Guise Lichtenberg Leverkusen Nunavut Kosovo Region Trentino-South Tyrol
70
action count
action less
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type political border
action count
action filter_multi_types
action find_reverse
entity South Holland
relation applies to jurisdiction
type flag or coat of arms
type political border
[[{'concept': 'flag or coat of arms'}, {'concept': 'political border'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) ?z WHERE { VALUES ( ?l ) { ( ontology:flag_or_coat_of_arms ) ( ontology:political_border ) } . ?u rdf:type ?l } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:applies_to_jurisdiction resource:South_Holland . { VALUES ( ?k ) { ( ontology:flag_or_coat_of_arms ) ( ontology:political_border ) } . ?p rdf:type ?k } } } . FILTER ( ?q < ?t ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q55
P206
Q15324 Q473972
USER
How many bodies of water and protected areas are located in the neighbourhood of Netherlands ?
(Q55,P206,c(Q15324)) (Q55,P206,c(Q473972))
action count
action union
action filter_type
action find
entity Q55
relation P206
type Q15324
action filter_type
action find
entity Q55
relation P206
type Q473972
['Q55', 'P206', {'concept': 'Q15324'}] ['Q55', 'P206', {'concept': 'Q473972'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { resource:Q55 property:P206 ?a . ?a rdf:type ontology:Q473972 } UNION { resource:Q55 property:P206 ?a . ?a rdf:type ontology:Q15324 } }
Netherlands
action count
action union
action filter_type
action find
entity Netherlands
relation located next to body of water
type body of water
action filter_type
action find
entity Netherlands
relation located next to body of water
type protected area
['Netherlands', 'located next to body of water', {'concept': 'body of water'}] ['Netherlands', 'located next to body of water', {'concept': 'protected area'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { resource:Netherlands property:located_next_to_body_of_water ?a . ?a rdf:type ontology:protected_area } UNION { resource:Netherlands property:located_next_to_body_of_water ?a . ?a rdf:type ontology:body_of_water } }
[]
body of water protected area
SYSTEM
1 bodies of water and 1 protected areas
Q1693 Q4121
(Q55,P206,c(Q15324)) (Q55,P206,c(Q473972))
action count
action union
action filter_type
action find
entity Q55
relation P206
type Q15324
action filter_type
action find
entity Q55
relation P206
type Q473972
[ANSWER]
['Q55', 'P206', {'concept': 'Q15324'}] ['Q55', 'P206', {'concept': 'Q473972'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { resource:Q55 property:P206 ?a . ?a rdf:type ontology:Q473972 } UNION { resource:Q55 property:P206 ?a . ?a rdf:type ontology:Q15324 } }
North Sea IJsselmeer
1 bodies of water and 1 protected areas
action count
action union
action filter_type
action find
entity Netherlands
relation located next to body of water
type body of water
action filter_type
action find
entity Netherlands
relation located next to body of water
type protected area
['Netherlands', 'located next to body of water', {'concept': 'body of water'}] ['Netherlands', 'located next to body of water', {'concept': 'protected area'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { { resource:Netherlands property:located_next_to_body_of_water ?a . ?a rdf:type ontology:protected_area } UNION { resource:Netherlands property:located_next_to_body_of_water ?a . ?a rdf:type ontology:body_of_water } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2525266 Q953
P530 P17
Q1048835
USER
Which political territories have diplomatic relationships with Zambia and are Villa Hoeller situated in ?
AND((Q953,P530,c(Q1048835)), (Q2525266,P17,c(Q1048835)))
action filter_type
action intersection
action find
entity Q953
relation P530
action find
entity Q2525266
relation P17
type Q1048835
{'AND': [['Q953', 'P530', {'concept': 'Q1048835'}], ['Q2525266', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { resource:Q2525266 property:P17 ?s . resource:Q953 property:P530 ?s . ?s rdf:type ontology:Q1048835 }
Villa Hoeller Zambia
action filter_type
action intersection
action find
entity Zambia
relation diplomatic relation
action find
entity Villa Hoeller
relation country
type political territorial entity
{'AND': [['Zambia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Villa Hoeller', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Villa_Hoeller property:country ?s . resource:Zambia property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q953,P530,c(Q1048835)), (Q2525266,P17,c(Q1048835)))
action filter_type
action intersection
action find
entity Q953
relation P530
action find
entity Q2525266
relation P17
type Q1048835
[ANSWER]
{'AND': [['Q953', 'P530', {'concept': 'Q1048835'}], ['Q2525266', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { resource:Q2525266 property:P17 ?s . resource:Q953 property:P530 ?s . ?s rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action intersection
action find
entity Zambia
relation diplomatic relation
action find
entity Villa Hoeller
relation country
type political territorial entity
{'AND': [['Zambia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Villa Hoeller', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Villa_Hoeller property:country ?s . resource:Zambia property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity }
[]