Simple Question (Direct)
Simple Question
Q3371822
P21
Q290
USER
Which sex does Paul McLean possess ?
(Q3371822,P21,c(Q290))
action filter_type
action find
entity Q3371822
relation P21
type Q290
['Q3371822', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q3371822 property:P21 ?k . ?k rdf:type ontology:Q290 }
Paul McLean
action filter_type
action find
entity Paul McLean
relation gender
type sex
['Paul McLean', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Paul_McLean property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3371822,P21,c(Q290))
action filter_type
action find
entity Q3371822
relation P21
type Q290
Paul McLean possesses a [ANSWER]
['Q3371822', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q3371822 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
Paul McLean possesses a male
male
action filter_type
action find
entity Paul McLean
relation gender
type sex
['Paul McLean', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Paul_McLean property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3371822
P27
Q1048835
USER
Which political territory is the country of citizenship of that person ?
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q3371822
relation P27
type Q1048835
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q3371822 property:P27 ?v . ?v rdf:type ontology:Q1048835 }
Paul McLean
action filter_type
action find
entity Paul McLean
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Paul_McLean property:country_of_citizenship ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q3371822
relation P27
type Q1048835
[ANSWER] is the country of citizenship of that person
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q3371822 property:P27 ?v . ?v rdf:type ontology:Q1048835 }
Australia
Australia is the country of citizenship of that person
Australia
action filter_type
action find
entity Paul McLean
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Paul_McLean property:country_of_citizenship ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q408 Q1927660
P27
Q502895
USER
Is Michael Hackert a civilian of that political territory ?
(Q1927660,P27,Q408)
action is_in
entity Q1927660
action find
entity Q408
relation P27
['Q1927660', 'P27', 'Q408']
ASK WHERE { resource:Q408 property:P27 resource:Q1927660 }
Australia Michael Hackert
action is_in
entity Michael Hackert
action find
entity Australia
relation country of citizenship
['Michael Hackert', 'country of citizenship', 'Australia']
ASK WHERE { resource:Australia property:country_of_citizenship resource:Michael_Hackert }
[]
common name
SYSTEM
NO
(Q1927660,P27,Q408)
action is_in
entity Q1927660
action find
entity Q408
relation P27
[ANSWER]
['Q1927660', 'P27', 'Q408']
ASK WHERE { resource:Q408 property:P27 resource:Q1927660 }
No
action is_in
entity Michael Hackert
action find
entity Australia
relation country of citizenship
['Michael Hackert', 'country of citizenship', 'Australia']
ASK WHERE { resource:Australia property:country_of_citizenship resource:Michael_Hackert }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with exactly 2 political territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?w ) WHERE { ?f rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 . ?f property:P530 ?r } GROUP BY ?f } . FILTER ( ?w = 2 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?w ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?f property:diplomatic_relation ?r } GROUP BY ?f } . FILTER ( ?w = 2 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
48
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?w ) WHERE { ?f rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 . ?f property:P530 ?r } GROUP BY ?f } . FILTER ( ?w = 2 ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
48
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?w ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?f property:diplomatic_relation ?r } GROUP BY ?f } . FILTER ( ?w = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17386198 Q3371822
P106
Q12737077
USER
Which occupations have Paul McLean or Matej Kochan as his/her as a career ?
OR((Q3371822,P106,c(Q12737077)), (Q17386198,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3371822
relation P106
action find
entity Q17386198
relation P106
type Q12737077
{'OR': [['Q3371822', 'P106', {'concept': 'Q12737077'}], ['Q17386198', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?f WHERE { { ?w property:P106 ?f . VALUES ( ?w ) { ( resource:Q17386198 ) ( resource:Q3371822 ) } } . ?f rdf:type ontology:Q12737077 }
Matej Kochan Paul McLean
action filter_type
action union
action find
entity Paul McLean
relation occupation
action find
entity Matej Kochan
relation occupation
type occupation
{'OR': [['Paul McLean', 'occupation', {'concept': 'occupation'}], ['Matej Kochan', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?f WHERE { { ?w property:occupation ?f . VALUES ( ?w ) { ( resource:Matej_Kochan ) ( resource:Paul_McLean ) } } . ?f rdf:type ontology:occupation }
[]
occupation
Q14089670 Q937857
SYSTEM
rugby union player, association football player
Q14089670 Q937857
OR((Q3371822,P106,c(Q12737077)), (Q17386198,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3371822
relation P106
action find
entity Q17386198
relation P106
type Q12737077
The [ANSWERS] have Paul McLean or Matej Kochan as his/her as a career
{'OR': [['Q3371822', 'P106', {'concept': 'Q12737077'}], ['Q17386198', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?f WHERE { { ?w property:P106 ?f . VALUES ( ?w ) { ( resource:Q17386198 ) ( resource:Q3371822 ) } } . ?f rdf:type ontology:Q12737077 }
rugby union player association football player
The rugby union player and association football player have Paul McLean or Matej Kochan as his/her as a career
rugby union player association football player
action filter_type
action union
action find
entity Paul McLean
relation occupation
action find
entity Matej Kochan
relation occupation
type occupation
{'OR': [['Paul McLean', 'occupation', {'concept': 'occupation'}], ['Matej Kochan', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?f WHERE { { ?w property:occupation ?f . VALUES ( ?w ) { ( resource:Matej_Kochan ) ( resource:Paul_McLean ) } } . ?f rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q763
P122
Q151885 Q56061 Q1048835
USER
How many political territories have approximately the same number of concepts or administrative territories as government as Saint Kitts and Nevis ?
(c(Q1048835),P122,c(Q151885)|c(Q56061))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q763
relation P122
type Q151885
type Q56061
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q151885'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:Q151885 ) ( ontology:Q56061 ) } . ?f rdf:type ?l } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Q763 property:P122 ?a . { VALUES ( ?d ) { ( ontology:Q151885 ) ( ontology:Q56061 ) } . ?a rdf:type ?d } } } . FILTER ( ?i = ?y ) }
Saint Kitts and Nevis
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
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 Saint Kitts and Nevis
relation basic form of government
type concept
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'concept'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:concept ) ( ontology:administrative_territorial_entity ) } . ?f rdf:type ?l } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Saint_Kitts_and_Nevis property:basic_form_of_government ?a . { VALUES ( ?d ) { ( ontology:concept ) ( ontology:administrative_territorial_entity ) } . ?a rdf:type ?d } } } . FILTER ( ?i = ?y ) }
[]
concept administrative territorial entity political territorial entity
SYSTEM
21
Q183 Q601252 Q193619 Q1059046 Q763 Q664 Q641138 Q785 Q178084 Q16 Q35 Q79965 Q223793 Q2594990 Q408 Q757 Q468378 Q40 Q1250464 Q31747 Q129286
(c(Q1048835),P122,c(Q151885)|c(Q56061))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q763
relation P122
type Q151885
type Q56061
[ANSWER]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q151885'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:Q151885 ) ( ontology:Q56061 ) } . ?f rdf:type ?l } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Q763 property:P122 ?a . { VALUES ( ?d ) { ( ontology:Q151885 ) ( ontology:Q56061 ) } . ?a rdf:type ?d } } } . FILTER ( ?i = ?y ) }
Germany Banovina of Croatia Union of South Africa Merkit people Saint Kitts and Nevis New Zealand Duchy of Cleves Jersey Ilkhanate Canada Denmark Golden Horde Kingdom of Etruria Dominion of New Zealand Australia Saint Vincent and the Grenadines County of Hoya Austria realm Irish Free State British Raj
21
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
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 Saint Kitts and Nevis
relation basic form of government
type concept
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'concept'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?h ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?f ) AS ?i ) WHERE { VALUES ( ?l ) { ( ontology:concept ) ( ontology:administrative_territorial_entity ) } . ?f rdf:type ?l } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Saint_Kitts_and_Nevis property:basic_form_of_government ?a . { VALUES ( ?d ) { ( ontology:concept ) ( ontology:administrative_territorial_entity ) } . ?a rdf:type ?d } } } . FILTER ( ?i = ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q16
P122
Q151885 Q56061 Q1048835
USER
And also tell me about Canada?
(c(Q1048835),P122,c(Q151885)|c(Q56061))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q16
relation P122
type Q151885
type Q56061
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q151885'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?l ) WHERE { { ?i property:P122 ?o . ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q56061 } UNION { ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q151885 . ?i property:P122 ?o } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { { ?n rdf:type ontology:Q151885 } UNION { ?n rdf:type ontology:Q56061 } } . resource:Q16 property:P122 ?n } } . FILTER ( ?l = ?p ) }
Canada
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
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 Canada
relation basic form of government
type concept
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'concept'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?l ) WHERE { { ?i property:basic_form_of_government ?o . ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:administrative_territorial_entity } UNION { ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:concept . ?i property:basic_form_of_government ?o } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { { ?n rdf:type ontology:concept } UNION { ?n rdf:type ontology:administrative_territorial_entity } } . resource:Canada property:basic_form_of_government ?n } } . FILTER ( ?l = ?p ) }
[]
concept administrative territorial entity political territorial entity
SYSTEM
21
Q183 Q601252 Q193619 Q1059046 Q763 Q664 Q641138 Q785 Q178084 Q16 Q35 Q79965 Q223793 Q2594990 Q408 Q757 Q468378 Q40 Q1250464 Q31747 Q129286
(c(Q1048835),P122,c(Q151885)|c(Q56061))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action find_tuple_counts
relation P122
type Q1048835
type Q56061
action count
action filter_multi_types
action find
entity Q16
relation P122
type Q151885
type Q56061
[ANSWER]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q151885'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?l ) WHERE { { ?i property:P122 ?o . ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q56061 } UNION { ?i rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q151885 . ?i property:P122 ?o } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { { ?n rdf:type ontology:Q151885 } UNION { ?n rdf:type ontology:Q56061 } } . resource:Q16 property:P122 ?n } } . FILTER ( ?l = ?p ) }
Germany Banovina of Croatia Union of South Africa Merkit people Saint Kitts and Nevis New Zealand Duchy of Cleves Jersey Ilkhanate Canada Denmark Golden Horde Kingdom of Etruria Dominion of New Zealand Australia Saint Vincent and the Grenadines County of Hoya Austria realm Irish Free State British Raj
21
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
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 Canada
relation basic form of government
type concept
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'concept'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?l ) WHERE { { ?i property:basic_form_of_government ?o . ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:administrative_territorial_entity } UNION { ?i rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:concept . ?i property:basic_form_of_government ?o } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { { ?n rdf:type ontology:concept } UNION { ?n rdf:type ontology:administrative_territorial_entity } } . resource:Canada property:basic_form_of_government ?n } } . FILTER ( ?l = ?p ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q4164871 Q22676587 Q1048835
USER
How many political territories have atleast 2 positions and monarchic systems as government ?
(c(Q1048835),P122,c(Q4164871)|c(Q22676587))
action count
action atleast
action union
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
value 2
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?d ) WHERE { { ?i property:P122 ?y . ?i rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q4164871 } UNION { ?i property:P122 ?y . ?i rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q22676587 } } GROUP BY ?i } . FILTER ( ?d >= 2 ) }
action count
action atleast
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
value 2
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?d ) WHERE { { ?i property:basic_form_of_government ?y . ?i rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:position } UNION { ?i property:basic_form_of_government ?y . ?i rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:monarchic_system } } GROUP BY ?i } . FILTER ( ?d >= 2 ) }
[]
position monarchic system political territorial entity
SYSTEM
1
Q641138
(c(Q1048835),P122,c(Q4164871)|c(Q22676587))
action count
action atleast
action union
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
action find_tuple_counts
relation P122
type Q1048835
type Q22676587
value 2
[ANSWER]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?d ) WHERE { { ?i property:P122 ?y . ?i rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q4164871 } UNION { ?i property:P122 ?y . ?i rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q22676587 } } GROUP BY ?i } . FILTER ( ?d >= 2 ) }
Duchy of Cleves
1
action count
action atleast
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
action find_tuple_counts
relation basic form of government
type political territorial entity
type monarchic system
value 2
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?y ) AS ?d ) WHERE { { ?i property:basic_form_of_government ?y . ?i rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:position } UNION { ?i property:basic_form_of_government ?y . ?i rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:monarchic_system } } GROUP BY ?i } . FILTER ( ?d >= 2 ) }
[]