Simple Question (Direct)
Simple Question
Q9065931
P19
Q56061
USER
Where was Rafael Vallbona i Sallent born ?
(Q9065931,P19,c(Q56061))
action filter_type
action find
entity Q9065931
relation P19
type Q56061
['Q9065931', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q9065931 property:P19 ?r . ?r rdf:type ontology:Q56061 }
Rafael Vallbona i Sallent
action filter_type
action find
entity Rafael Vallbona i Sallent
relation place of birth
type administrative territorial entity
['Rafael Vallbona i Sallent', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Rafael_Vallbona_i_Sallent property:place_of_birth ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q9065931,P19,c(Q56061))
action filter_type
action find
entity Q9065931
relation P19
type Q56061
Rafael Vallbona i Sallent was born in [ANSWER]
['Q9065931', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q9065931 property:P19 ?r . ?r rdf:type ontology:Q56061 }
Barcelona
Rafael Vallbona i Sallent was born in Barcelona
Barcelona
action filter_type
action find
entity Rafael Vallbona i Sallent
relation place of birth
type administrative territorial entity
['Rafael Vallbona i Sallent', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Rafael_Vallbona_i_Sallent property:place_of_birth ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9065931
P106
Q3412758
USER
What is the profession of that person ?
(Q1492,P106,c(Q3412758))
action filter_type
action find
entity Q9065931
relation P106
type Q3412758
['Q1492', 'P106', {'concept': 'Q3412758'}]
SELECT DISTINCT ?z WHERE { resource:Q9065931 property:P106 ?z . ?z rdf:type ontology:Q3412758 }
Rafael Vallbona i Sallent
action filter_type
action find
entity Rafael Vallbona i Sallent
relation occupation
type qualification
['Barcelona', 'occupation', {'concept': 'qualification'}]
SELECT DISTINCT ?z WHERE { resource:Rafael_Vallbona_i_Sallent property:occupation ?z . ?z rdf:type ontology:qualification }
[]
qualification
Q121594
SYSTEM
professor
Q121594
(Q1492,P106,c(Q3412758))
action filter_type
action find
entity Q9065931
relation P106
type Q3412758
The profession of that person is a [ANSWER]
['Q1492', 'P106', {'concept': 'Q3412758'}]
SELECT DISTINCT ?z WHERE { resource:Q9065931 property:P106 ?z . ?z rdf:type ontology:Q3412758 }
professor
The profession of that person is a professor
professor
action filter_type
action find
entity Rafael Vallbona i Sallent
relation occupation
type qualification
['Barcelona', 'occupation', {'concept': 'qualification'}]
SELECT DISTINCT ?z WHERE { resource:Rafael_Vallbona_i_Sallent property:occupation ?z . ?z rdf:type ontology:qualification }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q121594 Q18121250
P106
Q502895
USER
Does Caroline Marie Cécile Clémentine d'Anthoüard de Vraincourt have a job as that qualification ?
(Q18121250,P106,Q121594)
action is_in
entity Q18121250
action find
entity Q121594
relation P106
['Q18121250', 'P106', 'Q121594']
ASK WHERE { resource:Q121594 property:P106 resource:Q18121250 }
professor Caroline Marie Cécile Clémentine d'Anthoüard de Vraincourt
action is_in
entity Caroline Marie Cécile Clémentine d'Anthoüard de Vraincourt
action find
entity professor
relation occupation
["Caroline Marie Cécile Clémentine d'Anthoüard de Vraincourt", 'occupation', 'professor']
ASK WHERE { resource:professor property:occupation resource:Caroline_Marie_Cécile_Clémentine_d'Anthoüard_de_Vraincourt }
[]
common name
SYSTEM
NO
(Q18121250,P106,Q121594)
action is_in
entity Q18121250
action find
entity Q121594
relation P106
[ANSWER]
['Q18121250', 'P106', 'Q121594']
ASK WHERE { resource:Q121594 property:P106 resource:Q18121250 }
No
action is_in
entity Caroline Marie Cécile Clémentine d'Anthoüard de Vraincourt
action find
entity professor
relation occupation
["Caroline Marie Cécile Clémentine d'Anthoüard de Vraincourt", 'occupation', 'professor']
ASK WHERE { resource:professor property:occupation resource:Caroline_Marie_Cécile_Clémentine_d'Anthoüard_de_Vraincourt }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1492 Q7635723 Q406957
P190
Q56061
USER
Is Barcelona twin city of Sukapuram and First-level NUTS of the European Union ?
(Q1492,P190,Q7635723) (Q1492,P190,Q406957)
action is_in
entity Q1492
action intersection
action find_reverse
entity Q7635723
relation P190
action find_reverse
entity Q406957
relation P190
['Q1492', 'P190', 'Q7635723'] ['Q1492', 'P190', 'Q406957']
ASK WHERE { resource:Q1492 property:P190 resource:Q7635723 . resource:Q1492 property:P190 resource:Q406957 }
Barcelona Sukapuram First-level NUTS of the European Union
action is_in
entity Barcelona
action intersection
action find_reverse
entity Sukapuram
relation sister city
action find_reverse
entity First-level NUTS of the European Union
relation sister city
['Barcelona', 'sister city', 'Sukapuram'] ['Barcelona', 'sister city', 'First-level NUTS of the European Union']
ASK WHERE { resource:Barcelona property:sister_city resource:Sukapuram . resource:Barcelona property:sister_city resource:First-level_NUTS_of_the_European_Union }
[]
administrative territorial entity
SYSTEM
NO
(Q1492,P190,Q7635723) (Q1492,P190,Q406957)
action is_in
entity Q1492
action intersection
action find_reverse
entity Q7635723
relation P190
action find_reverse
entity Q406957
relation P190
[ANSWER]
['Q1492', 'P190', 'Q7635723'] ['Q1492', 'P190', 'Q406957']
ASK WHERE { resource:Q1492 property:P190 resource:Q7635723 . resource:Q1492 property:P190 resource:Q406957 }
No
action is_in
entity Barcelona
action intersection
action find_reverse
entity Sukapuram
relation sister city
action find_reverse
entity First-level NUTS of the European Union
relation sister city
['Barcelona', 'sister city', 'Sukapuram'] ['Barcelona', 'sister city', 'First-level NUTS of the European Union']
ASK WHERE { resource:Barcelona property:sister_city resource:Sukapuram . resource:Barcelona property:sister_city resource:First-level_NUTS_of_the_European_Union }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q9065931 Q36180
P106
Q12737077
USER
Does Rafael Vallbona i Sallent do for a living writer ?
(Q9065931,P106,Q36180)
action is_in
entity Q36180
action find
entity Q9065931
relation P106
['Q9065931', 'P106', 'Q36180']
ASK WHERE { resource:Q9065931 property:P106 resource:Q36180 }
Rafael Vallbona i Sallent writer
action is_in
entity writer
action find
entity Rafael Vallbona i Sallent
relation occupation
['Rafael Vallbona i Sallent', 'occupation', 'writer']
ASK WHERE { resource:Rafael_Vallbona_i_Sallent property:occupation resource:writer }
[]
occupation
SYSTEM
YES
(Q9065931,P106,Q36180)
action is_in
entity Q36180
action find
entity Q9065931
relation P106
[ANSWER]
['Q9065931', 'P106', 'Q36180']
ASK WHERE { resource:Q9065931 property:P106 resource:Q36180 }
Yes
action is_in
entity writer
action find
entity Rafael Vallbona i Sallent
relation occupation
['Rafael Vallbona i Sallent', 'occupation', 'writer']
ASK WHERE { resource:Rafael_Vallbona_i_Sallent property:occupation resource:writer }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q10265 Q7635723
P47 P17
Q15617994
USER
Which administrative territories are Sukapuram a part of or share the border with San Gillio ?
OR((Q7635723,P17,c(Q15617994)), (Q10265,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7635723
relation P17
action find
entity Q10265
relation P47
type Q15617994
{'OR': [['Q7635723', 'P17', {'concept': 'Q15617994'}], ['Q10265', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q7635723 property:P17 ?g } UNION { resource:Q10265 property:P47 ?g } } . ?g rdf:type ontology:Q15617994 }
San Gillio Sukapuram
action filter_type
action union
action find
entity Sukapuram
relation country
action find
entity San Gillio
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Sukapuram', 'country', {'concept': 'designation for an administrative territorial entity'}], ['San Gillio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Sukapuram property:country ?g } UNION { resource:San_Gillio property:shares_border_with ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q8968 Q9411 Q9390 Q9336 Q668 Q9569 Q9000
SYSTEM
Val della Torre, La Cassa, Givoletto, Druento, India, Pianezza, Alpignano
Q8968 Q9411 Q9390 Q9336 Q668 Q9569 Q9000
OR((Q7635723,P17,c(Q15617994)), (Q10265,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q7635723
relation P17
action find
entity Q10265
relation P47
type Q15617994
[ANSWERS] are Sukapuram a part of or share the border with San Gillio
{'OR': [['Q7635723', 'P17', {'concept': 'Q15617994'}], ['Q10265', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q7635723 property:P17 ?g } UNION { resource:Q10265 property:P47 ?g } } . ?g rdf:type ontology:Q15617994 }
Val della Torre La Cassa Givoletto Druento India Pianezza Alpignano
Val della Torre, La Cassa, Givoletto, Druento, India, Pianezza and Alpignano are Sukapuram a part of or share the border with San Gillio
Val della Torre La Cassa Givoletto Druento India Pianezza Alpignano
action filter_type
action union
action find
entity Sukapuram
relation country
action find
entity San Gillio
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Sukapuram', 'country', {'concept': 'designation for an administrative territorial entity'}], ['San Gillio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Sukapuram property:country ?g } UNION { resource:San_Gillio property:shares_border_with ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories are adjacent to that administrative territory ?
(Q9000,P47,c(Q15617994))
['Q9000', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q9000 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['Alpignano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Alpignano property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q668
SYSTEM
Did you mean India ?
(Q8968,P47,c(Q15617994)) (Q9411,P47,c(Q15617994)) (Q9390,P47,c(Q15617994)) (Q9336,P47,c(Q15617994)) (Q668,P47,c(Q15617994)) (Q9569,P47,c(Q15617994)) (Q9000,P47,c(Q15617994))
[ANSWER]
['Q8968', 'P47', {'concept': 'Q15617994'}] ['Q9411', 'P47', {'concept': 'Q15617994'}] ['Q9390', 'P47', {'concept': 'Q15617994'}] ['Q9336', 'P47', {'concept': 'Q15617994'}] ['Q668', 'P47', {'concept': 'Q15617994'}] ['Q9569', 'P47', {'concept': 'Q15617994'}] ['Q9000', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q9000 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean India ?
India
['Val della Torre', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['La Cassa', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Givoletto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Druento', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['India', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Pianezza', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Alpignano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Alpignano property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Alpignano. Could you tell me the answer for that?
(Q9000,P47,c(Q15617994))
Q9000
['Q9000', 'P47', {'concept': 'Q15617994'}]
['Alpignano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
6
Q10265 Q8968 Q9207 Q9311 Q9569 Q10231
(Q9000,P47,c(Q15617994))
[ANSWER]
['Q9000', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q9000 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
San Gillio Val della Torre Caselette Collegno Pianezza Rivoli
6
['Alpignano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Alpignano property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q30683
P1376
Q15617994 Q486972 Q515
USER
How many administrative territories have greater number of human settlements and cities have their center of administration than Beni Suef Governorate ?
(c(Q486972)|c(Q515),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q30683
relation P1376
type Q486972
type Q515
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { { ?b rdf:type ontology:Q486972 } UNION { ?b rdf:type ontology:Q515 } } . ?b property:P1376 resource:Q30683 } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:Q486972 ) ( ontology:Q515 ) } } GROUP BY ?a } }
Beni Suef Governorate
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Beni Suef Governorate
relation capital of
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { { ?b rdf:type ontology:human_settlement } UNION { ?b rdf:type ontology:city } } . ?b property:capital_of resource:Beni_Suef_Governorate } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:human_settlement ) ( ontology:city ) } } GROUP BY ?a } }
[]
designation for an administrative territorial entity human settlement city
SYSTEM
70
Q414 Q1111401 Q252 Q399 Q258 Q155 Q736 Q843 Q2007 Q1050 Q298 Q115 Q114 Q541589 Q696651 Q948 Q639100 Q702 Q833 Q790 Q796 Q794 Q889 Q884 Q881 Q541095 Q492437 Q1037 Q1033 Q1030 Q750 Q30831 Q878 Q46130 Q3044714 Q1951 Q492430 Q711 Q717 Q1948 Q27 Q225 Q222 Q47261 Q228 Q965 Q963 Q1008 Q72670 Q568751 Q2150573 Q12536 Q3342 Q842 Q3240 Q4712 Q924 Q928 Q851 Q12717 Q347 Q3462133 Q17 Q3207 Q212 Q211 Q218 Q974 Q1019 Q1011
(c(Q486972)|c(Q515),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q30683
relation P1376
type Q486972
type Q515
[ANSWER]
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { { ?b rdf:type ontology:Q486972 } UNION { ?b rdf:type ontology:Q515 } } . ?b property:P1376 resource:Q30683 } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:Q486972 ) ( ontology:Q515 ) } } GROUP BY ?a } }
Argentina Kispest District Indonesia Armenia South Africa Brazil Ecuador Pakistan Northwest Territories Swaziland Chile Ethiopia Kenya Ems-Supérieur Saxe-Eisenach Tunisia Principality of Reuss-Gera Federated States of Micronesia Malaysia Haiti Iraq Iran Afghanistan South Korea Vietnam Rhin-et-Moselle Bouches-du-Weser Rwanda Nigeria Namibia Bolivia Red Sea Governorate United Arab Emirates Rhône Ouest Alberta Bouches-de-l'Elbe Mongolia Venezuela Manitoba Ireland Bosnia and Herzegovina Albania Duchy of Bavaria Andorra Burkina Faso Botswana Côte d'Ivoire Batumi Oblast Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Bouches-du-Rhône Duchy of Burgundy Tanzania Philippines Saudi Arabia Bas-Rhin Liechtenstein Saxe-Coburg and Gotha Japan Aude Ukraine Latvia Romania Democratic Republic of the Congo Madagascar Cape Verde
70
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Beni Suef Governorate
relation capital of
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { { { ?b rdf:type ontology:human_settlement } UNION { ?b rdf:type ontology:city } } . ?b property:capital_of resource:Beni_Suef_Governorate } } . FILTER ( ?u > ?c ) . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?u ) WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:human_settlement ) ( ontology:city ) } } GROUP BY ?a } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3083
P1376
Q15617994 Q486972 Q515
USER
And also tell me about Ain?
(c(Q486972)|c(Q515),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q3083
relation P1376
type Q486972
type Q515
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?a WHERE { { ?l property:P1376 ?a . ?a rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q515 } UNION { ?l property:P1376 ?a . ?l rdf:type ontology:Q486972 . ?a rdf:type ontology:Q15617994 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:P1376 resource:Q3083 . { { ?s rdf:type ontology:Q486972 } UNION { ?s rdf:type ontology:Q515 } } } } . FILTER ( ?n > ?e ) }
Ain
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Ain
relation capital of
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?a WHERE { { ?l property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:city } UNION { ?l property:capital_of ?a . ?l rdf:type ontology:human_settlement . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:capital_of resource:Ain . { { ?s rdf:type ontology:human_settlement } UNION { ?s rdf:type ontology:city } } } } . FILTER ( ?n > ?e ) }
[]
designation for an administrative territorial entity human settlement city
SYSTEM
70
Q414 Q1111401 Q252 Q399 Q258 Q155 Q736 Q843 Q2007 Q1050 Q298 Q115 Q114 Q541589 Q696651 Q948 Q639100 Q702 Q833 Q790 Q796 Q794 Q889 Q884 Q881 Q541095 Q492437 Q1037 Q1033 Q1030 Q750 Q30831 Q878 Q46130 Q3044714 Q1951 Q492430 Q711 Q717 Q1948 Q27 Q225 Q222 Q47261 Q228 Q965 Q963 Q1008 Q72670 Q568751 Q2150573 Q12536 Q3342 Q842 Q3240 Q4712 Q924 Q928 Q851 Q12717 Q347 Q3462133 Q17 Q3207 Q212 Q211 Q218 Q974 Q1019 Q1011
(c(Q486972)|c(Q515),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action count
action filter_multi_types
action find_reverse
entity Q3083
relation P1376
type Q486972
type Q515
[ANSWER]
[[{'concept': 'Q486972'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?a WHERE { { ?l property:P1376 ?a . ?a rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q515 } UNION { ?l property:P1376 ?a . ?l rdf:type ontology:Q486972 . ?a rdf:type ontology:Q15617994 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:P1376 resource:Q3083 . { { ?s rdf:type ontology:Q486972 } UNION { ?s rdf:type ontology:Q515 } } } } . FILTER ( ?n > ?e ) }
Argentina Kispest District Indonesia Armenia South Africa Brazil Ecuador Pakistan Northwest Territories Swaziland Chile Ethiopia Kenya Ems-Supérieur Saxe-Eisenach Tunisia Principality of Reuss-Gera Federated States of Micronesia Malaysia Haiti Iraq Iran Afghanistan South Korea Vietnam Rhin-et-Moselle Bouches-du-Weser Rwanda Nigeria Namibia Bolivia Red Sea Governorate United Arab Emirates Rhône Ouest Alberta Bouches-de-l'Elbe Mongolia Venezuela Manitoba Ireland Bosnia and Herzegovina Albania Duchy of Bavaria Andorra Burkina Faso Botswana Côte d'Ivoire Batumi Oblast Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Bouches-du-Rhône Duchy of Burgundy Tanzania Philippines Saudi Arabia Bas-Rhin Liechtenstein Saxe-Coburg and Gotha Japan Aude Ukraine Latvia Romania Democratic Republic of the Congo Madagascar Cape Verde
70
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action count
action filter_multi_types
action find_reverse
entity Ain
relation capital of
type human settlement
type city
[[{'concept': 'human settlement'}, {'concept': 'city'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?a WHERE { { ?l property:capital_of ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:city } UNION { ?l property:capital_of ?a . ?l rdf:type ontology:human_settlement . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { ?s property:capital_of resource:Ain . { { ?s rdf:type ontology:human_settlement } UNION { ?s rdf:type ontology:city } } } } . FILTER ( ?n > ?e ) }
[]