Simple Question (Direct)
Simple Question
Q2997718
P166
Q618779
USER
What were awarded to Alaksandar Dubko ?
(Q2997718,P166,c(Q618779))
action filter_type
action find
entity Q2997718
relation P166
type Q618779
['Q2997718', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?z WHERE { resource:Q2997718 property:P166 ?z . ?z rdf:type ontology:Q618779 }
Alaksandar Dubko
action filter_type
action find
entity Alaksandar Dubko
relation award received
type award
['Alaksandar Dubko', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?z WHERE { resource:Alaksandar_Dubko property:award_received ?z . ?z rdf:type ontology:award }
[]
award
Q208167 Q185493
SYSTEM
Hero of Socialist Labour, Order of Lenin
Q208167 Q185493
(Q2997718,P166,c(Q618779))
action filter_type
action find
entity Q2997718
relation P166
type Q618779
The [ANSWERS] were awarded to Alaksandar Dubko
['Q2997718', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?z WHERE { resource:Q2997718 property:P166 ?z . ?z rdf:type ontology:Q618779 }
Hero of Socialist Labour Order of Lenin
The Hero of Socialist Labour and Order of Lenin were awarded to Alaksandar Dubko
Hero of Socialist Labour Order of Lenin
action filter_type
action find
entity Alaksandar Dubko
relation award received
type award
['Alaksandar Dubko', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?z WHERE { resource:Alaksandar_Dubko property:award_received ?z . ?z rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2997718
P21
Q290
USER
Which sex does Alaksandar Dubko possess ?
(Q2997718,P21,c(Q290))
action filter_type
action find
entity Q2997718
relation P21
type Q290
['Q2997718', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q2997718 property:P21 ?y . ?y rdf:type ontology:Q290 }
Alaksandar Dubko
action filter_type
action find
entity Alaksandar Dubko
relation gender
type sex
['Alaksandar Dubko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Alaksandar_Dubko property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2997718,P21,c(Q290))
action filter_type
action find
entity Q2997718
relation P21
type Q290
Alaksandar Dubko possesses un [ANSWER]
['Q2997718', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q2997718 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
Alaksandar Dubko possesses un male
male
action filter_type
action find
entity Alaksandar Dubko
relation gender
type sex
['Alaksandar Dubko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Alaksandar_Dubko property:gender ?y . ?y rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2997718
P20
Q56061
USER
Where did that person die ?
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q2997718
relation P20
type Q56061
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q2997718 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Alaksandar Dubko
action filter_type
action find
entity Alaksandar Dubko
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Alaksandar_Dubko property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q181376
SYSTEM
Grodno
Q181376
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q2997718
relation P20
type Q56061
That person died in [ANSWER]
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q2997718 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Grodno
That person died in Grodno
Grodno
action filter_type
action find
entity Alaksandar Dubko
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Alaksandar_Dubko property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q47432 Q2997718
P47 P27
Q15617994
USER
Which administrative territories are Alaksandar Dubko a civilian of or are adjacent to Monguzzo ?
OR((Q2997718,P27,c(Q15617994)), (Q47432,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q2997718
relation P27
action find
entity Q47432
relation P47
type Q15617994
{'OR': [['Q2997718', 'P27', {'concept': 'Q15617994'}], ['Q47432', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q2997718 property:P27 ?y } UNION { resource:Q47432 property:P47 ?y } } . ?y rdf:type ontology:Q15617994 }
Monguzzo Alaksandar Dubko
action filter_type
action union
action find
entity Alaksandar Dubko
relation country of citizenship
action find
entity Monguzzo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Alaksandar Dubko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Monguzzo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Alaksandar_Dubko property:country_of_citizenship ?y } UNION { resource:Monguzzo property:shares_border_with ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q244041 Q47150 Q244021 Q184 Q47211 Q47617 Q244036
SYSTEM
Anzano del Parco, Lurago d'Erba, Albavilla, Belarus, Erba, Merone, Alserio
Q244041 Q47150 Q244021 Q184 Q47211 Q47617 Q244036
OR((Q2997718,P27,c(Q15617994)), (Q47432,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q2997718
relation P27
action find
entity Q47432
relation P47
type Q15617994
[ANSWERS] are Alaksandar Dubko a civilian of or are adjacent to Monguzzo
{'OR': [['Q2997718', 'P27', {'concept': 'Q15617994'}], ['Q47432', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q2997718 property:P27 ?y } UNION { resource:Q47432 property:P47 ?y } } . ?y rdf:type ontology:Q15617994 }
Anzano del Parco Lurago d'Erba Albavilla Belarus Erba Merone Alserio
Anzano del Parco, Lurago d'Erba, Albavilla, Belarus, Erba, Merone and Alserio are Alaksandar Dubko a civilian of or are adjacent to Monguzzo
Anzano del Parco Lurago d'Erba Albavilla Belarus Erba Merone Alserio
action filter_type
action union
action find
entity Alaksandar Dubko
relation country of citizenship
action find
entity Monguzzo
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Alaksandar Dubko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Monguzzo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Alaksandar_Dubko property:country_of_citizenship ?y } UNION { resource:Monguzzo property:shares_border_with ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5785083 Q2997718
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Alaksandar Dubko or are Tut-e Olya a part of ?
OR((Q2997718,P27,c(Q15617994)), (Q5785083,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2997718
relation P27
action find
entity Q5785083
relation P17
type Q15617994
{'OR': [['Q2997718', 'P27', {'concept': 'Q15617994'}], ['Q5785083', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q2997718 property:P27 ?k } UNION { resource:Q5785083 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Tut-e Olya Alaksandar Dubko
action filter_type
action union
action find
entity Alaksandar Dubko
relation country of citizenship
action find
entity Tut-e Olya
relation country
type designation for an administrative territorial entity
{'OR': [['Alaksandar Dubko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tut-e Olya', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Alaksandar_Dubko property:country_of_citizenship ?k } UNION { resource:Tut-e_Olya property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q184 Q794
SYSTEM
Belarus, Iran
Q184 Q794
OR((Q2997718,P27,c(Q15617994)), (Q5785083,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2997718
relation P27
action find
entity Q5785083
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Alaksandar Dubko or are Tut-e Olya a part of
{'OR': [['Q2997718', 'P27', {'concept': 'Q15617994'}], ['Q5785083', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q2997718 property:P27 ?k } UNION { resource:Q5785083 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Belarus Iran
Belarus and Iran are the countries of citizenship of Alaksandar Dubko or are Tut-e Olya a part of
Belarus Iran
action filter_type
action union
action find
entity Alaksandar Dubko
relation country of citizenship
action find
entity Tut-e Olya
relation country
type designation for an administrative territorial entity
{'OR': [['Alaksandar Dubko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tut-e Olya', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Alaksandar_Dubko property:country_of_citizenship ?k } UNION { resource:Tut-e_Olya property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q47211
P190
Q56061 Q20667921
USER
How many administrative territories or french administrative divisions are a sister city of Erba ?
(c(Q56061),P190,Q47211) (c(Q20667921),P190,Q47211)
action count
action union
action filter_type
action find_reverse
entity Q47211
relation P190
type Q56061
action filter_type
action find_reverse
entity Q47211
relation P190
type Q20667921
[{'concept': 'Q56061'}, 'P190', 'Q47211'] [{'concept': 'Q20667921'}, 'P190', 'Q47211']
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { VALUES ( ?v ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?p rdf:type ?v }
Erba
action count
action union
action filter_type
action find_reverse
entity Erba
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Erba
relation sister city
type type of french administrative division
[{'concept': 'administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'type of french administrative division'}, 'sister city', 'Erba']
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { VALUES ( ?v ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?p rdf:type ?v }
[]
administrative territorial entity type of french administrative division
SYSTEM
4
Q8848 Q213155 Q7022 Q280296
(c(Q56061),P190,Q47211) (c(Q20667921),P190,Q47211)
action count
action union
action filter_type
action find_reverse
entity Q47211
relation P190
type Q56061
action filter_type
action find_reverse
entity Q47211
relation P190
type Q20667921
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q47211'] [{'concept': 'Q20667921'}, 'P190', 'Q47211']
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { VALUES ( ?v ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?p rdf:type ?v }
Valence Tournon-sur-Rhône Fellbach Tain-l'Hermitage
4
action count
action union
action filter_type
action find_reverse
entity Erba
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Erba
relation sister city
type type of french administrative division
[{'concept': 'administrative territorial entity'}, 'sister city', 'Erba'] [{'concept': 'type of french administrative division'}, 'sister city', 'Erba']
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { VALUES ( ?v ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?p rdf:type ?v }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6379032 Q2997718
P27 P17
Q15617994
USER
Which administrative territories are Alaksandar Dubko a civilian of or do Kavakoluğu, Gülnar belong to ?
OR((Q2997718,P27,c(Q15617994)), (Q6379032,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2997718
relation P27
action find
entity Q6379032
relation P17
type Q15617994
{'OR': [['Q2997718', 'P27', {'concept': 'Q15617994'}], ['Q6379032', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q6379032 property:P17 ?r } UNION { resource:Q2997718 property:P27 ?r } } . ?r rdf:type ontology:Q15617994 }
Kavakoluğu, Gülnar Alaksandar Dubko
action filter_type
action union
action find
entity Alaksandar Dubko
relation country of citizenship
action find
entity Kavakoluğu, Gülnar
relation country
type designation for an administrative territorial entity
{'OR': [['Alaksandar Dubko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kavakoluğu, Gülnar', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Kavakoluğu,_Gülnar property:country ?r } UNION { resource:Alaksandar_Dubko property:country_of_citizenship ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q184 Q43
SYSTEM
Belarus, Turkey
Q184 Q43
OR((Q2997718,P27,c(Q15617994)), (Q6379032,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2997718
relation P27
action find
entity Q6379032
relation P17
type Q15617994
[ANSWERS] are Alaksandar Dubko a civilian of or do Kavakoluğu, Gülnar belong to
{'OR': [['Q2997718', 'P27', {'concept': 'Q15617994'}], ['Q6379032', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q6379032 property:P17 ?r } UNION { resource:Q2997718 property:P27 ?r } } . ?r rdf:type ontology:Q15617994 }
Belarus Turkey
Belarus and Turkey are Alaksandar Dubko a civilian of or do Kavakoluğu, Gülnar belong to
Belarus Turkey
action filter_type
action union
action find
entity Alaksandar Dubko
relation country of citizenship
action find
entity Kavakoluğu, Gülnar
relation country
type designation for an administrative territorial entity
{'OR': [['Alaksandar Dubko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kavakoluğu, Gülnar', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Kavakoluğu,_Gülnar property:country ?r } UNION { resource:Alaksandar_Dubko property:country_of_citizenship ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q43
P1001
Q192350
USER
Which ministries apply to jurisdiction over that administrative territory ?
(c(Q192350),P1001,Q43)
action filter_type
action find_reverse
entity Q43
relation P1001
type Q192350
[{'concept': 'Q192350'}, 'P1001', 'Q43']
SELECT DISTINCT ?f WHERE { ?f property:P1001 resource:Q43 . ?f rdf:type ontology:Q192350 }
Turkey
action filter_type
action find_reverse
entity Turkey
relation applies to jurisdiction
type ministry
[{'concept': 'ministry'}, 'applies to jurisdiction', 'Turkey']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction resource:Turkey . ?f rdf:type ontology:ministry }
[]
ministry
Clarification for simple ques.
Q43
SYSTEM
Did you mean Turkey ?
Q184 Q43
(c(Q192350),P1001,Q184) (c(Q192350),P1001,Q43)
[ANSWER]
[{'concept': 'Q192350'}, 'P1001', 'Q184'] [{'concept': 'Q192350'}, 'P1001', 'Q43']
SELECT DISTINCT ?f WHERE { ?f property:P1001 resource:Q43 . ?f rdf:type ontology:Q192350 }
Belarus Turkey
Did you mean Turkey ?
Turkey
[{'concept': 'ministry'}, 'applies to jurisdiction', 'Belarus'] [{'concept': 'ministry'}, 'applies to jurisdiction', 'Turkey']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction resource:Turkey . ?f rdf:type ontology:ministry }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q192350),P1001,Q43)
[{'concept': 'Q192350'}, 'P1001', 'Q43']
[{'concept': 'ministry'}, 'applies to jurisdiction', 'Turkey']
[]
Q4294877 Q4294695
SYSTEM
Ministry of Justice, Ministry of Food, Agriculture and Livestock of Turkey
Q4294877 Q4294695
(c(Q192350),P1001,Q43)
action filter_type
action find_reverse
entity Q43
relation P1001
type Q192350
[ANSWERS]
[{'concept': 'Q192350'}, 'P1001', 'Q43']
SELECT DISTINCT ?f WHERE { ?f property:P1001 resource:Q43 . ?f rdf:type ontology:Q192350 }
Ministry of Justice Ministry of Food, Agriculture and Livestock of Turkey
Ministry of Justice and Ministry of Food, Agriculture and Livestock of Turkey apply to jurisdiction over that administrative territory
Ministry of Justice Ministry of Food, Agriculture and Livestock of Turkey
action filter_type
action find_reverse
entity Turkey
relation applies to jurisdiction
type ministry
[{'concept': 'ministry'}, 'applies to jurisdiction', 'Turkey']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction resource:Turkey . ?f rdf:type ontology:ministry }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4294695
P1001
Q15617994
USER
Which administrative territory is linked to that ministry ?
(Q4294695,P1001,c(Q15617994))
action filter_type
action find
entity Q4294695
relation P1001
type Q15617994
['Q4294695', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q4294695 property:P1001 ?y . ?y rdf:type ontology:Q15617994 }
Ministry of Food, Agriculture and Livestock of Turkey
action filter_type
action find
entity Ministry of Food, Agriculture and Livestock of Turkey
relation applies to jurisdiction
type designation for an administrative territorial entity
['Ministry of Food, Agriculture and Livestock of Turkey', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Ministry_of_Food,_Agriculture_and_Livestock_of_Turkey property:applies_to_jurisdiction ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q4294877
SYSTEM
Did you mean Ministry of Justice ?
Q4294877 Q4294695
(Q4294877,P1001,c(Q15617994)) (Q4294695,P1001,c(Q15617994))
[ANSWER]
['Q4294877', 'P1001', {'concept': 'Q15617994'}] ['Q4294695', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q4294695 property:P1001 ?y . ?y rdf:type ontology:Q15617994 }
Ministry of Justice Ministry of Food, Agriculture and Livestock of Turkey
Did you mean Ministry of Justice ?
Ministry of Justice
['Ministry of Justice', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['Ministry of Food, Agriculture and Livestock of Turkey', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Ministry_of_Food,_Agriculture_and_Livestock_of_Turkey property:applies_to_jurisdiction ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Ministry of Food, Agriculture and Livestock of Turkey. Could you tell me the answer for that?
(Q4294695,P1001,c(Q15617994))
Q4294695
['Q4294695', 'P1001', {'concept': 'Q15617994'}]
['Ministry of Food, Agriculture and Livestock of Turkey', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
[]
Q43
SYSTEM
Turkey
Q43
(Q4294695,P1001,c(Q15617994))
action filter_type
action find
entity Q4294695
relation P1001
type Q15617994
[ANSWER] is linked to that ministry
['Q4294695', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q4294695 property:P1001 ?y . ?y rdf:type ontology:Q15617994 }
Turkey
Turkey is linked to that ministry
Turkey
action filter_type
action find
entity Ministry of Food, Agriculture and Livestock of Turkey
relation applies to jurisdiction
type designation for an administrative territorial entity
['Ministry of Food, Agriculture and Livestock of Turkey', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Ministry_of_Food,_Agriculture_and_Livestock_of_Turkey property:applies_to_jurisdiction ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q2031291
USER
How many administrative territories did less number of film genres or releases originate than that administrative territory ?
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q43
relation P495
type Q201658
type Q2031291
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:P495 ?n . ?n rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q2031291 } UNION { ?z property:P495 ?n . ?n rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q201658 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:P495 resource:Q43 . { { ?u rdf:type ontology:Q201658 } UNION { ?u rdf:type ontology:Q2031291 } } } } . FILTER ( ?e < ?d ) }
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Turkey
relation country of origin
type film genre
type release
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:release } UNION { ?z property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:film_genre } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:country_of_origin resource:Turkey . { { ?u rdf:type ontology:film_genre } UNION { ?u rdf:type ontology:release } } } } . FILTER ( ?e < ?d ) }
[]
designation for an administrative territorial entity film genre release
SYSTEM
152
Q805 Q804 Q801 Q800 Q1462 Q419 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q41 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q32 Q924 Q36 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q869 Q953
(c(Q201658)|c(Q2031291),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_multi_types
action find_reverse
entity Q43
relation P495
type Q201658
type Q2031291
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:P495 ?n . ?n rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q2031291 } UNION { ?z property:P495 ?n . ?n rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q201658 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:P495 resource:Q43 . { { ?u rdf:type ontology:Q201658 } UNION { ?u rdf:type ontology:Q2031291 } } } } . FILTER ( ?e < ?d ) }
Yemen Panama Israel Costa Rica Sardinia Peru Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Greece El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Luxembourg Tanzania Poland Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Brunei Sudan Mauritania Mauritius Malawi Iceland Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Thailand Zambia
152
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_multi_types
action find_reverse
entity Turkey
relation country of origin
type film genre
type release
[[{'concept': 'film genre'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?e ) WHERE { { ?z property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:release } UNION { ?z property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:film_genre } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?d ) WHERE { ?u property:country_of_origin resource:Turkey . { { ?u rdf:type ontology:film_genre } UNION { ?u rdf:type ontology:release } } } } . FILTER ( ?e < ?d ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9360147 Q2997718
P27
Q15617994
USER
Which administrative territories are the native countriesof Alaksandar Dubko or Torbjørn Clausen ?
OR((Q2997718,P27,c(Q15617994)), (Q9360147,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2997718
relation P27
action find
entity Q9360147
relation P27
type Q15617994
{'OR': [['Q2997718', 'P27', {'concept': 'Q15617994'}], ['Q9360147', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { VALUES ( ?g ) { ( resource:Q2997718 ) ( resource:Q9360147 ) } . ?g property:P27 ?m } }
Torbjørn Clausen Alaksandar Dubko
action filter_type
action union
action find
entity Alaksandar Dubko
relation country of citizenship
action find
entity Torbjørn Clausen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alaksandar Dubko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Torbjørn Clausen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?g ) { ( resource:Alaksandar_Dubko ) ( resource:Torbjørn_Clausen ) } . ?g property:country_of_citizenship ?m } }
[]
designation for an administrative territorial entity
Q20 Q184
SYSTEM
Norway, Belarus
Q20 Q184
OR((Q2997718,P27,c(Q15617994)), (Q9360147,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2997718
relation P27
action find
entity Q9360147
relation P27
type Q15617994
[ANSWERS] are the native countriesof Alaksandar Dubko or Torbjørn Clausen
{'OR': [['Q2997718', 'P27', {'concept': 'Q15617994'}], ['Q9360147', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . { VALUES ( ?g ) { ( resource:Q2997718 ) ( resource:Q9360147 ) } . ?g property:P27 ?m } }
Norway Belarus
Norway and Belarus are the native countriesof Alaksandar Dubko or Torbjørn Clausen
Norway Belarus
action filter_type
action union
action find
entity Alaksandar Dubko
relation country of citizenship
action find
entity Torbjørn Clausen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alaksandar Dubko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Torbjørn Clausen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?g ) { ( resource:Alaksandar_Dubko ) ( resource:Torbjørn_Clausen ) } . ?g property:country_of_citizenship ?m } }
[]