Simple Question (Direct)
Simple Question
Q650805
P47
Q1048835
USER
Which political territories are bordered by Aísa ?
(Q650805,P47,c(Q1048835))
action filter_type
action find
entity Q650805
relation P47
type Q1048835
['Q650805', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q650805 property:P47 ?m . ?m rdf:type ontology:Q1048835 }
Aísa
action filter_type
action find
entity Aísa
relation shares border with
type political territorial entity
['Aísa', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Aísa property:shares_border_with ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q49581 Q570484 Q1766550
SYSTEM
Jaca, Ansó, Valle de Hecho
Q927458 Q752004 Q1657127 Q1766550 Q49581 Q570484 Q1646117 Q984642
(Q650805,P47,c(Q1048835))
action filter_type
action find
entity Q650805
relation P47
type Q1048835
[ANSWERS]
['Q650805', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q650805 property:P47 ?m . ?m rdf:type ontology:Q1048835 }
Aragüés del Puerto Villanúa Borau Valle de Hecho Jaca Ansó Jasa Canfranc
Which political territories are bordered by Aísa
Jaca Ansó Valle de Hecho
action filter_type
action find
entity Aísa
relation shares border with
type political territorial entity
['Aísa', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Aísa property:shares_border_with ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q49581
P1001
Q12737077
USER
Which occupation has jurisdiction over Jaca ?
(c(Q12737077),P1001,Q49581)
action filter_type
action find_reverse
entity Q49581
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q49581']
SELECT DISTINCT ?g WHERE { ?g property:P1001 resource:Q49581 . ?g rdf:type ontology:Q12737077 }
Jaca
action filter_type
action find_reverse
entity Jaca
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Jaca']
SELECT DISTINCT ?g WHERE { ?g property:applies_to_jurisdiction resource:Jaca . ?g rdf:type ontology:occupation }
[]
occupation
Q26698353
SYSTEM
mayor of Jaca
Q26698353
(c(Q12737077),P1001,Q49581)
action filter_type
action find_reverse
entity Q49581
relation P1001
type Q12737077
[ANSWER] has jurisdiction over Jaca
[{'concept': 'Q12737077'}, 'P1001', 'Q49581']
SELECT DISTINCT ?g WHERE { ?g property:P1001 resource:Q49581 . ?g rdf:type ontology:Q12737077 }
mayor of Jaca
Mayor of Jaca has jurisdiction over Jaca
mayor of Jaca
action filter_type
action find_reverse
entity Jaca
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Jaca']
SELECT DISTINCT ?g WHERE { ?g property:applies_to_jurisdiction resource:Jaca . ?g rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q49581
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that political territory ?
(Q26698353,P1313,c(Q12737077))
action filter_type
action find
entity Q49581
relation P1313
type Q12737077
['Q26698353', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q49581 property:P1313 ?b . ?b rdf:type ontology:Q12737077 }
Jaca
action filter_type
action find
entity Jaca
relation office held by head of government
type occupation
['mayor of Jaca', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Jaca property:office_held_by_head_of_government ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q26698353
SYSTEM
mayor of Jaca
Q26698353
(Q26698353,P1313,c(Q12737077))
action filter_type
action find
entity Q49581
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that political territory
['Q26698353', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q49581 property:P1313 ?b . ?b rdf:type ontology:Q12737077 }
mayor of Jaca
The mayor of Jaca serves as the political office that is fulfilled by the head of the government of that political territory
mayor of Jaca
action filter_type
action find
entity Jaca
relation office held by head of government
type occupation
['mayor of Jaca', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Jaca property:office_held_by_head_of_government ?b . ?b rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the patron saint of approximately 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?f ) WHERE { ?z rdf:type ontology:Q502895 . ?u rdf:type ontology:Q12737077 . ?u property:P417 ?z } GROUP BY ?z } . FILTER ( ?f = 2 ) }
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?f ) WHERE { ?z rdf:type ontology:common_name . ?u rdf:type ontology:occupation . ?u property:patron_saint ?z } GROUP BY ?z } . FILTER ( ?f = 2 ) }
[]
common name occupation
SYSTEM
10
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action count
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?f ) WHERE { ?z rdf:type ontology:Q502895 . ?u rdf:type ontology:Q12737077 . ?u property:P417 ?z } GROUP BY ?z } . FILTER ( ?f = 2 ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
10
action count
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?f ) WHERE { ?z rdf:type ontology:common_name . ?u rdf:type ontology:occupation . ?u property:patron_saint ?z } GROUP BY ?z } . FILTER ( ?f = 2 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q178084
P122
Q1307214 Q56061 Q1048835
USER
Which political territories have lesser number of forms of government and administrative territories as the form of government than Ilkhanate ?
(c(Q1048835),P122,c(Q1307214)|c(Q56061))
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q178084
relation P122
type Q1307214
type Q56061
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?v ) WHERE { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1307214 ) ( ontology:Q56061 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { resource:Q178084 property:P122 ?w . { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1307214 ) ( ontology:Q56061 ) } } } } . FILTER ( ?v < ?f ) }
Ilkhanate
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Ilkhanate
relation basic form of government
type form of government
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?v ) WHERE { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:form_of_government ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { resource:Ilkhanate property:basic_form_of_government ?w . { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:form_of_government ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?v < ?f ) }
[]
form of government administrative territorial entity political territorial entity
Q183 Q35 Q40
SYSTEM
Germany, Denmark, Austria
Q183 Q601252 Q193619 Q1059046 Q763 Q664 Q641138 Q1925048 Q785 Q35 Q79965 Q223793 Q2594990 Q757 Q468378 Q40 Q31747 Q129286
(c(Q1048835),P122,c(Q1307214)|c(Q56061))
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q178084
relation P122
type Q1307214
type Q56061
[ANSWERS] have lesser number of forms of government and administrative territories as the form of government than Ilkhanate
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?v ) WHERE { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:Q1307214 ) ( ontology:Q56061 ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { resource:Q178084 property:P122 ?w . { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1307214 ) ( ontology:Q56061 ) } } } } . FILTER ( ?v < ?f ) }
Germany Banovina of Croatia Union of South Africa Merkit people Saint Kitts and Nevis New Zealand Duchy of Cleves San Pedro Partido Jersey Denmark Golden Horde Kingdom of Etruria Dominion of New Zealand Saint Vincent and the Grenadines County of Hoya Austria Irish Free State British Raj
Germany, Denmark and Austria have lesser number of forms of government and administrative territories as the form of government than Ilkhanate
Germany Denmark Austria
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Ilkhanate
relation basic form of government
type form of government
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?n ) AS ?v ) WHERE { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:form_of_government ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) WHERE { resource:Ilkhanate property:basic_form_of_government ?w . { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:form_of_government ) ( ontology:administrative_territorial_entity ) } } } } . FILTER ( ?v < ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q151938
P122
Q1307214 Q56061 Q1048835
USER
And what about Neutral Moresnet?
(c(Q1048835),P122,c(Q1307214)|c(Q56061))
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q151938
relation P122
type Q1307214
type Q56061
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?o ) WHERE { { ?f rdf:type ontology:Q1307214 . ?b rdf:type ontology:Q1048835 . ?b property:P122 ?f } UNION { ?b rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q56061 . ?b property:P122 ?f } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Q151938 property:P122 ?v . { { ?v rdf:type ontology:Q1307214 } UNION { ?v rdf:type ontology:Q56061 } } } } . FILTER ( ?o < ?q ) }
Neutral Moresnet
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Neutral Moresnet
relation basic form of government
type form of government
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?o ) WHERE { { ?f rdf:type ontology:form_of_government . ?b rdf:type ontology:political_territorial_entity . ?b property:basic_form_of_government ?f } UNION { ?b rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:administrative_territorial_entity . ?b property:basic_form_of_government ?f } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Neutral_Moresnet property:basic_form_of_government ?v . { { ?v rdf:type ontology:form_of_government } UNION { ?v rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?o < ?q ) }
[]
form of government administrative territorial entity political territorial entity
Q183 Q35 Q40
SYSTEM
Germany, Denmark, Austria
Q183 Q601252 Q193619 Q1059046 Q763 Q664 Q641138 Q1925048 Q785 Q35 Q79965 Q223793 Q2594990 Q757 Q468378 Q40 Q31747 Q129286
(c(Q1048835),P122,c(Q1307214)|c(Q56061))
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q151938
relation P122
type Q1307214
type Q56061
[ANSWERS]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?o ) WHERE { { ?f rdf:type ontology:Q1307214 . ?b rdf:type ontology:Q1048835 . ?b property:P122 ?f } UNION { ?b rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q56061 . ?b property:P122 ?f } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Q151938 property:P122 ?v . { { ?v rdf:type ontology:Q1307214 } UNION { ?v rdf:type ontology:Q56061 } } } } . FILTER ( ?o < ?q ) }
Germany Banovina of Croatia Union of South Africa Merkit people Saint Kitts and Nevis New Zealand Duchy of Cleves San Pedro Partido Jersey Denmark Golden Horde Kingdom of Etruria Dominion of New Zealand Saint Vincent and the Grenadines County of Hoya Austria Irish Free State British Raj
Germany Denmark Austria
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
action count
action filter_multi_types
action find
entity Neutral Moresnet
relation basic form of government
type form of government
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?f ) AS ?o ) WHERE { { ?f rdf:type ontology:form_of_government . ?b rdf:type ontology:political_territorial_entity . ?b property:basic_form_of_government ?f } UNION { ?b rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:administrative_territorial_entity . ?b property:basic_form_of_government ?f } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Neutral_Moresnet property:basic_form_of_government ?v . { { ?v rdf:type ontology:form_of_government } UNION { ?v rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?o < ?q ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relationships with min number of political territories ?
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?a ) { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?o } } . { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P530 ?v . ?v rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?l = ?a ) }
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?a ) { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?o } } . { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?l = ?a ) }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,Q953)
action argmin
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWERS] have diplomatic relationships with min number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?a ) { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?o } } . { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:P530 ?v . ?v rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?l = ?a ) }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen, Syria and Oman have diplomatic relationships with min number of political territories
Yemen Syria Oman
action argmin
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?a ) { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?o } } . { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?l ) WHERE { ?b property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?l = ?a ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q19421136 Q183
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Germany and are not Ch'amakani present in ?
AND((Q183,P530,c(Q15617994)), NOT((Q19421136,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q19421136
relation P17
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q19421136', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?h WHERE { MINUS { resource:Q19421136 property:P17 ?h } . resource:Q183 property:P530 ?h . ?h rdf:type ontology:Q15617994 }
Ch'amakani Germany
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Ch'amakani
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [["Ch'amakani", 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?h WHERE { MINUS { resource:Ch'amakani property:country ?h } . resource:Germany property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q810 Q917 Q889 Q265 Q733 Q974 Q668 Q142 Q238 Q924
SYSTEM
Some of them are Jordan, Bhutan, Afghanistan, Uzbekistan, Paraguay, Democratic Republic of the Congo, India, France, San Marino, Tanzania
Q804 Q801 Q800 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
AND((Q183,P530,c(Q15617994)), NOT((Q19421136,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q19421136
relation P17
type Q15617994
[ANSWERS] have diplomatic relationships with Germany and are not Ch'amakani present in
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q19421136', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?h WHERE { MINUS { resource:Q19421136 property:P17 ?h } . resource:Q183 property:P530 ?h . ?h rdf:type ontology:Q15617994 }
Panama Israel Costa Rica India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Jordan, Bhutan, Afghanistan, Uzbekistan, Paraguay, Democratic Republic of the Congo, India, France, San Marino and Tanzania have diplomatic relationships with Germany and are not Ch'amakani present in
Jordan Bhutan Afghanistan Uzbekistan Paraguay Democratic Republic of the Congo India France San Marino Tanzania
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Ch'amakani
relation country
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [["Ch'amakani", 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?h WHERE { MINUS { resource:Ch'amakani property:country ?h } . resource:Germany property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q56061
USER
How many administrative territories have a shared border with that administrative territory ?
(Q238,P47,c(Q56061))
['Q238', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q238 property:P47 ?z . ?z rdf:type ontology:Q56061 }
['San Marino', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:San_Marino property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q238
SYSTEM
Did you mean San Marino ?
(Q810,P47,c(Q56061)) (Q917,P47,c(Q56061)) (Q889,P47,c(Q56061)) (Q265,P47,c(Q56061)) (Q733,P47,c(Q56061)) (Q974,P47,c(Q56061)) (Q668,P47,c(Q56061)) (Q142,P47,c(Q56061)) (Q238,P47,c(Q56061)) (Q924,P47,c(Q56061))
[ANSWER]
['Q810', 'P47', {'concept': 'Q56061'}] ['Q917', 'P47', {'concept': 'Q56061'}] ['Q889', 'P47', {'concept': 'Q56061'}] ['Q265', 'P47', {'concept': 'Q56061'}] ['Q733', 'P47', {'concept': 'Q56061'}] ['Q974', 'P47', {'concept': 'Q56061'}] ['Q668', 'P47', {'concept': 'Q56061'}] ['Q142', 'P47', {'concept': 'Q56061'}] ['Q238', 'P47', {'concept': 'Q56061'}] ['Q924', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q238 property:P47 ?z . ?z rdf:type ontology:Q56061 }
Did you mean San Marino ?
San Marino
['Jordan', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bhutan', 'shares border with', {'concept': 'administrative territorial entity'}] ['Afghanistan', 'shares border with', {'concept': 'administrative territorial entity'}] ['Uzbekistan', 'shares border with', {'concept': 'administrative territorial entity'}] ['Paraguay', 'shares border with', {'concept': 'administrative territorial entity'}] ['Democratic Republic of the Congo', 'shares border with', {'concept': 'administrative territorial entity'}] ['India', 'shares border with', {'concept': 'administrative territorial entity'}] ['France', 'shares border with', {'concept': 'administrative territorial entity'}] ['San Marino', 'shares border with', {'concept': 'administrative territorial entity'}] ['Tanzania', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:San_Marino property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q238,P47,c(Q56061))
['Q238', 'P47', {'concept': 'Q56061'}]
['San Marino', 'shares border with', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
1
Q458
(Q238,P47,c(Q56061))
[ANSWER]
['Q238', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q238 property:P47 ?z . ?z rdf:type ontology:Q56061 }
European Union
1
['San Marino', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:San_Marino property:shares_border_with ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with around 22 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 22
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?e ) WHERE { ?k property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?e = 22 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 22
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?e ) WHERE { ?k property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?e = 22 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
6
Q801 Q805 Q142 Q148 Q159 Q30
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 22
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?e ) WHERE { ?k property:P530 ?o . ?o rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?e = 22 ) }
Israel Yemen France People's Republic of China Russia United States of America
6
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 22
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?e ) WHERE { ?k property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?e = 22 ) }
[]