Simple Question (Direct)
Simple Question
Q2429984
P551
Q56061
USER
Where did Yulia Putintseva live ?
(Q2429984,P551,c(Q56061))
action filter_type
action find
entity Q2429984
relation P551
type Q56061
['Q2429984', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q2429984 property:P551 ?g . ?g rdf:type ontology:Q56061 }
Yulia Putintseva
action filter_type
action find
entity Yulia Putintseva
relation residence
type administrative territorial entity
['Yulia Putintseva', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Yulia_Putintseva property:residence ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q2429984,P551,c(Q56061))
action filter_type
action find
entity Q2429984
relation P551
type Q56061
Yulia Putintseva lived in [ANSWER]
['Q2429984', 'P551', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q2429984 property:P551 ?g . ?g rdf:type ontology:Q56061 }
Moscow
Yulia Putintseva lived in Moscow
Moscow
action filter_type
action find
entity Yulia Putintseva
relation residence
type administrative territorial entity
['Yulia Putintseva', 'residence', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Yulia_Putintseva property:residence ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q649
P1376
Q7275
USER
Which states have that administrative territory have their center of administration ?
(Q649,P1376,c(Q7275))
action filter_type
action find
entity Q649
relation P1376
type Q7275
['Q649', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { resource:Q649 property:P1376 ?a . ?a rdf:type ontology:Q7275 }
Moscow
action filter_type
action find
entity Moscow
relation capital of
type state
['Moscow', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { resource:Moscow property:capital_of ?a . ?a rdf:type ontology:state }
[]
state
Q15180 Q2184 Q186096
SYSTEM
Soviet Union, Russian Soviet Federative Socialist Republic, Tsardom of Russia
Q170770 Q2184 Q186096 Q15180 Q2305208
(Q649,P1376,c(Q7275))
action filter_type
action find
entity Q649
relation P1376
type Q7275
[ANSWERS] have that administrative territory have their center of administration
['Q649', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { resource:Q649 property:P1376 ?a . ?a rdf:type ontology:Q7275 }
Grand Duchy of Moscow Russian Soviet Federative Socialist Republic Tsardom of Russia Soviet Union Soviet Russia
Soviet Union, Russian Soviet Federative Socialist Republic and Tsardom of Russia have that administrative territory have their center of administration
Soviet Union Russian Soviet Federative Socialist Republic Tsardom of Russia
action filter_type
action find
entity Moscow
relation capital of
type state
['Moscow', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { resource:Moscow property:capital_of ?a . ?a rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10309600 Q2429984
P27
Q15617994
USER
Which administrative territories do Yulia Putintseva or José Ilário Gonçalves Marques belong to ?
OR((Q2429984,P27,c(Q15617994)), (Q10309600,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2429984
relation P27
action find
entity Q10309600
relation P27
type Q15617994
{'OR': [['Q2429984', 'P27', {'concept': 'Q15617994'}], ['Q10309600', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?d property:P27 ?n . VALUES ( ?d ) { ( resource:Q2429984 ) ( resource:Q10309600 ) } } . ?n rdf:type ontology:Q15617994 }
José Ilário Gonçalves Marques Yulia Putintseva
action filter_type
action union
action find
entity Yulia Putintseva
relation country of citizenship
action find
entity José Ilário Gonçalves Marques
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Yulia Putintseva', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['José Ilário Gonçalves Marques', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?d property:country_of_citizenship ?n . VALUES ( ?d ) { ( resource:Yulia_Putintseva ) ( resource:José_Ilário_Gonçalves_Marques ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q159 Q232
SYSTEM
Brazil, Russia, Kazakhstan
Q155 Q159 Q232
OR((Q2429984,P27,c(Q15617994)), (Q10309600,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2429984
relation P27
action find
entity Q10309600
relation P27
type Q15617994
[ANSWERS] Yulia Putintseva or José Ilário Gonçalves Marques belong to
{'OR': [['Q2429984', 'P27', {'concept': 'Q15617994'}], ['Q10309600', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { ?d property:P27 ?n . VALUES ( ?d ) { ( resource:Q2429984 ) ( resource:Q10309600 ) } } . ?n rdf:type ontology:Q15617994 }
Brazil Russia Kazakhstan
Brazil, Russia and Kazakhstan Yulia Putintseva or José Ilário Gonçalves Marques belong to
Brazil Russia Kazakhstan
action filter_type
action union
action find
entity Yulia Putintseva
relation country of citizenship
action find
entity José Ilário Gonçalves Marques
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Yulia Putintseva', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['José Ilário Gonçalves Marques', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { ?d property:country_of_citizenship ?n . VALUES ( ?d ) { ( resource:Yulia_Putintseva ) ( resource:José_Ilário_Gonçalves_Marques ) } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10309600
P102
Q7210356
USER
Which party is José Ilário Gonçalves Marques affiliated with ?
(Q10309600,P102,c(Q7210356))
action filter_type
action find
entity Q10309600
relation P102
type Q7210356
['Q10309600', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q10309600 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
José Ilário Gonçalves Marques
action filter_type
action find
entity José Ilário Gonçalves Marques
relation member of political party
type political organization
['José Ilário Gonçalves Marques', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:José_Ilário_Gonçalves_Marques property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
political organization
Q657089
SYSTEM
Workers' Party
Q657089
(Q10309600,P102,c(Q7210356))
action filter_type
action find
entity Q10309600
relation P102
type Q7210356
José Ilário Gonçalves Marques is affiliated with [ANSWER]
['Q10309600', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?u WHERE { resource:Q10309600 property:P102 ?u . ?u rdf:type ontology:Q7210356 }
Workers' Party
José Ilário Gonçalves Marques is affiliated with Workers' Party
Workers' Party
action filter_type
action find
entity José Ilário Gonçalves Marques
relation member of political party
type political organization
['José Ilário Gonçalves Marques', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?u WHERE { resource:José_Ilário_Gonçalves_Marques property:member_of_political_party ?u . ?u rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1576753
Q7210356
USER
And what about Hans Bernhard Grünberg?
(Q1576753,P102,c(Q7210356))
action filter_type
action find
entity Q1576753
relation P102
type Q7210356
['Q1576753', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?s WHERE { resource:Q1576753 property:P102 ?s . ?s rdf:type ontology:Q7210356 }
Hans Bernhard Grünberg
action filter_type
action find
entity Hans Bernhard Grünberg
relation member of political party
type political organization
['Hans Bernhard Grünberg', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?s WHERE { resource:Hans_Bernhard_Grünberg property:member_of_political_party ?s . ?s rdf:type ontology:political_organization }
[]
political organization
Q7320 Q495497 Q156019
SYSTEM
Nazi Party, Deutsche Reichspartei, National Democratic Party of Germany
Q7320 Q495497 Q156019
(Q1576753,P102,c(Q7210356))
action filter_type
action find
entity Q1576753
relation P102
type Q7210356
[ANSWERS]
['Q1576753', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?s WHERE { resource:Q1576753 property:P102 ?s . ?s rdf:type ontology:Q7210356 }
Nazi Party Deutsche Reichspartei National Democratic Party of Germany
Nazi Party Deutsche Reichspartei National Democratic Party of Germany
action filter_type
action find
entity Hans Bernhard Grünberg
relation member of political party
type political organization
['Hans Bernhard Grünberg', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?s WHERE { resource:Hans_Bernhard_Grünberg property:member_of_political_party ?s . ?s rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5031915 Q10309600
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of José Ilário Gonçalves Marques or Candido Maria Trigueros ?
OR((Q10309600,P27,c(Q15617994)), (Q5031915,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q10309600
relation P27
action find
entity Q5031915
relation P27
type Q15617994
{'OR': [['Q10309600', 'P27', {'concept': 'Q15617994'}], ['Q5031915', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . { VALUES ( ?j ) { ( resource:Q5031915 ) ( resource:Q10309600 ) } . ?j property:P27 ?q } }
Candido Maria Trigueros José Ilário Gonçalves Marques
action filter_type
action union
action find
entity José Ilário Gonçalves Marques
relation country of citizenship
action find
entity Candido Maria Trigueros
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['José Ilário Gonçalves Marques', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Candido Maria Trigueros', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?j ) { ( resource:Candido_Maria_Trigueros ) ( resource:José_Ilário_Gonçalves_Marques ) } . ?j property:country_of_citizenship ?q } }
[]
designation for an administrative territorial entity
Q155 Q29
SYSTEM
Brazil, Spain
Q155 Q29
OR((Q10309600,P27,c(Q15617994)), (Q5031915,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q10309600
relation P27
action find
entity Q5031915
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of José Ilário Gonçalves Marques or Candido Maria Trigueros
{'OR': [['Q10309600', 'P27', {'concept': 'Q15617994'}], ['Q5031915', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . { VALUES ( ?j ) { ( resource:Q5031915 ) ( resource:Q10309600 ) } . ?j property:P27 ?q } }
Brazil Spain
Brazil and Spain are the countries of citizenship of José Ilário Gonçalves Marques or Candido Maria Trigueros
Brazil Spain
action filter_type
action union
action find
entity José Ilário Gonçalves Marques
relation country of citizenship
action find
entity Candido Maria Trigueros
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['José Ilário Gonçalves Marques', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Candido Maria Trigueros', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?j ) { ( resource:Candido_Maria_Trigueros ) ( resource:José_Ilário_Gonçalves_Marques ) } . ?j property:country_of_citizenship ?q } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?h ) { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?x ) WHERE { ?r property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?r } } . { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?z ) WHERE { ?s property:P530 ?c . ?s rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?z = ?h ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?h ) { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?x ) WHERE { ?r property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?r } } . { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?z ) WHERE { ?s property:diplomatic_relation ?c . ?s rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?z = ?h ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have a diplomatic relationship with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?h ) { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?x ) WHERE { ?r property:P530 ?a . ?a rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?r } } . { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?z ) WHERE { ?s property:P530 ?c . ?s rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?z = ?h ) }
Germany
Germany have a diplomatic relationship with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?h ) { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?x ) WHERE { ?r property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?r } } . { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?z ) WHERE { ?s property:diplomatic_relation ?c . ?s rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?z = ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1006
P530
Q1048835 Q15617994
USER
Which administrative territories have diplomatic associations with greater number of political territories than Guinea ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1006
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?a ) AS ?r ) WHERE { ?v rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 . ?v property:P530 ?a } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { resource:Q1006 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?r > ?x ) }
Guinea
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?a ) AS ?r ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity . ?v property:diplomatic_relation ?a } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { resource:Guinea property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r > ?x ) }
[]
political territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q736 Q230 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1006
relation P530
type Q15617994
[ANSWERS] have diplomatic associations with greater number of political territories than Guinea
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?a ) AS ?r ) WHERE { ?v rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 . ?v property:P530 ?a } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { resource:Q1006 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?r > ?x ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic associations with greater number of political territories than Guinea
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?a ) AS ?r ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity . ?v property:diplomatic_relation ?a } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { resource:Guinea property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?r > ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q884
P530
Q1048835 Q15617994
USER
And also tell me about South Korea?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q884
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?z ) WHERE { ?v property:P530 ?k . ?v rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Q884 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?z > ?p ) }
South Korea
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity South Korea
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?z ) WHERE { ?v property:diplomatic_relation ?k . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:South_Korea property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?z > ?p ) }
[]
political territorial entity designation for an administrative territorial entity
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q155 Q38 Q230 Q953
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q884
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?z ) WHERE { ?v property:P530 ?k . ?v rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q1048835 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Q884 property:P530 ?l . ?l rdf:type ontology:Q1048835 } } . FILTER ( ?z > ?p ) }
Brazil Italy Georgia Zambia
Italy Brazil Georgia
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity South Korea
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?z ) WHERE { ?v property:diplomatic_relation ?k . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:political_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:South_Korea property:diplomatic_relation ?l . ?l rdf:type ontology:political_territorial_entity } } . FILTER ( ?z > ?p ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q184
P530
Q15617994
USER
Do Belarus have tactful political relations with those ones ?
(Q184,P530,Q38) (Q184,P530,Q155) (Q184,P530,Q230)
action is_in
entity prev_answer
action find
entity Q184
relation P530
['Q184', 'P530', 'Q38'] ['Q184', 'P530', 'Q155'] ['Q184', 'P530', 'Q230']
ASK WHERE { VALUES ( ?s ) { ( resource:Q155 ) ( resource:Q38 ) ( resource:Q230 ) } . resource:Q184 property:P530 ?s }
Belarus
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Italy'] ['Belarus', 'diplomatic relation', 'Brazil'] ['Belarus', 'diplomatic relation', 'Georgia']
ASK WHERE { VALUES ( ?s ) { ( resource:Brazil ) ( resource:Italy ) ( resource:Georgia ) } . resource:Belarus property:diplomatic_relation ?s }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q184,P530,Q38) (Q184,P530,Q155) (Q184,P530,Q230)
action is_in
entity prev_answer
action find
entity Q184
relation P530
[ANSWER]
['Q184', 'P530', 'Q38'] ['Q184', 'P530', 'Q155'] ['Q184', 'P530', 'Q230']
ASK WHERE { VALUES ( ?s ) { ( resource:Q155 ) ( resource:Q38 ) ( resource:Q230 ) } . resource:Q184 property:P530 ?s }
Yes
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Italy'] ['Belarus', 'diplomatic relation', 'Brazil'] ['Belarus', 'diplomatic relation', 'Georgia']
ASK WHERE { VALUES ( ?s ) { ( resource:Brazil ) ( resource:Italy ) ( resource:Georgia ) } . resource:Belarus property:diplomatic_relation ?s }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q657089 Q155
P17
Q15617994
USER
Is Workers' Party situated in Brazil ?
(Q657089,P17,Q155)
action is_in
entity Q155
action find
entity Q657089
relation P17
['Q657089', 'P17', 'Q155']
ASK WHERE { resource:Q657089 property:P17 resource:Q155 }
Workers' Party Brazil
action is_in
entity Brazil
action find
entity Workers' Party
relation country
["Workers' Party", 'country', 'Brazil']
ASK WHERE { resource:Workers'_Party property:country resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q657089,P17,Q155)
action is_in
entity Q155
action find
entity Q657089
relation P17
[ANSWER]
['Q657089', 'P17', 'Q155']
ASK WHERE { resource:Q657089 property:P17 resource:Q155 }
Yes
action is_in
entity Brazil
action find
entity Workers' Party
relation country
["Workers' Party", 'country', 'Brazil']
ASK WHERE { resource:Workers'_Party property:country resource:Brazil }
[]