Simple Question (Direct)
Simple Question
Q360528
P69
Q41176
USER
Which building is James Purefoy an alumni of ?
(Q360528,P69,c(Q41176))
action filter_type
action find
entity Q360528
relation P69
type Q41176
['Q360528', 'P69', {'concept': 'Q41176'}]
SELECT DISTINCT ?o WHERE { resource:Q360528 property:P69 ?o . ?o rdf:type ontology:Q41176 }
James Purefoy
action filter_type
action find
entity James Purefoy
relation educated at
type building
['James Purefoy', 'educated at', {'concept': 'building'}]
SELECT DISTINCT ?o WHERE { resource:James_Purefoy property:educated_at ?o . ?o rdf:type ontology:building }
[]
building
Q2278254
SYSTEM
Sherborne School
Q2278254
(Q360528,P69,c(Q41176))
action filter_type
action find
entity Q360528
relation P69
type Q41176
[ANSWER] is James Purefoy an alumni of
['Q360528', 'P69', {'concept': 'Q41176'}]
SELECT DISTINCT ?o WHERE { resource:Q360528 property:P69 ?o . ?o rdf:type ontology:Q41176 }
Sherborne School
Sherborne School is James Purefoy an alumni of
Sherborne School
action filter_type
action find
entity James Purefoy
relation educated at
type building
['James Purefoy', 'educated at', {'concept': 'building'}]
SELECT DISTINCT ?o WHERE { resource:James_Purefoy property:educated_at ?o . ?o rdf:type ontology:building }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q360528
P26
Q502895
USER
Which person has James Purefoy as spouse ?
(c(Q502895),P26,Q360528)
action filter_type
action find
entity Q360528
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q360528']
SELECT DISTINCT ?q WHERE { resource:Q360528 property:P26 ?q . ?q rdf:type ontology:Q502895 }
James Purefoy
action filter_type
action find
entity James Purefoy
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'James Purefoy']
SELECT DISTINCT ?q WHERE { resource:James_Purefoy property:spouse ?q . ?q rdf:type ontology:common_name }
[]
common name
Q5881891
SYSTEM
Holly Aird
Q5881891
(c(Q502895),P26,Q360528)
action filter_type
action find
entity Q360528
relation P26
type Q502895
[ANSWER] has James Purefoy as spouse
[{'concept': 'Q502895'}, 'P26', 'Q360528']
SELECT DISTINCT ?q WHERE { resource:Q360528 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Holly Aird
Holly Aird has James Purefoy as spouse
Holly Aird
action filter_type
action find
entity James Purefoy
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'James Purefoy']
SELECT DISTINCT ?q WHERE { resource:James_Purefoy property:spouse ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q360528
P106
Q12737077
USER
What is the job of James Purefoy ?
(Q360528,P106,c(Q12737077))
action filter_type
action find
entity Q360528
relation P106
type Q12737077
['Q360528', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q360528 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
James Purefoy
action filter_type
action find
entity James Purefoy
relation occupation
type occupation
['James Purefoy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:James_Purefoy property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q360528,P106,c(Q12737077))
action filter_type
action find
entity Q360528
relation P106
type Q12737077
The job of James Purefoy is an [ANSWER]
['Q360528', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q360528 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
actor
The job of James Purefoy is an actor
actor
action filter_type
action find
entity James Purefoy
relation occupation
type occupation
['James Purefoy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:James_Purefoy property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q360528
P161
Q15416
USER
Which television programs do James Purefoy star in ?
(c(Q15416),P161,Q360528)
action filter_type
action find_reverse
entity Q360528
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q360528']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15416 . ?w property:P161 resource:Q360528 }
James Purefoy
action filter_type
action find_reverse
entity James Purefoy
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'James Purefoy']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:television_program . ?w property:cast_member resource:James_Purefoy }
[]
television program
Q1028495 Q4394952 Q20715692
SYSTEM
Camelot, Richard II, Hap and Leonard
Q1028495 Q4877345 Q2662205 Q20715692 Q4394952
(c(Q15416),P161,Q360528)
action filter_type
action find_reverse
entity Q360528
relation P161
type Q15416
James Purefoy star [ANSWERS]
[{'concept': 'Q15416'}, 'P161', 'Q360528']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15416 . ?w property:P161 resource:Q360528 }
Camelot Beau Brummell: This Charming Man The Philanthropist Hap and Leonard Richard II
James Purefoy star Camelot, Richard II and Hap and Leonard
Camelot Richard II Hap and Leonard
action filter_type
action find_reverse
entity James Purefoy
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'James Purefoy']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:television_program . ?w property:cast_member resource:James_Purefoy }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4394952
P58
Q502895
USER
Which people wrote the script for that television program ?
(Q4394952,P58,c(Q502895))
action filter_type
action find
entity Q4394952
relation P58
type Q502895
['Q4394952', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q4394952 property:P58 ?b . ?b rdf:type ontology:Q502895 }
Richard II
action filter_type
action find
entity Richard II
relation screenwriter
type common name
['Richard II', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Richard_II property:screenwriter ?b . ?b rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q4394952
SYSTEM
Did you mean Richard II ?
Q1028495 Q4394952 Q20715692
(Q1028495,P58,c(Q502895)) (Q4394952,P58,c(Q502895)) (Q20715692,P58,c(Q502895))
[ANSWER]
['Q1028495', 'P58', {'concept': 'Q502895'}] ['Q4394952', 'P58', {'concept': 'Q502895'}] ['Q20715692', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q4394952 property:P58 ?b . ?b rdf:type ontology:Q502895 }
Camelot Richard II Hap and Leonard
Did you mean Richard II ?
Richard II
['Camelot', 'screenwriter', {'concept': 'common name'}] ['Richard II', 'screenwriter', {'concept': 'common name'}] ['Hap and Leonard', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Richard_II property:screenwriter ?b . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q4394952,P58,c(Q502895))
['Q4394952', 'P58', {'concept': 'Q502895'}]
['Richard II', 'screenwriter', {'concept': 'common name'}]
[]
Q4886308 Q7380291
SYSTEM
Ben Power, Rupert Goold
Q4886308 Q7380291
(Q4394952,P58,c(Q502895))
action filter_type
action find
entity Q4394952
relation P58
type Q502895
[ANSWERS] wrote the script for that television program
['Q4394952', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q4394952 property:P58 ?b . ?b rdf:type ontology:Q502895 }
Ben Power Rupert Goold
Ben Power and Rupert Goold wrote the script for that television program
Ben Power Rupert Goold
action filter_type
action find
entity Richard II
relation screenwriter
type common name
['Richard II', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Richard_II property:screenwriter ?b . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1028495
P136
Q1792379 Q5962346
USER
How many art genres or classification schemes do Camelot belong to ?
(Q1028495,P136,c(Q1792379)) (Q1028495,P136,c(Q5962346))
action count
action union
action filter_type
action find
entity Q1028495
relation P136
type Q1792379
action filter_type
action find
entity Q1028495
relation P136
type Q5962346
['Q1028495', 'P136', {'concept': 'Q1792379'}] ['Q1028495', 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { ?q rdf:type ontology:Q1792379 . resource:Q1028495 property:P136 ?q } UNION { resource:Q1028495 property:P136 ?q . ?q rdf:type ontology:Q5962346 } }
Camelot
action count
action union
action filter_type
action find
entity Camelot
relation genre
type art genre
action filter_type
action find
entity Camelot
relation genre
type classification scheme
['Camelot', 'genre', {'concept': 'art genre'}] ['Camelot', 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { ?q rdf:type ontology:art_genre . resource:Camelot property:genre ?q } UNION { resource:Camelot property:genre ?q . ?q rdf:type ontology:classification_scheme } }
[]
art genre classification scheme
SYSTEM
2
Q5434357 Q319221
(Q1028495,P136,c(Q1792379)) (Q1028495,P136,c(Q5962346))
action count
action union
action filter_type
action find
entity Q1028495
relation P136
type Q1792379
action filter_type
action find
entity Q1028495
relation P136
type Q5962346
[ANSWER]
['Q1028495', 'P136', {'concept': 'Q1792379'}] ['Q1028495', 'P136', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { ?q rdf:type ontology:Q1792379 . resource:Q1028495 property:P136 ?q } UNION { resource:Q1028495 property:P136 ?q . ?q rdf:type ontology:Q5962346 } }
fantasy television adventure film
2
action count
action union
action filter_type
action find
entity Camelot
relation genre
type art genre
action filter_type
action find
entity Camelot
relation genre
type classification scheme
['Camelot', 'genre', {'concept': 'art genre'}] ['Camelot', 'genre', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?n ) WHERE { { ?q rdf:type ontology:art_genre . resource:Camelot property:genre ?q } UNION { resource:Camelot property:genre ?q . ?q rdf:type ontology:classification_scheme } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1028495
P161
Q502895
USER
How many people were casted in Camelot ?
(Q1028495,P161,c(Q502895))
action count
action filter_type
action find
entity Q1028495
relation P161
type Q502895
['Q1028495', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q1028495 property:P161 ?u . ?u rdf:type ontology:Q502895 }
Camelot
action count
action filter_type
action find
entity Camelot
relation cast member
type common name
['Camelot', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Camelot property:cast_member ?u . ?u rdf:type ontology:common_name }
[]
common name
SYSTEM
11
Q223790 Q256042 Q576266 Q360528 Q1567773 Q40228 Q1770468 Q5101628 Q191644 Q224782 Q313283
(Q1028495,P161,c(Q502895))
action count
action filter_type
action find
entity Q1028495
relation P161
type Q502895
[ANSWER]
['Q1028495', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q1028495 property:P161 ?u . ?u rdf:type ontology:Q502895 }
Joseph Fiennes Tamsin Egerton Peter Mooney James Purefoy Clive Standen Claire Forlani Philip Winchester Chipo Chung Eva Green Sinéad Cusack Jamie Campbell Bower
11
action count
action filter_type
action find
entity Camelot
relation cast member
type common name
['Camelot', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Camelot property:cast_member ?u . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q3605515
Q502895
USER
And also tell me about Adorabili e bugiarde?
(Q3605515,P161,c(Q502895))
action count
action filter_type
action find
entity Q3605515
relation P161
type Q502895
['Q3605515', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Q3605515 property:P161 ?o . ?o rdf:type ontology:Q502895 }
Adorabili e bugiarde
action count
action filter_type
action find
entity Adorabili e bugiarde
relation cast member
type common name
['Adorabili e bugiarde', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Adorabili_e_bugiarde property:cast_member ?o . ?o rdf:type ontology:common_name }
[]
common name
SYSTEM
26
(Q3605515,P161,c(Q502895))
action count
action filter_type
action find
entity Q3605515
relation P161
type Q502895
[ANSWER]
['Q3605515', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Q3605515 property:P161 ?o . ?o rdf:type ontology:Q502895 }
26
action count
action filter_type
action find
entity Adorabili e bugiarde
relation cast member
type common name
['Adorabili e bugiarde', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { resource:Adorabili_e_bugiarde property:cast_member ?o . ?o rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q7380291
P57 P495
Q838948
USER
Which works of art are Rupert Goold a director of and originated in United States of America ?
AND((c(Q838948),P57,Q7380291), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q7380291
relation P57
action find_reverse
entity Q30
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q7380291'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?e WHERE { ?e property:P495 resource:Q30 . ?e property:P57 resource:Q7380291 . ?e rdf:type ontology:Q838948 }
United States of America Rupert Goold
action filter_type
action intersection
action find_reverse
entity Rupert Goold
relation director
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Rupert Goold'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?e WHERE { ?e property:country_of_origin resource:United_States_of_America . ?e property:director resource:Rupert_Goold . ?e rdf:type ontology:work_of_art }
[]
work of art
Q14317024
SYSTEM
True Story
Q14317024
AND((c(Q838948),P57,Q7380291), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q7380291
relation P57
action find_reverse
entity Q30
relation P495
type Q838948
[ANSWER] is Rupert Goold a director of and originated in United States of America
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q7380291'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?e WHERE { ?e property:P495 resource:Q30 . ?e property:P57 resource:Q7380291 . ?e rdf:type ontology:Q838948 }
True Story
True Story is Rupert Goold a director of and originated in United States of America
True Story
action filter_type
action intersection
action find_reverse
entity Rupert Goold
relation director
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Rupert Goold'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?e WHERE { ?e property:country_of_origin resource:United_States_of_America . ?e property:director resource:Rupert_Goold . ?e rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q5398426 Q223393 Q15416
USER
Which television programs are based on atleast 1 television series and literary genres ?
(c(Q15416),P144,c(Q5398426)|c(Q223393))
action atleast
action union
action find_tuple_counts
relation P144
type Q15416
type Q5398426
action find_tuple_counts
relation P144
type Q15416
type Q223393
value 1
[{'concept': 'Q15416'}, 'P144', [{'concept': 'Q5398426'}, {'concept': 'Q223393'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) ?h WHERE { { ?h property:P144 ?y . ?h rdf:type ontology:Q15416 . ?y rdf:type ontology:Q223393 } UNION { ?h property:P144 ?y . ?h rdf:type ontology:Q15416 . ?y rdf:type ontology:Q5398426 } } GROUP BY ?h } . FILTER ( ?k >= 1 ) }
action atleast
action union
action find_tuple_counts
relation based on
type television program
type television series
action find_tuple_counts
relation based on
type television program
type literary genre
value 1
[{'concept': 'television program'}, 'based on', [{'concept': 'television series'}, {'concept': 'literary genre'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) ?h WHERE { { ?h property:based_on ?y . ?h rdf:type ontology:television_program . ?y rdf:type ontology:literary_genre } UNION { ?h property:based_on ?y . ?h rdf:type ontology:television_program . ?y rdf:type ontology:television_series } } GROUP BY ?h } . FILTER ( ?k >= 1 ) }
[]
television series literary genre television program
Q237072 Q3633433 Q1254966
SYSTEM
Battlestar Galactica, Balliamo e cantiamo con Licia, Dragon Ball Z: Fusion Reborn
Q21707012 Q2002243 Q26196762 Q11579238 Q11579239 Q11579237 Q26196784 Q3837771 Q26263336 Q5368891 Q1254966 Q18558839 Q7766200 Q1092278 Q3831996 Q482653 Q1093054 Q237072 Q26196764 Q698194 Q20669175 Q25205246 Q244511 Q6072379 Q6726240 Q5363863 Q3983440 Q3110705 Q545333 Q1176254 Q3633433 Q1364951 Q587876 Q3840835 Q3840830 Q10854562 Q1440610 Q15908149 Q7734281 Q18578765 Q1536734 Q2555347 Q26196772 Q12964447
(c(Q15416),P144,c(Q5398426)|c(Q223393))
action atleast
action union
action find_tuple_counts
relation P144
type Q15416
type Q5398426
action find_tuple_counts
relation P144
type Q15416
type Q223393
value 1
[ANSWERS] are based on atleast 1 television series and literary genres
[{'concept': 'Q15416'}, 'P144', [{'concept': 'Q5398426'}, {'concept': 'Q223393'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) ?h WHERE { { ?h property:P144 ?y . ?h rdf:type ontology:Q15416 . ?y rdf:type ontology:Q223393 } UNION { ?h property:P144 ?y . ?h rdf:type ontology:Q15416 . ?y rdf:type ontology:Q5398426 } } GROUP BY ?h } . FILTER ( ?k >= 1 ) }
Virtual Nightmare Snow White: The Fairest of Them All A Warning to the Curious Shiroi Kyotō Shiroi Kyotō Shiroi Kyotō The Ash-tree Love Me Licia Zbeng Meteor Shower Dragon Ball Z: Fusion Reborn Soul Eater Not! The Stalls of Barchester Cinderella Licia dolce Licia Boys Over Flowers Hana Yori Dango Returns Battlestar Galactica Lost Hearts New Legend of Madame White Snake Hana Yori Dango Eyewitness Twitches Iron Chef America Madam White Snake Shiroi Kyotō Teneramente Licia Goodbye Lady Liberty Meteor Garden The Legend of Snow White Balliamo e cantiamo con Licia Lupin the 3rd vs Detective Conan The Cheetah Girls 2 Lupin III: Seven Days Rhapsody Lupin III: Alcatraz Connection H2: Kimi to Ita Hibi Lupin the Third: Dragon of Doom Himitsu The Five Forty-Eight Blood Lad Quicksilver Highway Children of the Corn The Treasure of Abbot Thomas 81diver
Battlestar Galactica, Balliamo e cantiamo con Licia and Dragon Ball Z: Fusion Reborn are based on atleast 1 television series and literary genres
Battlestar Galactica Balliamo e cantiamo con Licia Dragon Ball Z: Fusion Reborn
action atleast
action union
action find_tuple_counts
relation based on
type television program
type television series
action find_tuple_counts
relation based on
type television program
type literary genre
value 1
[{'concept': 'television program'}, 'based on', [{'concept': 'television series'}, {'concept': 'literary genre'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) ?h WHERE { { ?h property:based_on ?y . ?h rdf:type ontology:television_program . ?y rdf:type ontology:literary_genre } UNION { ?h property:based_on ?y . ?h rdf:type ontology:television_program . ?y rdf:type ontology:television_series } } GROUP BY ?h } . FILTER ( ?k >= 1 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1441
Q2775969 Q6619679
USER
How many fictional planets and fictional humanoids are seen in that television program ?
(c(Q2775969),P1441,Q237072) (c(Q6619679),P1441,Q237072) (c(Q2775969),P1441,Q237072) (c(Q6619679),P1441,Q237072) (c(Q2775969),P1441,Q3633433) (c(Q6619679),P1441,Q3633433) (c(Q2775969),P1441,Q1254966) (c(Q6619679),P1441,Q1254966)
[{'concept': 'Q2775969'}, 'P1441', 'Q237072'] [{'concept': 'Q6619679'}, 'P1441', 'Q237072'] [{'concept': 'Q2775969'}, 'P1441', 'Q237072'] [{'concept': 'Q6619679'}, 'P1441', 'Q237072'] [{'concept': 'Q2775969'}, 'P1441', 'Q3633433'] [{'concept': 'Q6619679'}, 'P1441', 'Q3633433'] [{'concept': 'Q2775969'}, 'P1441', 'Q1254966'] [{'concept': 'Q6619679'}, 'P1441', 'Q1254966']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P1441 resource:Q237072 } UNION { ?y property:P1441 resource:Q237072 } UNION { ?z property:P1441 resource:Q237072 } UNION { ?y property:P1441 resource:Q237072 } UNION { ?z property:P1441 resource:Q3633433 } UNION { ?y property:P1441 resource:Q3633433 } UNION { ?z property:P1441 resource:Q1254966 } UNION { ?y property:P1441 resource:Q1254966 } } . ?z rdf:type ontology:Q2775969 . ?y rdf:type ontology:Q6619679 }
[{'concept': 'fictional planet'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional humanoid'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional planet'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional humanoid'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional planet'}, 'present in work', 'Balliamo e cantiamo con Licia'] [{'concept': 'fictional humanoid'}, 'present in work', 'Balliamo e cantiamo con Licia'] [{'concept': 'fictional planet'}, 'present in work', 'Dragon Ball Z: Fusion Reborn'] [{'concept': 'fictional humanoid'}, 'present in work', 'Dragon Ball Z: Fusion Reborn']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:present_in_work resource:Battlestar_Galactica } UNION { ?y property:present_in_work resource:Battlestar_Galactica } UNION { ?z property:present_in_work resource:Battlestar_Galactica } UNION { ?y property:present_in_work resource:Battlestar_Galactica } UNION { ?z property:present_in_work resource:Balliamo_e_cantiamo_con_Licia } UNION { ?y property:present_in_work resource:Balliamo_e_cantiamo_con_Licia } UNION { ?z property:present_in_work resource:Dragon_Ball_Z:_Fusion_Reborn } UNION { ?y property:present_in_work resource:Dragon_Ball_Z:_Fusion_Reborn } } . ?z rdf:type ontology:fictional_planet . ?y rdf:type ontology:fictional_humanoid }
[]
fictional planet fictional humanoid
Quantitative|Count|Mult. entity type|Clarification
Q3633433
SYSTEM
Did you mean Balliamo e cantiamo con Licia ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P1441 resource:Q237072 } UNION { ?y property:P1441 resource:Q237072 } UNION { ?z property:P1441 resource:Q237072 } UNION { ?y property:P1441 resource:Q237072 } UNION { ?z property:P1441 resource:Q3633433 } UNION { ?y property:P1441 resource:Q3633433 } UNION { ?z property:P1441 resource:Q1254966 } UNION { ?y property:P1441 resource:Q1254966 } } . ?z rdf:type ontology:Q2775969 . ?y rdf:type ontology:Q6619679 }
Did you mean Balliamo e cantiamo con Licia ?
Balliamo e cantiamo con Licia
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:present_in_work resource:Battlestar_Galactica } UNION { ?y property:present_in_work resource:Battlestar_Galactica } UNION { ?z property:present_in_work resource:Battlestar_Galactica } UNION { ?y property:present_in_work resource:Battlestar_Galactica } UNION { ?z property:present_in_work resource:Balliamo_e_cantiamo_con_Licia } UNION { ?y property:present_in_work resource:Balliamo_e_cantiamo_con_Licia } UNION { ?z property:present_in_work resource:Dragon_Ball_Z:_Fusion_Reborn } UNION { ?y property:present_in_work resource:Dragon_Ball_Z:_Fusion_Reborn } } . ?z rdf:type ontology:fictional_planet . ?y rdf:type ontology:fictional_humanoid }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Battlestar Galactica. Could you tell me the answer for that?
(c(Q2775969),P1441,Q237072) (c(Q6619679),P1441,Q237072) (c(Q2775969),P1441,Q237072) (c(Q6619679),P1441,Q237072) (c(Q2775969),P1441,Q3633433) (c(Q6619679),P1441,Q3633433) (c(Q2775969),P1441,Q1254966) (c(Q6619679),P1441,Q1254966)
Q237072
[{'concept': 'Q2775969'}, 'P1441', 'Q237072'] [{'concept': 'Q6619679'}, 'P1441', 'Q237072'] [{'concept': 'Q2775969'}, 'P1441', 'Q237072'] [{'concept': 'Q6619679'}, 'P1441', 'Q237072'] [{'concept': 'Q2775969'}, 'P1441', 'Q3633433'] [{'concept': 'Q6619679'}, 'P1441', 'Q3633433'] [{'concept': 'Q2775969'}, 'P1441', 'Q1254966'] [{'concept': 'Q6619679'}, 'P1441', 'Q1254966']
[{'concept': 'fictional planet'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional humanoid'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional planet'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional humanoid'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional planet'}, 'present in work', 'Balliamo e cantiamo con Licia'] [{'concept': 'fictional humanoid'}, 'present in work', 'Balliamo e cantiamo con Licia'] [{'concept': 'fictional planet'}, 'present in work', 'Dragon Ball Z: Fusion Reborn'] [{'concept': 'fictional humanoid'}, 'present in work', 'Dragon Ball Z: Fusion Reborn']
[]
SYSTEM
2 fictional planets and 6 fictional humanoids
Q2448661 Q622667 Q604854 Q5367217 Q1908648 Q3493558 Q620253 Q621358
(c(Q2775969),P1441,Q237072) (c(Q6619679),P1441,Q237072) (c(Q2775969),P1441,Q237072) (c(Q6619679),P1441,Q237072) (c(Q2775969),P1441,Q3633433) (c(Q6619679),P1441,Q3633433) (c(Q2775969),P1441,Q1254966) (c(Q6619679),P1441,Q1254966)
[ANSWER]
[{'concept': 'Q2775969'}, 'P1441', 'Q237072'] [{'concept': 'Q6619679'}, 'P1441', 'Q237072'] [{'concept': 'Q2775969'}, 'P1441', 'Q237072'] [{'concept': 'Q6619679'}, 'P1441', 'Q237072'] [{'concept': 'Q2775969'}, 'P1441', 'Q3633433'] [{'concept': 'Q6619679'}, 'P1441', 'Q3633433'] [{'concept': 'Q2775969'}, 'P1441', 'Q1254966'] [{'concept': 'Q6619679'}, 'P1441', 'Q1254966']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:P1441 resource:Q237072 } UNION { ?y property:P1441 resource:Q237072 } UNION { ?z property:P1441 resource:Q237072 } UNION { ?y property:P1441 resource:Q237072 } UNION { ?z property:P1441 resource:Q3633433 } UNION { ?y property:P1441 resource:Q3633433 } UNION { ?z property:P1441 resource:Q1254966 } UNION { ?y property:P1441 resource:Q1254966 } } . ?z rdf:type ontology:Q2775969 . ?y rdf:type ontology:Q6619679 }
Felix Gaeta Laura Roslin Kobol Elosha Gaius Baltar Caprica William Adama Lee Adama
2 fictional planets and 6 fictional humanoids
[{'concept': 'fictional planet'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional humanoid'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional planet'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional humanoid'}, 'present in work', 'Battlestar Galactica'] [{'concept': 'fictional planet'}, 'present in work', 'Balliamo e cantiamo con Licia'] [{'concept': 'fictional humanoid'}, 'present in work', 'Balliamo e cantiamo con Licia'] [{'concept': 'fictional planet'}, 'present in work', 'Dragon Ball Z: Fusion Reborn'] [{'concept': 'fictional humanoid'}, 'present in work', 'Dragon Ball Z: Fusion Reborn']
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { ?z property:present_in_work resource:Battlestar_Galactica } UNION { ?y property:present_in_work resource:Battlestar_Galactica } UNION { ?z property:present_in_work resource:Battlestar_Galactica } UNION { ?y property:present_in_work resource:Battlestar_Galactica } UNION { ?z property:present_in_work resource:Balliamo_e_cantiamo_con_Licia } UNION { ?y property:present_in_work resource:Balliamo_e_cantiamo_con_Licia } UNION { ?z property:present_in_work resource:Dragon_Ball_Z:_Fusion_Reborn } UNION { ?y property:present_in_work resource:Dragon_Ball_Z:_Fusion_Reborn } } . ?z rdf:type ontology:fictional_planet . ?y rdf:type ontology:fictional_humanoid }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6091062 Q1028495
P840
Q1496967
USER
Which territories are the narrative locations of Camelot and It's a Cop ?
AND((Q1028495,P840,c(Q1496967)), (Q6091062,P840,c(Q1496967)))
action filter_type
action intersection
action find
entity Q1028495
relation P840
action find
entity Q6091062
relation P840
type Q1496967
{'AND': [['Q1028495', 'P840', {'concept': 'Q1496967'}], ['Q6091062', 'P840', {'concept': 'Q1496967'}]]}
SELECT DISTINCT ?l WHERE { resource:Q1028495 property:P840 ?l . resource:Q6091062 property:P840 ?l . ?l rdf:type ontology:Q1496967 }
It's a Cop Camelot
action filter_type
action intersection
action find
entity Camelot
relation narrative location
action find
entity It's a Cop
relation narrative location
type territorial entity
{'AND': [['Camelot', 'narrative location', {'concept': 'territorial entity'}], ["It's a Cop", 'narrative location', {'concept': 'territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Camelot property:narrative_location ?l . resource:It's_a_Cop property:narrative_location ?l . ?l rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
AND((Q1028495,P840,c(Q1496967)), (Q6091062,P840,c(Q1496967)))
action filter_type
action intersection
action find
entity Q1028495
relation P840
action find
entity Q6091062
relation P840
type Q1496967
[ANSWER] is the narrative locations of Camelot and It's a Cop
{'AND': [['Q1028495', 'P840', {'concept': 'Q1496967'}], ['Q6091062', 'P840', {'concept': 'Q1496967'}]]}
SELECT DISTINCT ?l WHERE { resource:Q1028495 property:P840 ?l . resource:Q6091062 property:P840 ?l . ?l rdf:type ontology:Q1496967 }
England
England is the narrative locations of Camelot and It's a Cop
England
action filter_type
action intersection
action find
entity Camelot
relation narrative location
action find
entity It's a Cop
relation narrative location
type territorial entity
{'AND': [['Camelot', 'narrative location', {'concept': 'territorial entity'}], ["It's a Cop", 'narrative location', {'concept': 'territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Camelot property:narrative_location ?l . resource:It's_a_Cop property:narrative_location ?l . ?l rdf:type ontology:territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q838948 Q482994 Q3305213
USER
Which works of art are around 1 albums or paintings a component of ?
(c(Q482994)|c(Q3305213),P361,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
value 1
[[{'concept': 'Q482994'}, {'concept': 'Q3305213'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?r WHERE { { ?o property:P361 ?r . ?r rdf:type ontology:Q838948 . ?o rdf:type ontology:Q482994 } UNION { ?o property:P361 ?r . ?r rdf:type ontology:Q838948 . ?o rdf:type ontology:Q3305213 } } GROUP BY ?r } . FILTER ( ?v = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type album
action find_reverse_tuple_counts
relation part of
type work of art
type painting
value 1
[[{'concept': 'album'}, {'concept': 'painting'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?r WHERE { { ?o property:part_of ?r . ?r rdf:type ontology:work_of_art . ?o rdf:type ontology:album } UNION { ?o property:part_of ?r . ?r rdf:type ontology:work_of_art . ?o rdf:type ontology:painting } } GROUP BY ?r } . FILTER ( ?v = 1 ) }
[]
work of art album painting
Q205028 Q232009 Q161687
SYSTEM
Iron Man 2, Harry Potter and the Deathly Hallows – Part 2, Harry Potter and the Half-Blood Prince
Q4143086 Q284184 Q161687 Q1534737 Q1411766 Q205028 Q332368 Q478748 Q103569 Q3907478 Q971109 Q463313 Q232009
(c(Q482994)|c(Q3305213),P361,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
action find_reverse_tuple_counts
relation P361
type Q838948
type Q3305213
value 1
[ANSWERS] are around 1 albums or paintings a component of
[[{'concept': 'Q482994'}, {'concept': 'Q3305213'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?r WHERE { { ?o property:P361 ?r . ?r rdf:type ontology:Q838948 . ?o rdf:type ontology:Q482994 } UNION { ?o property:P361 ?r . ?r rdf:type ontology:Q838948 . ?o rdf:type ontology:Q3305213 } } GROUP BY ?r } . FILTER ( ?v = 1 ) }
Ride Ra.One Harry Potter and the Half-Blood Prince Life predella Iron Man 2 A View to a Kill The Holiday Alien Roverella Altarpiece Inferno Romeo + Juliet Harry Potter and the Deathly Hallows – Part 2
Iron Man 2, Harry Potter and the Deathly Hallows – Part 2 and Harry Potter and the Half-Blood Prince are around 1 albums or paintings a component of
Iron Man 2 Harry Potter and the Deathly Hallows – Part 2 Harry Potter and the Half-Blood Prince
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type album
action find_reverse_tuple_counts
relation part of
type work of art
type painting
value 1
[[{'concept': 'album'}, {'concept': 'painting'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) ?r WHERE { { ?o property:part_of ?r . ?r rdf:type ontology:work_of_art . ?o rdf:type ontology:album } UNION { ?o property:part_of ?r . ?r rdf:type ontology:work_of_art . ?o rdf:type ontology:painting } } GROUP BY ?r } . FILTER ( ?v = 1 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P921
Q4894405 Q386724
USER
How many journalism genres and works are that work of art a main subject of ?
(c(Q4894405),P921,Q205028) (c(Q386724),P921,Q205028) (c(Q4894405),P921,Q205028) (c(Q386724),P921,Q205028) (c(Q4894405),P921,Q232009) (c(Q386724),P921,Q232009) (c(Q4894405),P921,Q161687) (c(Q386724),P921,Q161687)
[{'concept': 'Q4894405'}, 'P921', 'Q205028'] [{'concept': 'Q386724'}, 'P921', 'Q205028'] [{'concept': 'Q4894405'}, 'P921', 'Q205028'] [{'concept': 'Q386724'}, 'P921', 'Q205028'] [{'concept': 'Q4894405'}, 'P921', 'Q232009'] [{'concept': 'Q386724'}, 'P921', 'Q232009'] [{'concept': 'Q4894405'}, 'P921', 'Q161687'] [{'concept': 'Q386724'}, 'P921', 'Q161687']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P921 resource:Q3802097 } UNION { ?y property:P921 resource:Q3802097 } UNION { ?z property:P921 resource:Q3802097 } UNION { ?y property:P921 resource:Q3802097 } UNION { ?z property:P921 resource:Q232009 } UNION { ?y property:P921 resource:Q232009 } UNION { ?z property:P921 resource:Q862524 } UNION { ?y property:P921 resource:Q862524 } } . ?z rdf:type ontology:Q4894405 . ?y rdf:type ontology:Q16532276 }
[{'concept': 'journalism genre'}, 'main subject', 'Iron Man 2'] [{'concept': 'work'}, 'main subject', 'Iron Man 2'] [{'concept': 'journalism genre'}, 'main subject', 'Iron Man 2'] [{'concept': 'work'}, 'main subject', 'Iron Man 2'] [{'concept': 'journalism genre'}, 'main subject', 'Harry Potter and the Deathly Hallows – Part 2'] [{'concept': 'work'}, 'main subject', 'Harry Potter and the Deathly Hallows – Part 2'] [{'concept': 'journalism genre'}, 'main subject', 'Harry Potter and the Half-Blood Prince'] [{'concept': 'work'}, 'main subject', 'Harry Potter and the Half-Blood Prince']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:main_subject resource:Iron_Man_2 } UNION { ?y property:main_subject resource:Iron_Man_2 } UNION { ?z property:main_subject resource:Iron_Man_2 } UNION { ?y property:main_subject resource:Iron_Man_2 } UNION { ?z property:main_subject resource:Harry_Potter_and_the_Deathly_Hallows_–_Part_2 } UNION { ?y property:main_subject resource:Harry_Potter_and_the_Deathly_Hallows_–_Part_2 } UNION { ?z property:main_subject resource:Harry_Potter_and_the_Half-Blood_Prince } UNION { ?y property:main_subject resource:Harry_Potter_and_the_Half-Blood_Prince } } . ?z rdf:type ontology:journalism_genre . ?y rdf:type ontology:work }
[]
journalism genre work
Quantitative|Count|Mult. entity type|Clarification
Q232009
SYSTEM
Did you mean Harry Potter and the Deathly Hallows – Part 2 ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P921 resource:Q3802097 } UNION { ?y property:P921 resource:Q3802097 } UNION { ?z property:P921 resource:Q3802097 } UNION { ?y property:P921 resource:Q3802097 } UNION { ?z property:P921 resource:Q232009 } UNION { ?y property:P921 resource:Q232009 } UNION { ?z property:P921 resource:Q862524 } UNION { ?y property:P921 resource:Q862524 } } . ?z rdf:type ontology:Q4894405 . ?y rdf:type ontology:Q16532276 }
Did you mean Harry Potter and the Deathly Hallows – Part 2 ?
Harry Potter and the Deathly Hallows – Part 2
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:main_subject resource:Iron_Man_2 } UNION { ?y property:main_subject resource:Iron_Man_2 } UNION { ?z property:main_subject resource:Iron_Man_2 } UNION { ?y property:main_subject resource:Iron_Man_2 } UNION { ?z property:main_subject resource:Harry_Potter_and_the_Deathly_Hallows_–_Part_2 } UNION { ?y property:main_subject resource:Harry_Potter_and_the_Deathly_Hallows_–_Part_2 } UNION { ?z property:main_subject resource:Harry_Potter_and_the_Half-Blood_Prince } UNION { ?y property:main_subject resource:Harry_Potter_and_the_Half-Blood_Prince } } . ?z rdf:type ontology:journalism_genre . ?y rdf:type ontology:work }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Iron Man 2. Could you tell me the answer for that?
(c(Q4894405),P921,Q205028) (c(Q386724),P921,Q205028) (c(Q4894405),P921,Q205028) (c(Q386724),P921,Q205028) (c(Q4894405),P921,Q232009) (c(Q386724),P921,Q232009) (c(Q4894405),P921,Q161687) (c(Q386724),P921,Q161687)
Q205028
[{'concept': 'Q4894405'}, 'P921', 'Q205028'] [{'concept': 'Q386724'}, 'P921', 'Q205028'] [{'concept': 'Q4894405'}, 'P921', 'Q205028'] [{'concept': 'Q386724'}, 'P921', 'Q205028'] [{'concept': 'Q4894405'}, 'P921', 'Q232009'] [{'concept': 'Q386724'}, 'P921', 'Q232009'] [{'concept': 'Q4894405'}, 'P921', 'Q161687'] [{'concept': 'Q386724'}, 'P921', 'Q161687']
[{'concept': 'journalism genre'}, 'main subject', 'Iron Man 2'] [{'concept': 'work'}, 'main subject', 'Iron Man 2'] [{'concept': 'journalism genre'}, 'main subject', 'Iron Man 2'] [{'concept': 'work'}, 'main subject', 'Iron Man 2'] [{'concept': 'journalism genre'}, 'main subject', 'Harry Potter and the Deathly Hallows – Part 2'] [{'concept': 'work'}, 'main subject', 'Harry Potter and the Deathly Hallows – Part 2'] [{'concept': 'journalism genre'}, 'main subject', 'Harry Potter and the Half-Blood Prince'] [{'concept': 'work'}, 'main subject', 'Harry Potter and the Half-Blood Prince']
[]
SYSTEM
2 journalism genres and 1 works
Q24073931 Q24073917 Q24073899
(c(Q4894405),P921,Q205028) (c(Q386724),P921,Q205028) (c(Q4894405),P921,Q205028) (c(Q386724),P921,Q205028) (c(Q4894405),P921,Q232009) (c(Q386724),P921,Q232009) (c(Q4894405),P921,Q161687) (c(Q386724),P921,Q161687)
[ANSWER]
[{'concept': 'Q4894405'}, 'P921', 'Q205028'] [{'concept': 'Q386724'}, 'P921', 'Q205028'] [{'concept': 'Q4894405'}, 'P921', 'Q205028'] [{'concept': 'Q386724'}, 'P921', 'Q205028'] [{'concept': 'Q4894405'}, 'P921', 'Q232009'] [{'concept': 'Q386724'}, 'P921', 'Q232009'] [{'concept': 'Q4894405'}, 'P921', 'Q161687'] [{'concept': 'Q386724'}, 'P921', 'Q161687']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P921 resource:Q3802097 } UNION { ?y property:P921 resource:Q3802097 } UNION { ?z property:P921 resource:Q3802097 } UNION { ?y property:P921 resource:Q3802097 } UNION { ?z property:P921 resource:Q232009 } UNION { ?y property:P921 resource:Q232009 } UNION { ?z property:P921 resource:Q862524 } UNION { ?y property:P921 resource:Q862524 } } . ?z rdf:type ontology:Q4894405 . ?y rdf:type ontology:Q16532276 }
‘IRON MAN 2’ WEBSITE LAUNCHES WITH SOUNDTRACK PREVIEW AND NEW IMAGES! Spoilers: The Secret Ending of Iron Man 2 Revealed It's his strong suit
2 journalism genres and 1 works
[{'concept': 'journalism genre'}, 'main subject', 'Iron Man 2'] [{'concept': 'work'}, 'main subject', 'Iron Man 2'] [{'concept': 'journalism genre'}, 'main subject', 'Iron Man 2'] [{'concept': 'work'}, 'main subject', 'Iron Man 2'] [{'concept': 'journalism genre'}, 'main subject', 'Harry Potter and the Deathly Hallows – Part 2'] [{'concept': 'work'}, 'main subject', 'Harry Potter and the Deathly Hallows – Part 2'] [{'concept': 'journalism genre'}, 'main subject', 'Harry Potter and the Half-Blood Prince'] [{'concept': 'work'}, 'main subject', 'Harry Potter and the Half-Blood Prince']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:main_subject resource:Iron_Man_2 } UNION { ?y property:main_subject resource:Iron_Man_2 } UNION { ?z property:main_subject resource:Iron_Man_2 } UNION { ?y property:main_subject resource:Iron_Man_2 } UNION { ?z property:main_subject resource:Harry_Potter_and_the_Deathly_Hallows_–_Part_2 } UNION { ?y property:main_subject resource:Harry_Potter_and_the_Deathly_Hallows_–_Part_2 } UNION { ?z property:main_subject resource:Harry_Potter_and_the_Half-Blood_Prince } UNION { ?y property:main_subject resource:Harry_Potter_and_the_Half-Blood_Prince } } . ?z rdf:type ontology:journalism_genre . ?y rdf:type ontology:work }
[]