Simple Question (Direct)
Simple Question
Q1555554
P937
Q56061
USER
Which is the work location of Gustav Adolf Saxer ?
(Q1555554,P937,c(Q56061))
action filter_type
action find
entity Q1555554
relation P937
type Q56061
['Q1555554', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q1555554 property:P937 ?f . ?f rdf:type ontology:Q56061 }
Gustav Adolf Saxer
action filter_type
action find
entity Gustav Adolf Saxer
relation work location
type administrative territorial entity
['Gustav Adolf Saxer', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Gustav_Adolf_Saxer property:work_location ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q70
SYSTEM
Bern
Q70
(Q1555554,P937,c(Q56061))
action filter_type
action find
entity Q1555554
relation P937
type Q56061
[ANSWER] is the work location of Gustav Adolf Saxer
['Q1555554', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q1555554 property:P937 ?f . ?f rdf:type ontology:Q56061 }
Bern
Bern is the work location of Gustav Adolf Saxer
Bern
action filter_type
action find
entity Gustav Adolf Saxer
relation work location
type administrative territorial entity
['Gustav Adolf Saxer', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Gustav_Adolf_Saxer property:work_location ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q70
P36
Q15617994
USER
Which administrative territory consists of that administrative territory as its capital ?
(c(Q15617994),P36,Q70)
action filter_type
action find_reverse
entity Q70
relation P36
type Q15617994
[{'concept': 'Q15617994'}, 'P36', 'Q70']
SELECT DISTINCT ?d WHERE { ?d property:P36 resource:Q70 . ?d rdf:type ontology:Q15617994 }
Bern
action filter_type
action find_reverse
entity Bern
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Bern']
SELECT DISTINCT ?d WHERE { ?d property:capital resource:Bern . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(c(Q15617994),P36,Q70)
action filter_type
action find_reverse
entity Q70
relation P36
type Q15617994
[ANSWER] consists of that administrative territory as its capital
[{'concept': 'Q15617994'}, 'P36', 'Q70']
SELECT DISTINCT ?d WHERE { ?d property:P36 resource:Q70 . ?d rdf:type ontology:Q15617994 }
Switzerland
Switzerland consists of that administrative territory as its capital
Switzerland
action filter_type
action find_reverse
entity Bern
relation capital
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Bern']
SELECT DISTINCT ?d WHERE { ?d property:capital resource:Bern . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q39 Q183
P47
Q1048835
USER
Is Germany adjacent to that administrative territory ?
(Q39,P47,Q183)
action is_in
entity Q183
action find
entity Q39
relation P47
['Q39', 'P47', 'Q183']
ASK WHERE { resource:Q39 property:P47 resource:Q183 }
Switzerland Germany
action is_in
entity Germany
action find
entity Switzerland
relation shares border with
['Switzerland', 'shares border with', 'Germany']
ASK WHERE { resource:Switzerland property:shares_border_with resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q39,P47,Q183)
action is_in
entity Q183
action find
entity Q39
relation P47
[ANSWER]
['Q39', 'P47', 'Q183']
ASK WHERE { resource:Q39 property:P47 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Switzerland
relation shares border with
['Switzerland', 'shares border with', 'Germany']
ASK WHERE { resource:Switzerland property:shares_border_with resource:Germany }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q43229 Q1307214 Q15617994
USER
How many administrative territories have around 1 organizations and forms of government as the form of government ?
(c(Q15617994),P122,c(Q43229)|c(Q1307214))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q43229'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?b ) WHERE { ?c rdf:type ?a . VALUES ( ?a ) { ( ontology:Q43229 ) ( ontology:Q1307214 ) } } GROUP BY ?u } . FILTER ( ?b = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'organization'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?b ) WHERE { ?c rdf:type ?a . VALUES ( ?a ) { ( ontology:organization ) ( ontology:form_of_government ) } } GROUP BY ?u } . FILTER ( ?b = 1 ) }
[]
organization form of government designation for an administrative territorial entity
SYSTEM
11
Q154547 Q165116 Q208500 Q794 Q889 Q32 Q423 Q280312 Q238 Q347 Q199688
(c(Q15617994),P122,c(Q43229)|c(Q1307214))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action find_tuple_counts
relation P122
type Q15617994
type Q1307214
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q43229'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?b ) WHERE { ?c rdf:type ?a . VALUES ( ?a ) { ( ontology:Q43229 ) ( ontology:Q1307214 ) } } GROUP BY ?u } . FILTER ( ?b = 1 ) }
duchy grand duchy principality Iran Afghanistan Luxembourg North Korea Principality of Lüneburg San Marino Liechtenstein Almohad
11
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type form of government
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'organization'}, {'concept': 'form of government'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?b ) WHERE { ?c rdf:type ?a . VALUES ( ?a ) { ( ontology:organization ) ( ontology:form_of_government ) } } GROUP BY ?u } . FILTER ( ?b = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with approximately 10 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 10
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?q ) WHERE { ?b property:P530 ?a . ?b rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?q = 10 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 10
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?q ) WHERE { ?b property:diplomatic_relation ?a . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?q = 10 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
57
Q805 Q668 Q414 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q43 Q41 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q36 Q34 Q928 Q39 Q739 Q423 Q851 Q27 Q1049 Q843 Q228 Q227 Q224 Q222 Q347 Q17 Q974 Q1033 Q298 Q115 Q114 Q212 Q213 Q211 Q215 Q916 Q79 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 10
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?q ) WHERE { ?b property:P530 ?a . ?b rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?q = 10 ) }
Yemen India Argentina United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Turkey Greece Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium Poland Sweden Philippines Switzerland Colombia North Korea Saudi Arabia Ireland Sudan Pakistan Andorra Azerbaijan Croatia Albania Liechtenstein Japan Democratic Republic of the Congo Nigeria Chile Ethiopia Kenya Ukraine Czech Republic Latvia Slovenia Angola Egypt Jordan Libya Cape Verde Spain Zambia
57
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 10
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?q ) WHERE { ?b property:diplomatic_relation ?a . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?q = 10 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories have ambassadorial relations with max number of administrative territories and political territories ?
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action argmax
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?r ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?k rdf:type ?r } GROUP BY ?m } } . { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?i ) WHERE { { ?u property:P530 ?d . ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } UNION { ?u property:P530 ?d . ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 } } GROUP BY ?u } . FILTER ( ?i = ?w ) }
action argmax
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?r ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?k rdf:type ?r } GROUP BY ?m } } . { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?i ) WHERE { { ?u property:diplomatic_relation ?d . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?u property:diplomatic_relation ?d . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity } } GROUP BY ?u } . FILTER ( ?i = ?w ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994)|c(Q1048835))
action argmax
action union
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
And [ANSWER] have ambassadorial relations with max number of administrative territories and political territories
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q15617994'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?r ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?k rdf:type ?r } GROUP BY ?m } } . { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?i ) WHERE { { ?u property:P530 ?d . ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } UNION { ?u property:P530 ?d . ?u rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 } } GROUP BY ?u } . FILTER ( ?i = ?w ) }
Georgia
And Georgia have ambassadorial relations with max number of administrative territories and political territories
Georgia
action argmax
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?w ) { SELECT DISTINCT ?m ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?r ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?k rdf:type ?r } GROUP BY ?m } } . { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?i ) WHERE { { ?u property:diplomatic_relation ?d . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?u property:diplomatic_relation ?d . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity } } GROUP BY ?u } . FILTER ( ?i = ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q224272
P417
Q1445650 Q502895 Q15617994
USER
How many administrative territories have approximately the same number of holidays or people as their patron saint as Orvinio ?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q224272
relation P417
type Q1445650
type Q502895
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { ?p rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { { ?h rdf:type ontology:Q1445650 } UNION { ?h rdf:type ontology:Q502895 } } . resource:Q224272 property:P417 ?h } } . FILTER ( ?u = ?k ) }
Orvinio
action count
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Orvinio
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { ?p rdf:type ?d . VALUES ( ?d ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { { ?h rdf:type ontology:holiday } UNION { ?h rdf:type ontology:common_name } } . resource:Orvinio property:patron_saint ?h } } . FILTER ( ?u = ?k ) }
[]
holiday common name designation for an administrative territorial entity
SYSTEM
528
Q102547 Q103832 Q46304 Q55000 Q55009 Q22497 Q103572 Q328037 Q20208 Q53164 Q99937 Q391326 Q111749 Q58491 Q46939 Q72069 Q51294 Q224131 Q47238 Q20067 Q17677 Q116604 Q41058 Q53524 Q10212 Q9044 Q52085 Q47342 Q45 Q52244 Q111113 Q101067 Q80554 Q112143 Q42972 Q17674 Q51207 Q13470 Q9148 Q54742 Q295538 Q9000 Q13378 Q34742 Q101526 Q10307 Q112131 Q52019 Q10302 Q94644 Q17313 Q17312 Q9400 Q117368 Q390854 Q243371 Q223504 Q34603 Q17822 Q54587 Q42977 Q34360 Q40379 Q285089 Q42476 Q20247 Q53124 Q34684 Q111800 Q18206 Q48114 Q95095 Q128060 Q111966 Q39701 Q9370 Q242126 Q52200 Q9373 Q490416 Q100654 Q25009 Q157673 Q53235 Q48027 Q18377 Q53339 Q101651 Q176292 Q72728 Q340610 Q22173 Q55852 Q242692 Q123981 Q47368 Q279682 Q221900 Q101151 Q105045 Q43092 Q22571 Q123505 Q116731 Q278237 Q42942 Q40127 Q100829 Q104653 Q17862 Q17861 Q477537 Q9031 Q53694 Q6558 Q10336 Q10337 Q10331 Q53496 Q17321 Q19918 Q53886 Q34324 Q53284 Q25179 Q42306 Q279247 Q267183 Q17816 Q52110 Q34547 Q51417 Q47585 Q17368 Q39403 Q47429 Q24997 Q295602 Q42885 Q18080 Q104963 Q489881 Q40937 Q51349 Q100973 Q34423 Q53177 Q242139 Q18400 Q22655 Q46168 Q51288 Q55104 Q123941 Q9432 Q270058 Q17777 Q123540 Q217391 Q17779 Q111972 Q33 Q265651 Q37 Q94588 Q25056 Q101057 Q9153 Q490851 Q101358 Q17686 Q54746 Q9076 Q23632 Q100365 Q51851 Q42167 Q20122 Q56210 Q9489 Q56063 Q80883 Q58844 Q117211 Q54521 Q81687 Q53992 Q224272 Q81138 Q42269 Q91199 Q50128 Q17659 Q124836 Q17851 Q17854 Q10207 Q17257 Q23217 Q23662 Q219641 Q10208 Q10209 Q53874 Q53877 Q18040 Q53879 Q81755 Q39985 Q42580 Q50157 Q47671 Q123763 Q73218 Q495734 Q42466 Q34406 Q241780 Q53136 Q2107 Q46320 Q51405 Q55956 Q128170 Q23669 Q103465 Q388085 Q102562 Q52213 Q42513 Q55890 Q9508 Q53225 Q42752 Q54708 Q54701 Q59234 Q105142 Q51473 Q279302 Q20166 Q18356 Q80753 Q22543 Q10338 Q72036 Q36198 Q17741 Q477423 Q23226 Q23224 Q72146 Q101187 Q101182 Q47093 Q91096 Q389292 Q80574 Q19209 Q22468 Q47500 Q25216 Q52282 Q53884 Q17290 Q101269 Q10328 Q101699 Q277474 Q252320 Q9352 Q128226 Q51304 Q50059 Q53882 Q34545 Q42259 Q493491 Q160262 Q100199 Q270968 Q9451 Q99962 Q99969 Q81622 Q20284 Q47371 Q40985 Q128134 Q48090 Q42413 Q8983 Q42553 Q100125 Q56081 Q56086 Q94754 Q56088 Q101423 Q18385 Q55053 Q51435 Q168670 Q42379 Q40851 Q278952 Q39884 Q53313 Q17666 Q52227 Q49605 Q9167 Q54736 Q9048 Q268291 Q54739 Q9169 Q53720 Q269134 Q102677 Q42983 Q42986 Q17695 Q20036 Q10284 Q52661 Q10281 Q17409 Q278199 Q52133 Q51861 Q18380 Q17404 Q51867 Q17691 Q117342 Q244185 Q266630 Q267134 Q56207 Q100394 Q100396 Q58690 Q492625 Q53967 Q478357 Q53961 Q9194 Q19279 Q19925 Q17244 Q24883 Q104007 Q53865 Q53864 Q13660 Q42456 Q99956 Q42450 Q25155 Q22039 Q42757 Q20507 Q46334 Q9019 Q478703 Q40951 Q52184 Q128161 Q490431 Q40408 Q101770 Q22079 Q17627 Q43031 Q17628 Q72527 Q9050 Q478906 Q18357 Q34972 Q103891 Q101519 Q20604 Q22155 Q55901 Q224048 Q41046 Q47341 Q46793 Q95066 Q52073 Q52072 Q100916 Q39783 Q182689 Q103155 Q100854 Q102780 Q58433 Q72009 Q391241 Q17757 Q17753 Q101205 Q9017 Q40539 Q116573 Q101194 Q101759 Q82766 Q17883 Q17287 Q34759 Q17283 Q17281 Q51181 Q20105 Q20103 Q390160 Q42812 Q40036 Q40033 Q100135 Q40216 Q42241 Q390865 Q17371 Q54500 Q54503 Q223513 Q52959 Q17833 Q20425 Q59225 Q42397 Q20197 Q23607 Q46935 Q58898 Q432678 Q116404 Q581 Q111906 Q59236 Q19948 Q53852 Q207448 Q9363 Q40690 Q20551 Q40699 Q22626 Q214691 Q55097 Q254139 Q55042 Q101382 Q123965 Q101388 Q128057 Q46693 Q51423 Q269788 Q339993 Q43049 Q120399 Q40967 Q40965 Q390609 Q34598 Q101702 Q17654 Q55284 Q257357 Q47835 Q72221 Q269943 Q55958 Q10361 Q51258 Q34440 Q117621 Q20386 Q111888 Q20028 Q9467 Q71832 Q10364 Q52125 Q266259 Q157720 Q50148 Q101148 Q388325 Q496878 Q17877 Q100141 Q58901 Q243022 Q270299 Q478346 Q6662 Q34702 Q42366 Q42192 Q95090 Q20095 Q10226 Q42298 Q9298 Q271236 Q100044 Q100040 Q17749 Q24918 Q177713 Q47125 Q34568 Q13657 Q42680 Q42723 Q491724 Q20517 Q42219 Q46293 Q40396 Q6244
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q224272
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { ?p rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { { ?h rdf:type ontology:Q1445650 } UNION { ?h rdf:type ontology:Q502895 } } . resource:Q224272 property:P417 ?h } } . FILTER ( ?u = ?k ) }
Abetone Castelcovati Foza Ariano Irpino Cairano Meina Borgosatollo Villa Lagarina Monterosso Grana Clauzetto Cesenatico Pozzomaggiore Seniga Carinaro Enego Comiziano Scerni Fara in Sabina Trissino Gaiola Spineto Scrivia Castelliri Galliavola Gagliato Quassolo Barone Canavese Marciano della Chiana Arzignano Portugal Zeri Brescello Foppolo Alfano Urago d'Oglio Cusano Milanino Solonghello Civitella Messer Raimondo Barletta Candiolo Soriano Calabro Orosei Alpignano Arezzo Arquà Polesine Rovetta Sparone Trenzano Manduria Sestriere Casalfiumanese Casal Cermelli Cartosio Ingria Sgurgola Ittireddu San Polo dei Cavalieri Casperia Abano Terme Mombaruzzo Campo Calabro Zelo Buon Persico Cartura Siziano Sestu Cappella de' Picenardi Narzole Cormons Battaglia Terme Cattolica Castelmagno Thiene Codigoro Campodimele Torriana Mello Front Castelnuovo di Porto Squinzano Frossasco Merì Curno Collobiano Bibbona Carlino Legnago Bosia Rigolato Terno d'Isola Lucito Tufino Talana Cavallirio Baselice Gerano Cupramontana Vigonovo Sesto Campano Pozzilli Grassobbio Longhena Meleti Pombia Agugliano Colfelice Spinete Lierna Gerola Alta Langhirano Gussago San Marzano Oliveto San Martino Alfieri Marianopoli Banchette Satriano Belluno Valprato Soana Varisella Valgioie Belcastro Cassine Castiglione Falletto Grimaldi, Calabria Pozzonovo Moggio Udinese Quarona Bertonico Macchiagodena Carasco Isola d'Asti Alessano Bagnolo di Po Alba Adriatica Garda Gavi, Piedmont Borgarello Ramponio Verna Civiasco Mezzolombardo Isola Dovarese Massazza Leno Santa Marina Salina Zeme Cappelle sul Tavo Valmozzola Castelbaldo Montereale Valcellina Cerreto Laziale Alatri Vinzaglio Montegalda San Salvo Santa Lucia di Serino Chiaravalle, Marche Lombriasco Brugnato Castel Rocchero Arcevia Giuncugnano Castellero Verucchio Finland Cavedine Lithuania Borgo Tossignano Fobello Fiorano al Serio Canischio Termini Imerese Palosco Tortona Stefanaconi Brandizzo Massiola Chiuduno Santeramo in Colle Dovera Lisio Regalbuto Montanaro Folignano Conca dei Marini San Gregorio Matese Roccasecca Scandale Serramezzana Santa Sofia d'Epiro Orvinio Nocera Inferiore Cusago Gaiole in Chianti Prata d'Ansidonia Sala Monferrato San Paolo di Jesi Roatto Roccaverano Prarostino Arquata Scrivia San Ferdinando di Puglia Omegna San Romano in Garfagnana Prascorsano Pratiglione Dipignano Fagnano Castello Candelo Figline Vegliaturo Torre Orsaia Brugherio Dairago Sulmona Citta' Mezzane di Sotto Castel Colonna Belforte del Chienti Alcara li Fusi Veroli Urbana Bellegra Romans d'Isonzo Wuppertal Chiampo Tocco da Casauria San Giorgio La Molara San Felice Circeo Pallanzeno Bagolino Sedilo Alseno Trepuzzi Liscate Castelvenere Nomaglio Bertiolo Crotta d'Adda Filandari Cessaniti Magliano di Tenna Manerba del Garda Valle Castellana Montenero Val Cocchiara Margarita Barolo Casalbuono Paruzzaro Vauda Canavese Cicciano Siligo Agliano Terme Campofranco Baceno Aurano Liveri Lallio Isso, Lombardy Anversa degli Abruzzi Abbadia San Salvatore Tramatza Aquara Caprauna Grignasco Dolcè Varallo Sesia Cirigliano Fuscaldo Brignano-Frascata Nembro Usseglio Valbondione Colle d'Anchise Pleinfeld Fenestrelle Terracina Torrebruna Campo di Giove Francavilla Marittima Vò Corte Palasio Castel di Lucio Caprarola Cenate Sopra Noli Marentino Barbata Blello Sant'Egidio del Monte Albino Paesana Tarzo Rocca Pietore Ponza, Lazio Marostica Noviglio Alice Superiore Settala Calcio, Lombardy Montegallo Ripatransone Castel Guelfo di Bologna Roccafluvione Ponte Nossa Briga Alta Mercogliano Castiglione Messer Raimondo Maccastorna Crespiatica Garlasco Castel del Giudice Albuzzano Povoletto Sardigliano Aulla Montecatini Terme Caprie San Gregorio d'Ippona Beinasco Carpasio Serra San Bruno Caravino Settingiano Lucinasco Pieve a Nievole Agnadello Grezzago Villadeati Envie Sangano San Costantino Albanese San Secondo di Pinerolo Morsasco Sant'Angelo Limosano Copertino Ceglie Messapica Boves Montemarzino Latiano Vignale Monferrato Santopadre Cadorago Sori, Liguria Borzonasca Nissoria Cologno al Serio Colzate Macerata Campania Basicò San Giorgio Albanese Maletto San Demetrio Corone Casalborgone Aversa Cavallerleone Acqui Terme Borgo Vercelli Cigole Cerzeto Cervicati Carbonia Motta Baluffi Sarsina Ripalta Guerina Motta de' Conti Ameno San Martino del Lago Torre Bormida Camisano Vicentino Baldissero Canavese Motta Sant'Anastasia Bema Salice Salentino Roccagorga Reitano San Gregorio nelle Alpi Villa di Serio Boca Orsara Bormida Casalmaiocco Ottiglio San Sebastiano al Vesuvio Bibiana Santa Venerina Bastia Mondovì Cogne Cerveno Roncola Trevi Casalvolone Dugenta Collalto Sabino Bregano Laglio Marano Vicentino Alzano Lombardo Castiglion Fibocchi Castelfranco di Sopra Salsomaggiore Terme Mel Sillano Monteverdi Marittimo Noceto Serravalle Pistoiese Alife, Campania Casoria Perfugas Bubbio Berzano di San Pietro Lurano Balangero Agrate Brianza Casalattico Lenna, Lombardy Villa d'Adda Montelupo Fiorentino Villafranca d'Asti Bosio Arvier Bosco Marengo Borgoratto Alessandrino Ari, Abruzzo Guarene Assisi Banari Capralba Tromello Cesiomaggiore Canonica d'Adda Sappada Morimondo Ittiri Gremiasco Cerenzia Cotronei Castel di Tora Bagnara di Romagna Montechiaro d'Asti Roddi Campofilone Massalengo Montaldo di Mondovì Macugnaga Lazise Sessa Aurunca Sant'Angelo Muxaro Anagni Canegrate San Clemente, Emilia-Romagna Monsampietro Morico Chiusa di Pesio Casole Bruzio Monreale Forno Canavese Forcola Vezza d'Alba Sesto Calende Sillavengo Magliano in Toscana San Sossio Baronia Levanto, Liguria Guardia Lombardi Piario Corinaldo Piazza Brembana Bassiano Caprino Veronese Bellante Santo Stefano al Mare Jerzu Esino Lario Carloforte Civo Romagnese Bultei Stienta Valbrembo Rocca Grimalda Sedini Caldonazzo Selva di Progno Marano di Napoli Ameglia San Giorgio del Sannio Vinovo Palena, Abruzzo Villafranca Padovana Viticuso Castel Ritaldi Riccione Entracque Meugliano Bacoli Vische Casarano Tiglieto Capoliveri Scanno, Abruzzo Gorno Siamaggiore Capaci Vesime Capriate San Gervasio Sparanise Morlupo Rocchetta di Vara Licodia Eubea Cesena Tribano Livraga San Donato Milanese Argenta, Emilia–Romagna Barasso Rivarolo Canavese Codogno Coazze Spotorno Castelnuovo Rangone Camposanto Azzano d'Asti Campertogno San Lorenzo Nuovo Avezzano Melara Lanusei Cumignano sul Naviglio Torlino Vimercati Sant'Agata di Militello Treiso Montanaso Lombardo Asigliano Veneto Limbiate Lodi
528
action count
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Orvinio
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) ?w WHERE { ?p rdf:type ?d . VALUES ( ?d ) { ( ontology:holiday ) ( ontology:common_name ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { { ?h rdf:type ontology:holiday } UNION { ?h rdf:type ontology:common_name } } . resource:Orvinio property:patron_saint ?h } } . FILTER ( ?u = ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q267241
P417
Q1445650 Q502895 Q15617994
USER
And how about Favale di Malvaro?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q267241
relation P417
type Q1445650
type Q502895
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) ?t WHERE { { ?t property:P417 ?h . ?t rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q502895 } UNION { ?t property:P417 ?h . ?t rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1445650 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:Q267241 property:P417 ?r . { { ?r rdf:type ontology:Q1445650 } UNION { ?r rdf:type ontology:Q502895 } } } } . FILTER ( ?i = ?k ) }
Favale di Malvaro
action count
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Favale di Malvaro
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) ?t WHERE { { ?t property:patron_saint ?h . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:common_name } UNION { ?t property:patron_saint ?h . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:holiday } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:Favale_di_Malvaro property:patron_saint ?r . { { ?r rdf:type ontology:holiday } UNION { ?r rdf:type ontology:common_name } } } } . FILTER ( ?i = ?k ) }
[]
holiday common name designation for an administrative territorial entity
SYSTEM
296
Q51179 Q265483 Q18339 Q268902 Q124005 Q43005 Q43000 Q39633 Q56075 Q42950 Q386898 Q490936 Q20203 Q9525 Q9520 Q18022 Q18348 Q283857 Q112226 Q18029 Q206966 Q155 Q42896 Q216492 Q490770 Q17268 Q54612 Q9065 Q54617 Q267241 Q42974 Q390108 Q51202 Q54751 Q58890 Q51370 Q42110 Q224813 Q252343 Q103999 Q52624 Q50134 Q478277 Q17821 Q188499 Q54585 Q95069 Q19277 Q186538 Q294805 Q18075 Q283697 Q39263 Q100404 Q9569 Q20387 Q34519 Q42777 Q198320 Q34694 Q9105 Q39835 Q46357 Q111415 Q56048 Q490412 Q39910 Q22170 Q58719 Q490907 Q265588 Q244048 Q94779 Q53946 Q10234 Q10231 Q10339 Q53492 Q40336 Q53881 Q295289 Q53883 Q42300 Q13649 Q25175 Q53288 Q17811 Q50165 Q265498 Q18088 Q1465 Q270578 Q53835 Q478925 Q285110 Q430988 Q35220 Q91160 Q111602 Q242710 Q216853 Q58461 Q20353 Q9435 Q20056 Q20435 Q51442 Q117471 Q36471 Q53304 Q17350 Q53909 Q271011 Q53903 Q18382 Q20128 Q23285 Q52026 Q72272 Q42343 Q326968 Q42266 Q42260 Q10200 Q24896 Q53876 Q207395 Q103768 Q20244 Q46746 Q42744 Q100094 Q298424 Q20405 Q83083 Q493482 Q39912 Q22182 Q42512 Q52191 Q340908 Q34386 Q72732 Q101648 Q391349 Q51274 Q52132 Q54705 Q91228 Q53355 Q9447 Q52102 Q53957 Q54673 Q54672 Q42963 Q124979 Q218027 Q53686 Q200925 Q18394 Q72712 Q23706 Q20530 Q42318 Q39862 Q54516 Q17804 Q53511 Q20431 Q54685 Q20184 Q283554 Q477618 Q46673 Q51358 Q81151 Q39227 Q48092 Q42557 Q53995 Q56085 Q53260 Q17796 Q18388 Q41077 Q55054 Q80655 Q52146 Q53508 Q40913 Q25187 Q25189 Q168551 Q22216 Q101251 Q9493 Q286671 Q390646 Q82755 Q23592 Q52038 Q23178 Q288273 Q54643 Q496978 Q46968 Q10211 Q16337 Q326780 Q100070 Q34579 Q20503 Q267032 Q382482 Q55017 Q51360 Q43037 Q53212 Q185748 Q51460 Q20170 Q102781 Q52179 Q58549 Q51926 Q23232 Q42629 Q54636 Q496936 Q105325 Q46870 Q91243 Q51812 Q72708 Q270613 Q19937 Q42249 Q42367 Q54699 Q54591 Q20191 Q46833 Q42391 Q386350 Q17378 Q42565 Q47046 Q19944 Q13619 Q341096 Q382223 Q53397 Q42403 Q56091 Q56090 Q53159 Q53152 Q39070 Q54035 Q80851 Q54034 Q103297 Q43040 Q40964 Q112019 Q39933 Q224176 Q54723 Q477800 Q19915 Q46282 Q13320 Q53732 Q34791 Q20389 Q59269 Q59265 Q20585 Q42208 Q53824 Q9028 Q34638 Q40094 Q34703 Q23648 Q9187 Q111147 Q488240 Q49603 Q52953 Q20299 Q39849 Q50079 Q9428 Q9336
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action count
action approx
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
action count
action filter_multi_types
action find
entity Q267241
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) ?t WHERE { { ?t property:P417 ?h . ?t rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q502895 } UNION { ?t property:P417 ?h . ?t rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1445650 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:Q267241 property:P417 ?r . { { ?r rdf:type ontology:Q1445650 } UNION { ?r rdf:type ontology:Q502895 } } } } . FILTER ( ?i = ?k ) }
Altino, Abruzzo Campomorone Aisone Diano Castello Falconara Marittima Sesto San Giovanni Lomagna Cairate Monsampolo del Tronto San Martino in Strada Nughedu Santa Vittoria Belmonte Mezzagno Montemale di Cuneo Osasio Orio Canavese Bioglio Bagnasco Decimoputzu Vobarno Callabiana Gabicce Mare Brazil Albairate Borgo a Mozzano San Giuseppe Jato Belforte Monferrato Gerace Borgomasino Laganadi Favale di Malvaro Cesano Boscone Anela Castiglione Messer Marino Zaccanopoli Sant'Angelo d'Alife Manoppello Bellinzago Lombardo Lampedusa e Linosa Eppan an der Weinstraße Chiari Noepoli Rocca di Botte Castiglione di Sicilia Mombaldone Castel del Piano Calanna Antegnate Cerignola Arzachena Gadoni Graglia Burcei Sernio Comun Nuovo Pianezza Poggio a Caiano Maserà di Padova Abbiategrasso Ziano di Fiemme Fiesso Umbertiano Buriasco Bianzone Breganze Polpenazze del Garda Castorano Priolo Gargallo Azzio Cavaglio d'Agogna Mondragone Scillato Crocefieschi Argegno Castel San Pietro Terme Rende Rocca Canavese Rivoli Venaria Reale Andali Gravellona Lomellina Fiumefreddo Bruzio Noragugume Frascineto Comazzo Nuoro Postua Mortegliano Frinco Trasacco Ceranesi Mottalciata Feltre Calizzano Belmonte Calabro Trecastagni Seulo Alessandria della Rocca Montjovet Cetona Rezzato Guidonia Montecelio Camaiore Camigliano Piobesi d'Alba Lugnacco Frabosa Soprana Sale delle Langhe Colledara Trevi nel Lazio Pompei Pasian di Prato Cremolino Mangone Osiglia Malito Bra Magliano Alpi Cannero Riviera Montemesola Monte di Procida Guidizzolo Tenno, Trentino Cervignano d'Adda Montevecchia Porte Borgo d'Ale Domanico Montecopiolo Capriano del Colle Murello Susegana Spino d'Adda San Felice sul Panaro Pergine Valsugana Roascio Monte San Giusto Librizzi Usmate Velate Colazza Vizzolo Predabissi Sannicola Luogosanto Trebaseleghe Vico Equense Telgate Santa Maria Coghinas Roccamontepiano Collepasso Drapia Monteriggioni San Giorgio di Nogaro Lusigliè Subbiano San Cosmo Albanese Sinopoli Siderno Senna Lodigiana Serra San Quirico Zoagli San Floro Lona-Lases Canale Torre Annunziata Trasquera Verduno Terranova dei Passerini Menarola San Mauro Marchesato Cortiglione Conflenti Rossana Terranova Sappo Minulio Monasterolo Casotto Armungia Resuttano Spresiano Civitella Casanova Ogliastro Cilento Ronco Briantino Cologna Veneta Pandino Saracena Palmiano Flaibano Cisterna d'Asti Brossasco Lavena Ponte Tresa Mirabella Eclano Bellizzi Guagnano Cerva Caiolo Rimella Riva Valdobbia Caselle Landi Dormelletto Montello, Lombardy Monteu da Po Santadi Cargeghe Londa, Tuscany Gurro Statte Bisceglie Serrenti Roghudi Roccapalumba Noale Quagliuzzo Novi Ligure Strigno Montefiorino Arre Sommariva del Bosco Santo Stefano d'Aveto Aidomaggiore Casalbore Corvara Annone di Brianza Aiello del Friuli Sant'Elia a Pianisi Pietracamela Martiniana Po Gragnano Trebbiense Porto Cesareo Castel Campagnano Faeto Bannio Anzino Parabiago Platì Sciara Nuvolento Bardolino Monteroni d'Arbia Alberobello Terzigno Celle Ligure Cerretto Langhe Mulazzano Valera Fratta Brognaturo Caraffa del Bianco Monforte d'Alba Albettone Airuno Masullas Malvicino Oggiono Silea Ceva Cosenza Trinità d'Agultu e Vignola Romana, Sardinia Villa Vicentina Acquanegra Cremonese Venarotta Spinetoli Cavasso Nuovo Azzano Decimo Andalo Valtellino Verbicaro Celle di Bulgheria Vaccarizzo Albanese Vicopisano Secugnago Rogolo Sirmione Cadrezzate Longone Sabino Nardodipace Vallelunga Pratameno Castellino Tanaro Castel d'Azzano Savona Tiriolo Aymavilles Montemurlo Montelparo Montefalcone Appennino Villanova Mondovì Malagnino Alessandria del Carretto Balme Arquà Petrarca Morbegno Torreglia Montecrestese Carmagnola Carpineti Lentini Ponte Buggianese Alfonsine Paroldo Robbio Celano Locana Druento
296
action count
action approx
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Favale di Malvaro
relation patron saint
type holiday
type common name
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) ?t WHERE { { ?t property:patron_saint ?h . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:common_name } UNION { ?t property:patron_saint ?h . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:holiday } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:Favale_di_Malvaro property:patron_saint ?r . { { ?r rdf:type ontology:holiday } UNION { ?r rdf:type ontology:common_name } } } } . FILTER ( ?i = ?k ) }
[]