Simple Question (Direct)
Simple Question
Q2510207
P20
Q56061
USER
Where did the expiration of Jerzy Zawieyski occur ?
(Q2510207,P20,c(Q56061))
action filter_type
action find
entity Q2510207
relation P20
type Q56061
['Q2510207', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q2510207 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Jerzy Zawieyski
action filter_type
action find
entity Jerzy Zawieyski
relation place of death
type administrative territorial entity
['Jerzy Zawieyski', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jerzy_Zawieyski property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270
SYSTEM
Warsaw
Q270
(Q2510207,P20,c(Q56061))
action filter_type
action find
entity Q2510207
relation P20
type Q56061
The expiration of Jerzy Zawieyski occurred in [ANSWER]
['Q2510207', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q2510207 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Warsaw
The expiration of Jerzy Zawieyski occurred in Warsaw
Warsaw
action filter_type
action find
entity Jerzy Zawieyski
relation place of death
type administrative territorial entity
['Jerzy Zawieyski', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jerzy_Zawieyski property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2510207
P451
Q502895
USER
Who is the domestic partner of that one ?
(Q270,P451,c(Q502895))
action filter_type
action find
entity Q2510207
relation P451
type Q502895
['Q270', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q2510207 property:P451 ?x . ?x rdf:type ontology:Q502895 }
Jerzy Zawieyski
action filter_type
action find
entity Jerzy Zawieyski
relation partner
type common name
['Warsaw', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Jerzy_Zawieyski property:partner ?x . ?x rdf:type ontology:common_name }
[]
common name
Q9343266
SYSTEM
Stanisław Trębaczkiewicz
Q9343266
(Q270,P451,c(Q502895))
action filter_type
action find
entity Q2510207
relation P451
type Q502895
The domestic partner of that one is [ANSWER]
['Q270', 'P451', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q2510207 property:P451 ?x . ?x rdf:type ontology:Q502895 }
Stanisław Trębaczkiewicz
The domestic partner of that one is Stanisław Trębaczkiewicz
Stanisław Trębaczkiewicz
action filter_type
action find
entity Jerzy Zawieyski
relation partner
type common name
['Warsaw', 'partner', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Jerzy_Zawieyski property:partner ?x . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5838638 Q9343266
P27 P17
Q15617994
USER
Which administrative territories do Stanisław Trębaczkiewicz belong to or are Tazeh Kand, Shahin Dezh situated in ?
OR((Q9343266,P27,c(Q15617994)), (Q5838638,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q9343266
relation P27
action find
entity Q5838638
relation P17
type Q15617994
{'OR': [['Q9343266', 'P27', {'concept': 'Q15617994'}], ['Q5838638', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q9343266 property:P27 ?w } UNION { resource:Q5838638 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Tazeh Kand, Shahin Dezh Stanisław Trębaczkiewicz
action filter_type
action union
action find
entity Stanisław Trębaczkiewicz
relation country of citizenship
action find
entity Tazeh Kand, Shahin Dezh
relation country
type designation for an administrative territorial entity
{'OR': [['Stanisław Trębaczkiewicz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tazeh Kand, Shahin Dezh', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Stanisław_Trębaczkiewicz property:country_of_citizenship ?w } UNION { resource:Tazeh_Kand,_Shahin_Dezh property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36 Q794
SYSTEM
Poland, Iran
Q36 Q794
OR((Q9343266,P27,c(Q15617994)), (Q5838638,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q9343266
relation P27
action find
entity Q5838638
relation P17
type Q15617994
Stanisław Trębaczkiewicz belong to [ANSWERS]
{'OR': [['Q9343266', 'P27', {'concept': 'Q15617994'}], ['Q5838638', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q9343266 property:P27 ?w } UNION { resource:Q5838638 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Poland Iran
Stanisław Trębaczkiewicz belong to Poland and Iran
Poland Iran
action filter_type
action union
action find
entity Stanisław Trębaczkiewicz
relation country of citizenship
action find
entity Tazeh Kand, Shahin Dezh
relation country
type designation for an administrative territorial entity
{'OR': [['Stanisław Trębaczkiewicz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tazeh Kand, Shahin Dezh', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Stanisław_Trębaczkiewicz property:country_of_citizenship ?w } UNION { resource:Tazeh_Kand,_Shahin_Dezh property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
How many administrative territories were lesser number of fictional locations inspired by than that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity fictional location
Comparative|Count over More/Less|Single entity type|Clarification
Q36
SYSTEM
Did you mean Poland ?
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Did you mean Poland ?
Poland
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Iran. Could you tell me the answer for that?
(c(Q3895768),P941,c(Q15617994))
Q794
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q55416
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Chioggia
1
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with atleast 15 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 15
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?r ) WHERE { ?w property:P530 ?t . ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?r >= 15 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 15
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?r ) WHERE { ?w property:diplomatic_relation ?t . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?r >= 15 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q142 Q148 Q159 Q155 Q30 Q38
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 15
[ANSWERS] have diplomatic relationships with atleast 15 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?r ) WHERE { ?w property:P530 ?t . ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?r >= 15 ) }
Israel Yemen France People's Republic of China Russia Brazil United States of America Italy
Italy, Brazil and United States of America have diplomatic relationships with atleast 15 administrative territories
Italy Brazil United States of America
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 15
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?t ) AS ?r ) WHERE { ?w property:diplomatic_relation ?t . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?r >= 15 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4232203
P530
Q1048835
USER
Do Kopani have ambassadorial relations with those administrative territories ?
(Q4232203,P530,Q38) (Q4232203,P530,Q155) (Q4232203,P530,Q30)
action is_in
entity prev_answer
action find
entity Q4232203
relation P530
['Q4232203', 'P530', 'Q38'] ['Q4232203', 'P530', 'Q155'] ['Q4232203', 'P530', 'Q30']
ASK WHERE { VALUES ( ?p ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q142 ) } . resource:Q4232203 property:P530 ?p }
Kopani
action is_in
entity prev_answer
action find
entity Kopani
relation diplomatic relation
['Kopani', 'diplomatic relation', 'Italy'] ['Kopani', 'diplomatic relation', 'Brazil'] ['Kopani', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?p ) { ( resource:Israel ) ( resource:Yemen ) ( resource:France ) } . resource:Kopani property:diplomatic_relation ?p }
[]
political territorial entity
SYSTEM
NO
(Q4232203,P530,Q38) (Q4232203,P530,Q155) (Q4232203,P530,Q30)
action is_in
entity prev_answer
action find
entity Q4232203
relation P530
[ANSWER]
['Q4232203', 'P530', 'Q38'] ['Q4232203', 'P530', 'Q155'] ['Q4232203', 'P530', 'Q30']
ASK WHERE { VALUES ( ?p ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q142 ) } . resource:Q4232203 property:P530 ?p }
No
action is_in
entity prev_answer
action find
entity Kopani
relation diplomatic relation
['Kopani', 'diplomatic relation', 'Italy'] ['Kopani', 'diplomatic relation', 'Brazil'] ['Kopani', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?p ) { ( resource:Israel ) ( resource:Yemen ) ( resource:France ) } . resource:Kopani property:diplomatic_relation ?p }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q683 Q17
P47
Q15617994
USER
Does Samoa and Japan share a border with United States of America ?
(Q30,P47,Q683) (Q30,P47,Q17)
action is_in
entity Q30
action intersection
action find_reverse
entity Q683
relation P47
action find_reverse
entity Q17
relation P47
['Q30', 'P47', 'Q683'] ['Q30', 'P47', 'Q17']
ASK WHERE { resource:Q30 property:P47 resource:Q683 . resource:Q30 property:P47 resource:Q17 }
United States of America Samoa Japan
action is_in
entity United States of America
action intersection
action find_reverse
entity Samoa
relation shares border with
action find_reverse
entity Japan
relation shares border with
['United States of America', 'shares border with', 'Samoa'] ['United States of America', 'shares border with', 'Japan']
ASK WHERE { resource:United_States_of_America property:shares_border_with resource:Samoa . resource:United_States_of_America property:shares_border_with resource:Japan }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P47,Q683) (Q30,P47,Q17)
action is_in
entity Q30
action intersection
action find_reverse
entity Q683
relation P47
action find_reverse
entity Q17
relation P47
[ANSWER]
['Q30', 'P47', 'Q683'] ['Q30', 'P47', 'Q17']
ASK WHERE { resource:Q30 property:P47 resource:Q683 . resource:Q30 property:P47 resource:Q17 }
Yes
action is_in
entity United States of America
action intersection
action find_reverse
entity Samoa
relation shares border with
action find_reverse
entity Japan
relation shares border with
['United States of America', 'shares border with', 'Samoa'] ['United States of America', 'shares border with', 'Japan']
ASK WHERE { resource:United_States_of_America property:shares_border_with resource:Samoa . resource:United_States_of_America property:shares_border_with resource:Japan }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2510207 Q36
P27
Q15617994
USER
Is Jerzy Zawieyski a civilian of Poland ?
(Q2510207,P27,Q36)
action is_in
entity Q36
action find
entity Q2510207
relation P27
['Q2510207', 'P27', 'Q36']
ASK WHERE { resource:Q2510207 property:P27 resource:Q36 }
Jerzy Zawieyski Poland
action is_in
entity Poland
action find
entity Jerzy Zawieyski
relation country of citizenship
['Jerzy Zawieyski', 'country of citizenship', 'Poland']
ASK WHERE { resource:Jerzy_Zawieyski property:country_of_citizenship resource:Poland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q2510207,P27,Q36)
action is_in
entity Q36
action find
entity Q2510207
relation P27
[ANSWER]
['Q2510207', 'P27', 'Q36']
ASK WHERE { resource:Q2510207 property:P27 resource:Q36 }
Yes
action is_in
entity Poland
action find
entity Jerzy Zawieyski
relation country of citizenship
['Jerzy Zawieyski', 'country of citizenship', 'Poland']
ASK WHERE { resource:Jerzy_Zawieyski property:country_of_citizenship resource:Poland }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q155 Q634653 Q7456404
P530
Q15617994
USER
Does Brazil have ambassadorial relations with Dierhagen and Setenyovo ?
(Q155,P530,Q634653) (Q155,P530,Q7456404)
action is_in
entity Q155
action intersection
action find_reverse
entity Q634653
relation P530
action find_reverse
entity Q7456404
relation P530
['Q155', 'P530', 'Q634653'] ['Q155', 'P530', 'Q7456404']
ASK WHERE { resource:Q155 property:P530 resource:Q634653 . resource:Q155 property:P530 resource:Q7456404 }
Brazil Dierhagen Setenyovo
action is_in
entity Brazil
action intersection
action find_reverse
entity Dierhagen
relation diplomatic relation
action find_reverse
entity Setenyovo
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Dierhagen'] ['Brazil', 'diplomatic relation', 'Setenyovo']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Dierhagen . resource:Brazil property:diplomatic_relation resource:Setenyovo }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q155,P530,Q634653) (Q155,P530,Q7456404)
action is_in
entity Q155
action intersection
action find_reverse
entity Q634653
relation P530
action find_reverse
entity Q7456404
relation P530
[ANSWER]
['Q155', 'P530', 'Q634653'] ['Q155', 'P530', 'Q7456404']
ASK WHERE { resource:Q155 property:P530 resource:Q634653 . resource:Q155 property:P530 resource:Q7456404 }
No
action is_in
entity Brazil
action intersection
action find_reverse
entity Dierhagen
relation diplomatic relation
action find_reverse
entity Setenyovo
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Dierhagen'] ['Brazil', 'diplomatic relation', 'Setenyovo']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Dierhagen . resource:Brazil property:diplomatic_relation resource:Setenyovo }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q37
P530
Q15617994
USER
Does Lithuania have a diplomatic relationship with Italy ?
(Q38,P530,Q37)
action is_in
entity Q37
action find
entity Q38
relation P530
['Q38', 'P530', 'Q37']
ASK WHERE { resource:Q38 property:P530 resource:Q37 }
Italy Lithuania
action is_in
entity Lithuania
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Lithuania']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Lithuania }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q37)
action is_in
entity Q37
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q37']
ASK WHERE { resource:Q38 property:P530 resource:Q37 }
Yes
action is_in
entity Lithuania
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Lithuania']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Lithuania }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2510207 Q36
P27
Q15617994
USER
Is Poland the country of citizenship of Jerzy Zawieyski ?
(Q2510207,P27,Q36)
action is_in
entity Q36
action find
entity Q2510207
relation P27
['Q2510207', 'P27', 'Q36']
ASK WHERE { resource:Q2510207 property:P27 resource:Q36 }
Jerzy Zawieyski Poland
action is_in
entity Poland
action find
entity Jerzy Zawieyski
relation country of citizenship
['Jerzy Zawieyski', 'country of citizenship', 'Poland']
ASK WHERE { resource:Jerzy_Zawieyski property:country_of_citizenship resource:Poland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q2510207,P27,Q36)
action is_in
entity Q36
action find
entity Q2510207
relation P27
[ANSWER]
['Q2510207', 'P27', 'Q36']
ASK WHERE { resource:Q2510207 property:P27 resource:Q36 }
Yes
action is_in
entity Poland
action find
entity Jerzy Zawieyski
relation country of citizenship
['Jerzy Zawieyski', 'country of citizenship', 'Poland']
ASK WHERE { resource:Jerzy_Zawieyski property:country_of_citizenship resource:Poland }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q155 Q1024850
P530
Q1048835
USER
Does Frielas have diplomatic relationships with Brazil ?
(Q155,P530,Q1024850)
action is_in
entity Q1024850
action find
entity Q155
relation P530
['Q155', 'P530', 'Q1024850']
ASK WHERE { resource:Q155 property:P530 resource:Q1024850 }
Brazil Frielas
action is_in
entity Frielas
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Frielas']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Frielas }
[]
political territorial entity
SYSTEM
NO
(Q155,P530,Q1024850)
action is_in
entity Q1024850
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q1024850']
ASK WHERE { resource:Q155 property:P530 resource:Q1024850 }
No
action is_in
entity Frielas
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Frielas']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Frielas }
[]