Simple Question (Direct)
Simple Question
Q23034797
P86
Q502895
USER
Who wrote the music for The Promise ?
(Q23034797,P86,c(Q502895))
action filter_type
action find
entity Q23034797
relation P86
type Q502895
['Q23034797', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q23034797 property:P86 ?w . ?w rdf:type ontology:Q502895 }
The Promise
action filter_type
action find
entity The Promise
relation composer
type common name
['The Promise', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:The_Promise property:composer ?w . ?w rdf:type ontology:common_name }
[]
common name
Q23888169
SYSTEM
Michele Gentile
Q23888169
(Q23034797,P86,c(Q502895))
action filter_type
action find
entity Q23034797
relation P86
type Q502895
[ANSWER] wrote the music for The Promise
['Q23034797', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q23034797 property:P86 ?w . ?w rdf:type ontology:Q502895 }
Michele Gentile
Michele Gentile wrote the music for The Promise
Michele Gentile
action filter_type
action find
entity The Promise
relation composer
type common name
['The Promise', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:The_Promise property:composer ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23034797
P57
Q502895
USER
Who directed The Promise ?
(Q23034797,P57,c(Q502895))
action filter_type
action find
entity Q23034797
relation P57
type Q502895
['Q23034797', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q23034797 property:P57 ?z . ?z rdf:type ontology:Q502895 }
The Promise
action filter_type
action find
entity The Promise
relation director
type common name
['The Promise', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:The_Promise property:director ?z . ?z rdf:type ontology:common_name }
[]
common name
Q1299356 Q26821209
SYSTEM
Marcus Vetter, Karin Steinberger
Q1299356 Q26821209
(Q23034797,P57,c(Q502895))
action filter_type
action find
entity Q23034797
relation P57
type Q502895
[ANSWERS] directed The Promise
['Q23034797', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q23034797 property:P57 ?z . ?z rdf:type ontology:Q502895 }
Marcus Vetter Karin Steinberger
Marcus Vetter and Karin Steinberger directed The Promise
Marcus Vetter Karin Steinberger
action filter_type
action find
entity The Promise
relation director
type common name
['The Promise', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:The_Promise property:director ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q13389113
Q502895
USER
And how about Laughing Gas?
(Q13389113,P57,c(Q502895))
action filter_type
action find
entity Q13389113
relation P57
type Q502895
['Q13389113', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q13389113 property:P57 ?e . ?e rdf:type ontology:Q502895 }
Laughing Gas
action filter_type
action find
entity Laughing Gas
relation director
type common name
['Laughing Gas', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Laughing_Gas property:director ?e . ?e rdf:type ontology:common_name }
[]
common name
Q347864
SYSTEM
Edwin Stanton Porter
Q347864
(Q13389113,P57,c(Q502895))
action filter_type
action find
entity Q13389113
relation P57
type Q502895
[ANSWER]
['Q13389113', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q13389113 property:P57 ?e . ?e rdf:type ontology:Q502895 }
Edwin Stanton Porter
Edwin Stanton Porter
action filter_type
action find
entity Laughing Gas
relation director
type common name
['Laughing Gas', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Laughing_Gas property:director ?e . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q347864 Q1414620
P21
Q290
USER
How many sexes do Edwin Stanton Porter or Raszagal possess ?
(Q347864,P21,c(Q290)) (Q1414620,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q347864
relation P21
type Q290
action filter_type
action find
entity Q1414620
relation P21
type Q290
['Q347864', 'P21', {'concept': 'Q290'}] ['Q1414620', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { ?p rdf:type ontology:Q290 . resource:Q347864 property:P21 ?p } UNION { resource:Q1414620 property:P21 ?p . ?p rdf:type ontology:Q290 } }
Edwin Stanton Porter Raszagal
action count
action union
action filter_type
action find
entity Edwin Stanton Porter
relation gender
type sex
action filter_type
action find
entity Raszagal
relation gender
type sex
['Edwin Stanton Porter', 'gender', {'concept': 'sex'}] ['Raszagal', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { ?p rdf:type ontology:sex . resource:Edwin_Stanton_Porter property:gender ?p } UNION { resource:Raszagal property:gender ?p . ?p rdf:type ontology:sex } }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q347864,P21,c(Q290)) (Q1414620,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q347864
relation P21
type Q290
action filter_type
action find
entity Q1414620
relation P21
type Q290
[ANSWER]
['Q347864', 'P21', {'concept': 'Q290'}] ['Q1414620', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { ?p rdf:type ontology:Q290 . resource:Q347864 property:P21 ?p } UNION { resource:Q1414620 property:P21 ?p . ?p rdf:type ontology:Q290 } }
male female
2
action count
action union
action filter_type
action find
entity Edwin Stanton Porter
relation gender
type sex
action filter_type
action find
entity Raszagal
relation gender
type sex
['Edwin Stanton Porter', 'gender', {'concept': 'sex'}] ['Raszagal', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { ?p rdf:type ontology:sex . resource:Edwin_Stanton_Porter property:gender ?p } UNION { resource:Raszagal property:gender ?p . ?p rdf:type ontology:sex } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q8021612 Q347864
P20
Q56061
USER
Which administrative territories are the places of death of Edwin Stanton Porter or Willie Jones ?
OR((Q347864,P20,c(Q56061)), (Q8021612,P20,c(Q56061)))
action filter_type
action union
action find
entity Q347864
relation P20
action find
entity Q8021612
relation P20
type Q56061
{'OR': [['Q347864', 'P20', {'concept': 'Q56061'}], ['Q8021612', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { ?c property:P20 ?n . VALUES ( ?c ) { ( resource:Q347864 ) ( resource:Q8021612 ) } } . ?n rdf:type ontology:Q56061 }
Willie Jones Edwin Stanton Porter
action filter_type
action union
action find
entity Edwin Stanton Porter
relation place of death
action find
entity Willie Jones
relation place of death
type administrative territorial entity
{'OR': [['Edwin Stanton Porter', 'place of death', {'concept': 'administrative territorial entity'}], ['Willie Jones', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?c property:place_of_death ?n . VALUES ( ?c ) { ( resource:Edwin_Stanton_Porter ) ( resource:Willie_Jones ) } } . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60 Q41087
SYSTEM
New York City, Raleigh
Q60 Q41087
OR((Q347864,P20,c(Q56061)), (Q8021612,P20,c(Q56061)))
action filter_type
action union
action find
entity Q347864
relation P20
action find
entity Q8021612
relation P20
type Q56061
[ANSWERS] are the places of death of Edwin Stanton Porter or Willie Jones
{'OR': [['Q347864', 'P20', {'concept': 'Q56061'}], ['Q8021612', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { ?c property:P20 ?n . VALUES ( ?c ) { ( resource:Q347864 ) ( resource:Q8021612 ) } } . ?n rdf:type ontology:Q56061 }
New York City Raleigh
New York City and Raleigh are the places of death of Edwin Stanton Porter or Willie Jones
New York City Raleigh
action filter_type
action union
action find
entity Edwin Stanton Porter
relation place of death
action find
entity Willie Jones
relation place of death
type administrative territorial entity
{'OR': [['Edwin Stanton Porter', 'place of death', {'concept': 'administrative territorial entity'}], ['Willie Jones', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?c property:place_of_death ?n . VALUES ( ?c ) { ( resource:Edwin_Stanton_Porter ) ( resource:Willie_Jones ) } } . ?n rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q26821209
P58 P364
Q838948
USER
Which works of art are Karin Steinberger a screwriter of and were originally created in English language ?
AND((c(Q838948),P58,Q26821209), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q26821209
relation P58
action find_reverse
entity Q1860
relation P364
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P58', 'Q26821209'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?p WHERE { ?p property:P58 resource:Q26821209 . ?p property:P364 resource:Q1860 . ?p rdf:type ontology:Q838948 }
English Karin Steinberger
action filter_type
action intersection
action find_reverse
entity Karin Steinberger
relation screenwriter
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'screenwriter', 'Karin Steinberger'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?p WHERE { ?p property:screenwriter resource:Karin_Steinberger . ?p property:original_language_of_work resource:English . ?p rdf:type ontology:work_of_art }
[]
work of art
Q23034797
SYSTEM
The Promise
Q23034797
AND((c(Q838948),P58,Q26821209), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q26821209
relation P58
action find_reverse
entity Q1860
relation P364
type Q838948
[ANSWER] is Karin Steinberger a screwriter of and were originally created in English language
{'AND': [[{'concept': 'Q838948'}, 'P58', 'Q26821209'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?p WHERE { ?p property:P58 resource:Q26821209 . ?p property:P364 resource:Q1860 . ?p rdf:type ontology:Q838948 }
The Promise
The Promise is Karin Steinberger a screwriter of and were originally created in English language
The Promise
action filter_type
action intersection
action find_reverse
entity Karin Steinberger
relation screenwriter
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'screenwriter', 'Karin Steinberger'], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?p WHERE { ?p property:screenwriter resource:Karin_Steinberger . ?p property:original_language_of_work resource:English . ?p rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3017315 Q13389113
P364 P407
Q34770
USER
Which languages were used originally for the creation of Laughing Gas and are David's Album composed in ?
AND((Q13389113,P364,c(Q34770)), (Q3017315,P407,c(Q34770)))
action filter_type
action intersection
action find
entity Q13389113
relation P364
action find
entity Q3017315
relation P407
type Q34770
{'AND': [['Q13389113', 'P364', {'concept': 'Q34770'}], ['Q3017315', 'P407', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?k WHERE { resource:Q13389113 property:P364 ?k . resource:Q3017315 property:P407 ?k . ?k rdf:type ontology:Q34770 }
David's Album Laughing Gas
action filter_type
action intersection
action find
entity Laughing Gas
relation original language of work
action find
entity David's Album
relation language of work or name
type language
{'AND': [['Laughing Gas', 'original language of work', {'concept': 'language'}], ["David's Album", 'language of work or name', {'concept': 'language'}]]}
SELECT DISTINCT ?k WHERE { resource:Laughing_Gas property:original_language_of_work ?k . resource:David's_Album property:language_of_work_or_name ?k . ?k rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
AND((Q13389113,P364,c(Q34770)), (Q3017315,P407,c(Q34770)))
action filter_type
action intersection
action find
entity Q13389113
relation P364
action find
entity Q3017315
relation P407
type Q34770
[ANSWER] was used originally for the creation of Laughing Gas and are David's Album composed in
{'AND': [['Q13389113', 'P364', {'concept': 'Q34770'}], ['Q3017315', 'P407', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?k WHERE { resource:Q13389113 property:P364 ?k . resource:Q3017315 property:P407 ?k . ?k rdf:type ontology:Q34770 }
English
English was used originally for the creation of Laughing Gas and are David's Album composed in
English
action filter_type
action intersection
action find
entity Laughing Gas
relation original language of work
action find
entity David's Album
relation language of work or name
type language
{'AND': [['Laughing Gas', 'original language of work', {'concept': 'language'}], ["David's Album", 'language of work or name', {'concept': 'language'}]]}
SELECT DISTINCT ?k WHERE { resource:Laughing_Gas property:original_language_of_work ?k . resource:David's_Album property:language_of_work_or_name ?k . ?k rdf:type ontology:language }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1860 Q5329170 Q3496128
P361
Q5962346
USER
Is that language a part of Anglo-Frisian languages and Shishumar-class submarine ?
(Q1860,P361,Q5329170) (Q1860,P361,Q3496128)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q5329170
relation P361
action find_reverse
entity Q3496128
relation P361
['Q1860', 'P361', 'Q5329170'] ['Q1860', 'P361', 'Q3496128']
ASK WHERE { resource:Q1860 property:P361 resource:Q5329170 . resource:Q1860 property:P361 resource:Q3496128 }
English Anglo-Frisian languages Shishumar-class submarine
action is_in
entity English
action intersection
action find_reverse
entity Anglo-Frisian languages
relation part of
action find_reverse
entity Shishumar-class submarine
relation part of
['English', 'part of', 'Anglo-Frisian languages'] ['English', 'part of', 'Shishumar-class submarine']
ASK WHERE { resource:English property:part_of resource:Anglo-Frisian_languages . resource:English property:part_of resource:Shishumar-class_submarine }
[]
classification scheme
SYSTEM
YES and NO respectively
(Q1860,P361,Q5329170) (Q1860,P361,Q3496128)
action is_in
entity Q1860
action intersection
action find_reverse
entity Q5329170
relation P361
action find_reverse
entity Q3496128
relation P361
[ANSWER]
['Q1860', 'P361', 'Q5329170'] ['Q1860', 'P361', 'Q3496128']
ASK WHERE { resource:Q1860 property:P361 resource:Q5329170 . resource:Q1860 property:P361 resource:Q3496128 }
YES and NO respectively
action is_in
entity English
action intersection
action find_reverse
entity Anglo-Frisian languages
relation part of
action find_reverse
entity Shishumar-class submarine
relation part of
['English', 'part of', 'Anglo-Frisian languages'] ['English', 'part of', 'Shishumar-class submarine']
ASK WHERE { resource:English property:part_of resource:Anglo-Frisian_languages . resource:English property:part_of resource:Shishumar-class_submarine }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q41087 Q2861 Q2718924
P190
Q56061
USER
Is Raleigh a sister city of Rostock and Ratannagar ?
(Q41087,P190,Q2861) (Q41087,P190,Q2718924)
action is_in
entity Q41087
action intersection
action find_reverse
entity Q2861
relation P190
action find_reverse
entity Q2718924
relation P190
['Q41087', 'P190', 'Q2861'] ['Q41087', 'P190', 'Q2718924']
ASK WHERE { resource:Q41087 property:P190 resource:Q2861 . resource:Q41087 property:P190 resource:Q2718924 }
Raleigh Rostock Ratannagar
action is_in
entity Raleigh
action intersection
action find_reverse
entity Rostock
relation sister city
action find_reverse
entity Ratannagar
relation sister city
['Raleigh', 'sister city', 'Rostock'] ['Raleigh', 'sister city', 'Ratannagar']
ASK WHERE { resource:Raleigh property:sister_city resource:Rostock . resource:Raleigh property:sister_city resource:Ratannagar }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q41087,P190,Q2861) (Q41087,P190,Q2718924)
action is_in
entity Q41087
action intersection
action find_reverse
entity Q2861
relation P190
action find_reverse
entity Q2718924
relation P190
[ANSWER]
['Q41087', 'P190', 'Q2861'] ['Q41087', 'P190', 'Q2718924']
ASK WHERE { resource:Q41087 property:P190 resource:Q2861 . resource:Q41087 property:P190 resource:Q2718924 }
YES and NO respectively
action is_in
entity Raleigh
action intersection
action find_reverse
entity Rostock
relation sister city
action find_reverse
entity Ratannagar
relation sister city
['Raleigh', 'sister city', 'Rostock'] ['Raleigh', 'sister city', 'Ratannagar']
ASK WHERE { resource:Raleigh property:sister_city resource:Rostock . resource:Raleigh property:sister_city resource:Ratannagar }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1299356 Q6034675
P19
Q56061
USER
Was Marcus Vetter born in Kheyrabad ?
(Q1299356,P19,Q6034675)
action is_in
entity Q6034675
action find
entity Q1299356
relation P19
['Q1299356', 'P19', 'Q6034675']
ASK WHERE { resource:Q1299356 property:P19 resource:Q6034675 }
Marcus Vetter Kheyrabad
action is_in
entity Kheyrabad
action find
entity Marcus Vetter
relation place of birth
['Marcus Vetter', 'place of birth', 'Kheyrabad']
ASK WHERE { resource:Marcus_Vetter property:place_of_birth resource:Kheyrabad }
[]
administrative territorial entity
SYSTEM
NO
(Q1299356,P19,Q6034675)
action is_in
entity Q6034675
action find
entity Q1299356
relation P19
[ANSWER]
['Q1299356', 'P19', 'Q6034675']
ASK WHERE { resource:Q1299356 property:P19 resource:Q6034675 }
No
action is_in
entity Kheyrabad
action find
entity Marcus Vetter
relation place of birth
['Marcus Vetter', 'place of birth', 'Kheyrabad']
ASK WHERE { resource:Marcus_Vetter property:place_of_birth resource:Kheyrabad }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q838948 Q7725634 Q838948
USER
Which works of art were the sources of inspiration for around 1 literary works or works of art ?
(c(Q7725634)|c(Q838948),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
value 1
[[{'concept': 'Q7725634'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) ?m WHERE { { ?j property:P941 ?m . ?m rdf:type ontology:Q838948 . ?j rdf:type ontology:Q7725634 } UNION { ?j property:P941 ?m . ?j rdf:type ontology:Q838948 . ?m rdf:type ontology:Q838948 } } GROUP BY ?m } . FILTER ( ?l = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type literary work
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
value 1
[[{'concept': 'literary work'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) ?m WHERE { { ?j property:inspired_by ?m . ?m rdf:type ontology:work_of_art . ?j rdf:type ontology:literary_work } UNION { ?j property:inspired_by ?m . ?j rdf:type ontology:work_of_art . ?m rdf:type ontology:work_of_art } } GROUP BY ?m } . FILTER ( ?l = 1 ) }
[]
work of art literary work work of art
Q17738 Q107724 Q465478
SYSTEM
Star Wars Episode IV: A New Hope, Thunderball, Star Trek II: The Wrath of Khan
Q1136305 Q107724 Q1856846 Q1852671 Q17738 Q181598 Q753298 Q1754737 Q186014 Q5968141 Q734834 Q375786 Q83186 Q465478
(c(Q7725634)|c(Q838948),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
value 1
[ANSWERS] were the sources of inspiration for around 1 literary works or works of art
[[{'concept': 'Q7725634'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) ?m WHERE { { ?j property:P941 ?m . ?m rdf:type ontology:Q838948 . ?j rdf:type ontology:Q7725634 } UNION { ?j property:P941 ?m . ?j rdf:type ontology:Q838948 . ?m rdf:type ontology:Q838948 } } GROUP BY ?m } . FILTER ( ?l = 1 ) }
Doryphoros Thunderball The Ballad of Cable Hogue Carnival of Souls Star Wars Episode IV: A New Hope King Lear Uncle Vanya Lady Snowblood Zeitgeist: The Movie La sirena varada Ghent Altarpiece Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan
Star Wars Episode IV: A New Hope, Thunderball and Star Trek II: The Wrath of Khan were the sources of inspiration for around 1 literary works or works of art
Star Wars Episode IV: A New Hope Thunderball Star Trek II: The Wrath of Khan
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type literary work
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
value 1
[[{'concept': 'literary work'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) ?m WHERE { { ?j property:inspired_by ?m . ?m rdf:type ontology:work_of_art . ?j rdf:type ontology:literary_work } UNION { ?j property:inspired_by ?m . ?j rdf:type ontology:work_of_art . ?m rdf:type ontology:work_of_art } } GROUP BY ?m } . FILTER ( ?l = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17738
P2515
Q502895
USER
Who created the costume designs for that work of art ?
(Q17738,P2515,c(Q502895))
action filter_type
action find
entity Q17738
relation P2515
type Q502895
['Q17738', 'P2515', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q17738 property:P2515 ?g . ?g rdf:type ontology:Q502895 }
Star Wars Episode IV: A New Hope
action filter_type
action find
entity Star Wars Episode IV: A New Hope
relation costume designer
type common name
['Star Wars Episode IV: A New Hope', 'costume designer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Star_Wars_Episode_IV:_A_New_Hope property:costume_designer ?g . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q465478
SYSTEM
Did you mean Star Trek II: The Wrath of Khan ?
Q17738 Q107724 Q465478
(Q17738,P2515,c(Q502895)) (Q107724,P2515,c(Q502895)) (Q465478,P2515,c(Q502895))
[ANSWER]
['Q17738', 'P2515', {'concept': 'Q502895'}] ['Q107724', 'P2515', {'concept': 'Q502895'}] ['Q465478', 'P2515', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q17738 property:P2515 ?g . ?g rdf:type ontology:Q502895 }
Star Wars Episode IV: A New Hope Thunderball Star Trek II: The Wrath of Khan
Did you mean Star Trek II: The Wrath of Khan ?
Star Trek II: The Wrath of Khan
['Star Wars Episode IV: A New Hope', 'costume designer', {'concept': 'common name'}] ['Thunderball', 'costume designer', {'concept': 'common name'}] ['Star Trek II: The Wrath of Khan', 'costume designer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Star_Wars_Episode_IV:_A_New_Hope property:costume_designer ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Star Wars Episode IV: A New Hope. Could you tell me the answer for that?
(Q17738,P2515,c(Q502895))
Q17738
['Q17738', 'P2515', {'concept': 'Q502895'}]
['Star Wars Episode IV: A New Hope', 'costume designer', {'concept': 'common name'}]
[]
Q1701116
SYSTEM
John Mollo
Q1701116
(Q17738,P2515,c(Q502895))
action filter_type
action find
entity Q17738
relation P2515
type Q502895
[ANSWER] created the costume designs for that work of art
['Q17738', 'P2515', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q17738 property:P2515 ?g . ?g rdf:type ontology:Q502895 }
John Mollo
John Mollo created the costume designs for that work of art
John Mollo
action filter_type
action find
entity Star Wars Episode IV: A New Hope
relation costume designer
type common name
['Star Wars Episode IV: A New Hope', 'costume designer', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Star_Wars_Episode_IV:_A_New_Hope property:costume_designer ?g . ?g rdf:type ontology:common_name }
[]