Simple Question (Direct)
Simple Question
Q1613526
P20
Q56061
USER
Where did Hermes Fontes die ?
(Q1613526,P20,c(Q56061))
action filter_type
action find
entity Q1613526
relation P20
type Q56061
['Q1613526', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1613526 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Hermes Fontes
action filter_type
action find
entity Hermes Fontes
relation place of death
type administrative territorial entity
['Hermes Fontes', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Hermes_Fontes property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8678
SYSTEM
Rio de Janeiro
Q8678
(Q1613526,P20,c(Q56061))
action filter_type
action find
entity Q1613526
relation P20
type Q56061
Hermes Fontes died in [ANSWER]
['Q1613526', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q1613526 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Rio de Janeiro
Hermes Fontes died in Rio de Janeiro
Rio de Janeiro
action filter_type
action find
entity Hermes Fontes
relation place of death
type administrative territorial entity
['Hermes Fontes', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Hermes_Fontes property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8678
P36
Q7275
USER
Which states have that administrative territory as their administrative centre ?
(c(Q7275),P36,Q8678)
action filter_type
action find_reverse
entity Q8678
relation P36
type Q7275
[{'concept': 'Q7275'}, 'P36', 'Q8678']
SELECT DISTINCT ?z WHERE { ?z property:P36 resource:Q8678 . ?z rdf:type ontology:Q7275 }
Rio de Janeiro
action filter_type
action find_reverse
entity Rio de Janeiro
relation capital
type state
[{'concept': 'state'}, 'capital', 'Rio de Janeiro']
SELECT DISTINCT ?z WHERE { ?z property:capital resource:Rio_de_Janeiro . ?z rdf:type ontology:state }
[]
state
Q11876909 Q210542 Q903779
SYSTEM
State of Brazil, Second Brazilian Republic, United Kingdom of Portugal, Brazil and the Algarves
Q11876909 Q2414171 Q210542 Q903779
(c(Q7275),P36,Q8678)
action filter_type
action find_reverse
entity Q8678
relation P36
type Q7275
[ANSWERS]
[{'concept': 'Q7275'}, 'P36', 'Q8678']
SELECT DISTINCT ?z WHERE { ?z property:P36 resource:Q8678 . ?z rdf:type ontology:Q7275 }
State of Brazil First Brazilian Republic Second Brazilian Republic United Kingdom of Portugal, Brazil and the Algarves
State of Brazil, Second Brazilian Republic and United Kingdom of Portugal, Brazil and the Algarves have that administrative territory as their administrative centre
State of Brazil Second Brazilian Republic United Kingdom of Portugal, Brazil and the Algarves
action filter_type
action find_reverse
entity Rio de Janeiro
relation capital
type state
[{'concept': 'state'}, 'capital', 'Rio de Janeiro']
SELECT DISTINCT ?z WHERE { ?z property:capital resource:Rio_de_Janeiro . ?z rdf:type ontology:state }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5859187
P1376
Q56061
USER
Are Qaleh, Kermanshah the county seat for those states ?
(Q5859187,P1376,Q11876909) (Q5859187,P1376,Q210542) (Q5859187,P1376,Q903779)
action is_in
entity prev_answer
action find
entity Q5859187
relation P1376
['Q5859187', 'P1376', 'Q11876909'] ['Q5859187', 'P1376', 'Q210542'] ['Q5859187', 'P1376', 'Q903779']
ASK WHERE { resource:Q5859187 property:P1376 ?i . VALUES ( ?i ) { ( resource:Q11876909 ) ( resource:Q2414171 ) ( resource:Q210542 ) } }
Qaleh, Kermanshah
action is_in
entity prev_answer
action find
entity Qaleh, Kermanshah
relation capital of
['Qaleh, Kermanshah', 'capital of', 'State of Brazil'] ['Qaleh, Kermanshah', 'capital of', 'Second Brazilian Republic'] ['Qaleh, Kermanshah', 'capital of', 'United Kingdom of Portugal, Brazil and the Algarves']
ASK WHERE { resource:Qaleh,_Kermanshah property:capital_of ?i . VALUES ( ?i ) { ( resource:State_of_Brazil ) ( resource:First_Brazilian_Republic ) ( resource:Second_Brazilian_Republic ) } }
[]
administrative territorial entity
SYSTEM
NO
(Q5859187,P1376,Q11876909) (Q5859187,P1376,Q210542) (Q5859187,P1376,Q903779)
action is_in
entity prev_answer
action find
entity Q5859187
relation P1376
[ANSWER]
['Q5859187', 'P1376', 'Q11876909'] ['Q5859187', 'P1376', 'Q210542'] ['Q5859187', 'P1376', 'Q903779']
ASK WHERE { resource:Q5859187 property:P1376 ?i . VALUES ( ?i ) { ( resource:Q11876909 ) ( resource:Q2414171 ) ( resource:Q210542 ) } }
No
action is_in
entity prev_answer
action find
entity Qaleh, Kermanshah
relation capital of
['Qaleh, Kermanshah', 'capital of', 'State of Brazil'] ['Qaleh, Kermanshah', 'capital of', 'Second Brazilian Republic'] ['Qaleh, Kermanshah', 'capital of', 'United Kingdom of Portugal, Brazil and the Algarves']
ASK WHERE { resource:Qaleh,_Kermanshah property:capital_of ?i . VALUES ( ?i ) { ( resource:State_of_Brazil ) ( resource:First_Brazilian_Republic ) ( resource:Second_Brazilian_Republic ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1613526 Q155
P27
Q15617994
USER
Is Hermes Fontes a civilian of Brazil ?
(Q1613526,P27,Q155)
action is_in
entity Q155
action find
entity Q1613526
relation P27
['Q1613526', 'P27', 'Q155']
ASK WHERE { resource:Q1613526 property:P27 resource:Q155 }
Hermes Fontes Brazil
action is_in
entity Brazil
action find
entity Hermes Fontes
relation country of citizenship
['Hermes Fontes', 'country of citizenship', 'Brazil']
ASK WHERE { resource:Hermes_Fontes property:country_of_citizenship resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1613526,P27,Q155)
action is_in
entity Q155
action find
entity Q1613526
relation P27
[ANSWER]
['Q1613526', 'P27', 'Q155']
ASK WHERE { resource:Q1613526 property:P27 resource:Q155 }
Yes
action is_in
entity Brazil
action find
entity Hermes Fontes
relation country of citizenship
['Hermes Fontes', 'country of citizenship', 'Brazil']
ASK WHERE { resource:Hermes_Fontes property:country_of_citizenship resource:Brazil }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q903779 Q6792524 Q4196459
P36
Q56061
USER
Does United Kingdom of Portugal, Brazil and the Algarves have Maunby and Ivanivka as its capital ?
(Q903779,P36,Q6792524) (Q903779,P36,Q4196459)
action is_in
entity Q903779
action intersection
action find_reverse
entity Q6792524
relation P36
action find_reverse
entity Q4196459
relation P36
['Q903779', 'P36', 'Q6792524'] ['Q903779', 'P36', 'Q4196459']
ASK WHERE { resource:Q903779 property:P36 resource:Q6792524 . resource:Q903779 property:P36 resource:Q4196459 }
United Kingdom of Portugal, Brazil and the Algarves Maunby Ivanivka
action is_in
entity United Kingdom of Portugal, Brazil and the Algarves
action intersection
action find_reverse
entity Maunby
relation capital
action find_reverse
entity Ivanivka
relation capital
['United Kingdom of Portugal, Brazil and the Algarves', 'capital', 'Maunby'] ['United Kingdom of Portugal, Brazil and the Algarves', 'capital', 'Ivanivka']
ASK WHERE { resource:United_Kingdom_of_Portugal,_Brazil_and_the_Algarves property:capital resource:Maunby . resource:United_Kingdom_of_Portugal,_Brazil_and_the_Algarves property:capital resource:Ivanivka }
[]
administrative territorial entity
SYSTEM
NO
(Q903779,P36,Q6792524) (Q903779,P36,Q4196459)
action is_in
entity Q903779
action intersection
action find_reverse
entity Q6792524
relation P36
action find_reverse
entity Q4196459
relation P36
[ANSWER]
['Q903779', 'P36', 'Q6792524'] ['Q903779', 'P36', 'Q4196459']
ASK WHERE { resource:Q903779 property:P36 resource:Q6792524 . resource:Q903779 property:P36 resource:Q4196459 }
No
action is_in
entity United Kingdom of Portugal, Brazil and the Algarves
action intersection
action find_reverse
entity Maunby
relation capital
action find_reverse
entity Ivanivka
relation capital
['United Kingdom of Portugal, Brazil and the Algarves', 'capital', 'Maunby'] ['United Kingdom of Portugal, Brazil and the Algarves', 'capital', 'Ivanivka']
ASK WHERE { resource:United_Kingdom_of_Portugal,_Brazil_and_the_Algarves property:capital resource:Maunby . resource:United_Kingdom_of_Portugal,_Brazil_and_the_Algarves property:capital resource:Ivanivka }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q11876909 Q590104 Q8678
P36
Q56061
USER
Is Babua Kalan and Rio de Janeiro the capital of State of Brazil ?
(Q11876909,P36,Q590104) (Q11876909,P36,Q8678)
action is_in
entity Q11876909
action intersection
action find_reverse
entity Q590104
relation P36
action find_reverse
entity Q8678
relation P36
['Q11876909', 'P36', 'Q590104'] ['Q11876909', 'P36', 'Q8678']
ASK WHERE { resource:Q11876909 property:P36 resource:Q590104 . resource:Q11876909 property:P36 resource:Q8678 }
State of Brazil Babua Kalan Rio de Janeiro
action is_in
entity State of Brazil
action intersection
action find_reverse
entity Babua Kalan
relation capital
action find_reverse
entity Rio de Janeiro
relation capital
['State of Brazil', 'capital', 'Babua Kalan'] ['State of Brazil', 'capital', 'Rio de Janeiro']
ASK WHERE { resource:State_of_Brazil property:capital resource:Babua_Kalan . resource:State_of_Brazil property:capital resource:Rio_de_Janeiro }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q11876909,P36,Q590104) (Q11876909,P36,Q8678)
action is_in
entity Q11876909
action intersection
action find_reverse
entity Q590104
relation P36
action find_reverse
entity Q8678
relation P36
[ANSWER]
['Q11876909', 'P36', 'Q590104'] ['Q11876909', 'P36', 'Q8678']
ASK WHERE { resource:Q11876909 property:P36 resource:Q590104 . resource:Q11876909 property:P36 resource:Q8678 }
NO and YES respectively
action is_in
entity State of Brazil
action intersection
action find_reverse
entity Babua Kalan
relation capital
action find_reverse
entity Rio de Janeiro
relation capital
['State of Brazil', 'capital', 'Babua Kalan'] ['State of Brazil', 'capital', 'Rio de Janeiro']
ASK WHERE { resource:State_of_Brazil property:capital resource:Babua_Kalan . resource:State_of_Brazil property:capital resource:Rio_de_Janeiro }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q7257 Q22676587 Q7275
USER
Which states have atleast 1 ideologies and monarchic systems as the type of government ?
(c(Q7275),P122,c(Q7257)|c(Q22676587))
action atleast
action union
action find_tuple_counts
relation P122
type Q7275
type Q7257
action find_tuple_counts
relation P122
type Q7275
type Q22676587
value 1
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q7257'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?s ) WHERE { { ?e property:P122 ?f . ?e rdf:type ontology:Q7275 . ?f rdf:type ontology:Q7257 } UNION { ?e rdf:type ontology:Q7275 . ?f rdf:type ontology:Q22676587 . ?e property:P122 ?f } } GROUP BY ?e } . FILTER ( ?s >= 1 ) }
action atleast
action union
action find_tuple_counts
relation basic form of government
type state
type ideology
action find_tuple_counts
relation basic form of government
type state
type monarchic system
value 1
[{'concept': 'state'}, 'basic form of government', [{'concept': 'ideology'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?s ) WHERE { { ?e property:basic_form_of_government ?f . ?e rdf:type ontology:state . ?f rdf:type ontology:ideology } UNION { ?e rdf:type ontology:state . ?f rdf:type ontology:monarchic_system . ?e property:basic_form_of_government ?f } } GROUP BY ?e } . FILTER ( ?s >= 1 ) }
[]
ideology monarchic system state
Q16957 Q330988 Q172107
SYSTEM
East Germany, Democratic Kampuchea, Polish–Lithuanian Commonwealth
Q172107 Q330988 Q83572 Q16957 Q1649871 Q853348 Q940821 Q199841 Q121932 Q211274
(c(Q7275),P122,c(Q7257)|c(Q22676587))
action atleast
action union
action find_tuple_counts
relation P122
type Q7275
type Q7257
action find_tuple_counts
relation P122
type Q7275
type Q22676587
value 1
[ANSWERS] have atleast 1 ideologies and monarchic systems as the type of government
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q7257'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?s ) WHERE { { ?e property:P122 ?f . ?e rdf:type ontology:Q7275 . ?f rdf:type ontology:Q7257 } UNION { ?e rdf:type ontology:Q7275 . ?f rdf:type ontology:Q22676587 . ?e property:P122 ?f } } GROUP BY ?e } . FILTER ( ?s >= 1 ) }
Polish–Lithuanian Commonwealth Democratic Kampuchea Sikh Empire East Germany Kingdom of Poland Czechoslovak Socialist Republic People's Democratic Republic of Ethiopia South Yemen People's Republic of Bulgaria People's Republic of Poland
East Germany, Democratic Kampuchea and Polish–Lithuanian Commonwealth have atleast 1 ideologies and monarchic systems as the type of government
East Germany Democratic Kampuchea Polish–Lithuanian Commonwealth
action atleast
action union
action find_tuple_counts
relation basic form of government
type state
type ideology
action find_tuple_counts
relation basic form of government
type state
type monarchic system
value 1
[{'concept': 'state'}, 'basic form of government', [{'concept': 'ideology'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?s ) WHERE { { ?e property:basic_form_of_government ?f . ?e rdf:type ontology:state . ?f rdf:type ontology:ideology } UNION { ?e rdf:type ontology:state . ?f rdf:type ontology:monarchic_system . ?e property:basic_form_of_government ?f } } GROUP BY ?e } . FILTER ( ?s >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q646200 Q903779
P1376
Q56061
USER
Which administrative territories are the county seat for United Kingdom of Portugal, Brazil and the Algarves or Shire of Towong ?
OR((c(Q56061),P1376,Q903779), (c(Q56061),P1376,Q646200))
action filter_type
action union
action find_reverse
entity Q903779
relation P1376
action find_reverse
entity Q646200
relation P1376
type Q56061
{'OR': [[{'concept': 'Q56061'}, 'P1376', 'Q903779'], [{'concept': 'Q56061'}, 'P1376', 'Q646200']]}
SELECT DISTINCT ?g WHERE { { { ?g property:P1376 resource:Q903779 } UNION { ?g property:P1376 resource:Q646200 } } . ?g rdf:type ontology:Q56061 }
Shire of Towong United Kingdom of Portugal, Brazil and the Algarves
action filter_type
action union
action find_reverse
entity United Kingdom of Portugal, Brazil and the Algarves
relation capital of
action find_reverse
entity Shire of Towong
relation capital of
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'capital of', 'United Kingdom of Portugal, Brazil and the Algarves'], [{'concept': 'administrative territorial entity'}, 'capital of', 'Shire of Towong']]}
SELECT DISTINCT ?g WHERE { { { ?g property:capital_of resource:United_Kingdom_of_Portugal,_Brazil_and_the_Algarves } UNION { ?g property:capital_of resource:Shire_of_Towong } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8678 Q595043
SYSTEM
Rio de Janeiro, Tallangatta
Q8678 Q595043
OR((c(Q56061),P1376,Q903779), (c(Q56061),P1376,Q646200))
action filter_type
action union
action find_reverse
entity Q903779
relation P1376
action find_reverse
entity Q646200
relation P1376
type Q56061
[ANSWERS] are the county seat for United Kingdom of Portugal, Brazil and the Algarves or Shire of Towong
{'OR': [[{'concept': 'Q56061'}, 'P1376', 'Q903779'], [{'concept': 'Q56061'}, 'P1376', 'Q646200']]}
SELECT DISTINCT ?g WHERE { { { ?g property:P1376 resource:Q903779 } UNION { ?g property:P1376 resource:Q646200 } } . ?g rdf:type ontology:Q56061 }
Rio de Janeiro Tallangatta
Rio de Janeiro and Tallangatta are the county seat for United Kingdom of Portugal, Brazil and the Algarves or Shire of Towong
Rio de Janeiro Tallangatta
action filter_type
action union
action find_reverse
entity United Kingdom of Portugal, Brazil and the Algarves
relation capital of
action find_reverse
entity Shire of Towong
relation capital of
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'capital of', 'United Kingdom of Portugal, Brazil and the Algarves'], [{'concept': 'administrative territorial entity'}, 'capital of', 'Shire of Towong']]}
SELECT DISTINCT ?g WHERE { { { ?g property:capital_of resource:United_Kingdom_of_Portugal,_Brazil_and_the_Algarves } UNION { ?g property:capital_of resource:Shire_of_Towong } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q8678 Q487704
P190
Q56061
USER
How many administrative territories are twin town of Rio de Janeiro and Honolulu County ?
(c(Q56061),P190,Q8678) (c(Q56061),P190,Q487704)
action count
action intersection
action filter_type
action find_reverse
entity Q8678
relation P190
type Q56061
action filter_type
action find_reverse
entity Q487704
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q8678'] [{'concept': 'Q56061'}, 'P190', 'Q487704']
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { ?o property:P190 resource:Q8678 . ?o rdf:type ontology:Q56061 . ?o rdf:type ontology:Q56061 . ?o property:P190 resource:Q487704 }
Rio de Janeiro Honolulu County
action count
action intersection
action filter_type
action find_reverse
entity Rio de Janeiro
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Honolulu County
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Rio de Janeiro'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Honolulu County']
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { ?o property:sister_city resource:Rio_de_Janeiro . ?o rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:administrative_territorial_entity . ?o property:sister_city resource:Honolulu_County }
[]
administrative territorial entity
SYSTEM
2
Q181557 Q9248
(c(Q56061),P190,Q8678) (c(Q56061),P190,Q487704)
action count
action intersection
action filter_type
action find_reverse
entity Q8678
relation P190
type Q56061
action filter_type
action find_reverse
entity Q487704
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q8678'] [{'concept': 'Q56061'}, 'P190', 'Q487704']
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { ?o property:P190 resource:Q8678 . ?o rdf:type ontology:Q56061 . ?o rdf:type ontology:Q56061 . ?o property:P190 resource:Q487704 }
Kaohsiung City Baku
2
action count
action intersection
action filter_type
action find_reverse
entity Rio de Janeiro
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Honolulu County
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Rio de Janeiro'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Honolulu County']
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { ?o property:sister_city resource:Rio_de_Janeiro . ?o rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:administrative_territorial_entity . ?o property:sister_city resource:Honolulu_County }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q433066
P417
Q1445650 Q502895 Q56061
USER
How many administrative territories are around the same number of holidays or people a patron saint of as Moos in Passeier ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q433066
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Q433066 property:P417 ?m . { VALUES ( ?q ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?m rdf:type ?q } } } . FILTER ( ?b = ?t ) . { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?b ) WHERE { VALUES ( ?o ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?p rdf:type ?o } GROUP BY ?j } }
Moos in Passeier
action count
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Moos in Passeier
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Moos_in_Passeier property:patron_saint ?m . { VALUES ( ?q ) { ( ontology:holiday ) ( ontology:common_name ) } . ?m rdf:type ?q } } } . FILTER ( ?b = ?t ) . { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?b ) WHERE { VALUES ( ?o ) { ( ontology:holiday ) ( ontology:common_name ) } . ?p rdf:type ?o } GROUP BY ?j } }
[]
holiday common name administrative territorial entity
SYSTEM
95
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q433066
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Q433066 property:P417 ?m . { VALUES ( ?q ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?m rdf:type ?q } } } . FILTER ( ?b = ?t ) . { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?b ) WHERE { VALUES ( ?o ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?p rdf:type ?o } GROUP BY ?j } }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
95
action count
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Moos in Passeier
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?t ) WHERE { resource:Moos_in_Passeier property:patron_saint ?m . { VALUES ( ?q ) { ( ontology:holiday ) ( ontology:common_name ) } . ?m rdf:type ?q } } } . FILTER ( ?b = ?t ) . { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?b ) WHERE { VALUES ( ?o ) { ( ontology:holiday ) ( ontology:common_name ) } . ?p rdf:type ?o } GROUP BY ?j } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q59257
P417
Q1445650 Q502895 Q56061
USER
And how about Montefortino?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q59257
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Q59257 property:P417 ?l . { { ?l rdf:type ontology:Q1445650 } UNION { ?l rdf:type ontology:Q502895 } } } } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?p WHERE { { ?p property:P417 ?k . ?p rdf:type ontology:Q56061 . ?k rdf:type ontology:Q1445650 } UNION { ?p property:P417 ?k . ?p rdf:type ontology:Q56061 . ?k rdf:type ontology:Q502895 } } GROUP BY ?p } }
Montefortino
action count
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Montefortino
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Montefortino property:patron_saint ?l . { { ?l rdf:type ontology:holiday } UNION { ?l rdf:type ontology:common_name } } } } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?p WHERE { { ?p property:patron_saint ?k . ?p rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:holiday } UNION { ?p property:patron_saint ?k . ?p rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:common_name } } GROUP BY ?p } }
[]
holiday common name administrative territorial entity
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q59257
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Q59257 property:P417 ?l . { { ?l rdf:type ontology:Q1445650 } UNION { ?l rdf:type ontology:Q502895 } } } } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?p WHERE { { ?p property:P417 ?k . ?p rdf:type ontology:Q56061 . ?k rdf:type ontology:Q1445650 } UNION { ?p property:P417 ?k . ?p rdf:type ontology:Q56061 . ?k rdf:type ontology:Q502895 } } GROUP BY ?p } }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
action count
action approx
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Montefortino
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { resource:Montefortino property:patron_saint ?l . { { ?l rdf:type ontology:holiday } UNION { ?l rdf:type ontology:common_name } } } } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) ?p WHERE { { ?p property:patron_saint ?k . ?p rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:holiday } UNION { ?p property:patron_saint ?k . ?p rdf:type ontology:administrative_territorial_entity . ?k rdf:type ontology:common_name } } GROUP BY ?p } }
[]