Simple Question (Direct)
Simple Question
Q695572
P19
Q15617994
USER
Which administrative territory was Arnold Kitz born in ?
(Q695572,P19,c(Q15617994))
action filter_type
action find
entity Q695572
relation P19
type Q15617994
['Q695572', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q695572 property:P19 ?f . ?f rdf:type ontology:Q15617994 }
Arnold Kitz
action filter_type
action find
entity Arnold Kitz
relation place of birth
type designation for an administrative territorial entity
['Arnold Kitz', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Arnold_Kitz property:place_of_birth ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q16096
SYSTEM
Vechta
Q16096
(Q695572,P19,c(Q15617994))
action filter_type
action find
entity Q695572
relation P19
type Q15617994
Arnold Kitz was born in [ANSWER]
['Q695572', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q695572 property:P19 ?f . ?f rdf:type ontology:Q15617994 }
Vechta
Arnold Kitz was born in Vechta
Vechta
action filter_type
action find
entity Arnold Kitz
relation place of birth
type designation for an administrative territorial entity
['Arnold Kitz', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Arnold_Kitz property:place_of_birth ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q695572
P39
Q12737077
USER
Which occupation was a position for which Arnold Kitz was appointed ?
(Q695572,P39,c(Q12737077))
action filter_type
action find
entity Q695572
relation P39
type Q12737077
['Q695572', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q695572 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Arnold Kitz
action filter_type
action find
entity Arnold Kitz
relation position held
type occupation
['Arnold Kitz', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Arnold_Kitz property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q486839
SYSTEM
member of parliament
Q486839
(Q695572,P39,c(Q12737077))
action filter_type
action find
entity Q695572
relation P39
type Q12737077
The [ANSWER] was a position for which Arnold Kitz was appointed
['Q695572', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q695572 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
member of parliament
The member of parliament was a position for which Arnold Kitz was appointed
member of parliament
action filter_type
action find
entity Arnold Kitz
relation position held
type occupation
['Arnold Kitz', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Arnold_Kitz property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26213308
Q12737077
USER
And how about Ralph Grey?
(Q26213308,P39,c(Q12737077))
action filter_type
action find
entity Q26213308
relation P39
type Q12737077
['Q26213308', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q26213308 property:P39 ?n }
Ralph Grey
action filter_type
action find
entity Ralph Grey
relation position held
type occupation
['Ralph Grey', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Ralph_Grey property:position_held ?n }
[]
occupation
Q18018860
SYSTEM
Member of Parliament in the Parliament of England
Q18018860
(Q26213308,P39,c(Q12737077))
action filter_type
action find
entity Q26213308
relation P39
type Q12737077
[ANSWER]
['Q26213308', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q26213308 property:P39 ?n }
Member of Parliament in the Parliament of England
Member of Parliament in the Parliament of England
action filter_type
action find
entity Ralph Grey
relation position held
type occupation
['Ralph Grey', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Ralph_Grey property:position_held ?n }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4952268 Q16096
P27 P17
Q1048835
USER
Which political territories are Vechta situated in or are Boycie Nelson an inhabitant of ?
OR((Q16096,P17,c(Q1048835)), (Q4952268,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q16096
relation P17
action find
entity Q4952268
relation P27
type Q1048835
{'OR': [['Q16096', 'P17', {'concept': 'Q1048835'}], ['Q4952268', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q16096 property:P17 ?q } UNION { resource:Q4952268 property:P27 ?q } } . ?q rdf:type ontology:Q1048835 }
Boycie Nelson Vechta
action filter_type
action union
action find
entity Vechta
relation country
action find
entity Boycie Nelson
relation country of citizenship
type political territorial entity
{'OR': [['Vechta', 'country', {'concept': 'political territorial entity'}], ['Boycie Nelson', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Vechta property:country ?q } UNION { resource:Boycie_Nelson property:country_of_citizenship ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q183
SYSTEM
New Zealand, Germany
Q664 Q183
OR((Q16096,P17,c(Q1048835)), (Q4952268,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q16096
relation P17
action find
entity Q4952268
relation P27
type Q1048835
Vechta are situated in [ANSWERS] or are Boycie Nelson an inhabitant of
{'OR': [['Q16096', 'P17', {'concept': 'Q1048835'}], ['Q4952268', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q16096 property:P17 ?q } UNION { resource:Q4952268 property:P27 ?q } } . ?q rdf:type ontology:Q1048835 }
New Zealand Germany
Vechta are situated in New Zealand and Germany or are Boycie Nelson an inhabitant of
New Zealand Germany
action filter_type
action union
action find
entity Vechta
relation country
action find
entity Boycie Nelson
relation country of citizenship
type political territorial entity
{'OR': [['Vechta', 'country', {'concept': 'political territorial entity'}], ['Boycie Nelson', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Vechta property:country ?q } UNION { resource:Boycie_Nelson property:country_of_citizenship ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7798051
P530
Q15617994
USER
Do Threewaters have diplomatic relations with those political territories ?
(Q7798051,P530,Q664) (Q7798051,P530,Q183)
action is_in
entity prev_answer
action find
entity Q7798051
relation P530
['Q7798051', 'P530', 'Q664'] ['Q7798051', 'P530', 'Q183']
ASK WHERE { VALUES ( ?k ) { ( resource:Q664 ) ( resource:Q183 ) } . resource:Q7798051 property:P530 ?k }
Threewaters
action is_in
entity prev_answer
action find
entity Threewaters
relation diplomatic relation
['Threewaters', 'diplomatic relation', 'New Zealand'] ['Threewaters', 'diplomatic relation', 'Germany']
ASK WHERE { VALUES ( ?k ) { ( resource:New_Zealand ) ( resource:Germany ) } . resource:Threewaters property:diplomatic_relation ?k }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q7798051,P530,Q664) (Q7798051,P530,Q183)
action is_in
entity prev_answer
action find
entity Q7798051
relation P530
[ANSWER]
['Q7798051', 'P530', 'Q664'] ['Q7798051', 'P530', 'Q183']
ASK WHERE { VALUES ( ?k ) { ( resource:Q664 ) ( resource:Q183 ) } . resource:Q7798051 property:P530 ?k }
No
action is_in
entity prev_answer
action find
entity Threewaters
relation diplomatic relation
['Threewaters', 'diplomatic relation', 'New Zealand'] ['Threewaters', 'diplomatic relation', 'Germany']
ASK WHERE { VALUES ( ?k ) { ( resource:New_Zealand ) ( resource:Germany ) } . resource:Threewaters property:diplomatic_relation ?k }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q664
P495
Q1048835 Q2342494 Q838948
USER
Which political territories are the countries of origin of more number of collectables or works of art than New Zealand ?
(c(Q2342494)|c(Q838948),P495,c(Q1048835))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q664
relation P495
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?d WHERE { { ?u property:P495 ?d . ?d rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q2342494 } UNION { ?u property:P495 ?d . ?d rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q838948 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:P495 resource:Q664 . { { ?s rdf:type ontology:Q2342494 } UNION { ?s rdf:type ontology:Q838948 } } } } . FILTER ( ?a > ?y ) }
New Zealand
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity New Zealand
relation country of origin
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?d WHERE { { ?u property:country_of_origin ?d . ?d rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:collectable } UNION { ?u property:country_of_origin ?d . ?d rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:work_of_art } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:country_of_origin resource:New_Zealand . { { ?s rdf:type ontology:collectable } UNION { ?s rdf:type ontology:work_of_art } } } } . FILTER ( ?a > ?y ) }
[]
political territorial entity collectable work of art
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q183 Q16 Q35 Q408 Q40
(c(Q2342494)|c(Q838948),P495,c(Q1048835))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q664
relation P495
type Q2342494
type Q838948
[ANSWERS] are the countries of origin of more number of collectables or works of art than New Zealand
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?d WHERE { { ?u property:P495 ?d . ?d rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q2342494 } UNION { ?u property:P495 ?d . ?d rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q838948 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:P495 resource:Q664 . { { ?s rdf:type ontology:Q2342494 } UNION { ?s rdf:type ontology:Q838948 } } } } . FILTER ( ?a > ?y ) }
Germany Canada Denmark Australia Austria
Germany, Australia and Denmark are the countries of origin of more number of collectables or works of art than New Zealand
Germany Australia Denmark
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity New Zealand
relation country of origin
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) ?d WHERE { { ?u property:country_of_origin ?d . ?d rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:collectable } UNION { ?u property:country_of_origin ?d . ?d rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:work_of_art } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { ?s property:country_of_origin resource:New_Zealand . { { ?s rdf:type ontology:collectable } UNION { ?s rdf:type ontology:work_of_art } } } } . FILTER ( ?a > ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q40
P495
Q1048835 Q2342494 Q838948
USER
And also tell me about Austria?
(c(Q2342494)|c(Q838948),P495,c(Q1048835))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q40
relation P495
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?k ) WHERE { { ?s property:P495 ?g . ?s rdf:type ontology:Q838948 . ?g rdf:type ontology:Q1048835 } UNION { ?s property:P495 ?g . ?s rdf:type ontology:Q2342494 . ?g rdf:type ontology:Q1048835 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:P495 resource:Q40 . { { ?m rdf:type ontology:Q2342494 } UNION { ?m rdf:type ontology:Q838948 } } } } . FILTER ( ?k > ?e ) }
Austria
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Austria
relation country of origin
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?k ) WHERE { { ?s property:country_of_origin ?g . ?s rdf:type ontology:work_of_art . ?g rdf:type ontology:political_territorial_entity } UNION { ?s property:country_of_origin ?g . ?s rdf:type ontology:collectable . ?g rdf:type ontology:political_territorial_entity } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:country_of_origin resource:Austria . { { ?m rdf:type ontology:collectable } UNION { ?m rdf:type ontology:work_of_art } } } } . FILTER ( ?k > ?e ) }
[]
political territorial entity collectable work of art
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q183 Q16 Q35 Q408
(c(Q2342494)|c(Q838948),P495,c(Q1048835))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q40
relation P495
type Q2342494
type Q838948
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?k ) WHERE { { ?s property:P495 ?g . ?s rdf:type ontology:Q838948 . ?g rdf:type ontology:Q1048835 } UNION { ?s property:P495 ?g . ?s rdf:type ontology:Q2342494 . ?g rdf:type ontology:Q1048835 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:P495 resource:Q40 . { { ?m rdf:type ontology:Q2342494 } UNION { ?m rdf:type ontology:Q838948 } } } } . FILTER ( ?k > ?e ) }
Germany Canada Denmark Australia
Germany Australia Denmark
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Austria
relation country of origin
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?k ) WHERE { { ?s property:country_of_origin ?g . ?s rdf:type ontology:work_of_art . ?g rdf:type ontology:political_territorial_entity } UNION { ?s property:country_of_origin ?g . ?s rdf:type ontology:collectable . ?g rdf:type ontology:political_territorial_entity } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m property:country_of_origin resource:Austria . { { ?m rdf:type ontology:collectable } UNION { ?m rdf:type ontology:work_of_art } } } } . FILTER ( ?k > ?e ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q197249 Q183
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with Germany and are not the countries of citizenship of Zhang Liao ?
AND((Q183,P530,c(Q15617994)), NOT((Q197249,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q197249
relation P27
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q197249', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?w WHERE { resource:Q183 property:P530 ?w . MINUS { resource:Q197249 property:P27 ?w } . ?w rdf:type ontology:Q15617994 }
Zhang Liao Germany
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Zhang Liao
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Zhang Liao', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?w WHERE { resource:Germany property:diplomatic_relation ?w . MINUS { resource:Zhang_Liao property:country_of_citizenship ?w } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1019 Q668 Q96 Q214 Q265 Q796 Q801 Q1008 Q232 Q241
SYSTEM
Some of them are Madagascar, India, Mexico, Slovakia, Uzbekistan, Iraq, Israel, Côte d'Ivoire, Kazakhstan, Cuba
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
AND((Q183,P530,c(Q15617994)), NOT((Q197249,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q197249
relation P27
type Q15617994
[ANSWERS] hold diplomatic relationship with Germany and are not the countries of citizenship of Zhang Liao
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q197249', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?w WHERE { resource:Q183 property:P530 ?w . MINUS { resource:Q197249 property:P27 ?w } . ?w rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Madagascar, India, Mexico, Slovakia, Uzbekistan, Iraq, Israel, Côte d'Ivoire, Kazakhstan and Cuba hold diplomatic relationship with Germany and are not the countries of citizenship of Zhang Liao
Madagascar India Mexico Slovakia Uzbekistan Iraq Israel Côte d'Ivoire Kazakhstan Cuba
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Zhang Liao
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Zhang Liao', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?w WHERE { resource:Germany property:diplomatic_relation ?w . MINUS { resource:Zhang_Liao property:country_of_citizenship ?w } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q1048835
USER
How many political territories have diplomatic relationships with that administrative territory ?
(Q96,P530,c(Q1048835))
['Q96', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2294975 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
['Mexico', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Mexico property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q668
SYSTEM
Did you mean India ?
(Q1019,P530,c(Q1048835)) (Q668,P530,c(Q1048835)) (Q96,P530,c(Q1048835)) (Q214,P530,c(Q1048835)) (Q265,P530,c(Q1048835)) (Q796,P530,c(Q1048835)) (Q801,P530,c(Q1048835)) (Q1008,P530,c(Q1048835)) (Q232,P530,c(Q1048835)) (Q241,P530,c(Q1048835))
[ANSWER]
['Q1019', 'P530', {'concept': 'Q1048835'}] ['Q668', 'P530', {'concept': 'Q1048835'}] ['Q96', 'P530', {'concept': 'Q1048835'}] ['Q214', 'P530', {'concept': 'Q1048835'}] ['Q265', 'P530', {'concept': 'Q1048835'}] ['Q796', 'P530', {'concept': 'Q1048835'}] ['Q801', 'P530', {'concept': 'Q1048835'}] ['Q1008', 'P530', {'concept': 'Q1048835'}] ['Q232', 'P530', {'concept': 'Q1048835'}] ['Q241', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2294975 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Did you mean India ?
India
['Madagascar', 'diplomatic relation', {'concept': 'political territorial entity'}] ['India', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Mexico', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Uzbekistan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Iraq', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}] ["Côte d'Ivoire", 'diplomatic relation', {'concept': 'political territorial entity'}] ['Kazakhstan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Cuba', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Mexico property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Mexico. Could you tell me the answer for that?
(Q96,P530,c(Q1048835))
Q96
['Q96', 'P530', {'concept': 'Q1048835'}]
['Mexico', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
2
Q408 Q183
(Q96,P530,c(Q1048835))
[ANSWER]
['Q96', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q2294975 property:P530 ?z . ?z rdf:type ontology:Q1048835 }
Australia Germany
2
['Mexico', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Mexico property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q801
P1532
Q1194951
USER
Which national sports team represents Israel ?
(c(Q1194951),P1532,Q801)
action filter_type
action find_reverse
entity Q801
relation P1532
type Q1194951
[{'concept': 'Q1194951'}, 'P1532', 'Q801']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1194951 . ?s property:P1532 resource:Q801 }
Israel
action filter_type
action find_reverse
entity Israel
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Israel']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:national_sports_team . ?s property:country_for_sport resource:Israel }
[]
national sports team
Q191406
SYSTEM
Israel national football team
Q191406
(c(Q1194951),P1532,Q801)
action filter_type
action find_reverse
entity Q801
relation P1532
type Q1194951
And [ANSWER] represents Israel
[{'concept': 'Q1194951'}, 'P1532', 'Q801']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1194951 . ?s property:P1532 resource:Q801 }
Israel national football team
And Israel national football team represents Israel
Israel national football team
action filter_type
action find_reverse
entity Israel
relation country for sport
type national sports team
[{'concept': 'national sports team'}, 'country for sport', 'Israel']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:national_sports_team . ?s property:country_for_sport resource:Israel }
[]