Simple Question (Direct)
Simple Question
Q4503431
P166
Q618779
USER
What were received by Valentin Tsvetkov ?
(Q4503431,P166,c(Q618779))
action filter_type
action find
entity Q4503431
relation P166
type Q618779
['Q4503431', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?x WHERE { resource:Q4503431 property:P166 ?x . ?x rdf:type ontology:Q618779 }
Valentin Tsvetkov
action filter_type
action find
entity Valentin Tsvetkov
relation award received
type award
['Valentin Tsvetkov', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?x WHERE { resource:Valentin_Tsvetkov property:award_received ?x . ?x rdf:type ontology:award }
[]
award
Q2268261 Q18080423
SYSTEM
Order of Honour, Order For Services to the Fatherland 4th class
Q2268261 Q18080423
(Q4503431,P166,c(Q618779))
action filter_type
action find
entity Q4503431
relation P166
type Q618779
The [ANSWERS] were received by Valentin Tsvetkov
['Q4503431', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?x WHERE { resource:Q4503431 property:P166 ?x . ?x rdf:type ontology:Q618779 }
Order of Honour Order For Services to the Fatherland 4th class
The Order of Honour and Order For Services to the Fatherland 4th class were received by Valentin Tsvetkov
Order of Honour Order For Services to the Fatherland 4th class
action filter_type
action find
entity Valentin Tsvetkov
relation award received
type award
['Valentin Tsvetkov', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?x WHERE { resource:Valentin_Tsvetkov property:award_received ?x . ?x rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2268261
P17
Q15617994
USER
Which administrative territory is Order of Honour situated in ?
(Q2268261,P17,c(Q15617994))
action filter_type
action find
entity Q2268261
relation P17
type Q15617994
['Q2268261', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q2268261 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Order of Honour
action filter_type
action find
entity Order of Honour
relation country
type designation for an administrative territorial entity
['Order of Honour', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Order_of_Honour property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q2268261,P17,c(Q15617994))
action filter_type
action find
entity Q2268261
relation P17
type Q15617994
Which administrative territory is Order of Honour situated in
['Q2268261', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q2268261 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Russia
Which administrative territory is Order of Honour situated in
Russia
action filter_type
action find
entity Order of Honour
relation country
type designation for an administrative territorial entity
['Order of Honour', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Order_of_Honour property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q159 Q4064366
P27
Q502895
USER
Is Adam Amirilayev a citizen of that administrative territory ?
(Q4064366,P27,Q159)
action is_in
entity Q159
action find
entity Q4064366
relation P27
['Q4064366', 'P27', 'Q159']
ASK WHERE { resource:Q4064366 property:P27 resource:Q159 }
Russia Adam Amirilayev
action is_in
entity Russia
action find
entity Adam Amirilayev
relation country of citizenship
['Adam Amirilayev', 'country of citizenship', 'Russia']
ASK WHERE { resource:Adam_Amirilayev property:country_of_citizenship resource:Russia }
[]
common name
SYSTEM
YES
(Q4064366,P27,Q159)
action is_in
entity Q159
action find
entity Q4064366
relation P27
[ANSWER]
['Q4064366', 'P27', 'Q159']
ASK WHERE { resource:Q4064366 property:P27 resource:Q159 }
Yes
action is_in
entity Russia
action find
entity Adam Amirilayev
relation country of citizenship
['Adam Amirilayev', 'country of citizenship', 'Russia']
ASK WHERE { resource:Adam_Amirilayev property:country_of_citizenship resource:Russia }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q446634 Q91310
P106
Q151885
USER
How many concepts are the professions of Helen Walsh or Thomas David Lukas Olsen ?
(Q446634,P106,c(Q151885)) (Q91310,P106,c(Q151885))
action count
action union
action filter_type
action find
entity Q446634
relation P106
type Q151885
action filter_type
action find
entity Q91310
relation P106
type Q151885
['Q446634', 'P106', {'concept': 'Q151885'}] ['Q91310', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { resource:Q446634 property:P106 ?m . ?m rdf:type ontology:Q151885 } UNION { resource:Q91310 property:P106 ?m . ?m rdf:type ontology:Q151885 } }
Helen Walsh Thomas David Lukas Olsen
action count
action union
action filter_type
action find
entity Helen Walsh
relation occupation
type concept
action filter_type
action find
entity Thomas David Lukas Olsen
relation occupation
type concept
['Helen Walsh', 'occupation', {'concept': 'concept'}] ['Thomas David Lukas Olsen', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { resource:Helen_Walsh property:occupation ?m . ?m rdf:type ontology:concept } UNION { resource:Thomas_David_Lukas_Olsen property:occupation ?m . ?m rdf:type ontology:concept } }
[]
concept
SYSTEM
2
Q931260 Q2159907
(Q446634,P106,c(Q151885)) (Q91310,P106,c(Q151885))
action count
action union
action filter_type
action find
entity Q446634
relation P106
type Q151885
action filter_type
action find
entity Q91310
relation P106
type Q151885
[ANSWER]
['Q446634', 'P106', {'concept': 'Q151885'}] ['Q91310', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { resource:Q446634 property:P106 ?m . ?m rdf:type ontology:Q151885 } UNION { resource:Q91310 property:P106 ?m . ?m rdf:type ontology:Q151885 } }
murderer criminal
2
action count
action union
action filter_type
action find
entity Helen Walsh
relation occupation
type concept
action filter_type
action find
entity Thomas David Lukas Olsen
relation occupation
type concept
['Helen Walsh', 'occupation', {'concept': 'concept'}] ['Thomas David Lukas Olsen', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { resource:Helen_Walsh property:occupation ?m . ?m rdf:type ontology:concept } UNION { resource:Thomas_David_Lukas_Olsen property:occupation ?m . ?m rdf:type ontology:concept } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q717
P530
Q15617994 Q15617994
USER
How many administrative territories are known to have diplomatic connections with around the same number of administrative territories as Venezuela ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q717
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?t ) WHERE { ?m property:P530 ?q . ?m rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { resource:Q717 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?t = ?v ) }
Venezuela
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
action count
action filter_type
action find
entity Venezuela
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?t ) WHERE { ?m property:diplomatic_relation ?q . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { resource:Venezuela property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t = ?v ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q717
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?t ) WHERE { ?m property:P530 ?q . ?m rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { resource:Q717 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } . FILTER ( ?t = ?v ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
148
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
action count
action filter_type
action find
entity Venezuela
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?q ) AS ?t ) WHERE { ?m property:diplomatic_relation ?q . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { resource:Venezuela property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t = ?v ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?a ) WHERE { ?z property:P530 ?f . ?z rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?z } } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?w ) WHERE { ?x property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?a ) WHERE { ?z property:diplomatic_relation ?f . ?z rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?w ) WHERE { ?x property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] holds diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?a ) WHERE { ?z property:P530 ?f . ?z rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?z } } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?w ) WHERE { ?x property:P530 ?j . ?j rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } }
Germany
Germany holds diplomatic relationship with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?q ) { SELECT DISTINCT ?z ( COUNT ( ?f ) AS ?a ) WHERE { ?z property:diplomatic_relation ?f . ?z rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } } . FILTER ( ?w = ?q ) . { SELECT DISTINCT ?x ( COUNT ( ?j ) AS ?w ) WHERE { ?x property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q6075800
P27
Q502895
USER
Is Pilar Grande a citizen of that political territory ?
(Q6075800,P27,Q183)
action is_in
entity Q6075800
action find
entity Q183
relation P27
['Q6075800', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q6075800 }
Germany Pilar Grande
action is_in
entity Pilar Grande
action find
entity Germany
relation country of citizenship
['Pilar Grande', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:Pilar_Grande }
[]
common name
SYSTEM
NO
(Q6075800,P27,Q183)
action is_in
entity Q6075800
action find
entity Q183
relation P27
[ANSWER]
['Q6075800', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q6075800 }
No
action is_in
entity Pilar Grande
action find
entity Germany
relation country of citizenship
['Pilar Grande', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:Pilar_Grande }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1411
Q618779 Q838948 Q502895
USER
Which awards were max number of works of art or people nominated for ?
(c(Q838948)|c(Q502895),P1411,c(Q618779))
action argmax
action union
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q838948
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q502895
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?h ) WHERE { { ?i property:P1411 ?z . ?i rdf:type ontology:Q502895 . ?z rdf:type ontology:Q618779 } UNION { ?i property:P1411 ?z . ?z rdf:type ontology:Q618779 . ?i rdf:type ontology:Q838948 } } GROUP BY ?z } } . FILTER ( ?k = ?s ) . { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?k ) WHERE { { ?u rdf:type ontology:Q618779 . ?y rdf:type ontology:Q838948 . ?y property:P1411 ?u } UNION { ?y property:P1411 ?u . ?y rdf:type ontology:Q502895 . ?u rdf:type ontology:Q618779 } } GROUP BY ?u } }
action argmax
action union
action find_reverse_tuple_counts
relation nominated for
type award
type work of art
action find_reverse_tuple_counts
relation nominated for
type award
type common name
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?h ) WHERE { { ?i property:nominated_for ?z . ?i rdf:type ontology:common_name . ?z rdf:type ontology:award } UNION { ?i property:nominated_for ?z . ?z rdf:type ontology:award . ?i rdf:type ontology:work_of_art } } GROUP BY ?z } } . FILTER ( ?k = ?s ) . { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?k ) WHERE { { ?u rdf:type ontology:award . ?y rdf:type ontology:work_of_art . ?y property:nominated_for ?u } UNION { ?y property:nominated_for ?u . ?y rdf:type ontology:common_name . ?u rdf:type ontology:award } } GROUP BY ?u } }
[]
award work of art common name
Q37922
SYSTEM
Nobel Prize in Literature
Q37922
(c(Q838948)|c(Q502895),P1411,c(Q618779))
action argmax
action union
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q838948
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q502895
Max number of works of art or people nominated for were the [ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?h ) WHERE { { ?i property:P1411 ?z . ?i rdf:type ontology:Q502895 . ?z rdf:type ontology:Q618779 } UNION { ?i property:P1411 ?z . ?z rdf:type ontology:Q618779 . ?i rdf:type ontology:Q838948 } } GROUP BY ?z } } . FILTER ( ?k = ?s ) . { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?k ) WHERE { { ?u rdf:type ontology:Q618779 . ?y rdf:type ontology:Q838948 . ?y property:P1411 ?u } UNION { ?y property:P1411 ?u . ?y rdf:type ontology:Q502895 . ?u rdf:type ontology:Q618779 } } GROUP BY ?u } }
Nobel Prize in Literature
Max number of works of art or people nominated for were the Nobel Prize in Literature
Nobel Prize in Literature
action argmax
action union
action find_reverse_tuple_counts
relation nominated for
type award
type work of art
action find_reverse_tuple_counts
relation nominated for
type award
type common name
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?z ( COUNT ( ?i ) AS ?h ) WHERE { { ?i property:nominated_for ?z . ?i rdf:type ontology:common_name . ?z rdf:type ontology:award } UNION { ?i property:nominated_for ?z . ?z rdf:type ontology:award . ?i rdf:type ontology:work_of_art } } GROUP BY ?z } } . FILTER ( ?k = ?s ) . { SELECT DISTINCT ?u ( COUNT ( ?y ) AS ?k ) WHERE { { ?u rdf:type ontology:award . ?y rdf:type ontology:work_of_art . ?y property:nominated_for ?u } UNION { ?y property:nominated_for ?u . ?y rdf:type ontology:common_name . ?u rdf:type ontology:award } } GROUP BY ?u } }
[]