Simple Question (Direct)
Simple Question
Q391788
P366
Q930752
USER
What is the main use of bed sheet ?
(Q391788,P366,c(Q930752))
action filter_type
action find
entity Q391788
relation P366
type Q930752
['Q391788', 'P366', {'concept': 'Q930752'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q930752 . resource:Q391788 property:P366 ?e }
bed sheet
action filter_type
action find
entity bed sheet
relation use
type medical specialty
['bed sheet', 'use', {'concept': 'medical specialty'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:medical_specialty . resource:bed_sheet property:use ?e }
[]
medical specialty
Q162297
SYSTEM
hygiene
Q162297
(Q391788,P366,c(Q930752))
action filter_type
action find
entity Q391788
relation P366
type Q930752
The main use of bed sheet is the [ANSWER]
['Q391788', 'P366', {'concept': 'Q930752'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q930752 . resource:Q391788 property:P366 ?e }
hygiene
The main use of bed sheet is the hygiene
hygiene
action filter_type
action find
entity bed sheet
relation use
type medical specialty
['bed sheet', 'use', {'concept': 'medical specialty'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:medical_specialty . resource:bed_sheet property:use ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q391788
P180
Q340169
USER
Which medias demonstrate bed sheet ?
(c(Q340169),P180,Q391788)
action filter_type
action find_reverse
entity Q391788
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', 'Q391788']
SELECT DISTINCT ?z WHERE { ?z property:P180 resource:Q391788 . ?z rdf:type ontology:Q340169 }
bed sheet
action filter_type
action find_reverse
entity bed sheet
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'bed sheet']
SELECT DISTINCT ?z WHERE { ?z property:depicts resource:bed_sheet . ?z rdf:type ontology:media }
[]
media
Q19960756 Q19960759
SYSTEM
Young Woman Sleeping, Recumbent woman seen from behind, or Le Sommeil
Q19960756 Q19960759
(c(Q340169),P180,Q391788)
action filter_type
action find_reverse
entity Q391788
relation P180
type Q340169
[ANSWERS]
[{'concept': 'Q340169'}, 'P180', 'Q391788']
SELECT DISTINCT ?z WHERE { ?z property:P180 resource:Q391788 . ?z rdf:type ontology:Q340169 }
Young Woman Sleeping Recumbent woman seen from behind, or Le Sommeil
Young Woman sleeping and Recumbent woman seen from behind, or Le Sommeil demonstrate bed sheet
Young Woman Sleeping Recumbent woman seen from behind, or Le Sommeil
action filter_type
action find_reverse
entity bed sheet
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'bed sheet']
SELECT DISTINCT ?z WHERE { ?z property:depicts resource:bed_sheet . ?z rdf:type ontology:media }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q19960756 Q19960759
P180
Q4936952
USER
Which anatomical structures are depicted in those medias ?
(Q19960756,P180,c(Q4936952)) (Q19960759,P180,c(Q4936952))
action filter_type
action find
entity prev_answer
relation P180
type Q4936952
['Q19960756', 'P180', {'concept': 'Q4936952'}] ['Q19960759', 'P180', {'concept': 'Q4936952'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q4936952 . VALUES ( ?a ) { ( resource:Q19960756 ) ( resource:Q19960759 ) } . ?a property:P180 ?r }
Young Woman Sleeping Recumbent woman seen from behind, or Le Sommeil
action filter_type
action find
entity prev_answer
relation depicts
type anatomical structure
['Young Woman Sleeping', 'depicts', {'concept': 'anatomical structure'}] ['Recumbent woman seen from behind, or Le Sommeil', 'depicts', {'concept': 'anatomical structure'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:anatomical_structure . VALUES ( ?a ) { ( resource:Young_Woman_Sleeping ) ( resource:Recumbent_woman_seen_from_behind,_or_Le_Sommeil ) } . ?a property:depicts ?r }
[]
anatomical structure
Q9103 Q133279
SYSTEM
breast, back
Q9103 Q133279
(Q19960756,P180,c(Q4936952)) (Q19960759,P180,c(Q4936952))
action filter_type
action find
entity prev_answer
relation P180
type Q4936952
The [ANSWERS] are depicted in those medias
['Q19960756', 'P180', {'concept': 'Q4936952'}] ['Q19960759', 'P180', {'concept': 'Q4936952'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q4936952 . VALUES ( ?a ) { ( resource:Q19960756 ) ( resource:Q19960759 ) } . ?a property:P180 ?r }
breast back
The breast and back are depicted in those medias
breast back
action filter_type
action find
entity prev_answer
relation depicts
type anatomical structure
['Young Woman Sleeping', 'depicts', {'concept': 'anatomical structure'}] ['Recumbent woman seen from behind, or Le Sommeil', 'depicts', {'concept': 'anatomical structure'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:anatomical_structure . VALUES ( ?a ) { ( resource:Young_Woman_Sleeping ) ( resource:Recumbent_woman_seen_from_behind,_or_Le_Sommeil ) } . ?a property:depicts ?r }
[]
Clarification
Simple Question|Single Entity|Indirect
Q19960756
P170
Q502895
USER
Who is credited with the creation of that media ?
(Q19960756,P170,c(Q502895))
action filter_type
action find
entity Q19960756
relation P170
type Q502895
['Q19960756', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q19960756 property:P170 ?a }
Young Woman Sleeping
action filter_type
action find
entity Young Woman Sleeping
relation creator
type common name
['Young Woman Sleeping', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Young_Woman_Sleeping property:creator ?a }
[]
common name
Clarification for simple ques.
Q19960756
SYSTEM
Did you mean Young Woman Sleeping ?
Q9103 Q133279
(Q9103,P170,c(Q502895)) (Q133279,P170,c(Q502895))
[ANSWER]
['Q9103', 'P170', {'concept': 'Q502895'}] ['Q133279', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q19960756 property:P170 ?a }
breast back
Did you mean Young Woman Sleeping ?
Young Woman Sleeping
['breast', 'creator', {'concept': 'common name'}] ['back', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Young_Woman_Sleeping property:creator ?a }
[]
Simple Question (Coreferenced)
USER
Yes
(Q19960756,P170,c(Q502895))
['Q19960756', 'P170', {'concept': 'Q502895'}]
['Young Woman Sleeping', 'creator', {'concept': 'common name'}]
[]
Q180932
SYSTEM
François Boucher
Q180932
(Q19960756,P170,c(Q502895))
action filter_type
action find
entity Q19960756
relation P170
type Q502895
[ANSWER] is credited with the creation of that media
['Q19960756', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q19960756 property:P170 ?a }
François Boucher
François Boucher is credited with the creation of that media
François Boucher
action filter_type
action find
entity Young Woman Sleeping
relation creator
type common name
['Young Woman Sleeping', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Young_Woman_Sleeping property:creator ?a }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q7810
P725
Q502895 Q95074
USER
How many fictional characters had their voice dubbing done by more number of people than Homer Simpson ?
(c(Q95074),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q7810
relation P725
type Q95074
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?p ) WHERE { ?i property:P725 ?x . ?x rdf:type ontology:Q502895 . ?i rdf:type ontology:Q95074 } GROUP BY ?i } . FILTER ( ?p > ?q ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y rdf:type ontology:Q95074 . resource:Q7810 property:P725 ?y } } }
Homer Simpson
action count
action greater
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Homer Simpson
relation voice actor
type fictional character
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?p ) WHERE { ?i property:voice_actor ?x . ?x rdf:type ontology:common_name . ?i rdf:type ontology:fictional_character } GROUP BY ?i } . FILTER ( ?p > ?q ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y rdf:type ontology:fictional_character . resource:Homer_Simpson property:voice_actor ?y } } }
[]
common name fictional character
SYSTEM
26
Q16027672 Q21837832 Q21847058 Q21847115 Q15710873 Q21847074 Q21837038 Q2570349 Q21847089 Q21847086 Q11623287 Q17349786 Q21847215 Q3256697 Q21837905 Q21837397 Q1621656 Q2544561 Q21837021 Q21837027 Q1984009 Q21847105 Q3471289 Q21847103 Q12400 Q2340460
(c(Q95074),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q7810
relation P725
type Q95074
[ANSWER]
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?p ) WHERE { ?i property:P725 ?x . ?x rdf:type ontology:Q502895 . ?i rdf:type ontology:Q95074 } GROUP BY ?i } . FILTER ( ?p > ?q ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y rdf:type ontology:Q95074 . resource:Q7810 property:P725 ?y } } }
Dr. Stewart Kyōichi Sudō Yūichi Tachibana Fumihiro Princess Celestia Kōichirō Iketani Keisuke Takahashi Spike Spiegel Kenji Natsuki Mogi Takumi Fujiwara Shulk Seiji Iwaki Little Mac Itsuki Takeuchi Takeshi Nakazato Solid Snake Ike Bunta Fujiwara Ryōsuke Takahashi Death Kenta Nakamura Samurai Goroh Shingo Shōji Samus Aran Captain Falcon
26
action count
action greater
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Homer Simpson
relation voice actor
type fictional character
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?p ) WHERE { ?i property:voice_actor ?x . ?x rdf:type ontology:common_name . ?i rdf:type ontology:fictional_character } GROUP BY ?i } . FILTER ( ?p > ?q ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { ?y rdf:type ontology:fictional_character . resource:Homer_Simpson property:voice_actor ?y } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1621656
P725
Q502895 Q95074
USER
And also tell me about Solid Snake?
(c(Q95074),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q1621656
relation P725
type Q95074
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:Q1621656 property:P725 ?s . ?s rdf:type ontology:Q95074 } } . FILTER ( ?x > ?o ) . { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?x ) WHERE { ?i property:P725 ?z . ?i rdf:type ontology:Q95074 . ?z rdf:type ontology:Q502895 } GROUP BY ?i } }
Solid Snake
action count
action greater
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Solid Snake
relation voice actor
type fictional character
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:Solid_Snake property:voice_actor ?s . ?s rdf:type ontology:fictional_character } } . FILTER ( ?x > ?o ) . { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?x ) WHERE { ?i property:voice_actor ?z . ?i rdf:type ontology:fictional_character . ?z rdf:type ontology:common_name } GROUP BY ?i } }
[]
common name fictional character
SYSTEM
9
Q21847058 Q11623287 Q3256697 Q21837397 Q21837021 Q21837027 Q3471289 Q12400 Q2340460
(c(Q95074),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q95074
type Q502895
action count
action filter_type
action find
entity Q1621656
relation P725
type Q95074
[ANSWER]
[{'concept': 'Q95074'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:Q1621656 property:P725 ?s . ?s rdf:type ontology:Q95074 } } . FILTER ( ?x > ?o ) . { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?x ) WHERE { ?i property:P725 ?z . ?i rdf:type ontology:Q95074 . ?z rdf:type ontology:Q502895 } GROUP BY ?i } }
Yūichi Tachibana Takumi Fujiwara Little Mac Takeshi Nakazato Bunta Fujiwara Ryōsuke Takahashi Samurai Goroh Samus Aran Captain Falcon
9
action count
action greater
action find_tuple_counts
relation voice actor
type fictional character
type common name
action count
action filter_type
action find
entity Solid Snake
relation voice actor
type fictional character
[{'concept': 'fictional character'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?o ) WHERE { resource:Solid_Snake property:voice_actor ?s . ?s rdf:type ontology:fictional_character } } . FILTER ( ?x > ?o ) . { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?x ) WHERE { ?i property:voice_actor ?z . ?i rdf:type ontology:fictional_character . ?z rdf:type ontology:common_name } GROUP BY ?i } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q180932
P20
Q56061
USER
Where did François Boucher expire ?
(Q180932,P20,c(Q56061))
action filter_type
action find
entity Q180932
relation P20
type Q56061
['Q180932', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q180932 property:P20 ?e . ?e rdf:type ontology:Q56061 }
François Boucher
action filter_type
action find
entity François Boucher
relation place of death
type administrative territorial entity
['François Boucher', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:François_Boucher property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q180932,P20,c(Q56061))
action filter_type
action find
entity Q180932
relation P20
type Q56061
François Boucher expired [ANSWER]
['Q180932', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q180932 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Paris
François Boucher expired Paris
Paris
action filter_type
action find
entity François Boucher
relation place of death
type administrative territorial entity
['François Boucher', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:François_Boucher property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P417
Q1445650 Q502895 Q56061
USER
How many administrative territories have approximately the same number of holidays or people as their patron saint as that administrative territory ?
(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 Q90
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?s ) WHERE { VALUES ( ?t ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?x rdf:type ?t } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Q90 property:P417 ?y . { { ?y rdf:type ontology:Q1445650 } UNION { ?y rdf:type ontology:Q502895 } } } } . FILTER ( ?s = ?e ) }
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 Paris
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?s ) WHERE { VALUES ( ?t ) { ( ontology:holiday ) ( ontology:common_name ) } . ?x rdf:type ?t } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Paris property:patron_saint ?y . { { ?y rdf:type ontology:holiday } UNION { ?y rdf:type ontology:common_name } } } } . FILTER ( ?s = ?e ) }
[]
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 Q90
relation P417
type Q1445650
type Q502895
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?s ) WHERE { VALUES ( ?t ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?x rdf:type ?t } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Q90 property:P417 ?y . { { ?y rdf:type ontology:Q1445650 } UNION { ?y rdf:type ontology:Q502895 } } } } . FILTER ( ?s = ?e ) }
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 Paris
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?s ) WHERE { VALUES ( ?t ) { ( ontology:holiday ) ( ontology:common_name ) } . ?x rdf:type ?t } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { resource:Paris property:patron_saint ?y . { { ?y rdf:type ontology:holiday } UNION { ?y rdf:type ontology:common_name } } } } . FILTER ( ?s = ?e ) }
[]