Simple Question (Direct)
Simple Question
Q3288594
P39
Q12737077
USER
What were the positions for which Marcel Astier were appointed ?
(Q3288594,P39,c(Q12737077))
action filter_type
action find
entity Q3288594
relation P39
type Q12737077
['Q3288594', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q3288594 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
Marcel Astier
action filter_type
action find
entity Marcel Astier
relation position held
type occupation
['Marcel Astier', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Marcel_Astier property:position_held ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q382617 Q21032547 Q3044918
SYSTEM
maire, senator of the French Third Republic, member of the French National Assembly
Q382617 Q21032547 Q3044918
(Q3288594,P39,c(Q12737077))
action filter_type
action find
entity Q3288594
relation P39
type Q12737077
[ANSWERS]
['Q3288594', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q3288594 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
maire senator of the French Third Republic member of the French National Assembly
Maire, senator of the French Third Republic and member of the French National Assembly
maire senator of the French Third Republic member of the French National Assembly
action filter_type
action find
entity Marcel Astier
relation position held
type occupation
['Marcel Astier', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Marcel_Astier property:position_held ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3044918
P1001
Q15617994
USER
Which administrative territory comes under the jurisdiction of member of the French National Assembly ?
(Q3044918,P1001,c(Q15617994))
action filter_type
action find
entity Q3044918
relation P1001
type Q15617994
['Q3044918', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q3044918 property:P1001 ?k . ?k rdf:type ontology:Q15617994 }
member of the French National Assembly
action filter_type
action find
entity member of the French National Assembly
relation applies to jurisdiction
type designation for an administrative territorial entity
['member of the French\xa0National Assembly', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:member_of_the_French National_Assembly property:applies_to_jurisdiction ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3044918,P1001,c(Q15617994))
action filter_type
action find
entity Q3044918
relation P1001
type Q15617994
[ANSWER] comes under the jurisdiction of member of the French National Assembly
['Q3044918', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q3044918 property:P1001 ?k . ?k rdf:type ontology:Q15617994 }
France
France comes under the jurisdiction of member of the French National Assembly
France
action filter_type
action find
entity member of the French National Assembly
relation applies to jurisdiction
type designation for an administrative territorial entity
['member of the French\xa0National Assembly', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:member_of_the_French National_Assembly property:applies_to_jurisdiction ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3044918
P17
Q15617994
USER
Which administrative territory is that occupation present in ?
(Q142,P17,c(Q15617994))
action filter_type
action find
entity Q3044918
relation P17
type Q15617994
['Q142', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q3044918 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
member of the French National Assembly
action filter_type
action find
entity member of the French National Assembly
relation country
type designation for an administrative territorial entity
['France', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:member_of_the_French National_Assembly property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q142,P17,c(Q15617994))
action filter_type
action find
entity Q3044918
relation P17
type Q15617994
That occupation is [ANSWER]
['Q142', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q3044918 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
France
That occupation is France
France
action filter_type
action find
entity member of the French National Assembly
relation country
type designation for an administrative territorial entity
['France', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:member_of_the_French National_Assembly property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P3179
Q7275
USER
Which state has its area overlapping with that administrative territory ?
(c(Q7275),P3179,Q142)
action filter_type
action find_reverse
entity Q142
relation P3179
type Q7275
[{'concept': 'Q7275'}, 'P3179', 'Q142']
SELECT DISTINCT ?w WHERE { ?w property:P3179 resource:Q142 . ?w rdf:type ontology:Q7275 }
France
action filter_type
action find_reverse
entity France
relation territory overlaps
type state
[{'concept': 'state'}, 'territory overlaps', 'France']
SELECT DISTINCT ?w WHERE { ?w property:territory_overlaps resource:France . ?w rdf:type ontology:state }
[]
state
Q70972
SYSTEM
Kingdom of France
Q70972
(c(Q7275),P3179,Q142)
action filter_type
action find_reverse
entity Q142
relation P3179
type Q7275
[ANSWER] has its area overlapping with that administrative territory
[{'concept': 'Q7275'}, 'P3179', 'Q142']
SELECT DISTINCT ?w WHERE { ?w property:P3179 resource:Q142 . ?w rdf:type ontology:Q7275 }
Kingdom of France
Kingdom of France has its area overlapping with that administrative territory
Kingdom of France
action filter_type
action find_reverse
entity France
relation territory overlaps
type state
[{'concept': 'state'}, 'territory overlaps', 'France']
SELECT DISTINCT ?w WHERE { ?w property:territory_overlaps resource:France . ?w rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P6
Q502895
USER
Which people have that administrative territory as their heads of government ?
(Q70972,P6,c(Q502895))
action filter_type
action find
entity Q142
relation P6
type Q502895
['Q70972', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q142 property:P6 ?v }
France
action filter_type
action find
entity France
relation head of government
type common name
['Kingdom of France', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:France property:head_of_government ?v }
[]
common name
Q10287 Q7711
SYSTEM
Manuel Valls, Jean-Marc Ayrault
Q10287 Q7711
(Q70972,P6,c(Q502895))
action filter_type
action find
entity Q142
relation P6
type Q502895
[ANSWERS] have that administrative territory as their heads of government
['Q70972', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q142 property:P6 ?v }
Manuel Valls Jean-Marc Ayrault
Manuel Valls and Jean-Marc Ayrault have that administrative territory as their heads of government
Manuel Valls Jean-Marc Ayrault
action filter_type
action find
entity France
relation head of government
type common name
['Kingdom of France', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:France property:head_of_government ?v }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P166
Q618779 Q193622
USER
How many awards or orders were received by that person ?
(Q10287,P166,c(Q618779)) (Q10287,P166,c(Q193622)) (Q10287,P166,c(Q618779)) (Q10287,P166,c(Q193622)) (Q7711,P166,c(Q618779)) (Q7711,P166,c(Q193622))
['Q10287', 'P166', {'concept': 'Q618779'}] ['Q10287', 'P166', {'concept': 'Q193622'}] ['Q10287', 'P166', {'concept': 'Q618779'}] ['Q10287', 'P166', {'concept': 'Q193622'}] ['Q7711', 'P166', {'concept': 'Q618779'}] ['Q7711', 'P166', {'concept': 'Q193622'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q10874986 property:P166 ?z } UNION { resource:Q10874986 property:P166 ?y } UNION { resource:Q10874986 property:P166 ?z } UNION { resource:Q10874986 property:P166 ?y } UNION { resource:Q7711 property:P166 ?z } UNION { resource:Q7711 property:P166 ?y } } . ?z rdf:type ontology:Q618779 . ?y rdf:type ontology:Q20680311 }
['Manuel Valls', 'award received', {'concept': 'award'}] ['Manuel Valls', 'award received', {'concept': 'order'}] ['Manuel Valls', 'award received', {'concept': 'award'}] ['Manuel Valls', 'award received', {'concept': 'order'}] ['Jean-Marc Ayrault', 'award received', {'concept': 'award'}] ['Jean-Marc Ayrault', 'award received', {'concept': 'order'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Manuel_Valls property:award_received ?z } UNION { resource:Manuel_Valls property:award_received ?y } UNION { resource:Manuel_Valls property:award_received ?z } UNION { resource:Manuel_Valls property:award_received ?y } UNION { resource:Jean-Marc_Ayrault property:award_received ?z } UNION { resource:Jean-Marc_Ayrault property:award_received ?y } } . ?z rdf:type ontology:award . ?y rdf:type ontology:order }
[]
award order
Quantitative|Count|Mult. entity type|Clarification
Q7711
SYSTEM
Did you mean Jean-Marc Ayrault ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q10874986 property:P166 ?z } UNION { resource:Q10874986 property:P166 ?y } UNION { resource:Q10874986 property:P166 ?z } UNION { resource:Q10874986 property:P166 ?y } UNION { resource:Q7711 property:P166 ?z } UNION { resource:Q7711 property:P166 ?y } } . ?z rdf:type ontology:Q618779 . ?y rdf:type ontology:Q20680311 }
Did you mean Jean-Marc Ayrault ?
Jean-Marc Ayrault
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Manuel_Valls property:award_received ?z } UNION { resource:Manuel_Valls property:award_received ?y } UNION { resource:Manuel_Valls property:award_received ?z } UNION { resource:Manuel_Valls property:award_received ?y } UNION { resource:Jean-Marc_Ayrault property:award_received ?z } UNION { resource:Jean-Marc_Ayrault property:award_received ?y } } . ?z rdf:type ontology:award . ?y rdf:type ontology:order }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Manuel Valls. Could you tell me the answer for that?
(Q10287,P166,c(Q618779)) (Q10287,P166,c(Q193622)) (Q10287,P166,c(Q618779)) (Q10287,P166,c(Q193622)) (Q7711,P166,c(Q618779)) (Q7711,P166,c(Q193622))
Q10287
['Q10287', 'P166', {'concept': 'Q618779'}] ['Q10287', 'P166', {'concept': 'Q193622'}] ['Q10287', 'P166', {'concept': 'Q618779'}] ['Q10287', 'P166', {'concept': 'Q193622'}] ['Q7711', 'P166', {'concept': 'Q618779'}] ['Q7711', 'P166', {'concept': 'Q193622'}]
['Manuel Valls', 'award received', {'concept': 'award'}] ['Manuel Valls', 'award received', {'concept': 'order'}] ['Manuel Valls', 'award received', {'concept': 'award'}] ['Manuel Valls', 'award received', {'concept': 'order'}] ['Jean-Marc Ayrault', 'award received', {'concept': 'award'}] ['Jean-Marc Ayrault', 'award received', {'concept': 'order'}]
[]
SYSTEM
2
Q2703201 Q13422143
(Q10287,P166,c(Q618779)) (Q10287,P166,c(Q193622)) (Q10287,P166,c(Q618779)) (Q10287,P166,c(Q193622)) (Q7711,P166,c(Q618779)) (Q7711,P166,c(Q193622))
[ANSWER]
['Q10287', 'P166', {'concept': 'Q618779'}] ['Q10287', 'P166', {'concept': 'Q193622'}] ['Q10287', 'P166', {'concept': 'Q618779'}] ['Q10287', 'P166', {'concept': 'Q193622'}] ['Q7711', 'P166', {'concept': 'Q618779'}] ['Q7711', 'P166', {'concept': 'Q193622'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q10874986 property:P166 ?z } UNION { resource:Q10874986 property:P166 ?y } UNION { resource:Q10874986 property:P166 ?z } UNION { resource:Q10874986 property:P166 ?y } UNION { resource:Q7711 property:P166 ?z } UNION { resource:Q7711 property:P166 ?y } } . ?z rdf:type ontology:Q618779 . ?y rdf:type ontology:Q20680311 }
Order of Civil Merit Grand Cross of the National Order of Merit
2
['Manuel Valls', 'award received', {'concept': 'award'}] ['Manuel Valls', 'award received', {'concept': 'order'}] ['Manuel Valls', 'award received', {'concept': 'award'}] ['Manuel Valls', 'award received', {'concept': 'order'}] ['Jean-Marc Ayrault', 'award received', {'concept': 'award'}] ['Jean-Marc Ayrault', 'award received', {'concept': 'order'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Manuel_Valls property:award_received ?z } UNION { resource:Manuel_Valls property:award_received ?y } UNION { resource:Manuel_Valls property:award_received ?z } UNION { resource:Manuel_Valls property:award_received ?y } UNION { resource:Jean-Marc_Ayrault property:award_received ?z } UNION { resource:Jean-Marc_Ayrault property:award_received ?y } } . ?z rdf:type ontology:award . ?y rdf:type ontology:order }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q679
P138
Q12280
USER
How many bridges are named after France or west ?
(c(Q12280),P138,Q142) (c(Q12280),P138,Q679)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P138
type Q12280
action filter_type
action find_reverse
entity Q679
relation P138
type Q12280
[{'concept': 'Q12280'}, 'P138', 'Q142'] [{'concept': 'Q12280'}, 'P138', 'Q679']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:P138 ?m . VALUES ( ?m ) { ( resource:Q142 ) ( resource:Q679 ) } }
France west
action count
action union
action filter_type
action find_reverse
entity France
relation named after
type bridge
action filter_type
action find_reverse
entity west
relation named after
type bridge
[{'concept': 'bridge'}, 'named after', 'France'] [{'concept': 'bridge'}, 'named after', 'west']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:named_after ?m . VALUES ( ?m ) { ( resource:France ) ( resource:west ) } }
[]
bridge
SYSTEM
2
Q580518 Q205682
(c(Q12280),P138,Q142) (c(Q12280),P138,Q679)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P138
type Q12280
action filter_type
action find_reverse
entity Q679
relation P138
type Q12280
[ANSWER]
[{'concept': 'Q12280'}, 'P138', 'Q142'] [{'concept': 'Q12280'}, 'P138', 'Q679']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:P138 ?m . VALUES ( ?m ) { ( resource:Q142 ) ( resource:Q679 ) } }
Västerbron Three Countries Bridge
2
action count
action union
action filter_type
action find_reverse
entity France
relation named after
type bridge
action filter_type
action find_reverse
entity west
relation named after
type bridge
[{'concept': 'bridge'}, 'named after', 'France'] [{'concept': 'bridge'}, 'named after', 'west']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:named_after ?m . VALUES ( ?m ) { ( resource:France ) ( resource:west ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10287
P40
Q502895
USER
Who have Manuel Valls as a child ?
(c(Q502895),P40,Q10287)
action filter_type
action find_reverse
entity Q10287
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q10287']
SELECT DISTINCT ?n WHERE { ?n property:P40 resource:Q10287 . ?n rdf:type ontology:Q502895 }
Manuel Valls
action filter_type
action find_reverse
entity Manuel Valls
relation child
type common name
[{'concept': 'common name'}, 'child', 'Manuel Valls']
SELECT DISTINCT ?n WHERE { ?n property:child resource:Manuel_Valls . ?n rdf:type ontology:common_name }
[]
common name
Q328956 Q16659099
SYSTEM
Xavier Valls, Luisangela Galfetti
Q328956 Q16659099
(c(Q502895),P40,Q10287)
action filter_type
action find_reverse
entity Q10287
relation P40
type Q502895
[ANSWERS] have Manuel Valls as a child
[{'concept': 'Q502895'}, 'P40', 'Q10287']
SELECT DISTINCT ?n WHERE { ?n property:P40 resource:Q10287 . ?n rdf:type ontology:Q502895 }
Xavier Valls Luisangela Galfetti
Xavier Valls and Luisangela Galfetti have Manuel Valls as a child
Xavier Valls Luisangela Galfetti
action filter_type
action find_reverse
entity Manuel Valls
relation child
type common name
[{'concept': 'common name'}, 'child', 'Manuel Valls']
SELECT DISTINCT ?n WHERE { ?n property:child resource:Manuel_Valls . ?n rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16659099
P7
Q502895
USER
Who has that one as their sibling ?
(Q16659099,P7,c(Q502895))
action filter_type
action find
entity Q16659099
relation P7
type Q502895
['Q16659099', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q16659099 property:P7 ?o . ?o rdf:type ontology:Q502895 }
Luisangela Galfetti
action filter_type
action find
entity Luisangela Galfetti
relation brother
type common name
['Luisangela Galfetti', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Luisangela_Galfetti property:brother ?o . ?o rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q16659099
SYSTEM
Did you mean Luisangela Galfetti ?
Q328956 Q16659099
(Q328956,P7,c(Q502895)) (Q16659099,P7,c(Q502895))
[ANSWER]
['Q328956', 'P7', {'concept': 'Q502895'}] ['Q16659099', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q16659099 property:P7 ?o . ?o rdf:type ontology:Q502895 }
Xavier Valls Luisangela Galfetti
Did you mean Luisangela Galfetti ?
Luisangela Galfetti
['Xavier Valls', 'brother', {'concept': 'common name'}] ['Luisangela Galfetti', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Luisangela_Galfetti property:brother ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q16659099,P7,c(Q502895))
['Q16659099', 'P7', {'concept': 'Q502895'}]
['Luisangela Galfetti', 'brother', {'concept': 'common name'}]
[]
Q117481
SYSTEM
Aurelio Galfetti
Q117481
(Q16659099,P7,c(Q502895))
action filter_type
action find
entity Q16659099
relation P7
type Q502895
[ANSWER] has that one as their sibling
['Q16659099', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q16659099 property:P7 ?o . ?o rdf:type ontology:Q502895 }
Aurelio Galfetti
Aurelio Galfetti has that one as their sibling
Aurelio Galfetti
action filter_type
action find
entity Luisangela Galfetti
relation brother
type common name
['Luisangela Galfetti', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Luisangela_Galfetti property:brother ?o . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q838948 Q732577
USER
Which occupations were the main subjects in the work approximately 17 works of art or publications ?
(c(Q838948)|c(Q732577),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 17
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?f ) WHERE { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } . ?g rdf:type ?c } GROUP BY ?w } . FILTER ( ?f = 17 ) }
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 17
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?f ) WHERE { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:publication ) } . ?g rdf:type ?c } GROUP BY ?w } . FILTER ( ?f = 17 ) }
[]
occupation work of art publication
Q164236 Q16746569
SYSTEM
war correspondent, high school student
Q164236 Q16746569
(c(Q838948)|c(Q732577),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 17
The [ANSWERS] were the main subjects in the work approximately 17 works of art or publications
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?f ) WHERE { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } . ?g rdf:type ?c } GROUP BY ?w } . FILTER ( ?f = 17 ) }
war correspondent high school student
The war correspondent and high school student were the main subjects in the work approximately 17 works of art or publications
war correspondent high school student
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 17
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?g ) AS ?f ) WHERE { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:publication ) } . ?g rdf:type ?c } GROUP BY ?w } . FILTER ( ?f = 17 ) }
[]