Simple Question (Direct)
Simple Question
Q271152
P190
Q56061
USER
Which administrative territory is the sister city of Pietra Ligure ?
(Q271152,P190,c(Q56061))
action filter_type
action find
entity Q271152
relation P190
type Q56061
['Q271152', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q271152 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Pietra Ligure
action filter_type
action find
entity Pietra Ligure
relation sister city
type administrative territorial entity
['Pietra Ligure', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Pietra_Ligure property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q4044
SYSTEM
Offenburg
Q4044
(Q271152,P190,c(Q56061))
action filter_type
action find
entity Q271152
relation P190
type Q56061
[ANSWER] is the sister city of Pietra Ligure
['Q271152', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q271152 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Offenburg
Offenburg is the sister city of Pietra Ligure
Offenburg
action filter_type
action find
entity Pietra Ligure
relation sister city
type administrative territorial entity
['Pietra Ligure', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Pietra_Ligure property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4044
P937
Q502895
USER
Who have that administrative territory as their work location ?
(c(Q502895),P937,Q4044)
action filter_type
action find_reverse
entity Q4044
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q4044']
SELECT DISTINCT ?h WHERE { ?h property:P937 resource:Q4044 . ?h rdf:type ontology:Q502895 }
Offenburg
action filter_type
action find_reverse
entity Offenburg
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Offenburg']
SELECT DISTINCT ?h WHERE { ?h property:work_location resource:Offenburg . ?h rdf:type ontology:common_name }
[]
common name
Q491575 Q77749 Q1878207
SYSTEM
Hans Cieslarczyk, Max Müller, Lutz Stavenhagen
Q1417833 Q2426020 Q103642 Q1878207 Q491575 Q103522 Q77749 Q18918546 Q1224015 Q1260726 Q1666725 Q1584397 Q1470962 Q1331847 Q24808836
(c(Q502895),P937,Q4044)
action filter_type
action find_reverse
entity Q4044
relation P937
type Q502895
[ANSWERS] have that administrative territory as their work location
[{'concept': 'Q502895'}, 'P937', 'Q4044']
SELECT DISTINCT ?h WHERE { ?h property:P937 resource:Q4044 . ?h rdf:type ontology:Q502895 }
Volker Schebesta Thomas Marwein Frieder Burda Lutz Stavenhagen Hans Cieslarczyk Josef Franz Wittemann Max Müller Julius Grimm Dietrich Schuchardt Hanns-Eberhard Schleyer Josef Holler Harald Bernd Schäfer Frumentia Maier Ellen Mundinger Franz Josef  Simmler
Hans Cieslarczyk, Max Müller and Lutz Stavenhagen have that administrative territory as their work location
Hans Cieslarczyk Max Müller Lutz Stavenhagen
action filter_type
action find_reverse
entity Offenburg
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Offenburg']
SELECT DISTINCT ?h WHERE { ?h property:work_location resource:Offenburg . ?h rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1878207
P102
Q7278
USER
Which political party is that person a member of ?
(Q1878207,P102,c(Q7278))
action filter_type
action find
entity Q1878207
relation P102
type Q7278
['Q1878207', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?n WHERE { resource:Q1878207 property:P102 ?n . ?n rdf:type ontology:Q7278 }
Lutz Stavenhagen
action filter_type
action find
entity Lutz Stavenhagen
relation member of political party
type political party
['Lutz Stavenhagen', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?n WHERE { resource:Lutz_Stavenhagen property:member_of_political_party ?n . ?n rdf:type ontology:political_party }
[]
political party
Clarification for simple ques.
Q491575
SYSTEM
Did you mean Hans Cieslarczyk ?
Q491575 Q77749 Q1878207
(Q491575,P102,c(Q7278)) (Q77749,P102,c(Q7278)) (Q1878207,P102,c(Q7278))
[ANSWER]
['Q491575', 'P102', {'concept': 'Q7278'}] ['Q77749', 'P102', {'concept': 'Q7278'}] ['Q1878207', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?n WHERE { resource:Q1878207 property:P102 ?n . ?n rdf:type ontology:Q7278 }
Hans Cieslarczyk Max Müller Lutz Stavenhagen
Did you mean Hans Cieslarczyk ?
Hans Cieslarczyk
['Hans Cieslarczyk', 'member of political party', {'concept': 'political party'}] ['Max Müller', 'member of political party', {'concept': 'political party'}] ['Lutz Stavenhagen', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?n WHERE { resource:Lutz_Stavenhagen property:member_of_political_party ?n . ?n rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
USER
No, I meant Lutz Stavenhagen. Could you tell me the answer for that?
(Q1878207,P102,c(Q7278))
Q1878207
['Q1878207', 'P102', {'concept': 'Q7278'}]
['Lutz Stavenhagen', 'member of political party', {'concept': 'political party'}]
[]
Q49762
SYSTEM
Christian Democratic Union
Q49762
(Q1878207,P102,c(Q7278))
action filter_type
action find
entity Q1878207
relation P102
type Q7278
[ANSWER] is that person a member of
['Q1878207', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?n WHERE { resource:Q1878207 property:P102 ?n . ?n rdf:type ontology:Q7278 }
Christian Democratic Union
Christian Democratic Union is that person a member of
Christian Democratic Union
action filter_type
action find
entity Lutz Stavenhagen
relation member of political party
type political party
['Lutz Stavenhagen', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?n WHERE { resource:Lutz_Stavenhagen property:member_of_political_party ?n . ?n rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q49762 Q183
P17
Q1048835
USER
Is Christian Democratic Union a part of Germany ?
(Q49762,P17,Q183)
action is_in
entity Q183
action find
entity Q49762
relation P17
['Q49762', 'P17', 'Q183']
ASK WHERE { resource:Q49762 property:P17 resource:Q183 }
Christian Democratic Union Germany
action is_in
entity Germany
action find
entity Christian Democratic Union
relation country
['Christian Democratic Union', 'country', 'Germany']
ASK WHERE { resource:Christian_Democratic_Union property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q49762,P17,Q183)
action is_in
entity Q183
action find
entity Q49762
relation P17
[ANSWER]
['Q49762', 'P17', 'Q183']
ASK WHERE { resource:Q49762 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Christian Democratic Union
relation country
['Christian Democratic Union', 'country', 'Germany']
ASK WHERE { resource:Christian_Democratic_Union property:country resource:Germany }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q49762
P488
Q502895
USER
Who were the chair of that political party ?
action filter_type
action find
entity Q49762
relation P488
type Q502895
SELECT DISTINCT ?a WHERE { resource:Q49762 property:P488 ?a . ?a rdf:type ontology:Q502895 }
Christian Democratic Union
action filter_type
action find
entity Christian Democratic Union
relation chairperson
type common name
SELECT DISTINCT ?a WHERE { resource:Christian_Democratic_Union property:chairperson ?a . ?a rdf:type ontology:common_name }
[]
common name
Q2492 Q567 Q2518
SYSTEM
Konrad Adenauer, Angela Merkel, Helmut Kohl
Q2492 Q2518 Q2496 Q470285 Q16019 Q2512 Q567
action filter_type
action find
entity Q49762
relation P488
type Q502895
The chair of that political party were [ANSWERS]
SELECT DISTINCT ?a WHERE { resource:Q49762 property:P488 ?a . ?a rdf:type ontology:Q502895 }
Konrad Adenauer Helmut Kohl Ludwig Erhard Rainer Barzel Wolfgang Schäuble Kurt Georg Kiesinger Angela Merkel
The chair of that political party were Konrad Adenauer, Angela Merkel and Helmut Kohl
Konrad Adenauer Angela Merkel Helmut Kohl
action filter_type
action find
entity Christian Democratic Union
relation chairperson
type common name
SELECT DISTINCT ?a WHERE { resource:Christian_Democratic_Union property:chairperson ?a . ?a rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21939845 Q49762
P17
Q1048835
USER
Which political territories are Christian Democratic Union or Mount Evernden a part of ?
OR((Q49762,P17,c(Q1048835)), (Q21939845,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q49762
relation P17
action find
entity Q21939845
relation P17
type Q1048835
{'OR': [['Q49762', 'P17', {'concept': 'Q1048835'}], ['Q21939845', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?b ) { ( resource:Q21939845 ) ( resource:Q49762 ) } . ?b property:P17 ?o } . ?o rdf:type ontology:Q1048835 }
Mount Evernden Christian Democratic Union
action filter_type
action union
action find
entity Christian Democratic Union
relation country
action find
entity Mount Evernden
relation country
type political territorial entity
{'OR': [['Christian Democratic Union', 'country', {'concept': 'political territorial entity'}], ['Mount Evernden', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?b ) { ( resource:Mount_Evernden ) ( resource:Christian_Democratic_Union ) } . ?b property:country ?o } . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q49762,P17,c(Q1048835)), (Q21939845,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q49762
relation P17
action find
entity Q21939845
relation P17
type Q1048835
[ANSWERS] are Christian Democratic Union or Mount Evernden a part of
{'OR': [['Q49762', 'P17', {'concept': 'Q1048835'}], ['Q21939845', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?b ) { ( resource:Q21939845 ) ( resource:Q49762 ) } . ?b property:P17 ?o } . ?o rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany are Christian Democratic Union or Mount Evernden a part of
Australia Germany
action filter_type
action union
action find
entity Christian Democratic Union
relation country
action find
entity Mount Evernden
relation country
type political territorial entity
{'OR': [['Christian Democratic Union', 'country', {'concept': 'political territorial entity'}], ['Mount Evernden', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?b ) { ( resource:Mount_Evernden ) ( resource:Christian_Democratic_Union ) } . ?b property:country ?o } . ?o rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q23714964
P17
Q484652
USER
Are Central European Defence Cooperation located in those political territories ?
(Q23714964,P17,Q408) (Q23714964,P17,Q183)
action is_in
entity prev_answer
action find
entity Q23714964
relation P17
['Q23714964', 'P17', 'Q408'] ['Q23714964', 'P17', 'Q183']
ASK WHERE { VALUES ( ?s ) { ( resource:Q408 ) ( resource:Q183 ) } . resource:Q23714964 property:P17 ?s }
Central European Defence Cooperation
action is_in
entity prev_answer
action find
entity Central European Defence Cooperation
relation country
['Central European Defence Cooperation', 'country', 'Australia'] ['Central European Defence Cooperation', 'country', 'Germany']
ASK WHERE { VALUES ( ?s ) { ( resource:Australia ) ( resource:Germany ) } . resource:Central_European_Defence_Cooperation property:country ?s }
[]
international organization
SYSTEM
NO
(Q23714964,P17,Q408) (Q23714964,P17,Q183)
action is_in
entity prev_answer
action find
entity Q23714964
relation P17
[ANSWER]
['Q23714964', 'P17', 'Q408'] ['Q23714964', 'P17', 'Q183']
ASK WHERE { VALUES ( ?s ) { ( resource:Q408 ) ( resource:Q183 ) } . resource:Q23714964 property:P17 ?s }
No
action is_in
entity prev_answer
action find
entity Central European Defence Cooperation
relation country
['Central European Defence Cooperation', 'country', 'Australia'] ['Central European Defence Cooperation', 'country', 'Germany']
ASK WHERE { VALUES ( ?s ) { ( resource:Australia ) ( resource:Germany ) } . resource:Central_European_Defence_Cooperation property:country ?s }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q691
P530
Q1048835 Q1048835
USER
How many political territories have tactful political relations with greater number of political territories than Papua New Guinea ?
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { FILTER ( ?h > ?w ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Q691 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?h ) WHERE { ?j rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q1048835 . ?j property:P530 ?b } GROUP BY ?j } }
Papua New Guinea
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { FILTER ( ?h > ?w ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?h ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:political_territorial_entity . ?j property:diplomatic_relation ?b } GROUP BY ?j } }
[]
political territorial entity political territorial entity
SYSTEM
6
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { FILTER ( ?h > ?w ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Q691 property:P530 ?x . ?x rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?h ) WHERE { ?j rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q1048835 . ?j property:P530 ?b } GROUP BY ?j } }
Austria Germany Australia Denmark Canada New Zealand
6
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { FILTER ( ?h > ?w ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?h ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:political_territorial_entity . ?j property:diplomatic_relation ?b } GROUP BY ?j } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q781
P530
Q1048835 Q1048835
USER
And what about Antigua and Barbuda?
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?j ) WHERE { ?q property:P530 ?y . ?q rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q781 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?j > ?s ) }
Antigua and Barbuda
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?j ) WHERE { ?q property:diplomatic_relation ?y . ?q rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?j > ?s ) }
[]
political territorial entity political territorial entity
SYSTEM
6
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?j ) WHERE { ?q property:P530 ?y . ?q rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q1048835 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q781 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?j > ?s ) }
Austria Germany Australia Denmark Canada New Zealand
6
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?j ) WHERE { ?q property:diplomatic_relation ?y . ?q rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:political_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?j > ?s ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q1048835 Q56061 Q486972
USER
Which political territories have approximately 2 administrative territories or human settlements have their center of administration ?
(c(Q56061)|c(Q486972),P1376,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
value 2
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) ?l WHERE { { ?f property:P1376 ?l . ?f rdf:type ontology:Q56061 . ?l rdf:type ontology:Q1048835 } UNION { ?f property:P1376 ?l . ?l rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q486972 } } GROUP BY ?l } . FILTER ( ?a = 2 ) }
action approx
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
value 2
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) ?l WHERE { { ?f property:capital_of ?l . ?f rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } UNION { ?f property:capital_of ?l . ?l rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:human_settlement } } GROUP BY ?l } . FILTER ( ?a = 2 ) }
[]
political territorial entity administrative territorial entity human settlement
Q183 Q13353 Q193619
SYSTEM
Germany, Montserrat, Union of South Africa
Q5455586 Q13353 Q193619 Q183
(c(Q56061)|c(Q486972),P1376,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
value 2
[ANSWERS] have approximately 2 administrative territories or human settlements have their center of administration
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) ?l WHERE { { ?f property:P1376 ?l . ?f rdf:type ontology:Q56061 . ?l rdf:type ontology:Q1048835 } UNION { ?f property:P1376 ?l . ?l rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q486972 } } GROUP BY ?l } . FILTER ( ?a = 2 ) }
Fitzcarrald Montserrat Union of South Africa Germany
Germany, Montserrat and Union of South Africa have approximately 2 administrative territories or human settlements have their center of administration
Germany Montserrat Union of South Africa
action approx
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
value 2
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?a ) ?l WHERE { { ?f property:capital_of ?l . ?f rdf:type ontology:administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } UNION { ?f property:capital_of ?l . ?l rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:human_settlement } } GROUP BY ?l } . FILTER ( ?a = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with around 3 political territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?f ) WHERE { ?v property:P530 ?g . ?v rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?f = 3 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?f ) WHERE { ?v property:diplomatic_relation ?g . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?f = 3 ) }
[]
designation for an administrative territorial entity political territorial entity
Q30 Q159 Q142
SYSTEM
United States of America, Russia, France
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q884 Q33 Q30 Q36 Q34 Q39 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 3
[ANSWERS] have a diplomatic relationship with around 3 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?f ) WHERE { ?v property:P530 ?g . ?v rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?v } . FILTER ( ?f = 3 ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey South Korea Finland United States of America Poland Sweden Switzerland Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
United States of America, Russia and France have a diplomatic relationship with around 3 political territories
United States of America Russia France
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?f ) WHERE { ?v property:diplomatic_relation ?g . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?v } . FILTER ( ?f = 3 ) }
[]