Simple Question (Direct)
Simple Question
Q3635246
P54
Q1194951
USER
What is Barry Pickering a member of ?
(Q3635246,P54,c(Q1194951))
action filter_type
action find
entity Q3635246
relation P54
type Q1194951
['Q3635246', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?w WHERE { resource:Q3635246 property:P54 ?w . ?w rdf:type ontology:Q1194951 }
Barry Pickering
action filter_type
action find
entity Barry Pickering
relation member of sports team
type national sports team
['Barry Pickering', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?w WHERE { resource:Barry_Pickering property:member_of_sports_team ?w . ?w rdf:type ontology:national_sports_team }
[]
national sports team
Q175315
SYSTEM
New Zealand national football team
Q175315
(Q3635246,P54,c(Q1194951))
action filter_type
action find
entity Q3635246
relation P54
type Q1194951
Barry Pickering a member of is the [ANSWER]
['Q3635246', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?w WHERE { resource:Q3635246 property:P54 ?w . ?w rdf:type ontology:Q1194951 }
New Zealand national football team
Barry Pickering a member of is the New Zealand national football team
New Zealand national football team
action filter_type
action find
entity Barry Pickering
relation member of sports team
type national sports team
['Barry Pickering', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?w WHERE { resource:Barry_Pickering property:member_of_sports_team ?w . ?w rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3635246
P19
Q1048835
USER
Which political territory is the birthplace of Barry Pickering ?
(Q3635246,P19,c(Q1048835))
action filter_type
action find
entity Q3635246
relation P19
type Q1048835
['Q3635246', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q3635246 property:P19 ?m . ?m rdf:type ontology:Q1048835 }
Barry Pickering
action filter_type
action find
entity Barry Pickering
relation place of birth
type political territorial entity
['Barry Pickering', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Barry_Pickering property:place_of_birth ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664
SYSTEM
New Zealand
Q664
(Q3635246,P19,c(Q1048835))
action filter_type
action find
entity Q3635246
relation P19
type Q1048835
Zealand [ANSWER] is the birthplace of Barry Pickering
['Q3635246', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q3635246 property:P19 ?m . ?m rdf:type ontology:Q1048835 }
New Zealand
Zealand New Zealand is the birthplace of Barry Pickering
New Zealand
action filter_type
action find
entity Barry Pickering
relation place of birth
type political territorial entity
['Barry Pickering', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Barry_Pickering property:place_of_birth ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q142
P530
Q1048835 Q15617994
USER
Which administrative territories have ambassadorial relations with less number of political territories than France ?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:Q142 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?y < ?l ) . { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?y ) WHERE { ?u property:P530 ?j . ?u rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?u } }
France
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity France
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 ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:France property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y < ?l ) . { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?y ) WHERE { ?u property:diplomatic_relation ?j . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?u } }
[]
political territorial entity designation for an administrative territorial entity
Q55 Q148 Q184
SYSTEM
Netherlands, People's Republic of China, Belarus
Q702 Q804 Q800 Q805 Q419 Q668 Q414 Q55 Q262 Q148 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q32 Q31 Q924 Q928 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q184 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q117 Q754 Q750 Q213 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q142
relation P530
type Q15617994
[ANSWERS] have ambassadorial relations with less number of political territories than France
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:Q142 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?y < ?l ) . { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?y ) WHERE { ?u property:P530 ?j . ?u rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q1048835 } GROUP BY ?u } }
Federated States of Micronesia Panama Costa Rica Yemen Peru India Argentina Netherlands Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Luxembourg Belgium Tanzania Philippines Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Belarus Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ghana Trinidad and Tobago Bolivia Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands, People's Republic of China and Belarus have ambassadorial relations with less number of political territories than France
Netherlands People's Republic of China Belarus
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity France
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 ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { resource:France property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y < ?l ) . { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?y ) WHERE { ?u property:diplomatic_relation ?j . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?u } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q783
P530
Q1048835 Q15617994
USER
And also tell me about Honduras?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q783
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?a ) WHERE { ?k property:P530 ?q . ?k rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Q783 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?a < ?z ) }
Honduras
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Honduras
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?a ) WHERE { ?k property:diplomatic_relation ?q . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Honduras property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?a < ?z ) }
[]
political territorial entity designation for an administrative territorial entity
Q32 Q1011 Q805
SYSTEM
Luxembourg, Cape Verde, Yemen
Q702 Q805 Q262 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q783
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?a ) WHERE { ?k property:P530 ?q . ?k rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Q783 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?a < ?z ) }
Federated States of Micronesia Yemen Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Oman Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Luxembourg Cape Verde Yemen
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Honduras
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?q ) AS ?a ) WHERE { ?k property:diplomatic_relation ?q . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?z ) WHERE { resource:Honduras property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?a < ?z ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Are Georgia known to have diplomatic connections with those ones ?
(Q230,P530,Q32) (Q230,P530,Q1011) (Q230,P530,Q805)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q32'] ['Q230', 'P530', 'Q1011'] ['Q230', 'P530', 'Q805']
ASK WHERE { VALUES ( ?t ) { ( resource:Q702 ) ( resource:Q805 ) ( resource:Q262 ) } . resource:Q230 property:P530 ?t }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Luxembourg'] ['Georgia', 'diplomatic relation', 'Cape Verde'] ['Georgia', 'diplomatic relation', 'Yemen']
ASK WHERE { VALUES ( ?t ) { ( resource:Federated_States_of_Micronesia ) ( resource:Yemen ) ( resource:Algeria ) } . resource:Georgia property:diplomatic_relation ?t }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q32) (Q230,P530,Q1011) (Q230,P530,Q805)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q32'] ['Q230', 'P530', 'Q1011'] ['Q230', 'P530', 'Q805']
ASK WHERE { VALUES ( ?t ) { ( resource:Q702 ) ( resource:Q805 ) ( resource:Q262 ) } . resource:Q230 property:P530 ?t }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Luxembourg'] ['Georgia', 'diplomatic relation', 'Cape Verde'] ['Georgia', 'diplomatic relation', 'Yemen']
ASK WHERE { VALUES ( ?t ) { ( resource:Federated_States_of_Micronesia ) ( resource:Yemen ) ( resource:Algeria ) } . resource:Georgia property:diplomatic_relation ?t }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1923
Q1194951 Q13406554 Q15275719
USER
How many national sports teams took part in atmost 16 sport competitions and recurring events ?
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
value 16
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q15275719 ) ( ontology:Q13406554 ) } } GROUP BY ?j } . FILTER ( ?m <= 16 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
value 16
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:recurring_event ) ( ontology:sport_competition ) } } GROUP BY ?j } . FILTER ( ?m <= 16 ) }
[]
national sports team sport competition recurring event
SYSTEM
88
Q170327 Q130582 Q212166 Q207441 Q189322 Q34044 Q174512 Q21130178 Q193386 Q172014 Q223748 Q180187 Q188228 Q190978 Q21130160 Q212564 Q236014 Q180845 Q21130162 Q21130165 Q21130166 Q21130168 Q235910 Q987584 Q267245 Q1131732 Q192828 Q270080 Q182740 Q160826 Q180857 Q543842 Q726080 Q27971 Q170403 Q170561 Q172025 Q172020 Q170566 Q268208 Q175315 Q214151 Q186262 Q194387 Q191406 Q172221 Q175145 Q134479 Q191595 Q47050 Q21130170 Q181903 Q189275 Q166196 Q175309 Q152424 Q207337 Q164089 Q181190 Q163534 Q188363 Q186243 Q131785 Q184387 Q168397 Q235399 Q483856 Q165141 Q189198 Q28089 Q163547 Q236006 Q721418 Q182072 Q184602 Q192149 Q164134 Q14132 Q2535606 Q21130157 Q21130156 Q483868 Q134916 Q181930 Q208635 Q189723 Q206828 Q134925
(c(Q13406554)|c(Q15275719),P1923,c(Q1194951))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q13406554
action find_reverse_tuple_counts
relation P1923
type Q1194951
type Q15275719
value 16
[ANSWER]
[[{'concept': 'Q13406554'}, {'concept': 'Q15275719'}], 'P1923', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q15275719 ) ( ontology:Q13406554 ) } } GROUP BY ?j } . FILTER ( ?m <= 16 ) }
South Africa national football team China PR national football team Peru national football team Senegal national football team Latvia national football team Scotland national football team Slovakia national football team Transylvania national quidditch team Bolivia national football team Ghana national football team Panama national football team Honduras national football team El Salvador national football team Northern Ireland national football team England national quidditch team Colombia national football team Cuba national football team Bulgaria national football team Wales national quidditch team Scotland national quidditch team Luxembourg national quidditch team Uganda national quidditch team United Arab Emirates national football team Ecuador national football team Portugal national football team Serbia and Montenegro national football team Angola national football team Congo DR national football team Serbia national football team Sweden national football team Wales national football team South Korea national football team Russia national football team Tunisia national football team Ukraine national football team Hungary national football team Chile national football team Paraguay national football team Japan national football team Australia national association football team New Zealand national football team Venezuela national football team Albania national football team Costa Rica national football team Israel national football team Slovenia national football team Ivory Coast national football team Croatia national football team Togo national football team Netherlands national football team Peru national quidditch team Algeria national football team Soviet Union national football team Poland national football team Cameroon national football team East Germany national football team Morocco national football team Mexico national football team Bosnia and Herzegovina national football team Austria national football team Yugoslavia national football team Iraq national football team Denmark national football team Norway national football team Romania national football team Jamaica national football team Turkey national football team Swiss national football team Iceland national football team Egypt national football team Republic of Ireland national football team Haiti national football team CIS national football team Czechoslovakia national football team Iran national football team Trinidad and Tobago national football team United States men's national soccer team North Korea national football team Dutch East Indies national football team Bulgaria national quidditch team Ireland national quidditch team Czech Republic national football team Uruguay national football team Nigeria national football team Canada national soccer team Saudi Arabia national football team Kuwait national football team Greece national football team
88
action count
action atmost
action union
action find_reverse_tuple_counts
relation participating teams
type national sports team
type sport competition
action find_reverse_tuple_counts
relation participating teams
type national sports team
type recurring event
value 16
[[{'concept': 'sport competition'}, {'concept': 'recurring event'}], 'participating teams', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?m ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:recurring_event ) ( ontology:sport_competition ) } } GROUP BY ?j } . FILTER ( ?m <= 16 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?b ) WHERE { ?q property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?b = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?b ) WHERE { ?q property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?b = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWERS] have diplomatic relationships with exactly 1 administrative territory
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?b ) WHERE { ?q property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?b = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon, Grenada and The Bahamas have diplomatic relationships with exactly 1 administrative territory
Gabon Grenada The Bahamas
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?k ) AS ?b ) WHERE { ?q property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?b = 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Do Georgia have diplomatic associations with those political territories ?
(Q230,P530,Q1000) (Q230,P530,Q769) (Q230,P530,Q778)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q1000'] ['Q230', 'P530', 'Q769'] ['Q230', 'P530', 'Q778']
ASK WHERE { VALUES ( ?n ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } . resource:Q230 property:P530 ?n }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Gabon'] ['Georgia', 'diplomatic relation', 'Grenada'] ['Georgia', 'diplomatic relation', 'The Bahamas']
ASK WHERE { VALUES ( ?n ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } . resource:Georgia property:diplomatic_relation ?n }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q1000) (Q230,P530,Q769) (Q230,P530,Q778)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q1000'] ['Q230', 'P530', 'Q769'] ['Q230', 'P530', 'Q778']
ASK WHERE { VALUES ( ?n ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } . resource:Q230 property:P530 ?n }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Gabon'] ['Georgia', 'diplomatic relation', 'Grenada'] ['Georgia', 'diplomatic relation', 'The Bahamas']
ASK WHERE { VALUES ( ?n ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } . resource:Georgia property:diplomatic_relation ?n }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q769 Q26772457
P530
Q1048835
USER
Does Apas have diplomatic relationships with Grenada ?
(Q769,P530,Q26772457)
action is_in
entity Q26772457
action find
entity Q769
relation P530
['Q769', 'P530', 'Q26772457']
ASK WHERE { resource:Q769 property:P530 resource:Q26772457 }
Grenada Apas
action is_in
entity Apas
action find
entity Grenada
relation diplomatic relation
['Grenada', 'diplomatic relation', 'Apas']
ASK WHERE { resource:Grenada property:diplomatic_relation resource:Apas }
[]
political territorial entity
SYSTEM
NO
(Q769,P530,Q26772457)
action is_in
entity Q26772457
action find
entity Q769
relation P530
[ANSWER]
['Q769', 'P530', 'Q26772457']
ASK WHERE { resource:Q769 property:P530 resource:Q26772457 }
No
action is_in
entity Apas
action find
entity Grenada
relation diplomatic relation
['Grenada', 'diplomatic relation', 'Apas']
ASK WHERE { resource:Grenada property:diplomatic_relation resource:Apas }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q13562861 Q230
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Georgia and are Maddie Thompson an inhabitant of ?
AND((Q230,P530,c(Q15617994)), (Q13562861,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q230
relation P530
action find
entity Q13562861
relation P27
type Q15617994
{'AND': [['Q230', 'P530', {'concept': 'Q15617994'}], ['Q13562861', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q230 property:P530 ?j . resource:Q13562861 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Maddie Thompson Georgia
action filter_type
action intersection
action find
entity Georgia
relation diplomatic relation
action find
entity Maddie Thompson
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Maddie Thompson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Georgia property:diplomatic_relation ?j . resource:Maddie_Thompson property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q230,P530,c(Q15617994)), (Q13562861,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q230
relation P530
action find
entity Q13562861
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Georgia and are Maddie Thompson an inhabitant of
{'AND': [['Q230', 'P530', {'concept': 'Q15617994'}], ['Q13562861', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q230 property:P530 ?j . resource:Q13562861 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
United States of America have diplomatic relationships with Georgia and are Maddie Thompson an inhabitant of
United States of America
action filter_type
action intersection
action find
entity Georgia
relation diplomatic relation
action find
entity Maddie Thompson
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Maddie Thompson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Georgia property:diplomatic_relation ?j . resource:Maddie_Thompson property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q691
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with approximately the same number of administrative territories as Papua New Guinea ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?y ) WHERE { ?i property:P530 ?z . ?i rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Q691 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?y = ?e ) }
Papua New Guinea
action approx
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 Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?y ) WHERE { ?i property:diplomatic_relation ?z . ?i rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?y = ?e ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWERS] hold diplomatic relationship with approximately the same number of administrative territories as Papua New Guinea
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?y ) WHERE { ?i property:P530 ?z . ?i rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Q691 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?y = ?e ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria hold diplomatic relationship with approximately the same number of administrative territories as Papua New Guinea
Denmark Canada Austria
action approx
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 Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?z ) AS ?y ) WHERE { ?i property:diplomatic_relation ?z . ?i rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?y = ?e ) }
[]