Simple Question (Direct)
Simple Question
Q1157334
P937
Q515
USER
What is the location where Dagmar Ziegler worked ?
(Q1157334,P937,c(Q515))
action filter_type
action find
entity Q1157334
relation P937
type Q515
['Q1157334', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q1157334 property:P937 ?r . ?r rdf:type ontology:Q515 }
Dagmar Ziegler
action filter_type
action find
entity Dagmar Ziegler
relation work location
type city
['Dagmar Ziegler', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Dagmar_Ziegler property:work_location ?r . ?r rdf:type ontology:city }
[]
city
Q1711
SYSTEM
Potsdam
Q1711
(Q1157334,P937,c(Q515))
action filter_type
action find
entity Q1157334
relation P937
type Q515
The location Dagmar Ziegler worked is in [ANSWER]
['Q1157334', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q1157334 property:P937 ?r . ?r rdf:type ontology:Q515 }
Potsdam
The location Dagmar Ziegler worked is in Potsdam
Potsdam
action filter_type
action find
entity Dagmar Ziegler
relation work location
type city
['Dagmar Ziegler', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Dagmar_Ziegler property:work_location ?r . ?r rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1157334
P102
Q7278
USER
Which political party is Dagmar Ziegler a member of ?
(Q1157334,P102,c(Q7278))
action filter_type
action find
entity Q1157334
relation P102
type Q7278
['Q1157334', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?s WHERE { resource:Q1157334 property:P102 ?s . ?s rdf:type ontology:Q7278 }
Dagmar Ziegler
action filter_type
action find
entity Dagmar Ziegler
relation member of political party
type political party
['Dagmar Ziegler', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?s WHERE { resource:Dagmar_Ziegler property:member_of_political_party ?s . ?s rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q1157334,P102,c(Q7278))
action filter_type
action find
entity Q1157334
relation P102
type Q7278
Party [ANSWER] is Dagmar Ziegler a member of
['Q1157334', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?s WHERE { resource:Q1157334 property:P102 ?s . ?s rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is Dagmar Ziegler a member of
Social Democratic Party of Germany
action filter_type
action find
entity Dagmar Ziegler
relation member of political party
type political party
['Dagmar Ziegler', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?s WHERE { resource:Dagmar_Ziegler property:member_of_political_party ?s . ?s rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1157334
P710
Q1499496
USER
What event did that person particiate in ?
(c(Q1499496),P710,Q49768)
action filter_type
action find_reverse
entity Q1157334
relation P710
type Q1499496
[{'concept': 'Q1499496'}, 'P710', 'Q49768']
SELECT DISTINCT ?t WHERE { ?t property:P710 resource:Q1157334 . ?t rdf:type ontology:Q1499496 }
Dagmar Ziegler
action filter_type
action find_reverse
entity Dagmar Ziegler
relation participant
type German presidential election
[{'concept': 'German presidential election'}, 'participant', 'Social Democratic Party of Germany']
SELECT DISTINCT ?t WHERE { ?t property:participant resource:Dagmar_Ziegler . ?t rdf:type ontology:German_presidential_election }
[]
German presidential election
Q707063 Q670933
SYSTEM
German presidential election, 2010, German presidential election, 2012
Q707063 Q670933
(c(Q1499496),P710,Q49768)
action filter_type
action find_reverse
entity Q1157334
relation P710
type Q1499496
[ANSWERS]
[{'concept': 'Q1499496'}, 'P710', 'Q49768']
SELECT DISTINCT ?t WHERE { ?t property:P710 resource:Q1157334 . ?t rdf:type ontology:Q1499496 }
German presidential election, 2010 German presidential election, 2012
That person particiated in German presidential election, 2010 and German presidential election, 2012
German presidential election, 2010 German presidential election, 2012
action filter_type
action find_reverse
entity Dagmar Ziegler
relation participant
type German presidential election
[{'concept': 'German presidential election'}, 'participant', 'Social Democratic Party of Germany']
SELECT DISTINCT ?t WHERE { ?t property:participant resource:Dagmar_Ziegler . ?t rdf:type ontology:German_presidential_election }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1157334
P27
Q1048835
USER
Which political territory is the native country of Dagmar Ziegler ?
(Q1157334,P27,c(Q1048835))
action filter_type
action find
entity Q1157334
relation P27
type Q1048835
['Q1157334', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q1157334 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Dagmar Ziegler
action filter_type
action find
entity Dagmar Ziegler
relation country of citizenship
type political territorial entity
['Dagmar Ziegler', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Dagmar_Ziegler property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1157334,P27,c(Q1048835))
action filter_type
action find
entity Q1157334
relation P27
type Q1048835
The [ANSWER] is the native country of Dagmar Ziegler
['Q1157334', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { resource:Q1157334 property:P27 ?y . ?y rdf:type ontology:Q1048835 }
Germany
The Germany is the native country of Dagmar Ziegler
Germany
action filter_type
action find
entity Dagmar Ziegler
relation country of citizenship
type political territorial entity
['Dagmar Ziegler', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Dagmar_Ziegler property:country_of_citizenship ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6795388
Q1048835
USER
And also tell me about Max Winter?
(Q6795388,P27,c(Q1048835))
action filter_type
action find
entity Q6795388
relation P27
type Q1048835
['Q6795388', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q6795388 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
Max Winter
action filter_type
action find
entity Max Winter
relation country of citizenship
type political territorial entity
['Max Winter', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Max_Winter property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q6795388,P27,c(Q1048835))
action filter_type
action find
entity Q6795388
relation P27
type Q1048835
[ANSWER]
['Q6795388', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q6795388 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
Austria
Austria
action filter_type
action find
entity Max Winter
relation country of citizenship
type political territorial entity
['Max Winter', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Max_Winter property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q40 Q1266569 Q47036
P530
Q15617994
USER
Does that political territory have tactful political relations with Lisy Nos and Crespano del Grappa ?
(Q40,P530,Q1266569) (Q40,P530,Q47036)
action is_in
entity Q40
action intersection
action find_reverse
entity Q1266569
relation P530
action find_reverse
entity Q47036
relation P530
['Q40', 'P530', 'Q1266569'] ['Q40', 'P530', 'Q47036']
ASK WHERE { resource:Q40 property:P530 resource:Q1266569 . resource:Q40 property:P530 resource:Q47036 }
Austria Lisy Nos Crespano del Grappa
action is_in
entity Austria
action intersection
action find_reverse
entity Lisy Nos
relation diplomatic relation
action find_reverse
entity Crespano del Grappa
relation diplomatic relation
['Austria', 'diplomatic relation', 'Lisy Nos'] ['Austria', 'diplomatic relation', 'Crespano del Grappa']
ASK WHERE { resource:Austria property:diplomatic_relation resource:Lisy_Nos . resource:Austria property:diplomatic_relation resource:Crespano_del_Grappa }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q40,P530,Q1266569) (Q40,P530,Q47036)
action is_in
entity Q40
action intersection
action find_reverse
entity Q1266569
relation P530
action find_reverse
entity Q47036
relation P530
[ANSWER]
['Q40', 'P530', 'Q1266569'] ['Q40', 'P530', 'Q47036']
ASK WHERE { resource:Q40 property:P530 resource:Q1266569 . resource:Q40 property:P530 resource:Q47036 }
No
action is_in
entity Austria
action intersection
action find_reverse
entity Lisy Nos
relation diplomatic relation
action find_reverse
entity Crespano del Grappa
relation diplomatic relation
['Austria', 'diplomatic relation', 'Lisy Nos'] ['Austria', 'diplomatic relation', 'Crespano del Grappa']
ASK WHERE { resource:Austria property:diplomatic_relation resource:Lisy_Nos . resource:Austria property:diplomatic_relation resource:Crespano_del_Grappa }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q164197
P47
Q1048835
USER
Is Coslada adjacent to Germany ?
(Q183,P47,Q164197)
action is_in
entity Q164197
action find
entity Q183
relation P47
['Q183', 'P47', 'Q164197']
ASK WHERE { resource:Q183 property:P47 resource:Q164197 }
Germany Coslada
action is_in
entity Coslada
action find
entity Germany
relation shares border with
['Germany', 'shares border with', 'Coslada']
ASK WHERE { resource:Germany property:shares_border_with resource:Coslada }
[]
political territorial entity
SYSTEM
NO
(Q183,P47,Q164197)
action is_in
entity Q164197
action find
entity Q183
relation P47
[ANSWER]
['Q183', 'P47', 'Q164197']
ASK WHERE { resource:Q183 property:P47 resource:Q164197 }
No
action is_in
entity Coslada
action find
entity Germany
relation shares border with
['Germany', 'shares border with', 'Coslada']
ASK WHERE { resource:Germany property:shares_border_with resource:Coslada }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1711
P915
Q838948
USER
Which work of art was filmed at Potsdam ?
(c(Q838948),P915,Q1711)
action filter_type
action find_reverse
entity Q1711
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q1711']
SELECT DISTINCT ?d WHERE { ?d property:P915 resource:Q1711 . ?d rdf:type ontology:Q838948 }
Potsdam
action filter_type
action find_reverse
entity Potsdam
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Potsdam']
SELECT DISTINCT ?d WHERE { ?d property:filming_location resource:Potsdam . ?d rdf:type ontology:work_of_art }
[]
work of art
Q10307713
SYSTEM
The Hunger Games: Mockingjay – Part 2
Q10307713
(c(Q838948),P915,Q1711)
action filter_type
action find_reverse
entity Q1711
relation P915
type Q838948
[ANSWER] was filmed at Potsdam
[{'concept': 'Q838948'}, 'P915', 'Q1711']
SELECT DISTINCT ?d WHERE { ?d property:P915 resource:Q1711 . ?d rdf:type ontology:Q838948 }
The Hunger Games: Mockingjay – Part 2
The Hunger Games: Mockingjay – Part 2 was filmed at Potsdam
The Hunger Games: Mockingjay – Part 2
action filter_type
action find_reverse
entity Potsdam
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Potsdam']
SELECT DISTINCT ?d WHERE { ?d property:filming_location resource:Potsdam . ?d rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10307713
P58
Q502895
USER
Who wrote the script for that work of art ?
(Q10307713,P58,c(Q502895))
action filter_type
action find
entity Q10307713
relation P58
type Q502895
['Q10307713', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q10307713 property:P58 ?k . ?k rdf:type ontology:Q502895 }
The Hunger Games: Mockingjay – Part 2
action filter_type
action find
entity The Hunger Games: Mockingjay – Part 2
relation screenwriter
type common name
['The Hunger Games: Mockingjay – Part 2', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:The_Hunger_Games:_Mockingjay_–_Part_2 property:screenwriter ?k . ?k rdf:type ontology:common_name }
[]
common name
Q7173432 Q784009
SYSTEM
Peter Craig, Danny Strong
Q7173432 Q784009
(Q10307713,P58,c(Q502895))
action filter_type
action find
entity Q10307713
relation P58
type Q502895
[ANSWERS] wrote the script for that work of art
['Q10307713', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q10307713 property:P58 ?k . ?k rdf:type ontology:Q502895 }
Peter Craig Danny Strong
Peter Craig and Danny Strong wrote the script for that work of art
Peter Craig Danny Strong
action filter_type
action find
entity The Hunger Games: Mockingjay – Part 2
relation screenwriter
type common name
['The Hunger Games: Mockingjay – Part 2', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:The_Hunger_Games:_Mockingjay_–_Part_2 property:screenwriter ?k . ?k rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q784009
P57
Q838948
USER
What is that person a director of ?
(c(Q838948),P57,Q784009)
action filter_type
action find_reverse
entity Q784009
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q784009']
SELECT DISTINCT ?m WHERE { ?m property:P57 resource:Q784009 . ?m rdf:type ontology:Q838948 }
Danny Strong
action filter_type
action find_reverse
entity Danny Strong
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Danny Strong']
SELECT DISTINCT ?m WHERE { ?m property:director resource:Danny_Strong . ?m rdf:type ontology:work_of_art }
[]
work of art
Clarification for simple ques.
Q7173432
SYSTEM
Did you mean Peter Craig ?
Q7173432 Q784009
(c(Q838948),P57,Q7173432) (c(Q838948),P57,Q784009)
[ANSWER]
[{'concept': 'Q838948'}, 'P57', 'Q7173432'] [{'concept': 'Q838948'}, 'P57', 'Q784009']
SELECT DISTINCT ?m WHERE { ?m property:P57 resource:Q784009 . ?m rdf:type ontology:Q838948 }
Peter Craig Danny Strong
Did you mean Peter Craig ?
Peter Craig
[{'concept': 'work of art'}, 'director', 'Peter Craig'] [{'concept': 'work of art'}, 'director', 'Danny Strong']
SELECT DISTINCT ?m WHERE { ?m property:director resource:Danny_Strong . ?m rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
USER
No, I meant Danny Strong. Could you tell me the answer for that?
(c(Q838948),P57,Q784009)
Q784009
[{'concept': 'Q838948'}, 'P57', 'Q784009']
[{'concept': 'work of art'}, 'director', 'Danny Strong']
[]
Q23999294
SYSTEM
Rebel in the Rye
Q23999294
(c(Q838948),P57,Q784009)
action filter_type
action find_reverse
entity Q784009
relation P57
type Q838948
That person a director of is a [ANSWER]
[{'concept': 'Q838948'}, 'P57', 'Q784009']
SELECT DISTINCT ?m WHERE { ?m property:P57 resource:Q784009 . ?m rdf:type ontology:Q838948 }
Rebel in the Rye
That person a director of is a Rebel in the Rye
Rebel in the Rye
action filter_type
action find_reverse
entity Danny Strong
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Danny Strong']
SELECT DISTINCT ?m WHERE { ?m property:director resource:Danny_Strong . ?m rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3054696 Q10307713
P19 P915
Q515
USER
Which cities were The Hunger Games: Mockingjay – Part 2 filmed or are the places of birth of Enrique Ortúzar ?
OR((Q10307713,P915,c(Q515)), (Q3054696,P19,c(Q515)))
action filter_type
action union
action find
entity Q10307713
relation P915
action find
entity Q3054696
relation P19
type Q515
{'OR': [['Q10307713', 'P915', {'concept': 'Q515'}], ['Q3054696', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q10307713 property:P915 ?b } UNION { resource:Q3054696 property:P19 ?b } } . ?b rdf:type ontology:Q515 }
Enrique Ortúzar The Hunger Games: Mockingjay – Part 2
action filter_type
action union
action find
entity The Hunger Games: Mockingjay – Part 2
relation filming location
action find
entity Enrique Ortúzar
relation place of birth
type city
{'OR': [['The Hunger Games: Mockingjay – Part 2', 'filming location', {'concept': 'city'}], ['Enrique Ortúzar', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?b WHERE { { { resource:The_Hunger_Games:_Mockingjay_–_Part_2 property:filming_location ?b } UNION { resource:Enrique_Ortúzar property:place_of_birth ?b } } . ?b rdf:type ontology:city }
[]
city
Q2887 Q1711
SYSTEM
Santiago, Potsdam
Q2887 Q1711
OR((Q10307713,P915,c(Q515)), (Q3054696,P19,c(Q515)))
action filter_type
action union
action find
entity Q10307713
relation P915
action find
entity Q3054696
relation P19
type Q515
[ANSWERS] were The Hunger Games: Mockingjay – Part 2 filmed or are the places of birth of Enrique Ortúzar
{'OR': [['Q10307713', 'P915', {'concept': 'Q515'}], ['Q3054696', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q10307713 property:P915 ?b } UNION { resource:Q3054696 property:P19 ?b } } . ?b rdf:type ontology:Q515 }
Santiago Potsdam
Santiago and Potsdam were The Hunger Games: Mockingjay – Part 2 filmed or are the places of birth of Enrique Ortúzar
Santiago Potsdam
action filter_type
action union
action find
entity The Hunger Games: Mockingjay – Part 2
relation filming location
action find
entity Enrique Ortúzar
relation place of birth
type city
{'OR': [['The Hunger Games: Mockingjay – Part 2', 'filming location', {'concept': 'city'}], ['Enrique Ortúzar', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?b WHERE { { { resource:The_Hunger_Games:_Mockingjay_–_Part_2 property:filming_location ?b } UNION { resource:Enrique_Ortúzar property:place_of_birth ?b } } . ?b rdf:type ontology:city }
[]