Simple Question (Direct)
Simple Question
Q864518
P462
Q1075
USER
Which color is RoboCop associated with ?
(Q864518,P462,c(Q1075))
action filter_type
action find
entity Q864518
relation P462
type Q1075
['Q864518', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?m WHERE { resource:Q864518 property:P462 ?m . ?m rdf:type ontology:Q1075 }
RoboCop
action filter_type
action find
entity RoboCop
relation color
type color
['RoboCop', 'color', {'concept': 'color'}]
SELECT DISTINCT ?m WHERE { resource:RoboCop property:color ?m . ?m rdf:type ontology:color }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q864518,P462,c(Q1075))
action filter_type
action find
entity Q864518
relation P462
type Q1075
RoboCop is associated with [ANSWER]
['Q864518', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?m WHERE { resource:Q864518 property:P462 ?m . ?m rdf:type ontology:Q1075 }
color
RoboCop is associated with color
color
action filter_type
action find
entity RoboCop
relation color
type color
['RoboCop', 'color', {'concept': 'color'}]
SELECT DISTINCT ?m WHERE { resource:RoboCop property:color ?m . ?m rdf:type ontology:color }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q864518
P162
Q502895
USER
Which people produced that work of art ?
(Q22006653,P162,c(Q502895))
action filter_type
action find
entity Q864518
relation P162
type Q502895
['Q22006653', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q864518 property:P162 ?a . ?a rdf:type ontology:Q502895 }
RoboCop
action filter_type
action find
entity RoboCop
relation producer
type common name
['color', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:RoboCop property:producer ?a . ?a rdf:type ontology:common_name }
[]
common name
Q3758467 Q2446795 Q3056362
SYSTEM
Gary Barber, Marc Abraham, Eric Newman
Q3056362 Q3758467 Q945551 Q2446795
(Q22006653,P162,c(Q502895))
action filter_type
action find
entity Q864518
relation P162
type Q502895
[ANSWERS] produced that work of art
['Q22006653', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q864518 property:P162 ?a . ?a rdf:type ontology:Q502895 }
Eric Newman Gary Barber Roger Birnbaum Marc Abraham
Gary Barber, Marc Abraham and Eric Newman produced that work of art
Gary Barber Marc Abraham Eric Newman
action filter_type
action find
entity RoboCop
relation producer
type common name
['color', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:RoboCop property:producer ?a . ?a rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P27
Q15617994
USER
How many administrative territories are the native countriesof that person ?
(Q3056362,P27,c(Q15617994))
['Q3056362', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q167994 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
['Eric Newman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Eric_Newman property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q3056362
SYSTEM
Did you mean Eric Newman ?
(Q3758467,P27,c(Q15617994)) (Q2446795,P27,c(Q15617994)) (Q3056362,P27,c(Q15617994))
[ANSWER]
['Q3758467', 'P27', {'concept': 'Q15617994'}] ['Q2446795', 'P27', {'concept': 'Q15617994'}] ['Q3056362', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q167994 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Eric Newman ?
Eric Newman
['Gary Barber', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Marc Abraham', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Eric Newman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Eric_Newman property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q3056362,P27,c(Q15617994))
['Q3056362', 'P27', {'concept': 'Q15617994'}]
['Eric Newman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q30
(Q3056362,P27,c(Q15617994))
[ANSWER]
['Q3056362', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q167994 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
1
['Eric Newman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Eric_Newman property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by max number of people ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?l ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:P1303 ?w . ?o rdf:type ontology:Q502895 . ?w rdf:type ontology:Q34379 } GROUP BY ?w } } . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?f ) WHERE { ?p rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 . ?h property:P1303 ?p } GROUP BY ?p } . FILTER ( ?f = ?l ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?l ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:instrument ?w . ?o rdf:type ontology:common_name . ?w rdf:type ontology:musical_instrument } GROUP BY ?w } } . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?f ) WHERE { ?p rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name . ?h property:instrument ?p } GROUP BY ?p } . FILTER ( ?f = ?l ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWER] is played by max number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?l ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:P1303 ?w . ?o rdf:type ontology:Q502895 . ?w rdf:type ontology:Q34379 } GROUP BY ?w } } . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?f ) WHERE { ?p rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 . ?h property:P1303 ?p } GROUP BY ?p } . FILTER ( ?f = ?l ) }
piano
Piano is played by max number of people
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?l ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?q ) WHERE { ?o property:instrument ?w . ?o rdf:type ontology:common_name . ?w rdf:type ontology:musical_instrument } GROUP BY ?w } } . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?f ) WHERE { ?p rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name . ?h property:instrument ?p } GROUP BY ?p } . FILTER ( ?f = ?l ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q34379 Q3305213
USER
How many paintings express atleast 1 musical instrument ?
(c(Q3305213),P180,c(Q34379))
action count
action atleast
action find_tuple_counts
relation P180
type Q3305213
type Q34379
value 1
[{'concept': 'Q3305213'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?h ) WHERE { ?q property:P180 ?m . ?m rdf:type ontology:Q34379 . ?q rdf:type ontology:Q3305213 } GROUP BY ?q } . FILTER ( ?h >= 1 ) }
action count
action atleast
action find_tuple_counts
relation depicts
type painting
type musical instrument
value 1
[{'concept': 'painting'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?h ) WHERE { ?q property:depicts ?m . ?m rdf:type ontology:musical_instrument . ?q rdf:type ontology:painting } GROUP BY ?q } . FILTER ( ?h >= 1 ) }
[]
musical instrument painting
SYSTEM
6
Q22570045 Q24090417 Q20081287 Q25540861 Q17189257 Q26972426
(c(Q3305213),P180,c(Q34379))
action count
action atleast
action find_tuple_counts
relation P180
type Q3305213
type Q34379
value 1
[ANSWER]
[{'concept': 'Q3305213'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?h ) WHERE { ?q property:P180 ?m . ?m rdf:type ontology:Q34379 . ?q rdf:type ontology:Q3305213 } GROUP BY ?q } . FILTER ( ?h >= 1 ) }
Picture clock with Alster panorama Sleep that knits up the ravell'd sleeve of care The Sideboard L'Ouïe Brita at the Piano Architectural Fantasy in the Style of Pompeii
6
action count
action atleast
action find_tuple_counts
relation depicts
type painting
type musical instrument
value 1
[{'concept': 'painting'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?h ) WHERE { ?q property:depicts ?m . ?m rdf:type ontology:musical_instrument . ?q rdf:type ontology:painting } GROUP BY ?q } . FILTER ( ?h >= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q864518
P57
Q502895
USER
Which person directed RoboCop ?
(Q864518,P57,c(Q502895))
action filter_type
action find
entity Q864518
relation P57
type Q502895
['Q864518', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q864518 property:P57 ?v . ?v rdf:type ontology:Q502895 }
RoboCop
action filter_type
action find
entity RoboCop
relation director
type common name
['RoboCop', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:RoboCop property:director ?v . ?v rdf:type ontology:common_name }
[]
common name
Q1332810
SYSTEM
José Padilha
Q1332810
(Q864518,P57,c(Q502895))
action filter_type
action find
entity Q864518
relation P57
type Q502895
[ANSWER] directed RoboCop
['Q864518', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q864518 property:P57 ?v . ?v rdf:type ontology:Q502895 }
José Padilha
José Padilha directed RoboCop
José Padilha
action filter_type
action find
entity RoboCop
relation director
type common name
['RoboCop', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:RoboCop property:director ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7637519
Q502895
USER
And how about Summer of Secrets?
(Q7637519,P57,c(Q502895))
action filter_type
action find
entity Q7637519
relation P57
type Q502895
['Q7637519', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q7637519 property:P57 ?d . ?d rdf:type ontology:Q502895 }
Summer of Secrets
action filter_type
action find
entity Summer of Secrets
relation director
type common name
['Summer of Secrets', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Summer_of_Secrets property:director ?d . ?d rdf:type ontology:common_name }
[]
common name
Q1689216
SYSTEM
Jim Sharman
Q1689216
(Q7637519,P57,c(Q502895))
action filter_type
action find
entity Q7637519
relation P57
type Q502895
[ANSWER]
['Q7637519', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q7637519 property:P57 ?d . ?d rdf:type ontology:Q502895 }
Jim Sharman
Jim Sharman
action filter_type
action find
entity Summer of Secrets
relation director
type common name
['Summer of Secrets', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Summer_of_Secrets property:director ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7637519
P364
Q34770
USER
Which language was used originally for the creation of that work of art ?
(Q1689216,P364,c(Q34770))
action filter_type
action find
entity Q7637519
relation P364
type Q34770
['Q1689216', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q7637519 property:P364 ?i . ?i rdf:type ontology:Q34770 }
Summer of Secrets
action filter_type
action find
entity Summer of Secrets
relation original language of work
type language
['Jim Sharman', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Summer_of_Secrets property:original_language_of_work ?i . ?i rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q1689216,P364,c(Q34770))
action filter_type
action find
entity Q7637519
relation P364
type Q34770
[ANSWER] was used originally for the creation of that work of art
['Q1689216', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?i WHERE { resource:Q7637519 property:P364 ?i . ?i rdf:type ontology:Q34770 }
English
English was used originally for the creation of that work of art
English
action filter_type
action find
entity Summer of Secrets
relation original language of work
type language
['Jim Sharman', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?i WHERE { resource:Summer_of_Secrets property:original_language_of_work ?i . ?i rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7637519
P750
Q43229
USER
Who serves as the distributor of that work of art ?
(Q1860,P750,c(Q43229))
action filter_type
action find
entity Q7637519
relation P750
type Q43229
['Q1860', 'P750', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { resource:Q7637519 property:P750 ?q . ?q rdf:type ontology:Q43229 }
Summer of Secrets
action filter_type
action find
entity Summer of Secrets
relation distributor
type organization
['English', 'distributor', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { resource:Summer_of_Secrets property:distributor ?q . ?q rdf:type ontology:organization }
[]
organization
Q5416698
SYSTEM
Event Cinemas
Q5416698
(Q1860,P750,c(Q43229))
action filter_type
action find
entity Q7637519
relation P750
type Q43229
[ANSWER] serves as the distributor of that work of art
['Q1860', 'P750', {'concept': 'Q43229'}]
SELECT DISTINCT ?q WHERE { resource:Q7637519 property:P750 ?q . ?q rdf:type ontology:Q43229 }
Event Cinemas
Event Cinemas serves as the distributor of that work of art
Event Cinemas
action filter_type
action find
entity Summer of Secrets
relation distributor
type organization
['English', 'distributor', {'concept': 'organization'}]
SELECT DISTINCT ?q WHERE { resource:Summer_of_Secrets property:distributor ?q . ?q rdf:type ontology:organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q5416698 Q5466776
P750
Q838948
USER
Does For Love Alone have that organization as its distributor ?
(Q5466776,P750,Q5416698)
action is_in
entity Q5416698
action find
entity Q5466776
relation P750
['Q5466776', 'P750', 'Q5416698']
ASK WHERE { resource:Q5466776 property:P750 resource:Q5416698 }
Event Cinemas For Love Alone
action is_in
entity Event Cinemas
action find
entity For Love Alone
relation distributor
['For Love Alone', 'distributor', 'Event Cinemas']
ASK WHERE { resource:For_Love_Alone property:distributor resource:Event_Cinemas }
[]
work of art
SYSTEM
YES
(Q5466776,P750,Q5416698)
action is_in
entity Q5416698
action find
entity Q5466776
relation P750
[ANSWER]
['Q5466776', 'P750', 'Q5416698']
ASK WHERE { resource:Q5466776 property:P750 resource:Q5416698 }
Yes
action is_in
entity Event Cinemas
action find
entity For Love Alone
relation distributor
['For Love Alone', 'distributor', 'Event Cinemas']
ASK WHERE { resource:For_Love_Alone property:distributor resource:Event_Cinemas }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5416698
P17
Q1048835
USER
Which political territory is Event Cinemas a part of ?
(Q5416698,P17,c(Q1048835))
action filter_type
action find
entity Q5416698
relation P17
type Q1048835
['Q5416698', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q5416698 property:P17 ?s . ?s rdf:type ontology:Q1048835 }
Event Cinemas
action filter_type
action find
entity Event Cinemas
relation country
type political territorial entity
['Event Cinemas', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Event_Cinemas property:country ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q5416698,P17,c(Q1048835))
action filter_type
action find
entity Q5416698
relation P17
type Q1048835
[ANSWER] is Event Cinemas a part of
['Q5416698', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q5416698 property:P17 ?s . ?s rdf:type ontology:Q1048835 }
Australia
Australia is Event Cinemas a part of
Australia
action filter_type
action find
entity Event Cinemas
relation country
type political territorial entity
['Event Cinemas', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Event_Cinemas property:country ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1689216
P58
Q838948
USER
Which works of art are Jim Sharman a screenwriter of ?
(c(Q838948),P58,Q1689216)
action filter_type
action find_reverse
entity Q1689216
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q1689216']
SELECT DISTINCT ?h WHERE { ?h property:P58 resource:Q1689216 . ?h rdf:type ontology:Q838948 }
Jim Sharman
action filter_type
action find_reverse
entity Jim Sharman
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Jim Sharman']
SELECT DISTINCT ?h WHERE { ?h property:screenwriter resource:Jim_Sharman . ?h rdf:type ontology:work_of_art }
[]
work of art
Q1628298 Q751921
SYSTEM
Shock Treatment, The Rocky Horror Picture Show
Q1628298 Q751921
(c(Q838948),P58,Q1689216)
action filter_type
action find_reverse
entity Q1689216
relation P58
type Q838948
The [ANSWERS] are Jim Sharman a screenwriter of
[{'concept': 'Q838948'}, 'P58', 'Q1689216']
SELECT DISTINCT ?h WHERE { ?h property:P58 resource:Q1689216 . ?h rdf:type ontology:Q838948 }
Shock Treatment The Rocky Horror Picture Show
The Shock Treatment and The Rocky Horror Picture Show are Jim Sharman a screenwriter of
Shock Treatment The Rocky Horror Picture Show
action filter_type
action find_reverse
entity Jim Sharman
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Jim Sharman']
SELECT DISTINCT ?h WHERE { ?h property:screenwriter resource:Jim_Sharman . ?h rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1628298 Q751921
P57
Q502895
USER
Who directed Shock Treatment and The Rocky Horror Picture Show ?
(Q1628298,P57,c(Q502895)) (Q751921,P57,c(Q502895))
action union
action filter_type
action find
entity Q1628298
relation P57
type Q502895
action filter_type
action find
entity Q751921
relation P57
type Q502895
['Q1628298', 'P57', {'concept': 'Q502895'}] ['Q751921', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:Q502895 . resource:Q1628298 property:P57 ?w } UNION { resource:Q751921 property:P57 ?w . ?w rdf:type ontology:Q502895 } }
Shock Treatment The Rocky Horror Picture Show
action union
action filter_type
action find
entity Shock Treatment
relation director
type common name
action filter_type
action find
entity The Rocky Horror Picture Show
relation director
type common name
['Shock Treatment', 'director', {'concept': 'common name'}] ['The Rocky Horror Picture Show', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:common_name . resource:Shock_Treatment property:director ?w } UNION { resource:The_Rocky_Horror_Picture_Show property:director ?w . ?w rdf:type ontology:common_name } }
[]
common name
Q1689216 Q1689216
SYSTEM
Jim Sharman
Q1689216 Q1689216
(Q1628298,P57,c(Q502895)) (Q751921,P57,c(Q502895))
action union
action filter_type
action find
entity Q1628298
relation P57
type Q502895
action filter_type
action find
entity Q751921
relation P57
type Q502895
[ANSWER] and [ANSWER] directed Shock Treatment and The Rocky Horror Picture Show
['Q1628298', 'P57', {'concept': 'Q502895'}] ['Q751921', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:Q502895 . resource:Q1628298 property:P57 ?w } UNION { resource:Q751921 property:P57 ?w . ?w rdf:type ontology:Q502895 } }
Jim Sharman Jim Sharman
Jim Sharman and Jim Sharman directed Shock Treatment and The Rocky Horror Picture Show
Jim Sharman Jim Sharman
action union
action filter_type
action find
entity Shock Treatment
relation director
type common name
action filter_type
action find
entity The Rocky Horror Picture Show
relation director
type common name
['Shock Treatment', 'director', {'concept': 'common name'}] ['The Rocky Horror Picture Show', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { ?w rdf:type ontology:common_name . resource:Shock_Treatment property:director ?w } UNION { resource:The_Rocky_Horror_Picture_Show property:director ?w . ?w rdf:type ontology:common_name } }
[]