Simple Question (Direct)
Simple Question
Q3758635
P27
Q7275
USER
Which state is Gaspare Bona an inhabitant of ?
(Q3758635,P27,c(Q7275))
action filter_type
action find
entity Q3758635
relation P27
type Q7275
['Q3758635', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?o WHERE { resource:Q3758635 property:P27 ?o . ?o rdf:type ontology:Q7275 }
Gaspare Bona
action filter_type
action find
entity Gaspare Bona
relation country of citizenship
type state
['Gaspare Bona', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?o WHERE { resource:Gaspare_Bona property:country_of_citizenship ?o . ?o rdf:type ontology:state }
[]
state
Q172579
SYSTEM
Kingdom of Italy
Q172579
(Q3758635,P27,c(Q7275))
action filter_type
action find
entity Q3758635
relation P27
type Q7275
The [ANSWER] is Gaspare Bona an inhabitant of
['Q3758635', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?o WHERE { resource:Q3758635 property:P27 ?o . ?o rdf:type ontology:Q7275 }
Kingdom of Italy
The Kingdom of Italy is Gaspare Bona an inhabitant of
Kingdom of Italy
action filter_type
action find
entity Gaspare Bona
relation country of citizenship
type state
['Gaspare Bona', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?o WHERE { resource:Gaspare_Bona property:country_of_citizenship ?o . ?o rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3758635
P1196
Q1190554
USER
Which situation led to the death of Gaspare Bona ?
(Q3758635,P1196,c(Q1190554))
action filter_type
action find
entity Q3758635
relation P1196
type Q1190554
['Q3758635', 'P1196', {'concept': 'Q1190554'}]
SELECT DISTINCT ?e WHERE { resource:Q3758635 property:P1196 ?e . ?e rdf:type ontology:Q1190554 }
Gaspare Bona
action filter_type
action find
entity Gaspare Bona
relation manner of death
type event
['Gaspare Bona', 'manner of death', {'concept': 'event'}]
SELECT DISTINCT ?e WHERE { resource:Gaspare_Bona property:manner_of_death ?e . ?e rdf:type ontology:event }
[]
event
Q171558
SYSTEM
accident
Q171558
(Q3758635,P1196,c(Q1190554))
action filter_type
action find
entity Q3758635
relation P1196
type Q1190554
The [ANSWER] led to the death of Gaspare Bona
['Q3758635', 'P1196', {'concept': 'Q1190554'}]
SELECT DISTINCT ?e WHERE { resource:Q3758635 property:P1196 ?e . ?e rdf:type ontology:Q1190554 }
accident
The accident led to the death of Gaspare Bona
accident
action filter_type
action find
entity Gaspare Bona
relation manner of death
type event
['Gaspare Bona', 'manner of death', {'concept': 'event'}]
SELECT DISTINCT ?e WHERE { resource:Gaspare_Bona property:manner_of_death ?e . ?e rdf:type ontology:event }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q171558 Q3308908
P1196
Q502895
USER
Did Michel Aufray die as that event ?
(Q3308908,P1196,Q171558)
action is_in
entity Q171558
action find
entity Q3308908
relation P1196
['Q3308908', 'P1196', 'Q171558']
ASK WHERE { resource:Q3308908 property:P1196 resource:Q171558 }
accident Michel Aufray
action is_in
entity accident
action find
entity Michel Aufray
relation manner of death
['Michel Aufray', 'manner of death', 'accident']
ASK WHERE { resource:Michel_Aufray property:manner_of_death resource:accident }
[]
common name
SYSTEM
YES
(Q3308908,P1196,Q171558)
action is_in
entity Q171558
action find
entity Q3308908
relation P1196
[ANSWER]
['Q3308908', 'P1196', 'Q171558']
ASK WHERE { resource:Q3308908 property:P1196 resource:Q171558 }
Yes
action is_in
entity accident
action find
entity Michel Aufray
relation manner of death
['Michel Aufray', 'manner of death', 'accident']
ASK WHERE { resource:Michel_Aufray property:manner_of_death resource:accident }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3758635 Q9210 Q5999
P20
Q15617994
USER
Did Gaspare Bona expire at Caselle Torinese and Kreuztal ?
(Q3758635,P20,Q9210) (Q3758635,P20,Q5999)
action is_in
entity Q3758635
action intersection
action find_reverse
entity Q9210
relation P20
action find_reverse
entity Q5999
relation P20
['Q3758635', 'P20', 'Q9210'] ['Q3758635', 'P20', 'Q5999']
ASK WHERE { resource:Q3758635 property:P20 resource:Q5999 . resource:Q3758635 property:P20 resource:Q9210 }
Gaspare Bona Caselle Torinese Kreuztal
action is_in
entity Gaspare Bona
action intersection
action find_reverse
entity Caselle Torinese
relation place of death
action find_reverse
entity Kreuztal
relation place of death
['Gaspare Bona', 'place of death', 'Caselle Torinese'] ['Gaspare Bona', 'place of death', 'Kreuztal']
ASK WHERE { resource:Gaspare_Bona property:place_of_death resource:Kreuztal . resource:Gaspare_Bona property:place_of_death resource:Caselle_Torinese }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q3758635,P20,Q9210) (Q3758635,P20,Q5999)
action is_in
entity Q3758635
action intersection
action find_reverse
entity Q9210
relation P20
action find_reverse
entity Q5999
relation P20
[ANSWER]
['Q3758635', 'P20', 'Q9210'] ['Q3758635', 'P20', 'Q5999']
ASK WHERE { resource:Q3758635 property:P20 resource:Q5999 . resource:Q3758635 property:P20 resource:Q9210 }
YES and NO respectively
action is_in
entity Gaspare Bona
action intersection
action find_reverse
entity Caselle Torinese
relation place of death
action find_reverse
entity Kreuztal
relation place of death
['Gaspare Bona', 'place of death', 'Caselle Torinese'] ['Gaspare Bona', 'place of death', 'Kreuztal']
ASK WHERE { resource:Gaspare_Bona property:place_of_death resource:Kreuztal . resource:Gaspare_Bona property:place_of_death resource:Caselle_Torinese }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q172579
P36
Q56061
USER
How many administrative territories are the capitals of Kingdom of Italy ?
(Q172579,P36,c(Q56061))
action count
action filter_type
action find
entity Q172579
relation P36
type Q56061
['Q172579', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Q172579 property:P36 ?z . ?z rdf:type ontology:Q56061 }
Kingdom of Italy
action count
action filter_type
action find
entity Kingdom of Italy
relation capital
type administrative territorial entity
['Kingdom of Italy', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Kingdom_of_Italy property:capital ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
3
Q495 Q2044 Q220
(Q172579,P36,c(Q56061))
action count
action filter_type
action find
entity Q172579
relation P36
type Q56061
[ANSWER]
['Q172579', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Q172579 property:P36 ?z . ?z rdf:type ontology:Q56061 }
Turin Florence Rome
3
action count
action filter_type
action find
entity Kingdom of Italy
relation capital
type administrative territorial entity
['Kingdom of Italy', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Kingdom_of_Italy property:capital ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172579
P47
Q7275
USER
Which states are bordered by that one ?
action filter_type
action find_reverse
entity Q172579
relation P47
type Q7275
SELECT DISTINCT ?g WHERE { ?g property:P47 resource:Q172579 . ?g rdf:type ontology:Q7275 }
Kingdom of Italy
action filter_type
action find_reverse
entity Kingdom of Italy
relation shares border with
type state
SELECT DISTINCT ?g WHERE { ?g property:shares_border_with resource:Kingdom_of_Italy . ?g rdf:type ontology:state }
[]
state
Q131964 Q518101 Q176495
SYSTEM
Austrian Empire, First Republic of Austria, Federal State of Austria
Q176495 Q518101 Q131964 Q1277557
action filter_type
action find_reverse
entity Q172579
relation P47
type Q7275
[ANSWERS] are bordered by that one
SELECT DISTINCT ?g WHERE { ?g property:P47 resource:Q172579 . ?g rdf:type ontology:Q7275 }
Federal State of Austria First Republic of Austria Austrian Empire Democratic Federal Yugoslavia
Austrian Empire, First Republic of Austria and Federal State of Austria are bordered by that one
Austrian Empire First Republic of Austria Federal State of Austria
action filter_type
action find_reverse
entity Kingdom of Italy
relation shares border with
type state
SELECT DISTINCT ?g WHERE { ?g property:shares_border_with resource:Kingdom_of_Italy . ?g rdf:type ontology:state }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1376
Q7275 Q515 Q56061
USER
How many states have less number of cities and administrative territories have their first city than that state ?
(c(Q515)|c(Q56061),P1376,c(Q7275))
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1376 ?y } UNION { ?x property:P1376 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q7275 . ?x rdf:type ontology:Q56061 }
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:capital_of ?y } UNION { ?x property:capital_of ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:state . ?x rdf:type ontology:administrative_territorial_entity }
[]
state city administrative territorial entity
Comparative|Count over More/Less|Mult. entity type|Clarification
Q518101
SYSTEM
Did you mean First Republic of Austria ?
(c(Q515)|c(Q56061),P1376,c(Q7275))
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1376 ?y } UNION { ?x property:P1376 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q7275 . ?x rdf:type ontology:Q56061 }
Did you mean First Republic of Austria ?
First Republic of Austria
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:capital_of ?y } UNION { ?x property:capital_of ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:state . ?x rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Austrian Empire. Could you tell me the answer for that?
(c(Q515)|c(Q56061),P1376,c(Q7275))
Q131964
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q7275'}]
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'state'}]
[]
SYSTEM
93
Q1193822 Q3456417 Q152855 Q975405 Q1688151 Q1483643 Q827040 Q2006542 Q1649871 Q2564694 Q798431 Q1269910 Q877875 Q2361927 Q402145 Q255931 Q2342822 Q863279 Q3177715 Q83821 Q953432 Q13107370 Q761370 Q321371 Q153660 Q1069905 Q216173 Q577867 Q202687 Q2419932 Q2668600 Q551375 Q146246 Q526507 Q16957 Q28322 Q736936 Q2444884 Q16949002 Q1923401 Q1135255 Q624887 Q199442 Q13706 Q156020 Q26472 Q139319 Q797422 Q235030 Q2264735 Q28511 Q10988528 Q402580 Q83572 Q1319681 Q1115291 Q894030 Q914898 Q28025 Q11704201 Q49326 Q1057118 Q2088324 Q11909456 Q16624774 Q173082 Q170588 Q842091 Q187684 Q1324889 Q994451 Q3185305 Q1148907 Q320925 Q2593459 Q571453 Q271570 Q107380 Q206696 Q112558 Q1198071 Q1062422 Q169705 Q212439 Q422065 Q777981 Q487829 Q154853 Q1148042 Q770776 Q1549254 Q7314513 Q680997
(c(Q515)|c(Q56061),P1376,c(Q7275))
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1376 ?y } UNION { ?x property:P1376 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q7275 . ?x rdf:type ontology:Q56061 }
Wuyue Republic of Saint-Malo Kingdom of Tungning Sultanate of Rum Kingdom of Thomond Nakhon Si Thammarat Kingdom Nanyue Dominion of Pakistan Kingdom of Poland Powys Fadog Republic of Dahomey Republic of Madawaska Palmyrene Empire Duchy of Masovia Mataram Sultanate Hariphunchai West Pakistan Sukhothai Kingdom Pagaruyung Kingdom Bijapur Sultanate Couto Misto Principality of Serbia Aro Confederacy Bosporan Kingdom Italian Social Republic Cheng Han Free City of Danzig Kingdom of Poland Songhai Empire Kingdom of Redonda Taifa of Niebla Grand Duchy of Westarctica Francia Later Shu East Germany Balhae Lu Tibet Lordship of Brecknock Zunghar Khanate Chinese Soviet Republic Neo-Babylonian Empire Kingdom of Aragon Principality of Sealand State of the Teutonic Order Kingdom of Dali Russian Republic Republic of Upper Volta Principality of Antioch Arthedain Buyeo kingdom Second East Turkestan Republic Medang Kingdom Sikh Empire Qi Thonburi Kingdom Bornu Empire Kingdom of Khotan Ryukyu Kingdom Taifa of Arjona Majapahit Chenla Kingdom Colonial Brazil Bit Agusi Kingdom of Nicoya Dacia Republic of Texas Duchy of Normandy Despotate of Epirus Germiyanids Western Liang Kingdom of Israel State of Katanga Shu Han Provisional Government of Hawaii Former Shu Kingdom of Araucanía and Patagonia History of Lippe Helvetic Republic Republic of Saugeais Southern Han Konbaung Dynasty Xia dynasty Cossack Hetmanate Sultanate of Sulu Duchy of the Archipelago Chagatai Khanate Diauehi Qutb Shahi dynasty Dutch Gold Coast Principality of Seborga Republic of South Carolina Principality of Lower Pannonia
93
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:capital_of ?y } UNION { ?x property:capital_of ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:state . ?x rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q7275 Q20667921 Q515
USER
Which states have max number of french administrative divisions or cities have their first city ?
(c(Q20667921)|c(Q515),P1376,c(Q7275))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?l ) WHERE { VALUES ( ?y ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?x rdf:type ?y } GROUP BY ?d } . FILTER ( ?l = ?w ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?w ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?p ) WHERE { VALUES ( ?a ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?z rdf:type ?a } GROUP BY ?k } } }
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type state
type city
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?l ) WHERE { VALUES ( ?y ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?x rdf:type ?y } GROUP BY ?d } . FILTER ( ?l = ?w ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?w ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?p ) WHERE { VALUES ( ?a ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?z rdf:type ?a } GROUP BY ?k } } }
[]
state type of french administrative division city
Q13426199
SYSTEM
Republic of China
Q13426199
(c(Q20667921)|c(Q515),P1376,c(Q7275))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
[ANSWER] have max number of french administrative divisions or cities have their first city
[[{'concept': 'Q20667921'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?l ) WHERE { VALUES ( ?y ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?x rdf:type ?y } GROUP BY ?d } . FILTER ( ?l = ?w ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?w ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?p ) WHERE { VALUES ( ?a ) { ( ontology:Q515 ) ( ontology:Q20667921 ) } . ?z rdf:type ?a } GROUP BY ?k } } }
Republic of China
Republic of China have max number of french administrative divisions or cities have their first city
Republic of China
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type state
type city
[[{'concept': 'type of french administrative division'}, {'concept': 'city'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?l ) WHERE { VALUES ( ?y ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?x rdf:type ?y } GROUP BY ?d } . FILTER ( ?l = ?w ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?w ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?p ) WHERE { VALUES ( ?a ) { ( ontology:city ) ( ontology:type_of_french_administrative_division ) } . ?z rdf:type ?a } GROUP BY ?k } } }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q13426199 Q5275552 Q1649852
P36
Q56061
USER
Does that state contains Digana and Ituverava as its capital ?
(Q13426199,P36,Q5275552) (Q13426199,P36,Q1649852)
action is_in
entity Q13426199
action intersection
action find_reverse
entity Q5275552
relation P36
action find_reverse
entity Q1649852
relation P36
['Q13426199', 'P36', 'Q5275552'] ['Q13426199', 'P36', 'Q1649852']
ASK WHERE { resource:Q13426199 property:P36 resource:Q5275552 . resource:Q13426199 property:P36 resource:Q1649852 }
Republic of China Digana Ituverava
action is_in
entity Republic of China
action intersection
action find_reverse
entity Digana
relation capital
action find_reverse
entity Ituverava
relation capital
['Republic of China', 'capital', 'Digana'] ['Republic of China', 'capital', 'Ituverava']
ASK WHERE { resource:Republic_of_China property:capital resource:Digana . resource:Republic_of_China property:capital resource:Ituverava }
[]
administrative territorial entity
SYSTEM
NO
(Q13426199,P36,Q5275552) (Q13426199,P36,Q1649852)
action is_in
entity Q13426199
action intersection
action find_reverse
entity Q5275552
relation P36
action find_reverse
entity Q1649852
relation P36
[ANSWER]
['Q13426199', 'P36', 'Q5275552'] ['Q13426199', 'P36', 'Q1649852']
ASK WHERE { resource:Q13426199 property:P36 resource:Q5275552 . resource:Q13426199 property:P36 resource:Q1649852 }
No
action is_in
entity Republic of China
action intersection
action find_reverse
entity Digana
relation capital
action find_reverse
entity Ituverava
relation capital
['Republic of China', 'capital', 'Digana'] ['Republic of China', 'capital', 'Ituverava']
ASK WHERE { resource:Republic_of_China property:capital resource:Digana . resource:Republic_of_China property:capital resource:Ituverava }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q976034 Q172579
P36
Q56061
USER
Which administrative territories are called the capital of Kingdom of Italy or Pasco Province ?
OR((Q172579,P36,c(Q56061)), (Q976034,P36,c(Q56061)))
action filter_type
action union
action find
entity Q172579
relation P36
action find
entity Q976034
relation P36
type Q56061
{'OR': [['Q172579', 'P36', {'concept': 'Q56061'}], ['Q976034', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . { VALUES ( ?j ) { ( resource:Q172579 ) ( resource:Q976034 ) } . ?j property:P36 ?u } }
Pasco Province Kingdom of Italy
action filter_type
action union
action find
entity Kingdom of Italy
relation capital
action find
entity Pasco Province
relation capital
type administrative territorial entity
{'OR': [['Kingdom of Italy', 'capital', {'concept': 'administrative territorial entity'}], ['Pasco Province', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . { VALUES ( ?j ) { ( resource:Kingdom_of_Italy ) ( resource:Pasco_Province ) } . ?j property:capital ?u } }
[]
administrative territorial entity
Q674320 Q495 Q2044 Q220
SYSTEM
Cerro de Pasco, Turin, Florence, Rome
Q674320 Q495 Q2044 Q220
OR((Q172579,P36,c(Q56061)), (Q976034,P36,c(Q56061)))
action filter_type
action union
action find
entity Q172579
relation P36
action find
entity Q976034
relation P36
type Q56061
[ANSWERS] are called the capital of Kingdom of Italy or Pasco Province
{'OR': [['Q172579', 'P36', {'concept': 'Q56061'}], ['Q976034', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . { VALUES ( ?j ) { ( resource:Q172579 ) ( resource:Q976034 ) } . ?j property:P36 ?u } }
Cerro de Pasco Turin Florence Rome
Cerro de Pasco, Turin, Florence and Rome are called the capital of Kingdom of Italy or Pasco Province
Cerro de Pasco Turin Florence Rome
action filter_type
action union
action find
entity Kingdom of Italy
relation capital
action find
entity Pasco Province
relation capital
type administrative territorial entity
{'OR': [['Kingdom of Italy', 'capital', {'concept': 'administrative territorial entity'}], ['Pasco Province', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . { VALUES ( ?j ) { ( resource:Kingdom_of_Italy ) ( resource:Pasco_Province ) } . ?j property:capital ?u } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q674320 Q376003
P190
Q13220204
USER
How many administrative country subdivisions are partner town of Cerro de Pasco or Bjurholm Municipality ?
(c(Q13220204),P190,Q674320) (c(Q13220204),P190,Q376003)
action count
action union
action filter_type
action find_reverse
entity Q674320
relation P190
type Q13220204
action filter_type
action find_reverse
entity Q376003
relation P190
type Q13220204
[{'concept': 'Q13220204'}, 'P190', 'Q674320'] [{'concept': 'Q13220204'}, 'P190', 'Q376003']
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { VALUES ( ?i ) { ( resource:Q674320 ) ( resource:Q376003 ) } . ?o property:P190 ?i }
Cerro de Pasco Bjurholm Municipality
action count
action union
action filter_type
action find_reverse
entity Cerro de Pasco
relation sister city
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Bjurholm Municipality
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Cerro de Pasco'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Bjurholm Municipality']
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { VALUES ( ?i ) { ( resource:Cerro_de_Pasco ) ( resource:Bjurholm_Municipality ) } . ?o property:sister_city ?i }
[]
second-level administrative country subdivision
SYSTEM
2
Q493315 Q1722
(c(Q13220204),P190,Q674320) (c(Q13220204),P190,Q376003)
action count
action union
action filter_type
action find_reverse
entity Q674320
relation P190
type Q13220204
action filter_type
action find_reverse
entity Q376003
relation P190
type Q13220204
[ANSWER]
[{'concept': 'Q13220204'}, 'P190', 'Q674320'] [{'concept': 'Q13220204'}, 'P190', 'Q376003']
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { VALUES ( ?i ) { ( resource:Q674320 ) ( resource:Q376003 ) } . ?o property:P190 ?i }
Bardu Dubrovnik
2
action count
action union
action filter_type
action find_reverse
entity Cerro de Pasco
relation sister city
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Bjurholm Municipality
relation sister city
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Cerro de Pasco'] [{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Bjurholm Municipality']
SELECT DISTINCT ( COUNT ( ?o ) AS ?e ) WHERE { VALUES ( ?i ) { ( resource:Cerro_de_Pasco ) ( resource:Bjurholm_Municipality ) } . ?o property:sister_city ?i }
[]