Simple Question (Direct)
Simple Question
Q846877
P17
Q15617994
USER
Which administrative territory is Semboku situated in ?
(Q846877,P17,c(Q15617994))
action filter_type
action find
entity Q846877
relation P17
type Q15617994
['Q846877', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q846877 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Semboku
action filter_type
action find
entity Semboku
relation country
type designation for an administrative territorial entity
['Semboku', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Semboku property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q846877,P17,c(Q15617994))
action filter_type
action find
entity Q846877
relation P17
type Q15617994
Semboku is situated in [ANSWER]
['Q846877', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q846877 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Japan
Semboku is situated in Japan
Japan
action filter_type
action find
entity Semboku
relation country
type designation for an administrative territorial entity
['Semboku', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Semboku property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q846877
P126
Q83620
USER
What comes under the administration of that city ?
(c(Q83620),P126,Q17)
action filter_type
action find_reverse
entity Q846877
relation P126
type Q83620
[{'concept': 'Q83620'}, 'P126', 'Q17']
SELECT DISTINCT ?b WHERE { ?b property:P126 resource:Q846877 . ?b rdf:type ontology:Q83620 }
Semboku
action filter_type
action find_reverse
entity Semboku
relation maintained by
type thoroughfare
[{'concept': 'thoroughfare'}, 'maintained by', 'Japan']
SELECT DISTINCT ?b WHERE { ?b property:maintained_by resource:Semboku . ?b rdf:type ontology:thoroughfare }
[]
thoroughfare
Q11595585
SYSTEM
Akita Prefectural Road Route 182
Q11595585
(c(Q83620),P126,Q17)
action filter_type
action find_reverse
entity Q846877
relation P126
type Q83620
[ANSWER] comes under the administration of that city
[{'concept': 'Q83620'}, 'P126', 'Q17']
SELECT DISTINCT ?b WHERE { ?b property:P126 resource:Q846877 . ?b rdf:type ontology:Q83620 }
Akita Prefectural Road Route 182
Akita Prefectural Road Route 182 comes under the administration of that city
Akita Prefectural Road Route 182
action filter_type
action find_reverse
entity Semboku
relation maintained by
type thoroughfare
[{'concept': 'thoroughfare'}, 'maintained by', 'Japan']
SELECT DISTINCT ?b WHERE { ?b property:maintained_by resource:Semboku . ?b rdf:type ontology:thoroughfare }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1027
P530
Q1048835 Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with greater number of political territories or administrative territories than Mauritius ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q1027
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q1027 property:P530 ?b . { { ?b rdf:type ontology:Q1048835 } UNION { ?b rdf:type ontology:Q15617994 } } } } . FILTER ( ?y > ?j ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?c WHERE { { ?c rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 . ?c property:P530 ?w } UNION { ?c property:P530 ?w . ?c rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?c } }
Mauritius
action greater
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Mauritius
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Mauritius property:diplomatic_relation ?b . { { ?b rdf:type ontology:political_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?y > ?j ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?c WHERE { { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity . ?c property:diplomatic_relation ?w } UNION { ?c property:diplomatic_relation ?w . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q1009 Q34020 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q1027
relation P530
type Q1048835
type Q15617994
[ANSWERS] have tactful political relations with greater number of political territories or administrative territories than Mauritius
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q1027 property:P530 ?b . { { ?b rdf:type ontology:Q1048835 } UNION { ?b rdf:type ontology:Q15617994 } } } } . FILTER ( ?y > ?j ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?c WHERE { { ?c rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q1048835 . ?c property:P530 ?w } UNION { ?c property:P530 ?w . ?c rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } } GROUP BY ?c } }
Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Estonia Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Cameroon Niue East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America have tactful political relations with greater number of political territories or administrative territories than Mauritius
Italy Brazil United States of America
action greater
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Mauritius
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Mauritius property:diplomatic_relation ?b . { { ?b rdf:type ontology:political_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?y > ?j ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?c WHERE { { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:political_territorial_entity . ?c property:diplomatic_relation ?w } UNION { ?c property:diplomatic_relation ?w . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?c } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q912
P530
Q1048835 Q15617994 Q15617994
USER
And how about Mali?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q912
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?u ) WHERE { VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?e rdf:type ?q } GROUP BY ?g } . FILTER ( ?u > ?v ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Q912 property:P530 ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } }
Mali
action greater
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Mali
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?u ) WHERE { VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?e rdf:type ?q } GROUP BY ?g } . FILTER ( ?u > ?v ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Mali property:diplomatic_relation ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q1009 Q34020 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q912
relation P530
type Q1048835
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?u ) WHERE { VALUES ( ?q ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?e rdf:type ?q } GROUP BY ?g } . FILTER ( ?u > ?v ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Q912 property:P530 ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } }
Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Estonia Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Cameroon Niue East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy Brazil United States of America
action greater
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Mali
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?e ) AS ?u ) WHERE { VALUES ( ?q ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?e rdf:type ?q } GROUP BY ?g } . FILTER ( ?u > ?v ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Mali property:diplomatic_relation ?t . { ?t rdf:type ?d . VALUES ( ?d ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q1048835 Q56061
USER
How many political territories or administrative territories have diplomatic relationships with that administrative territory ?
(Q155,P530,c(Q1048835)) (Q155,P530,c(Q56061)) (Q38,P530,c(Q1048835)) (Q38,P530,c(Q56061)) (Q155,P530,c(Q1048835)) (Q155,P530,c(Q56061)) (Q30,P530,c(Q1048835)) (Q30,P530,c(Q56061))
['Q155', 'P530', {'concept': 'Q1048835'}] ['Q155', 'P530', {'concept': 'Q56061'}] ['Q38', 'P530', {'concept': 'Q1048835'}] ['Q38', 'P530', {'concept': 'Q56061'}] ['Q155', 'P530', {'concept': 'Q1048835'}] ['Q155', 'P530', {'concept': 'Q56061'}] ['Q30', 'P530', {'concept': 'Q1048835'}] ['Q30', 'P530', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q977238 property:P530 ?z } UNION { resource:Q977238 property:P530 ?y } UNION { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q30 property:P530 ?z } UNION { resource:Q30 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q56061 }
['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:Italy property:diplomatic_relation ?z } UNION { resource:Italy property:diplomatic_relation ?y } UNION { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:United_States_of_America property:diplomatic_relation ?z } UNION { resource:United_States_of_America property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
political territorial entity administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q977238 property:P530 ?z } UNION { resource:Q977238 property:P530 ?y } UNION { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q30 property:P530 ?z } UNION { resource:Q30 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q56061 }
Did you mean Italy ?
Italy
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:Italy property:diplomatic_relation ?z } UNION { resource:Italy property:diplomatic_relation ?y } UNION { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:United_States_of_America property:diplomatic_relation ?z } UNION { resource:United_States_of_America property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Brazil. Could you tell me the answer for that?
(Q155,P530,c(Q1048835)) (Q155,P530,c(Q56061)) (Q38,P530,c(Q1048835)) (Q38,P530,c(Q56061)) (Q155,P530,c(Q1048835)) (Q155,P530,c(Q56061)) (Q30,P530,c(Q1048835)) (Q30,P530,c(Q56061))
Q155
['Q155', 'P530', {'concept': 'Q1048835'}] ['Q155', 'P530', {'concept': 'Q56061'}] ['Q38', 'P530', {'concept': 'Q1048835'}] ['Q38', 'P530', {'concept': 'Q56061'}] ['Q155', 'P530', {'concept': 'Q1048835'}] ['Q155', 'P530', {'concept': 'Q56061'}] ['Q30', 'P530', {'concept': 'Q1048835'}] ['Q30', 'P530', {'concept': 'Q56061'}]
['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
7
Q458 Q183 Q408 Q35 Q16 Q7159 Q766
(Q155,P530,c(Q1048835)) (Q155,P530,c(Q56061)) (Q38,P530,c(Q1048835)) (Q38,P530,c(Q56061)) (Q155,P530,c(Q1048835)) (Q155,P530,c(Q56061)) (Q30,P530,c(Q1048835)) (Q30,P530,c(Q56061))
[ANSWER]
['Q155', 'P530', {'concept': 'Q1048835'}] ['Q155', 'P530', {'concept': 'Q56061'}] ['Q38', 'P530', {'concept': 'Q1048835'}] ['Q38', 'P530', {'concept': 'Q56061'}] ['Q155', 'P530', {'concept': 'Q1048835'}] ['Q155', 'P530', {'concept': 'Q56061'}] ['Q30', 'P530', {'concept': 'Q1048835'}] ['Q30', 'P530', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q977238 property:P530 ?z } UNION { resource:Q977238 property:P530 ?y } UNION { resource:Q21475816 property:P530 ?z } UNION { resource:Q21475816 property:P530 ?y } UNION { resource:Q30 property:P530 ?z } UNION { resource:Q30 property:P530 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q56061 }
European Union Germany Australia Denmark Canada African Union Jamaica
7
['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Brazil', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United States of America', 'diplomatic relation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:Italy property:diplomatic_relation ?z } UNION { resource:Italy property:diplomatic_relation ?y } UNION { resource:Brazil property:diplomatic_relation ?z } UNION { resource:Brazil property:diplomatic_relation ?y } UNION { resource:United_States_of_America property:diplomatic_relation ?z } UNION { resource:United_States_of_America property:diplomatic_relation ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q846877
P206
Q23397
USER
Which lake is situated in the neighbourhood of Semboku ?
(Q846877,P206,c(Q23397))
action filter_type
action find
entity Q846877
relation P206
type Q23397
['Q846877', 'P206', {'concept': 'Q23397'}]
SELECT DISTINCT ?j WHERE { resource:Q846877 property:P206 ?j . ?j rdf:type ontology:Q23397 }
Semboku
action filter_type
action find
entity Semboku
relation located next to body of water
type lake
['Semboku', 'located next to body of water', {'concept': 'lake'}]
SELECT DISTINCT ?j WHERE { resource:Semboku property:located_next_to_body_of_water ?j . ?j rdf:type ontology:lake }
[]
lake
Q174309
SYSTEM
Lake Tazawa
Q174309
(Q846877,P206,c(Q23397))
action filter_type
action find
entity Q846877
relation P206
type Q23397
[ANSWER] is situated in the neighbourhood of Semboku
['Q846877', 'P206', {'concept': 'Q23397'}]
SELECT DISTINCT ?j WHERE { resource:Q846877 property:P206 ?j . ?j rdf:type ontology:Q23397 }
Lake Tazawa
Lake Tazawa is situated in the neighbourhood of Semboku
Lake Tazawa
action filter_type
action find
entity Semboku
relation located next to body of water
type lake
['Semboku', 'located next to body of water', {'concept': 'lake'}]
SELECT DISTINCT ?j WHERE { resource:Semboku property:located_next_to_body_of_water ?j . ?j rdf:type ontology:lake }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q846877
P47
Q3055118
USER
Which human settlements are bordered by Semboku ?
(c(Q3055118),P47,Q846877)
action filter_type
action find_reverse
entity Q846877
relation P47
type Q3055118
[{'concept': 'Q3055118'}, 'P47', 'Q846877']
SELECT DISTINCT ?q WHERE { ?q property:P47 resource:Q846877 . ?q rdf:type ontology:Q3055118 }
Semboku
action filter_type
action find_reverse
entity Semboku
relation shares border with
type single entity of population
[{'concept': 'single entity of population'}, 'shares border with', 'Semboku']
SELECT DISTINCT ?q WHERE { ?q property:shares_border_with resource:Semboku . ?q rdf:type ontology:single_entity_of_population }
[]
single entity of population
Q1348478 Q1205938
SYSTEM
Shizukuishi, Nishiwaga
Q1348478 Q1205938
(c(Q3055118),P47,Q846877)
action filter_type
action find_reverse
entity Q846877
relation P47
type Q3055118
[ANSWERS] are bordered by Semboku
[{'concept': 'Q3055118'}, 'P47', 'Q846877']
SELECT DISTINCT ?q WHERE { ?q property:P47 resource:Q846877 . ?q rdf:type ontology:Q3055118 }
Shizukuishi Nishiwaga
Shizukuishi and Nishiwaga are bordered by Semboku
Shizukuishi Nishiwaga
action filter_type
action find_reverse
entity Semboku
relation shares border with
type single entity of population
[{'concept': 'single entity of population'}, 'shares border with', 'Semboku']
SELECT DISTINCT ?q WHERE { ?q property:shares_border_with resource:Semboku . ?q rdf:type ontology:single_entity_of_population }
[]