Simple Question (Direct)
Simple Question
Q1544932
P1344
Q15900616
USER
Which event sequence did Greg Johnson compete in ?
(Q1544932,P1344,c(Q15900616))
action filter_type
action find
entity Q1544932
relation P1344
type Q15900616
['Q1544932', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?s WHERE { resource:Q1544932 property:P1344 ?s . ?s rdf:type ontology:Q15900616 }
Greg Johnson
action filter_type
action find
entity Greg Johnson
relation participant of
type event sequence
['Greg Johnson', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?s WHERE { resource:Greg_Johnson property:participant_of ?s . ?s rdf:type ontology:event_sequence }
[]
event sequence
Q9663
SYSTEM
1994 Winter Olympics
Q9663
(Q1544932,P1344,c(Q15900616))
action filter_type
action find
entity Q1544932
relation P1344
type Q15900616
Greg Johnson competed in [ANSWER]
['Q1544932', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?s WHERE { resource:Q1544932 property:P1344 ?s . ?s rdf:type ontology:Q15900616 }
1994 Winter Olympics
Greg Johnson competed in 1994 Winter Olympics
1994 Winter Olympics
action filter_type
action find
entity Greg Johnson
relation participant of
type event sequence
['Greg Johnson', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?s WHERE { resource:Greg_Johnson property:participant_of ?s . ?s rdf:type ontology:event_sequence }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1544932
P161
Q838948
USER
Which work of art has Greg Johnson as actor ?
(c(Q838948),P161,Q1544932)
action filter_type
action find_reverse
entity Q1544932
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q1544932']
SELECT DISTINCT ?y WHERE { ?y property:P161 resource:Q1544932 . ?y rdf:type ontology:Q838948 }
Greg Johnson
action filter_type
action find_reverse
entity Greg Johnson
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Greg Johnson']
SELECT DISTINCT ?y WHERE { ?y property:cast_member resource:Greg_Johnson . ?y rdf:type ontology:work_of_art }
[]
work of art
Q1877215
SYSTEM
Lulu on the Bridge
Q1877215
(c(Q838948),P161,Q1544932)
action filter_type
action find_reverse
entity Q1544932
relation P161
type Q838948
[ANSWER] has Greg Johnson as actor
[{'concept': 'Q838948'}, 'P161', 'Q1544932']
SELECT DISTINCT ?y WHERE { ?y property:P161 resource:Q1544932 . ?y rdf:type ontology:Q838948 }
Lulu on the Bridge
Lulu on the Bridge has Greg Johnson as actor
Lulu on the Bridge
action filter_type
action find_reverse
entity Greg Johnson
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Greg Johnson']
SELECT DISTINCT ?y WHERE { ?y property:cast_member resource:Greg_Johnson . ?y rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1544932
P58
Q838948
USER
Which works of art have that person as screenwriter ?
(c(Q838948),P58,Q1877215)
action filter_type
action find_reverse
entity Q1544932
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q1877215']
SELECT DISTINCT ?n WHERE { ?n property:P58 resource:Q1544932 . ?n rdf:type ontology:Q838948 }
Greg Johnson
action filter_type
action find_reverse
entity Greg Johnson
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Lulu on the Bridge']
SELECT DISTINCT ?n WHERE { ?n property:screenwriter resource:Greg_Johnson . ?n rdf:type ontology:work_of_art }
[]
work of art
Q2662947 Q1051702
SYSTEM
Planet Hulk, Ultimate Avengers
Q2662947 Q1051702
(c(Q838948),P58,Q1877215)
action filter_type
action find_reverse
entity Q1544932
relation P58
type Q838948
[ANSWERS] have that person as screenwriter
[{'concept': 'Q838948'}, 'P58', 'Q1877215']
SELECT DISTINCT ?n WHERE { ?n property:P58 resource:Q1544932 . ?n rdf:type ontology:Q838948 }
Planet Hulk Ultimate Avengers
Planet Hulk and Ultimate Avengers have that person as screenwriter
Planet Hulk Ultimate Avengers
action filter_type
action find_reverse
entity Greg Johnson
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Lulu on the Bridge']
SELECT DISTINCT ?n WHERE { ?n property:screenwriter resource:Greg_Johnson . ?n rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4225570 Q9663
P27 P17
Q15617994
USER
Which administrative territories are 1994 Winter Olympics situated in or are Andrey Kovalyov an inhabitant of ?
OR((Q9663,P17,c(Q15617994)), (Q4225570,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q9663
relation P17
action find
entity Q4225570
relation P27
type Q15617994
{'OR': [['Q9663', 'P17', {'concept': 'Q15617994'}], ['Q4225570', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q9663 property:P17 ?t } UNION { resource:Q4225570 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Andrey Kovalyov 1994 Winter Olympics
action filter_type
action union
action find
entity 1994 Winter Olympics
relation country
action find
entity Andrey Kovalyov
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['1994 Winter Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Andrey Kovalyov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:1994_Winter_Olympics property:country ?t } UNION { resource:Andrey_Kovalyov property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q159
SYSTEM
Norway, Russia
Q20 Q159
OR((Q9663,P17,c(Q15617994)), (Q4225570,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q9663
relation P17
action find
entity Q4225570
relation P27
type Q15617994
1994 Winter Olympics Andrey Kovalyov are situated in [ANSWERS] or are an inhabitant of
{'OR': [['Q9663', 'P17', {'concept': 'Q15617994'}], ['Q4225570', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q9663 property:P17 ?t } UNION { resource:Q4225570 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Norway Russia
1994 Winter Olympics Andrey Kovalyov are situated in Norway and Russia or are an inhabitant of
Norway Russia
action filter_type
action union
action find
entity 1994 Winter Olympics
relation country
action find
entity Andrey Kovalyov
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['1994 Winter Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Andrey Kovalyov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:1994_Winter_Olympics property:country ?t } UNION { resource:Andrey_Kovalyov property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4225570
P102
Q766570
USER
Which political party in Russia is that person a member of ?
(Q20,P102,c(Q766570)) (Q159,P102,c(Q766570))
action filter_type
action find
entity Q4225570
relation P102
type Q766570
['Q20', 'P102', {'concept': 'Q766570'}] ['Q159', 'P102', {'concept': 'Q766570'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q766570 . resource:Q4225570 property:P102 ?l }
Andrey Kovalyov
action filter_type
action find
entity Andrey Kovalyov
relation member of political party
type political party in Russia
['Norway', 'member of political party', {'concept': 'political party in Russia'}] ['Russia', 'member of political party', {'concept': 'political party in Russia'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_party_in_Russia . resource:Andrey_Kovalyov property:member_of_political_party ?l }
[]
political party in Russia
Q151469
SYSTEM
United Russia
Q151469
(Q20,P102,c(Q766570)) (Q159,P102,c(Q766570))
action filter_type
action find
entity Q4225570
relation P102
type Q766570
The [ANSWER] is that person a member of
['Q20', 'P102', {'concept': 'Q766570'}] ['Q159', 'P102', {'concept': 'Q766570'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q766570 . resource:Q4225570 property:P102 ?l }
United Russia
The United Russia is that person a member of
United Russia
action filter_type
action find
entity Andrey Kovalyov
relation member of political party
type political party in Russia
['Norway', 'member of political party', {'concept': 'political party in Russia'}] ['Russia', 'member of political party', {'concept': 'political party in Russia'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_party_in_Russia . resource:Andrey_Kovalyov property:member_of_political_party ?l }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1051702
P161
Q502895
USER
How many people were casted in Ultimate Avengers ?
(Q1051702,P161,c(Q502895))
action count
action filter_type
action find
entity Q1051702
relation P161
type Q502895
['Q1051702', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m rdf:type ontology:Q502895 . resource:Q1051702 property:P161 ?m }
Ultimate Avengers
action count
action filter_type
action find
entity Ultimate Avengers
relation cast member
type common name
['Ultimate Avengers', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m rdf:type ontology:common_name . resource:Ultimate_Avengers property:cast_member ?m }
[]
common name
SYSTEM
15
Q4280417 Q526468 Q5228378 Q6317636 Q1147104 Q2536187 Q847133 Q1262695 Q1408782 Q952156 Q837676 Q1892866 Q6394410 Q266361 Q13938
(Q1051702,P161,c(Q502895))
action count
action filter_type
action find
entity Q1051702
relation P161
type Q502895
[ANSWER]
['Q1051702', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m rdf:type ontology:Q502895 . resource:Q1051702 property:P161 ?m }
Jim Ward Michael Massee Dave Boat Justin Gross Nolan North James Arnold Taylor Fred Tatasciore Quinton Flynn Keith Ferguson Steven Blum Dee Bradley Baker Marc Worden Kerrigan Mahan Olivia d'Abo Grey DeLisle
15
action count
action filter_type
action find
entity Ultimate Avengers
relation cast member
type common name
['Ultimate Avengers', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m rdf:type ontology:common_name . resource:Ultimate_Avengers property:cast_member ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1051702
P840
Q56061
USER
Which narrative location is that work of art set in ?
action filter_type
action find
entity Q1051702
relation P840
type Q56061
SELECT DISTINCT ?u WHERE { resource:Q1051702 property:P840 ?u . ?u rdf:type ontology:Q56061 }
Ultimate Avengers
action filter_type
action find
entity Ultimate Avengers
relation narrative location
type administrative territorial entity
SELECT DISTINCT ?u WHERE { resource:Ultimate_Avengers property:narrative_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
action filter_type
action find
entity Q1051702
relation P840
type Q56061
That work of art is set in [ANSWER]
SELECT DISTINCT ?u WHERE { resource:Q1051702 property:P840 ?u . ?u rdf:type ontology:Q56061 }
New York City
That work of art is set in New York City
New York City
action filter_type
action find
entity Ultimate Avengers
relation narrative location
type administrative territorial entity
SELECT DISTINCT ?u WHERE { resource:Ultimate_Avengers property:narrative_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19329946 Q1051702
P840 P276
Q56061
USER
Which administrative territories are the narrative locations of Ultimate Avengers or are the locations of Lorentzlaan ?
OR((Q1051702,P840,c(Q56061)), (Q19329946,P276,c(Q56061)))
action filter_type
action union
action find
entity Q1051702
relation P840
action find
entity Q19329946
relation P276
type Q56061
{'OR': [['Q1051702', 'P840', {'concept': 'Q56061'}], ['Q19329946', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q19329946 property:P276 ?u } UNION { resource:Q1051702 property:P840 ?u } } . ?u rdf:type ontology:Q56061 }
Lorentzlaan Ultimate Avengers
action filter_type
action union
action find
entity Ultimate Avengers
relation narrative location
action find
entity Lorentzlaan
relation location
type administrative territorial entity
{'OR': [['Ultimate Avengers', 'narrative location', {'concept': 'administrative territorial entity'}], ['Lorentzlaan', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Lorentzlaan property:location ?u } UNION { resource:Ultimate_Avengers property:narrative_location ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q73101 Q60
SYSTEM
Dieren, New York City
Q73101 Q60
OR((Q1051702,P840,c(Q56061)), (Q19329946,P276,c(Q56061)))
action filter_type
action union
action find
entity Q1051702
relation P840
action find
entity Q19329946
relation P276
type Q56061
[ANSWERS] are the narrative locations of Ultimate Avengers or are the locations of Lorentzlaan
{'OR': [['Q1051702', 'P840', {'concept': 'Q56061'}], ['Q19329946', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q19329946 property:P276 ?u } UNION { resource:Q1051702 property:P840 ?u } } . ?u rdf:type ontology:Q56061 }
Dieren New York City
Dieren and New York City are the narrative locations of Ultimate Avengers or are the locations of Lorentzlaan
Dieren New York City
action filter_type
action union
action find
entity Ultimate Avengers
relation narrative location
action find
entity Lorentzlaan
relation location
type administrative territorial entity
{'OR': [['Ultimate Avengers', 'narrative location', {'concept': 'administrative territorial entity'}], ['Lorentzlaan', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Lorentzlaan property:location ?u } UNION { resource:Ultimate_Avengers property:narrative_location ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P291
Q234460 Q571
USER
How many texts and books have that administrative territory as their publication place ?
(c(Q234460),P291,Q60) (c(Q571),P291,Q60) (c(Q234460),P291,Q73101) (c(Q571),P291,Q73101) (c(Q234460),P291,Q60) (c(Q571),P291,Q60)
[{'concept': 'Q234460'}, 'P291', 'Q60'] [{'concept': 'Q571'}, 'P291', 'Q60'] [{'concept': 'Q234460'}, 'P291', 'Q73101'] [{'concept': 'Q571'}, 'P291', 'Q73101'] [{'concept': 'Q234460'}, 'P291', 'Q60'] [{'concept': 'Q571'}, 'P291', 'Q60']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q1361759 resource:Q60 } UNION { ?y property:Q1361759 resource:Q60 } UNION { ?z property:Q1361759 resource:Q2003297 } UNION { ?y property:Q1361759 resource:Q2003297 } UNION { ?z property:Q1361759 resource:Q60 } UNION { ?y property:Q1361759 resource:Q60 } } . ?z rdf:type ontology:Q234460 . ?y rdf:type ontology:Q997698 }
[{'concept': 'text'}, 'place of publication', 'New York City'] [{'concept': 'book'}, 'place of publication', 'New York City'] [{'concept': 'text'}, 'place of publication', 'Dieren'] [{'concept': 'book'}, 'place of publication', 'Dieren'] [{'concept': 'text'}, 'place of publication', 'New York City'] [{'concept': 'book'}, 'place of publication', 'New York City']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:place_of_publication resource:New_York_City } UNION { ?y property:place_of_publication resource:New_York_City } UNION { ?z property:place_of_publication resource:Dieren } UNION { ?y property:place_of_publication resource:Dieren } UNION { ?z property:place_of_publication resource:New_York_City } UNION { ?y property:place_of_publication resource:New_York_City } } . ?z rdf:type ontology:text . ?y rdf:type ontology:book }
[]
text book
Quantitative|Count|Mult. entity type|Clarification
Q60
SYSTEM
Did you mean New York City ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q1361759 resource:Q60 } UNION { ?y property:Q1361759 resource:Q60 } UNION { ?z property:Q1361759 resource:Q2003297 } UNION { ?y property:Q1361759 resource:Q2003297 } UNION { ?z property:Q1361759 resource:Q60 } UNION { ?y property:Q1361759 resource:Q60 } } . ?z rdf:type ontology:Q234460 . ?y rdf:type ontology:Q997698 }
Did you mean New York City ?
New York City
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:place_of_publication resource:New_York_City } UNION { ?y property:place_of_publication resource:New_York_City } UNION { ?z property:place_of_publication resource:Dieren } UNION { ?y property:place_of_publication resource:Dieren } UNION { ?z property:place_of_publication resource:New_York_City } UNION { ?y property:place_of_publication resource:New_York_City } } . ?z rdf:type ontology:text . ?y rdf:type ontology:book }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q234460),P291,Q60) (c(Q571),P291,Q60) (c(Q234460),P291,Q73101) (c(Q571),P291,Q73101) (c(Q234460),P291,Q60) (c(Q571),P291,Q60)
[{'concept': 'Q234460'}, 'P291', 'Q60'] [{'concept': 'Q571'}, 'P291', 'Q60'] [{'concept': 'Q234460'}, 'P291', 'Q73101'] [{'concept': 'Q571'}, 'P291', 'Q73101'] [{'concept': 'Q234460'}, 'P291', 'Q60'] [{'concept': 'Q571'}, 'P291', 'Q60']
[{'concept': 'text'}, 'place of publication', 'New York City'] [{'concept': 'book'}, 'place of publication', 'New York City'] [{'concept': 'text'}, 'place of publication', 'Dieren'] [{'concept': 'book'}, 'place of publication', 'Dieren'] [{'concept': 'text'}, 'place of publication', 'New York City'] [{'concept': 'book'}, 'place of publication', 'New York City']
[]
SYSTEM
3 texts and 53 books
Q16735825 Q20036816 Q18336549 Q21293917 Q15525082 Q19414318 Q22244929 Q19078505 Q19045322 Q15725990 Q2422150 Q21043248 Q19913224 Q22137014 Q20872998 Q20058722 Q18819332 Q23741758 Q1198259 Q15303884 Q26453924 Q22029364 Q24529688 Q15942359 Q19097851 Q19836017 Q19088887 Q23802084 Q19826579 Q15882244 Q24533267 Q19086853 Q23016299 Q14944010 Q19093396 Q19055028 Q24258942 Q27577956 Q867541 Q538574 Q26045067 Q17317589 Q24338874 Q24254986 Q19064851 Q19795188 Q23946080 Q19093101 Q18508115 Q21065550 Q19098298 Q22247351 Q17534320 Q22116974 Q15152326 Q23649752
(c(Q234460),P291,Q60) (c(Q571),P291,Q60) (c(Q234460),P291,Q73101) (c(Q571),P291,Q73101) (c(Q234460),P291,Q60) (c(Q571),P291,Q60)
[ANSWER]
[{'concept': 'Q234460'}, 'P291', 'Q60'] [{'concept': 'Q571'}, 'P291', 'Q60'] [{'concept': 'Q234460'}, 'P291', 'Q73101'] [{'concept': 'Q571'}, 'P291', 'Q73101'] [{'concept': 'Q234460'}, 'P291', 'Q60'] [{'concept': 'Q571'}, 'P291', 'Q60']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q1361759 resource:Q60 } UNION { ?y property:Q1361759 resource:Q60 } UNION { ?z property:Q1361759 resource:Q2003297 } UNION { ?y property:Q1361759 resource:Q2003297 } UNION { ?z property:Q1361759 resource:Q60 } UNION { ?y property:Q1361759 resource:Q60 } } . ?z rdf:type ontology:Q234460 . ?y rdf:type ontology:Q997698 }
De finibus bonorum et malorum (English, 1914) Framley Parsonage Dog Years (New York 1965) The Unexpurgated Case Against Woman Suffrage Chaplin: A Life (hardcover 1 ed.) Who's Who in Music (2nd edition) POPL '05 Woman's Who's Who of America Homes of the London Poor Charlie and the Chocolate Factory (US 1964) Hemispheres Leading Constitutional Decisions (1925 ed.) The Rover Boys at School The encyclopedia of horses & ponies A Jewish State Butterfly Man Conan the Conqueror Japan: a lecture The Eighteenth Brumaire of Louis Napoleon List of 2011 MLA Members A history of freedom of thought British physiologists 1885-1914 : a biographical dictionary (1991 ed.) Wrong and Right Methods of Dealing with Social Evil Le petit prince (edition New York 1943) The Return of Sherlock Holmes Dictionary of American Medical Biography The Great Problems of British Statesmanship Dracula Amos Richardson of Boston and Stonington (2nd edition) My Life in China and America (1 ed.) Three Lectures on the Vedanta Philosophy The Federalist, 1898 edition The pilgrimage of Etheria Treasure Island (1911, Charles Scribner's Sons) The Man with the Hoe, and Other Poems Stabilizing the Dollar Selected Papers on Hysteria and Other Psychoneuroses The Fate of Fenella 1911 Encyclopædia Britannica Vita Karoli Magni A History of Banking in the United States Цяжкі час — Працяг. Канцэпцыя новага Беларускага Адраджэньня, кн. 3, артыкулы і матэр’ялы (2003−2010) The Nature and Origin of the Noun Genders of the Indo-European Languages Kings and Kingdoms of Early Anglo-Saxon England Cotton and Immigration Dawn over India Impressions de mes voyages aux Indes Eight Harvard Poets The Call of the Toad (New York 1992) Dictionary of Biblical Criticism and Interpretation (2007 ed.) The Rover Boys on the Ocean ACM SIGPLAN Notices Kepler AFIPS '70 (Fall) The Autobiography of Alice B. Toklas (1st edition) Baboo Hurry Bungsho Jabberjee, B.A.
3 texts and 53 books
[{'concept': 'text'}, 'place of publication', 'New York City'] [{'concept': 'book'}, 'place of publication', 'New York City'] [{'concept': 'text'}, 'place of publication', 'Dieren'] [{'concept': 'book'}, 'place of publication', 'Dieren'] [{'concept': 'text'}, 'place of publication', 'New York City'] [{'concept': 'book'}, 'place of publication', 'New York City']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:place_of_publication resource:New_York_City } UNION { ?y property:place_of_publication resource:New_York_City } UNION { ?z property:place_of_publication resource:Dieren } UNION { ?y property:place_of_publication resource:Dieren } UNION { ?z property:place_of_publication resource:New_York_City } UNION { ?y property:place_of_publication resource:New_York_City } } . ?z rdf:type ontology:text . ?y rdf:type ontology:book }
[]