Simple Question (Direct)
Simple Question
Q223854
P19
Q56061
USER
Which administrative territory was Jackson Rathbone born in ?
(Q223854,P19,c(Q56061))
action filter_type
action find
entity Q223854
relation P19
type Q56061
['Q223854', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q223854 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Jackson Rathbone
action filter_type
action find
entity Jackson Rathbone
relation place of birth
type administrative territorial entity
['Jackson Rathbone', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Jackson_Rathbone property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q334
SYSTEM
Singapore
Q334
(Q223854,P19,c(Q56061))
action filter_type
action find
entity Q223854
relation P19
type Q56061
Jackson Rathbone was born in [ANSWER]
['Q223854', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q223854 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Singapore
Jackson Rathbone was born in Singapore
Singapore
action filter_type
action find
entity Jackson Rathbone
relation place of birth
type administrative territorial entity
['Jackson Rathbone', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Jackson_Rathbone property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q334
P47
Q15617994
USER
Which administrative territories are bordered by that administrative territory ?
(Q334,P47,c(Q15617994))
action filter_type
action find
entity Q334
relation P47
type Q15617994
['Q334', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q334 property:P47 ?s . ?s rdf:type ontology:Q15617994 }
Singapore
action filter_type
action find
entity Singapore
relation shares border with
type designation for an administrative territorial entity
['Singapore', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Singapore property:shares_border_with ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q833 Q252
SYSTEM
Malaysia, Indonesia
Q833 Q252
(Q334,P47,c(Q15617994))
action filter_type
action find
entity Q334
relation P47
type Q15617994
[ANSWERS] are bordered by that administrative territory
['Q334', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q334 property:P47 ?s . ?s rdf:type ontology:Q15617994 }
Malaysia Indonesia
Malaysia and Indonesia are bordered by that administrative territory
Malaysia Indonesia
action filter_type
action find
entity Singapore
relation shares border with
type designation for an administrative territorial entity
['Singapore', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Singapore property:shares_border_with ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q833
P127
Q483110 Q811979
USER
How many stadia or architectural structures belongs to Malaysia ?
(c(Q483110),P127,Q833) (c(Q811979),P127,Q833)
action count
action union
action filter_type
action find_reverse
entity Q833
relation P127
type Q483110
action filter_type
action find_reverse
entity Q833
relation P127
type Q811979
[{'concept': 'Q483110'}, 'P127', 'Q833'] [{'concept': 'Q811979'}, 'P127', 'Q833']
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { ?s property:P127 resource:Q833 . ?s rdf:type ontology:Q483110 } UNION { ?s property:P127 resource:Q833 . ?s rdf:type ontology:Q811979 } }
Malaysia
action count
action union
action filter_type
action find_reverse
entity Malaysia
relation owned by
type stadium
action filter_type
action find_reverse
entity Malaysia
relation owned by
type architectural structure
[{'concept': 'stadium'}, 'owned by', 'Malaysia'] [{'concept': 'architectural structure'}, 'owned by', 'Malaysia']
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { ?s property:owned_by resource:Malaysia . ?s rdf:type ontology:stadium } UNION { ?s property:owned_by resource:Malaysia . ?s rdf:type ontology:architectural_structure } }
[]
stadium architectural structure
SYSTEM
2
Q2014912 Q635363
(c(Q483110),P127,Q833) (c(Q811979),P127,Q833)
action count
action union
action filter_type
action find_reverse
entity Q833
relation P127
type Q483110
action filter_type
action find_reverse
entity Q833
relation P127
type Q811979
[ANSWER]
[{'concept': 'Q483110'}, 'P127', 'Q833'] [{'concept': 'Q811979'}, 'P127', 'Q833']
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { ?s property:P127 resource:Q833 . ?s rdf:type ontology:Q483110 } UNION { ?s property:P127 resource:Q833 . ?s rdf:type ontology:Q811979 } }
National Sports Complex National Stadium, Bukit Jalil
2
action count
action union
action filter_type
action find_reverse
entity Malaysia
relation owned by
type stadium
action filter_type
action find_reverse
entity Malaysia
relation owned by
type architectural structure
[{'concept': 'stadium'}, 'owned by', 'Malaysia'] [{'concept': 'architectural structure'}, 'owned by', 'Malaysia']
SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { { ?s property:owned_by resource:Malaysia . ?s rdf:type ontology:stadium } UNION { ?s property:owned_by resource:Malaysia . ?s rdf:type ontology:architectural_structure } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q986
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with greater number of administrative territories than Eritrea ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q986
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?g ) WHERE { ?z property:P530 ?y . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Q986 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?k ) }
Eritrea
action greater
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_type
action find
entity Eritrea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?g ) WHERE { ?z property:diplomatic_relation ?y . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Eritrea property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q986
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with greater number of administrative territories than Eritrea
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?g ) WHERE { ?z property:P530 ?y . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Q986 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?k ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic relations with greater number of administrative territories than Eritrea
Italy Brazil United States of America
action greater
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_type
action find
entity Eritrea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?y ) AS ?g ) WHERE { ?z property:diplomatic_relation ?y . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) WHERE { resource:Eritrea property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q962
P530
Q15617994 Q15617994
USER
And how about Benin?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q962
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Q962 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?n > ?q ) . { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?n ) WHERE { ?l property:P530 ?t . ?l rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?l } }
Benin
action greater
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_type
action find
entity Benin
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Benin property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n > ?q ) . { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?n ) WHERE { ?l property:diplomatic_relation ?t . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q419 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q733 Q230 Q27 Q28 Q843 Q184 Q228 Q227 Q225 Q222 Q96 Q347 Q17 Q902 Q298 Q114 Q212 Q213 Q218 Q916 Q79 Q77 Q858 Q948 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q962
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Q962 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?n > ?q ) . { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?n ) WHERE { ?l property:P530 ?t . ?l rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?l } }
Israel Yemen Peru India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Paraguay Georgia Ireland Hungary Pakistan Belarus Andorra Azerbaijan Bosnia and Herzegovina Albania Mexico Liechtenstein Japan Bangladesh Chile Kenya Ukraine Czech Republic Romania Angola Egypt Uruguay Syria Tunisia Libya Cape Verde Spain Zambia
Italy Brazil United States of America
action greater
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_type
action find
entity Benin
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { resource:Benin property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n > ?q ) . { SELECT DISTINCT ?l ( COUNT ( ?t ) AS ?n ) WHERE { ?l property:diplomatic_relation ?t . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q781
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relations with lesser number of administrative territories than Antigua and Barbuda ?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Q781 property:P530 ?i . ?i rdf:type ontology:Q1048835 } } . FILTER ( ?n < ?v ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?n ) WHERE { ?w property:P530 ?b . ?w rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?w } }
Antigua and Barbuda
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity } } . FILTER ( ?n < ?v ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?n ) WHERE { ?w property:diplomatic_relation ?b . ?w rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q685 Q691
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Q781 property:P530 ?i . ?i rdf:type ontology:Q1048835 } } . FILTER ( ?n < ?v ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?n ) WHERE { ?w property:P530 ?b . ?w rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?w } }
Solomon Islands Papua New Guinea
2
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?i . ?i rdf:type ontology:political_territorial_entity } } . FILTER ( ?n < ?v ) . { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?n ) WHERE { ?w property:diplomatic_relation ?b . ?w rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q183
P530
Q1048835 Q15617994
USER
And what about Germany?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?t ) WHERE { ?s property:P530 ?c . ?s rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Q183 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?t < ?k ) }
Germany
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
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 ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?t ) 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 } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Germany property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t < ?k ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
12
Q1000 Q40 Q781 Q778 Q408 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?t ) WHERE { ?s property:P530 ?c . ?s rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Q183 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?t < ?k ) }
Gabon Austria Antigua and Barbuda The Bahamas Australia Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
12
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Germany
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 ( COUNT ( ?s ) AS ?i ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?t ) 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 } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Germany property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t < ?k ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P138
Q16521
USER
Which taxons are the etymology of Brazil ?
(Q155,P138,c(Q16521))
action filter_type
action find
entity Q155
relation P138
type Q16521
['Q155', 'P138', {'concept': 'Q16521'}]
SELECT DISTINCT ?x WHERE { resource:Q155 property:P138 ?x . ?x rdf:type ontology:Q16521 }
Brazil
action filter_type
action find
entity Brazil
relation named after
type taxon
['Brazil', 'named after', {'concept': 'taxon'}]
SELECT DISTINCT ?x WHERE { resource:Brazil property:named_after ?x . ?x rdf:type ontology:taxon }
[]
taxon
Q216469 Q14080
SYSTEM
Caesalpinia echinata, Arecaceae
Q216469 Q14080
(Q155,P138,c(Q16521))
action filter_type
action find
entity Q155
relation P138
type Q16521
[ANSWERS] are the etymology of Brazil
['Q155', 'P138', {'concept': 'Q16521'}]
SELECT DISTINCT ?x WHERE { resource:Q155 property:P138 ?x . ?x rdf:type ontology:Q16521 }
Caesalpinia echinata Arecaceae
Caesalpinia echinata and Arecaceae are the etymology of Brazil
Caesalpinia echinata Arecaceae
action filter_type
action find
entity Brazil
relation named after
type taxon
['Brazil', 'named after', {'concept': 'taxon'}]
SELECT DISTINCT ?x WHERE { resource:Brazil property:named_after ?x . ?x rdf:type ontology:taxon }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q216469 Q14080
P138
Q15617994
USER
Which administrative territories have Caesalpinia echinata and Arecaceae as their namesake ?
(c(Q15617994),P138,Q216469) (c(Q15617994),P138,Q14080)
action union
action filter_type
action find_reverse
entity Q216469
relation P138
type Q15617994
action filter_type
action find_reverse
entity Q14080
relation P138
type Q15617994
[{'concept': 'Q15617994'}, 'P138', 'Q216469'] [{'concept': 'Q15617994'}, 'P138', 'Q14080']
SELECT DISTINCT ?q WHERE { { ?q property:P138 resource:Q14080 . ?q rdf:type ontology:Q15617994 } UNION { ?q property:P138 resource:Q216469 . ?q rdf:type ontology:Q15617994 } }
Caesalpinia echinata Arecaceae
action union
action filter_type
action find_reverse
entity Caesalpinia echinata
relation named after
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Arecaceae
relation named after
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'named after', 'Caesalpinia echinata'] [{'concept': 'designation for an administrative territorial entity'}, 'named after', 'Arecaceae']
SELECT DISTINCT ?q WHERE { { ?q property:named_after resource:Arecaceae . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q property:named_after resource:Caesalpinia_echinata . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(c(Q15617994),P138,Q216469) (c(Q15617994),P138,Q14080)
action union
action filter_type
action find_reverse
entity Q216469
relation P138
type Q15617994
action filter_type
action find_reverse
entity Q14080
relation P138
type Q15617994
[ANSWER] have Caesalpinia echinata and Arecaceae as their namesake
[{'concept': 'Q15617994'}, 'P138', 'Q216469'] [{'concept': 'Q15617994'}, 'P138', 'Q14080']
SELECT DISTINCT ?q WHERE { { ?q property:P138 resource:Q14080 . ?q rdf:type ontology:Q15617994 } UNION { ?q property:P138 resource:Q216469 . ?q rdf:type ontology:Q15617994 } }
Brazil
Brazil have Caesalpinia echinata and Arecaceae as their namesake
Brazil
action union
action filter_type
action find_reverse
entity Caesalpinia echinata
relation named after
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Arecaceae
relation named after
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'named after', 'Caesalpinia echinata'] [{'concept': 'designation for an administrative territorial entity'}, 'named after', 'Arecaceae']
SELECT DISTINCT ?q WHERE { { ?q property:named_after resource:Arecaceae . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q property:named_after resource:Caesalpinia_echinata . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q236
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with more number of administrative territories than Montenegro ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q236
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?y ) WHERE { ?p property:P530 ?s . ?p rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q236 property:P530 ?f } } . FILTER ( ?y > ?d ) }
Montenegro
action count
action greater
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_type
action find
entity Montenegro
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?y ) WHERE { ?p property:diplomatic_relation ?s . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Montenegro property:diplomatic_relation ?f } } . FILTER ( ?y > ?d ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
63
Q801 Q805 Q668 Q414 Q142 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q1049 Q843 Q228 Q227 Q224 Q222 Q347 Q17 Q974 Q1033 Q298 Q115 Q114 Q212 Q213 Q211 Q215 Q916 Q79 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q236
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?y ) WHERE { ?p property:P530 ?s . ?p rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ontology:Q15617994 . resource:Q236 property:P530 ?f } } . FILTER ( ?y > ?d ) }
Israel Yemen India Argentina France United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Sudan Pakistan Andorra Azerbaijan Croatia Albania Liechtenstein Japan Democratic Republic of the Congo Nigeria Chile Ethiopia Kenya Ukraine Czech Republic Latvia Slovenia Angola Egypt Jordan Libya Cape Verde Spain Zambia
63
action count
action greater
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_type
action find
entity Montenegro
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?s ) AS ?y ) WHERE { ?p property:diplomatic_relation ?s . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Montenegro property:diplomatic_relation ?f } } . FILTER ( ?y > ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q191
P530
Q15617994 Q15617994
USER
And also tell me about Estonia?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q191
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?v ) WHERE { ?k rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 . ?k property:P530 ?n } GROUP BY ?k } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Q191 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } }
Estonia
action count
action greater
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_type
action find
entity Estonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?v ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?n } GROUP BY ?k } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Estonia property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
63
Q801 Q805 Q668 Q414 Q142 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q1049 Q843 Q228 Q227 Q224 Q222 Q347 Q17 Q974 Q1033 Q298 Q115 Q114 Q212 Q213 Q211 Q215 Q916 Q79 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q191
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?v ) WHERE { ?k rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 . ?k property:P530 ?n } GROUP BY ?k } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Q191 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } }
Israel Yemen India Argentina France United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Sudan Pakistan Andorra Azerbaijan Croatia Albania Liechtenstein Japan Democratic Republic of the Congo Nigeria Chile Ethiopia Kenya Ukraine Czech Republic Latvia Slovenia Angola Egypt Jordan Libya Cape Verde Spain Zambia
63
action count
action greater
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_type
action find
entity Estonia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?u ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?v ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?n } GROUP BY ?k } . FILTER ( ?v > ?q ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { resource:Estonia property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26447620 Q223854
P27 P17
Q15617994
USER
Which administrative territories are Jackson Rathbone an inhabitant of or are York Lodge located in ?
OR((Q223854,P27,c(Q15617994)), (Q26447620,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q223854
relation P27
action find
entity Q26447620
relation P17
type Q15617994
{'OR': [['Q223854', 'P27', {'concept': 'Q15617994'}], ['Q26447620', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . { { resource:Q223854 property:P27 ?b } UNION { resource:Q26447620 property:P17 ?b } } }
York Lodge Jackson Rathbone
action filter_type
action union
action find
entity Jackson Rathbone
relation country of citizenship
action find
entity York Lodge
relation country
type designation for an administrative territorial entity
{'OR': [['Jackson Rathbone', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['York Lodge', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Jackson_Rathbone property:country_of_citizenship ?b } UNION { resource:York_Lodge property:country ?b } } }
[]
designation for an administrative territorial entity
Q30 Q145
SYSTEM
United States of America, United Kingdom
Q30 Q145
OR((Q223854,P27,c(Q15617994)), (Q26447620,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q223854
relation P27
action find
entity Q26447620
relation P17
type Q15617994
[ANSWERS] are Jackson Rathbone an inhabitant of or are York Lodge located in
{'OR': [['Q223854', 'P27', {'concept': 'Q15617994'}], ['Q26447620', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . { { resource:Q223854 property:P27 ?b } UNION { resource:Q26447620 property:P17 ?b } } }
United States of America United Kingdom
United States of America and United Kingdom are Jackson Rathbone an inhabitant of or are York Lodge located in
United States of America United Kingdom
action filter_type
action union
action find
entity Jackson Rathbone
relation country of citizenship
action find
entity York Lodge
relation country
type designation for an administrative territorial entity
{'OR': [['Jackson Rathbone', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['York Lodge', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Jackson_Rathbone property:country_of_citizenship ?b } UNION { resource:York_Lodge property:country ?b } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1001
Q15617994 Q17335294 Q192350
USER
Which administrative territories come under the supervision of max number of coats of arms or ministries ?
(c(Q17335294)|c(Q192350),P1001,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
[[{'concept': 'Q17335294'}, {'concept': 'Q192350'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?o WHERE { { ?x property:P1001 ?o . ?x rdf:type ontology:Q17335294 . ?o rdf:type ontology:Q15617994 } UNION { ?x rdf:type ontology:Q192350 . ?o rdf:type ontology:Q15617994 . ?x property:P1001 ?o } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?s WHERE { { ?a property:P1001 ?s . ?s rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q17335294 } UNION { ?a property:P1001 ?s . ?s rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q192350 } } GROUP BY ?s } . FILTER ( ?g = ?t ) }
action argmax
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
[[{'concept': 'flag or coat of arms'}, {'concept': 'ministry'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?o WHERE { { ?x property:applies_to_jurisdiction ?o . ?x rdf:type ontology:flag_or_coat_of_arms . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x rdf:type ontology:ministry . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:applies_to_jurisdiction ?o } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?s WHERE { { ?a property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:flag_or_coat_of_arms } UNION { ?a property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:ministry } } GROUP BY ?s } . FILTER ( ?g = ?t ) }
[]
designation for an administrative territorial entity flag or coat of arms ministry
Q30
SYSTEM
United States of America
Q30
(c(Q17335294)|c(Q192350),P1001,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
[ANSWER] come under the supervision of max number of coats of arms or ministries
[[{'concept': 'Q17335294'}, {'concept': 'Q192350'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?o WHERE { { ?x property:P1001 ?o . ?x rdf:type ontology:Q17335294 . ?o rdf:type ontology:Q15617994 } UNION { ?x rdf:type ontology:Q192350 . ?o rdf:type ontology:Q15617994 . ?x property:P1001 ?o } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?s WHERE { { ?a property:P1001 ?s . ?s rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q17335294 } UNION { ?a property:P1001 ?s . ?s rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q192350 } } GROUP BY ?s } . FILTER ( ?g = ?t ) }
United States of America
United States of America come under the supervision of max number of coats of arms or ministries
United States of America
action argmax
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
[[{'concept': 'flag or coat of arms'}, {'concept': 'ministry'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MAX ( ?w ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) ?o WHERE { { ?x property:applies_to_jurisdiction ?o . ?x rdf:type ontology:flag_or_coat_of_arms . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x rdf:type ontology:ministry . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:applies_to_jurisdiction ?o } } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) ?s WHERE { { ?a property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:flag_or_coat_of_arms } UNION { ?a property:applies_to_jurisdiction ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:ministry } } GROUP BY ?s } . FILTER ( ?g = ?t ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q5178008
P47
Q15617994
USER
Does Coupland Independent School District have a shared border with that one ?
(Q30,P47,Q5178008)
action is_in
entity Q5178008
action find
entity Q30
relation P47
['Q30', 'P47', 'Q5178008']
ASK WHERE { resource:Q30 property:P47 resource:Q5178008 }
United States of America Coupland Independent School District
action is_in
entity Coupland Independent School District
action find
entity United States of America
relation shares border with
['United States of America', 'shares border with', 'Coupland Independent School District']
ASK WHERE { resource:United_States_of_America property:shares_border_with resource:Coupland_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q30,P47,Q5178008)
action is_in
entity Q5178008
action find
entity Q30
relation P47
[ANSWER]
['Q30', 'P47', 'Q5178008']
ASK WHERE { resource:Q30 property:P47 resource:Q5178008 }
No
action is_in
entity Coupland Independent School District
action find
entity United States of America
relation shares border with
['United States of America', 'shares border with', 'Coupland Independent School District']
ASK WHERE { resource:United_States_of_America property:shares_border_with resource:Coupland_Independent_School_District }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q22681937 Q334
P530 P27
Q1048835
USER
Which political territories have diplomatic relationships with Singapore or are Joshua Stritzinger a civilian of ?
OR((Q334,P530,c(Q1048835)), (Q22681937,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q334
relation P530
action find
entity Q22681937
relation P27
type Q1048835
{'OR': [['Q334', 'P530', {'concept': 'Q1048835'}], ['Q22681937', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q334 property:P530 ?x } UNION { resource:Q22681937 property:P27 ?x } } . ?x rdf:type ontology:Q1048835 }
Joshua Stritzinger Singapore
action filter_type
action union
action find
entity Singapore
relation diplomatic relation
action find
entity Joshua Stritzinger
relation country of citizenship
type political territorial entity
{'OR': [['Singapore', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Joshua Stritzinger', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Singapore property:diplomatic_relation ?x } UNION { resource:Joshua_Stritzinger property:country_of_citizenship ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q16 Q183
SYSTEM
Australia, Canada, Germany
Q408 Q16 Q183
OR((Q334,P530,c(Q1048835)), (Q22681937,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q334
relation P530
action find
entity Q22681937
relation P27
type Q1048835
[ANSWERS] have diplomatic relationships with Singapore or are Joshua Stritzinger a civilian of
{'OR': [['Q334', 'P530', {'concept': 'Q1048835'}], ['Q22681937', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q334 property:P530 ?x } UNION { resource:Q22681937 property:P27 ?x } } . ?x rdf:type ontology:Q1048835 }
Australia Canada Germany
Australia, Canada and Germany have diplomatic relationships with Singapore or are Joshua Stritzinger a civilian of
Australia Canada Germany
action filter_type
action union
action find
entity Singapore
relation diplomatic relation
action find
entity Joshua Stritzinger
relation country of citizenship
type political territorial entity
{'OR': [['Singapore', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Joshua Stritzinger', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Singapore property:diplomatic_relation ?x } UNION { resource:Joshua_Stritzinger property:country_of_citizenship ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]