Simple Question (Direct)
Simple Question
Q6172905
P19
Q1048835
USER
Where was Álvaro Retana born ?
(Q6172905,P19,c(Q1048835))
action filter_type
action find
entity Q6172905
relation P19
type Q1048835
['Q6172905', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q6172905 property:P19 ?n . ?n rdf:type ontology:Q1048835 }
Álvaro Retana
action filter_type
action find
entity Álvaro Retana
relation place of birth
type political territorial entity
['Álvaro Retana', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Álvaro_Retana property:place_of_birth ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13744
SYSTEM
Batangas
Q13744
(Q6172905,P19,c(Q1048835))
action filter_type
action find
entity Q6172905
relation P19
type Q1048835
Álvaro Retana was born in [ANSWER]
['Q6172905', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q6172905 property:P19 ?n . ?n rdf:type ontology:Q1048835 }
Batangas
Álvaro Retana was born in Batangas
Batangas
action filter_type
action find
entity Álvaro Retana
relation place of birth
type political territorial entity
['Álvaro Retana', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Álvaro_Retana property:place_of_birth ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6172905
P20
Q1048835
USER
Where did the expiration of that person occur ?
(Q13744,P20,c(Q1048835))
action filter_type
action find
entity Q6172905
relation P20
type Q1048835
['Q13744', 'P20', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q6172905 property:P20 ?n . ?n rdf:type ontology:Q1048835 }
Álvaro Retana
action filter_type
action find
entity Álvaro Retana
relation place of death
type political territorial entity
['Batangas', 'place of death', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Álvaro_Retana property:place_of_death ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q489839
SYSTEM
Torrejón de Ardoz
Q489839
(Q13744,P20,c(Q1048835))
action filter_type
action find
entity Q6172905
relation P20
type Q1048835
The expiration of that person occurred in [ANSWER]
['Q13744', 'P20', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q6172905 property:P20 ?n . ?n rdf:type ontology:Q1048835 }
Torrejón de Ardoz
The expiration of that person occurred in Torrejón de Ardoz
Torrejón de Ardoz
action filter_type
action find
entity Álvaro Retana
relation place of death
type political territorial entity
['Batangas', 'place of death', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Álvaro_Retana property:place_of_death ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q489839 Q842211 Q2046249
P47
Q1048835
USER
Is Torrejón de Ardoz bordered by San Fernando de Henares and Paracuellos de Jarama ?
(Q489839,P47,Q842211) (Q489839,P47,Q2046249)
action is_in
entity Q489839
action intersection
action find_reverse
entity Q842211
relation P47
action find_reverse
entity Q2046249
relation P47
['Q489839', 'P47', 'Q842211'] ['Q489839', 'P47', 'Q2046249']
ASK WHERE { resource:Q489839 property:P47 resource:Q2046249 . resource:Q489839 property:P47 resource:Q842211 }
Torrejón de Ardoz San Fernando de Henares Paracuellos de Jarama
action is_in
entity Torrejón de Ardoz
action intersection
action find_reverse
entity San Fernando de Henares
relation shares border with
action find_reverse
entity Paracuellos de Jarama
relation shares border with
['Torrejón de Ardoz', 'shares border with', 'San Fernando de Henares'] ['Torrejón de Ardoz', 'shares border with', 'Paracuellos de Jarama']
ASK WHERE { resource:Torrejón_de_Ardoz property:shares_border_with resource:Paracuellos_de_Jarama . resource:Torrejón_de_Ardoz property:shares_border_with resource:San_Fernando_de_Henares }
[]
political territorial entity
SYSTEM
YES
(Q489839,P47,Q842211) (Q489839,P47,Q2046249)
action is_in
entity Q489839
action intersection
action find_reverse
entity Q842211
relation P47
action find_reverse
entity Q2046249
relation P47
[ANSWER]
['Q489839', 'P47', 'Q842211'] ['Q489839', 'P47', 'Q2046249']
ASK WHERE { resource:Q489839 property:P47 resource:Q2046249 . resource:Q489839 property:P47 resource:Q842211 }
Yes
action is_in
entity Torrejón de Ardoz
action intersection
action find_reverse
entity San Fernando de Henares
relation shares border with
action find_reverse
entity Paracuellos de Jarama
relation shares border with
['Torrejón de Ardoz', 'shares border with', 'San Fernando de Henares'] ['Torrejón de Ardoz', 'shares border with', 'Paracuellos de Jarama']
ASK WHERE { resource:Torrejón_de_Ardoz property:shares_border_with resource:Paracuellos_de_Jarama . resource:Torrejón_de_Ardoz property:shares_border_with resource:San_Fernando_de_Henares }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10474 Q842211
P47
Q1048835
USER
Which political territories share the border with San Fernando de Henares or Kelheim ?
OR((Q842211,P47,c(Q1048835)), (Q10474,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q842211
relation P47
action find
entity Q10474
relation P47
type Q1048835
{'OR': [['Q842211', 'P47', {'concept': 'Q1048835'}], ['Q10474', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q10474 property:P47 ?u } UNION { resource:Q842211 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Kelheim San Fernando de Henares
action filter_type
action union
action find
entity San Fernando de Henares
relation shares border with
action find
entity Kelheim
relation shares border with
type political territorial entity
{'OR': [['San Fernando de Henares', 'shares border with', {'concept': 'political territorial entity'}], ['Kelheim', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Kelheim property:shares_border_with ?u } UNION { resource:San_Fernando_de_Henares property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q644481 Q10427 Q164197 Q10497 Q10475 Q2046249 Q1984852 Q489839 Q10491 Q1646206
SYSTEM
Some of them are Rivas-Vaciamadrid, Neumarkt, Coslada, Freising, Landshut, Paracuellos de Jarama, Mejorada del Campo, Torrejón de Ardoz, Eichstätt, Loeches
Q10497 Q10496 Q10491 Q489839 Q10427 Q10475 Q644481 Q10429 Q1984852 Q1646206 Q2046249 Q1751912 Q164197
OR((Q842211,P47,c(Q1048835)), (Q10474,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q842211
relation P47
action find
entity Q10474
relation P47
type Q1048835
[ANSWERS] share the border with San Fernando de Henares or Kelheim
{'OR': [['Q842211', 'P47', {'concept': 'Q1048835'}], ['Q10474', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q10474 property:P47 ?u } UNION { resource:Q842211 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Freising Pfaffenhofen Eichstätt Torrejón de Ardoz Neumarkt Landshut Rivas-Vaciamadrid Regensburg Mejorada del Campo Loeches Paracuellos de Jarama Torres de la Alameda Coslada
Rivas-Vaciamadrid, Neumarkt, Coslada, Freising, Landshut, Paracuellos de Jarama, Mejorada del Campo, Torrejón de Ardoz, Eichstätt and Loeches share the border with San Fernando de Henares or Kelheim
Rivas-Vaciamadrid Neumarkt Coslada Freising Landshut Paracuellos de Jarama Mejorada del Campo Torrejón de Ardoz Eichstätt Loeches
action filter_type
action union
action find
entity San Fernando de Henares
relation shares border with
action find
entity Kelheim
relation shares border with
type political territorial entity
{'OR': [['San Fernando de Henares', 'shares border with', {'concept': 'political territorial entity'}], ['Kelheim', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Kelheim property:shares_border_with ?u } UNION { resource:San_Fernando_de_Henares property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P19
Q502895
USER
How many people were born at that political territory ?
(c(Q502895),P19,Q489839)
[{'concept': 'Q502895'}, 'P19', 'Q489839']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q489839 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'place of birth', 'Torrejón de Ardoz']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Torrejón_de_Ardoz . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q10427
SYSTEM
Did you mean Neumarkt ?
(c(Q502895),P19,Q644481) (c(Q502895),P19,Q10427) (c(Q502895),P19,Q164197) (c(Q502895),P19,Q10497) (c(Q502895),P19,Q10475) (c(Q502895),P19,Q2046249) (c(Q502895),P19,Q1984852) (c(Q502895),P19,Q489839) (c(Q502895),P19,Q10491) (c(Q502895),P19,Q1646206)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q644481'] [{'concept': 'Q502895'}, 'P19', 'Q10427'] [{'concept': 'Q502895'}, 'P19', 'Q164197'] [{'concept': 'Q502895'}, 'P19', 'Q10497'] [{'concept': 'Q502895'}, 'P19', 'Q10475'] [{'concept': 'Q502895'}, 'P19', 'Q2046249'] [{'concept': 'Q502895'}, 'P19', 'Q1984852'] [{'concept': 'Q502895'}, 'P19', 'Q489839'] [{'concept': 'Q502895'}, 'P19', 'Q10491'] [{'concept': 'Q502895'}, 'P19', 'Q1646206']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q489839 . ?z rdf:type ontology:Q502895 }
Did you mean Neumarkt ?
Neumarkt
[{'concept': 'common name'}, 'place of birth', 'Rivas-Vaciamadrid'] [{'concept': 'common name'}, 'place of birth', 'Neumarkt'] [{'concept': 'common name'}, 'place of birth', 'Coslada'] [{'concept': 'common name'}, 'place of birth', 'Freising'] [{'concept': 'common name'}, 'place of birth', 'Landshut'] [{'concept': 'common name'}, 'place of birth', 'Paracuellos de Jarama'] [{'concept': 'common name'}, 'place of birth', 'Mejorada del Campo'] [{'concept': 'common name'}, 'place of birth', 'Torrejón de Ardoz'] [{'concept': 'common name'}, 'place of birth', 'Eichstätt'] [{'concept': 'common name'}, 'place of birth', 'Loeches']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Torrejón_de_Ardoz . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Torrejón de Ardoz. Could you tell me the answer for that?
(c(Q502895),P19,Q489839)
Q489839
[{'concept': 'Q502895'}, 'P19', 'Q489839']
[{'concept': 'common name'}, 'place of birth', 'Torrejón de Ardoz']
[]
SYSTEM
15
Q1999055 Q316577 Q20015208 Q5658591 Q16234114 Q44354 Q3857401 Q6375399 Q19663379 Q4017829 Q3820716 Q677645 Q960937 Q3049386 Q3058081
(c(Q502895),P19,Q489839)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q489839']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q489839 . ?z rdf:type ontology:Q502895 }
Antonio Guzmán Núñez Jorge Garbajosa Ángeles García Madrid Adrián Salzedo Dani Ponce Kane Mike Hansen Kate Brown Mario Rivillos Plaza Wallace Bryant El Chojin Francisco Salmerón José Antonio Paraíso Pilar Rubio Esmeralda Moya
15
[{'concept': 'common name'}, 'place of birth', 'Torrejón de Ardoz']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Torrejón_de_Ardoz . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q234460 Q15961987 Q502895
USER
How many people are from the works of atleast 7 texts and television genres ?
(c(Q502895),P1441,c(Q234460)|c(Q15961987))
action count
action atleast
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
value 7
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) ?u WHERE { { ?u property:P1441 ?t . ?u rdf:type ontology:Q502895 . ?t rdf:type ontology:Q234460 } UNION { ?u property:P1441 ?t . ?u rdf:type ontology:Q502895 . ?t rdf:type ontology:Q15961987 } } GROUP BY ?u } . FILTER ( ?d >= 7 ) }
action count
action atleast
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television genre
value 7
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television genre'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) ?u WHERE { { ?u property:present_in_work ?t . ?u rdf:type ontology:common_name . ?t rdf:type ontology:text } UNION { ?u property:present_in_work ?t . ?u rdf:type ontology:common_name . ?t rdf:type ontology:television_genre } } GROUP BY ?u } . FILTER ( ?d >= 7 ) }
[]
text television genre common name
SYSTEM
1
Q9181
(c(Q502895),P1441,c(Q234460)|c(Q15961987))
action count
action atleast
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15961987
value 7
[ANSWER]
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15961987'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) ?u WHERE { { ?u property:P1441 ?t . ?u rdf:type ontology:Q502895 . ?t rdf:type ontology:Q234460 } UNION { ?u property:P1441 ?t . ?u rdf:type ontology:Q502895 . ?t rdf:type ontology:Q15961987 } } GROUP BY ?u } . FILTER ( ?d >= 7 ) }
Abraham
1
action count
action atleast
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television genre
value 7
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television genre'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) ?u WHERE { { ?u property:present_in_work ?t . ?u rdf:type ontology:common_name . ?t rdf:type ontology:text } UNION { ?u property:present_in_work ?t . ?u rdf:type ontology:common_name . ?t rdf:type ontology:television_genre } } GROUP BY ?u } . FILTER ( ?d >= 7 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q489839
P159
Q327333
USER
Which government agency has headquarters located at Torrejón de Ardoz ?
(c(Q327333),P159,Q489839)
action filter_type
action find_reverse
entity Q489839
relation P159
type Q327333
[{'concept': 'Q327333'}, 'P159', 'Q489839']
SELECT DISTINCT ?m WHERE { ?m property:P159 resource:Q489839 . ?m rdf:type ontology:Q327333 }
Torrejón de Ardoz
action filter_type
action find_reverse
entity Torrejón de Ardoz
relation headquarters location
type government agency
[{'concept': 'government agency'}, 'headquarters location', 'Torrejón de Ardoz']
SELECT DISTINCT ?m WHERE { ?m property:headquarters_location resource:Torrejón_de_Ardoz . ?m rdf:type ontology:government_agency }
[]
government agency
Q1388519
SYSTEM
European Union Satellite Centre
Q1388519
(c(Q327333),P159,Q489839)
action filter_type
action find_reverse
entity Q489839
relation P159
type Q327333
[ANSWER] has headquarters located at Torrejón de Ardoz
[{'concept': 'Q327333'}, 'P159', 'Q489839']
SELECT DISTINCT ?m WHERE { ?m property:P159 resource:Q489839 . ?m rdf:type ontology:Q327333 }
European Union Satellite Centre
European Union Satellite Centre has headquarters located at Torrejón de Ardoz
European Union Satellite Centre
action filter_type
action find_reverse
entity Torrejón de Ardoz
relation headquarters location
type government agency
[{'concept': 'government agency'}, 'headquarters location', 'Torrejón de Ardoz']
SELECT DISTINCT ?m WHERE { ?m property:headquarters_location resource:Torrejón_de_Ardoz . ?m rdf:type ontology:government_agency }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q489839
P1001
Q12737077
USER
Which occupation has control over the jurisdiction of that political territory ?
(c(Q12737077),P1001,Q1388519)
action filter_type
action find_reverse
entity Q489839
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q1388519']
SELECT DISTINCT ?s WHERE { ?s property:P1001 resource:Q489839 . ?s rdf:type ontology:Q12737077 }
Torrejón de Ardoz
action filter_type
action find_reverse
entity Torrejón de Ardoz
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'European Union Satellite Centre']
SELECT DISTINCT ?s WHERE { ?s property:applies_to_jurisdiction resource:Torrejón_de_Ardoz . ?s rdf:type ontology:occupation }
[]
occupation
Q26698318
SYSTEM
mayor of Torrejón de Ardoz
Q26698318
(c(Q12737077),P1001,Q1388519)
action filter_type
action find_reverse
entity Q489839
relation P1001
type Q12737077
[ANSWER] has control over the jurisdiction of that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q1388519']
SELECT DISTINCT ?s WHERE { ?s property:P1001 resource:Q489839 . ?s rdf:type ontology:Q12737077 }
mayor of Torrejón de Ardoz
Mayor of Torrejón de Ardoz has control over the jurisdiction of that political territory
mayor of Torrejón de Ardoz
action filter_type
action find_reverse
entity Torrejón de Ardoz
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'European Union Satellite Centre']
SELECT DISTINCT ?s WHERE { ?s property:applies_to_jurisdiction resource:Torrejón_de_Ardoz . ?s rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories have diplomatic associations with atleast 3 political territories and administrative territories ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action atleast
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 3
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?s WHERE { { ?s property:P530 ?p . ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } UNION { ?s property:P530 ?p . ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } } GROUP BY ?s } . FILTER ( ?t >= 3 ) }
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?s WHERE { { ?s property:diplomatic_relation ?p . ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s property:diplomatic_relation ?p . ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } } GROUP BY ?s } . FILTER ( ?t >= 3 ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action atleast
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 3
[ANSWERS] have diplomatic associations with atleast 3 political territories and administrative territories
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?s WHERE { { ?s property:P530 ?p . ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } UNION { ?s property:P530 ?p . ?s rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } } GROUP BY ?s } . FILTER ( ?t >= 3 ) }
Austria Germany Australia Denmark Canada New Zealand
Germany, Australia and Denmark have diplomatic associations with atleast 3 political territories and administrative territories
Germany Australia Denmark
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 3
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) ?s WHERE { { ?s property:diplomatic_relation ?p . ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?s property:diplomatic_relation ?p . ?s rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } } GROUP BY ?s } . FILTER ( ?t >= 3 ) }
[]