Simple Question (Direct)
Simple Question
Q2846352
P27
Q15617994
USER
Which administrative territory is the native country of Andrea Koppel ?
(Q2846352,P27,c(Q15617994))
action filter_type
action find
entity Q2846352
relation P27
type Q15617994
['Q2846352', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q2846352 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Andrea Koppel
action filter_type
action find
entity Andrea Koppel
relation country of citizenship
type designation for an administrative territorial entity
['Andrea Koppel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Andrea_Koppel property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q2846352,P27,c(Q15617994))
action filter_type
action find
entity Q2846352
relation P27
type Q15617994
The [ANSWER] is the native country of Andrea Koppel
['Q2846352', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q2846352 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
United States of America
The United States of America is the native country of Andrea Koppel
United States of America
action filter_type
action find
entity Andrea Koppel
relation country of citizenship
type designation for an administrative territorial entity
['Andrea Koppel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Andrea_Koppel property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P1313
Q895526
USER
Which authority organ is fulfilled by that administrative territory ?
(Q30,P1313,c(Q895526))
action filter_type
action find
entity Q30
relation P1313
type Q895526
['Q30', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?e WHERE { resource:Q30 property:P1313 ?e . ?e rdf:type ontology:Q895526 }
United States of America
action filter_type
action find
entity United States of America
relation office held by head of government
type authority organ
['United States of America', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?e WHERE { resource:United_States_of_America property:office_held_by_head_of_government ?e . ?e rdf:type ontology:authority_organ }
[]
authority organ
Q11696
SYSTEM
President of the United States of America
Q11696
(Q30,P1313,c(Q895526))
action filter_type
action find
entity Q30
relation P1313
type Q895526
The [ANSWER] is fulfilled by that administrative territory
['Q30', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?e WHERE { resource:Q30 property:P1313 ?e . ?e rdf:type ontology:Q895526 }
President of the United States of America
The President of the United States of America is fulfilled by that administrative territory
President of the United States of America
action filter_type
action find
entity United States of America
relation office held by head of government
type authority organ
['United States of America', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?e WHERE { resource:United_States_of_America property:office_held_by_head_of_government ?e . ?e rdf:type ontology:authority_organ }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3079910
Q895526
USER
And also tell me about Waterschap Hollandse Delta?
(Q3079910,P1313,c(Q895526))
action filter_type
action find
entity Q3079910
relation P1313
type Q895526
['Q3079910', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?h WHERE { resource:Q3079910 property:P1313 ?h . ?h rdf:type ontology:Q895526 }
Waterschap Hollandse Delta
action filter_type
action find
entity Waterschap Hollandse Delta
relation office held by head of government
type authority organ
['Waterschap Hollandse Delta', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?h WHERE { resource:Waterschap_Hollandse_Delta property:office_held_by_head_of_government ?h . ?h rdf:type ontology:authority_organ }
[]
authority organ
Q146839
SYSTEM
Dijkgraaf
Q146839
(Q3079910,P1313,c(Q895526))
action filter_type
action find
entity Q3079910
relation P1313
type Q895526
[ANSWER]
['Q3079910', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?h WHERE { resource:Q3079910 property:P1313 ?h . ?h rdf:type ontology:Q895526 }
Dijkgraaf
Dijkgraaf
action filter_type
action find
entity Waterschap Hollandse Delta
relation office held by head of government
type authority organ
['Waterschap Hollandse Delta', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?h WHERE { resource:Waterschap_Hollandse_Delta property:office_held_by_head_of_government ?h . ?h rdf:type ontology:authority_organ }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q614819
P137
Q895526 Q83620 Q811979
USER
Which authority organs operate greater number of thoroughfares or architectural structures than De Lijn ?
(c(Q83620)|c(Q811979),P137,c(Q895526))
action greater
action union
action find_reverse_tuple_counts
relation P137
type Q895526
type Q83620
action find_reverse_tuple_counts
relation P137
type Q895526
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q614819
relation P137
type Q83620
type Q811979
[[{'concept': 'Q83620'}, {'concept': 'Q811979'}], 'P137', {'concept': 'Q895526'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { VALUES ( ?h ) { ( ontology:Q811979 ) ( ontology:Q83620 ) } . ?v rdf:type ?h } . ?v property:P137 resource:Q614819 } } . FILTER ( ?y > ?s ) . { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?y ) WHERE { { ?m property:P137 ?x . ?x rdf:type ontology:Q895526 . ?m rdf:type ontology:Q811979 } UNION { ?x rdf:type ontology:Q895526 . ?m rdf:type ontology:Q83620 . ?m property:P137 ?x } } GROUP BY ?x } }
De Lijn
action greater
action union
action find_reverse_tuple_counts
relation operator
type authority organ
type thoroughfare
action find_reverse_tuple_counts
relation operator
type authority organ
type architectural structure
action count
action filter_multi_types
action find_reverse
entity De Lijn
relation operator
type thoroughfare
type architectural structure
[[{'concept': 'thoroughfare'}, {'concept': 'architectural structure'}], 'operator', {'concept': 'authority organ'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { VALUES ( ?h ) { ( ontology:architectural_structure ) ( ontology:thoroughfare ) } . ?v rdf:type ?h } . ?v property:operator resource:De_Lijn } } . FILTER ( ?y > ?s ) . { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?y ) WHERE { { ?m property:operator ?x . ?x rdf:type ontology:authority_organ . ?m rdf:type ontology:architectural_structure } UNION { ?x rdf:type ontology:authority_organ . ?m rdf:type ontology:thoroughfare . ?m property:operator ?x } } GROUP BY ?x } }
[]
authority organ thoroughfare architectural structure
Q807013 Q1677108 Q3360446
SYSTEM
Swedish National Rail Administration, Swedish Transport Administration, Finnish Transport Agency
Q1677108 Q3701698 Q3360446 Q7523123 Q3087818 Q807013
(c(Q83620)|c(Q811979),P137,c(Q895526))
action greater
action union
action find_reverse_tuple_counts
relation P137
type Q895526
type Q83620
action find_reverse_tuple_counts
relation P137
type Q895526
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q614819
relation P137
type Q83620
type Q811979
[ANSWERS] operate greater number of thoroughfares or architectural structures than De Lijn
[[{'concept': 'Q83620'}, {'concept': 'Q811979'}], 'P137', {'concept': 'Q895526'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { VALUES ( ?h ) { ( ontology:Q811979 ) ( ontology:Q83620 ) } . ?v rdf:type ?h } . ?v property:P137 resource:Q614819 } } . FILTER ( ?y > ?s ) . { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?y ) WHERE { { ?m property:P137 ?x . ?x rdf:type ontology:Q895526 . ?m rdf:type ontology:Q811979 } UNION { ?x rdf:type ontology:Q895526 . ?m rdf:type ontology:Q83620 . ?m property:P137 ?x } } GROUP BY ?x } }
Swedish Transport Administration National Sports Council Finnish Transport Agency Singapore Sports Council Finnish Rail Administration Swedish National Rail Administration
Swedish National Rail Administration, Swedish Transport Administration and Finnish Transport Agency operate greater number of thoroughfares or architectural structures than De Lijn
Swedish National Rail Administration Swedish Transport Administration Finnish Transport Agency
action greater
action union
action find_reverse_tuple_counts
relation operator
type authority organ
type thoroughfare
action find_reverse_tuple_counts
relation operator
type authority organ
type architectural structure
action count
action filter_multi_types
action find_reverse
entity De Lijn
relation operator
type thoroughfare
type architectural structure
[[{'concept': 'thoroughfare'}, {'concept': 'architectural structure'}], 'operator', {'concept': 'authority organ'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { VALUES ( ?h ) { ( ontology:architectural_structure ) ( ontology:thoroughfare ) } . ?v rdf:type ?h } . ?v property:operator resource:De_Lijn } } . FILTER ( ?y > ?s ) . { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?y ) WHERE { { ?m property:operator ?x . ?x rdf:type ontology:authority_organ . ?m rdf:type ontology:architectural_structure } UNION { ?x rdf:type ontology:authority_organ . ?m rdf:type ontology:thoroughfare . ?m property:operator ?x } } GROUP BY ?x } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1134658
P137
Q895526 Q83620 Q811979
USER
And how about National Forest Corporation?
(c(Q83620)|c(Q811979),P137,c(Q895526))
action greater
action union
action find_reverse_tuple_counts
relation P137
type Q895526
type Q83620
action find_reverse_tuple_counts
relation P137
type Q895526
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q1134658
relation P137
type Q83620
type Q811979
[[{'concept': 'Q83620'}, {'concept': 'Q811979'}], 'P137', {'concept': 'Q895526'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?v ) WHERE { VALUES ( ?y ) { ( ontology:Q83620 ) ( ontology:Q811979 ) } . ?p rdf:type ?y } GROUP BY ?e } . FILTER ( ?v > ?f ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:P137 resource:Q1134658 . { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:Q83620 ) ( ontology:Q811979 ) } } } } }
National Forest Corporation
action greater
action union
action find_reverse_tuple_counts
relation operator
type authority organ
type thoroughfare
action find_reverse_tuple_counts
relation operator
type authority organ
type architectural structure
action count
action filter_multi_types
action find_reverse
entity National Forest Corporation
relation operator
type thoroughfare
type architectural structure
[[{'concept': 'thoroughfare'}, {'concept': 'architectural structure'}], 'operator', {'concept': 'authority organ'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?v ) WHERE { VALUES ( ?y ) { ( ontology:thoroughfare ) ( ontology:architectural_structure ) } . ?p rdf:type ?y } GROUP BY ?e } . FILTER ( ?v > ?f ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:operator resource:National_Forest_Corporation . { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:thoroughfare ) ( ontology:architectural_structure ) } } } } }
[]
authority organ thoroughfare architectural structure
Q807013 Q1677108 Q3360446
SYSTEM
Swedish National Rail Administration, Swedish Transport Administration, Finnish Transport Agency
Q1677108 Q3701698 Q3360446 Q7523123 Q3087818 Q807013
(c(Q83620)|c(Q811979),P137,c(Q895526))
action greater
action union
action find_reverse_tuple_counts
relation P137
type Q895526
type Q83620
action find_reverse_tuple_counts
relation P137
type Q895526
type Q811979
action count
action filter_multi_types
action find_reverse
entity Q1134658
relation P137
type Q83620
type Q811979
[ANSWERS]
[[{'concept': 'Q83620'}, {'concept': 'Q811979'}], 'P137', {'concept': 'Q895526'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?v ) WHERE { VALUES ( ?y ) { ( ontology:Q83620 ) ( ontology:Q811979 ) } . ?p rdf:type ?y } GROUP BY ?e } . FILTER ( ?v > ?f ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:P137 resource:Q1134658 . { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:Q83620 ) ( ontology:Q811979 ) } } } } }
Swedish Transport Administration National Sports Council Finnish Transport Agency Singapore Sports Council Finnish Rail Administration Swedish National Rail Administration
Swedish National Rail Administration Swedish Transport Administration Finnish Transport Agency
action greater
action union
action find_reverse_tuple_counts
relation operator
type authority organ
type thoroughfare
action find_reverse_tuple_counts
relation operator
type authority organ
type architectural structure
action count
action filter_multi_types
action find_reverse
entity National Forest Corporation
relation operator
type thoroughfare
type architectural structure
[[{'concept': 'thoroughfare'}, {'concept': 'architectural structure'}], 'operator', {'concept': 'authority organ'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?p ) AS ?v ) WHERE { VALUES ( ?y ) { ( ontology:thoroughfare ) ( ontology:architectural_structure ) } . ?p rdf:type ?y } GROUP BY ?e } . FILTER ( ?v > ?f ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k property:operator resource:National_Forest_Corporation . { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:thoroughfare ) ( ontology:architectural_structure ) } } } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1999572 Q1677108
P137 P1064
Q83620
USER
Which thoroughfares can be described as facility operator of Swedish Transport Administration and have 1435 mm track gauge as the track gauge ?
AND((c(Q83620),P137,Q1677108), (c(Q83620),P1064,Q1999572))
action filter_type
action intersection
action find_reverse
entity Q1677108
relation P137
action find_reverse
entity Q1999572
relation P1064
type Q83620
{'AND': [[{'concept': 'Q83620'}, 'P137', 'Q1677108'], [{'concept': 'Q83620'}, 'P1064', 'Q1999572']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q83620 . ?b property:P137 resource:Q1677108 . ?b property:P1064 resource:Q1999572 }
1435 mm track gauge Swedish Transport Administration
action filter_type
action intersection
action find_reverse
entity Swedish Transport Administration
relation operator
action find_reverse
entity 1435 mm track gauge
relation track gauge
type thoroughfare
{'AND': [[{'concept': 'thoroughfare'}, 'operator', 'Swedish Transport Administration'], [{'concept': 'thoroughfare'}, 'track gauge', '1435 mm track gauge']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:thoroughfare . ?b property:operator resource:Swedish_Transport_Administration . ?b property:track_gauge resource:1435_mm_track_gauge }
[]
thoroughfare
Q15744689 Q1799633
SYSTEM
Tornio–Haparanda railway, Ådalen Line
Q15744689 Q1799633
AND((c(Q83620),P137,Q1677108), (c(Q83620),P1064,Q1999572))
action filter_type
action intersection
action find_reverse
entity Q1677108
relation P137
action find_reverse
entity Q1999572
relation P1064
type Q83620
[ANSWERS] can be described as facility operator of Swedish Transport Administration and have 1435 mm track gauge as the track gauge
{'AND': [[{'concept': 'Q83620'}, 'P137', 'Q1677108'], [{'concept': 'Q83620'}, 'P1064', 'Q1999572']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q83620 . ?b property:P137 resource:Q1677108 . ?b property:P1064 resource:Q1999572 }
Tornio–Haparanda railway Ådalen Line
Tornio–Haparanda railway and Ådalen Line can be described as facility operator of Swedish Transport Administration and have 1435 mm track gauge as the track gauge
Tornio–Haparanda railway Ådalen Line
action filter_type
action intersection
action find_reverse
entity Swedish Transport Administration
relation operator
action find_reverse
entity 1435 mm track gauge
relation track gauge
type thoroughfare
{'AND': [[{'concept': 'thoroughfare'}, 'operator', 'Swedish Transport Administration'], [{'concept': 'thoroughfare'}, 'track gauge', '1435 mm track gauge']]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:thoroughfare . ?b property:operator resource:Swedish_Transport_Administration . ?b property:track_gauge resource:1435_mm_track_gauge }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q4266607 Q30
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with United States of America and are not the countries of citizenship of Vyacheslav Lopatin ?
AND((Q30,P530,c(Q15617994)), NOT((Q4266607,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q30
relation P530
action find
entity Q4266607
relation P27
type Q15617994
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q4266607', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?o WHERE { resource:Q30 property:P530 ?o . MINUS { resource:Q4266607 property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Vyacheslav Lopatin United States of America
action filter_type
action difference
action find
entity United States of America
relation diplomatic relation
action find
entity Vyacheslav Lopatin
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Vyacheslav Lopatin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?o WHERE { resource:United_States_of_America property:diplomatic_relation ?o . MINUS { resource:Vyacheslav_Lopatin property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q801 Q953 Q403 Q1011 Q17 Q155 Q222 Q668 Q37 Q889
SYSTEM
Some of them are Israel, Zambia, Serbia, Cape Verde, Japan, Brazil, Albania, India, Lithuania, Afghanistan
Q805 Q38 Q222 Q801 Q155 Q148 Q1011 Q889 Q796 Q17 Q37 Q953 Q668 Q403 Q347 Q414
AND((Q30,P530,c(Q15617994)), NOT((Q4266607,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q30
relation P530
action find
entity Q4266607
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with United States of America and are not the countries of citizenship of Vyacheslav Lopatin
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q4266607', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?o WHERE { resource:Q30 property:P530 ?o . MINUS { resource:Q4266607 property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Yemen Italy Albania Israel Brazil People's Republic of China Cape Verde Afghanistan Iraq Japan Lithuania Zambia India Serbia Liechtenstein Argentina
Israel, Zambia, Serbia, Cape Verde, Japan, Brazil, Albania, India, Lithuania and Afghanistan have diplomatic relationships with United States of America and are not the countries of citizenship of Vyacheslav Lopatin
Israel Zambia Serbia Cape Verde Japan Brazil Albania India Lithuania Afghanistan
action filter_type
action difference
action find
entity United States of America
relation diplomatic relation
action find
entity Vyacheslav Lopatin
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Vyacheslav Lopatin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?o WHERE { resource:United_States_of_America property:diplomatic_relation ?o . MINUS { resource:Vyacheslav_Lopatin property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q685
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with approximately the same number of administrative territories as Solomon Islands ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 . ?b property:P530 ?p } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { ?h rdf:type ontology:Q1048835 . resource:Q685 property:P530 ?h } } . FILTER ( ?u = ?t ) }
Solomon Islands
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 Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation ?p } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { ?h rdf:type ontology:political_territorial_entity . resource:Solomon_Islands property:diplomatic_relation ?h } } . FILTER ( ?u = ?t ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q1048835
[ANSWERS] are known to have diplomatic connections with approximately the same number of administrative territories as Solomon Islands
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 . ?b property:P530 ?p } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { ?h rdf:type ontology:Q1048835 . resource:Q685 property:P530 ?h } } . FILTER ( ?u = ?t ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria are known to have diplomatic connections with approximately the same number of administrative territories as Solomon Islands
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 Solomon Islands
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity . ?b property:diplomatic_relation ?p } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) WHERE { ?h rdf:type ontology:political_territorial_entity . resource:Solomon_Islands property:diplomatic_relation ?h } } . FILTER ( ?u = ?t ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q781
P530
Q15617994 Q1048835
USER
And also tell me about Antigua and Barbuda?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?l ) WHERE { ?j property:P530 ?b . ?j rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { ?t rdf:type ontology:Q1048835 . resource:Q781 property:P530 ?t } } . FILTER ( ?l = ?p ) }
Antigua and Barbuda
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 Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?l ) WHERE { ?j property:diplomatic_relation ?b . ?j rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Antigua_and_Barbuda property:diplomatic_relation ?t } } . FILTER ( ?l = ?p ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?l ) WHERE { ?j property:P530 ?b . ?j rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { ?t rdf:type ontology:Q1048835 . resource:Q781 property:P530 ?t } } . FILTER ( ?l = ?p ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
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 Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?b ) AS ?l ) WHERE { ?j property:diplomatic_relation ?b . ?j rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { ?t rdf:type ontology:political_territorial_entity . resource:Antigua_and_Barbuda property:diplomatic_relation ?t } } . FILTER ( ?l = ?p ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with atleast 10 political territories ?
(c(Q1048835),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 10
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?s >= 10 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?s ) WHERE { ?x property:P530 ?a . ?x rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q1048835 } GROUP BY ?x } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 10
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?s >= 10 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?s ) WHERE { ?x property:diplomatic_relation ?a . ?x rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?x } }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 10
[ANSWER] have diplomatic relations with atleast 10 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?s >= 10 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?s ) WHERE { ?x property:P530 ?a . ?x rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q1048835 } GROUP BY ?x } }
Australia
Australia have diplomatic relations with atleast 10 political territories
Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 10
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?s >= 10 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?s ) WHERE { ?x property:diplomatic_relation ?a . ?x rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?x } }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q408 Q1248591 Q16
P530
Q1048835
USER
Does that political territory have diplomatic associations with El Molar and Canada ?
(Q408,P530,Q1248591) (Q408,P530,Q16)
action is_in
entity Q408
action intersection
action find_reverse
entity Q1248591
relation P530
action find_reverse
entity Q16
relation P530
['Q408', 'P530', 'Q1248591'] ['Q408', 'P530', 'Q16']
ASK WHERE { resource:Q408 property:P530 resource:Q1248591 . resource:Q408 property:P530 resource:Q16 }
Australia El Molar Canada
action is_in
entity Australia
action intersection
action find_reverse
entity El Molar
relation diplomatic relation
action find_reverse
entity Canada
relation diplomatic relation
['Australia', 'diplomatic relation', 'El Molar'] ['Australia', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Australia property:diplomatic_relation resource:El_Molar . resource:Australia property:diplomatic_relation resource:Canada }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q408,P530,Q1248591) (Q408,P530,Q16)
action is_in
entity Q408
action intersection
action find_reverse
entity Q1248591
relation P530
action find_reverse
entity Q16
relation P530
[ANSWER]
['Q408', 'P530', 'Q1248591'] ['Q408', 'P530', 'Q16']
ASK WHERE { resource:Q408 property:P530 resource:Q1248591 . resource:Q408 property:P530 resource:Q16 }
NO and YES respectively
action is_in
entity Australia
action intersection
action find_reverse
entity El Molar
relation diplomatic relation
action find_reverse
entity Canada
relation diplomatic relation
['Australia', 'diplomatic relation', 'El Molar'] ['Australia', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Australia property:diplomatic_relation resource:El_Molar . resource:Australia property:diplomatic_relation resource:Canada }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q15617994 Q914262 Q41176
USER
Which administrative territories are min number of administrative territory of Swedens or buildings present in ?
(c(Q914262)|c(Q41176),P17,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q914262
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q41176
[[{'concept': 'Q914262'}, {'concept': 'Q41176'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?f ) { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?i ) WHERE { { ?m property:P17 ?l . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q41176 } UNION { ?m property:P17 ?l . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q914262 } } GROUP BY ?l } } . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?z ) WHERE { { ?j rdf:type ontology:Q914262 . ?a rdf:type ontology:Q15617994 . ?j property:P17 ?a } UNION { ?j property:P17 ?a . ?a rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q41176 } } GROUP BY ?a } . FILTER ( ?z = ?f ) }
action argmin
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type administrative territorial entity of Sweden
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type building
[[{'concept': 'administrative territorial entity of Sweden'}, {'concept': 'building'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?f ) { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?i ) WHERE { { ?m property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:building } UNION { ?m property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:administrative_territorial_entity_of_Sweden } } GROUP BY ?l } } . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?z ) WHERE { { ?j rdf:type ontology:administrative_territorial_entity_of_Sweden . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:country ?a } UNION { ?j property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:building } } GROUP BY ?a } . FILTER ( ?z = ?f ) }
[]
designation for an administrative territorial entity administrative territorial entity of Sweden building
Q953 Q347 Q1011
SYSTEM
Zambia, Liechtenstein, Cape Verde
Q702 Q1256 Q709 Q339952 Q270508 Q684030 Q2172530 Q12536 Q783 Q784 Q640426 Q36678 Q736029 Q712 Q710 Q565812 Q187035 Q1462 Q657 Q792 Q517333 Q2001966 Q326029 Q958 Q986 Q153529 Q695316 Q4628 Q165040 Q244 Q315667 Q153136 Q1210 Q921 Q155019 Q983 Q29999 Q107426 Q1282 Q159626 Q236 Q1042 Q177323 Q313175 Q149621 Q1025 Q1020 Q34762 Q1458 Q228 Q3462133 Q221 Q815731 Q47261 Q347 Q977 Q704288 Q10957559 Q1032 Q1030 Q967 Q697 Q695 Q389004 Q1013 Q160307 Q164092 Q1483510 Q912 Q2662372 Q916 Q1005 Q829700 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q193152 Q760 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q696651 Q813 Q148499 Q1011 Q945 Q8575586 Q529605 Q1039 Q33788 Q929 Q11024667 Q863 Q1049 Q426025 Q953
(c(Q914262)|c(Q41176),P17,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q914262
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q41176
[ANSWERS] are min number of administrative territory of Swedens or buildings present in
[[{'concept': 'Q914262'}, {'concept': 'Q41176'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?f ) { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?i ) WHERE { { ?m property:P17 ?l . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q41176 } UNION { ?m property:P17 ?l . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q914262 } } GROUP BY ?l } } . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?z ) WHERE { { ?j rdf:type ontology:Q914262 . ?a rdf:type ontology:Q15617994 . ?j property:P17 ?a } UNION { ?j property:P17 ?a . ?a rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q41176 } } GROUP BY ?a } . FILTER ( ?z = ?f ) }
Federated States of Micronesia Liguria Marshall Islands Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Honduras Dominica Stahnsdorf West Bank Nassau-Siegen Fiji Kiribati Principality of Calenberg Principality of Albania Sardinia Chad El Salvador Principality of Polotsk Company rule in India Duchy of Brunswick South Sudan Eritrea Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Duchy of Parma Barbados Saxe-Weimar Habsburg Empire Lombardy Brunei Duchy of Lorraine Equatorial Guinea Kingdom of the Netherlands Anjou Lazio Württemberg Montenegro Seychelles developing country Saxe-Lauenburg district Mauritania Malawi Principality of Bayreuth Calabria Andorra Saxe-Coburg and Gotha Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Liechtenstein Djibouti Duchy of Holstein Moldavia Niger Namibia Burundi Nauru Palau Wallachia Lesotho Fatimid caliphate Duchy of Saxony Principality of Wales Mali Principality of Minsk Angola Gambia Saxe-Jena Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Great Moravia Saint Lucia Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Saxe-Eisenach Kyrgyzstan Margraviate of Brandenburg Cape Verde Togo Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Tajikistan Sudan Duchy of Savoy Zambia
Zambia, Liechtenstein and Cape Verde are min number of administrative territory of Swedens or buildings present in
Zambia Liechtenstein Cape Verde
action argmin
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type administrative territorial entity of Sweden
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type building
[[{'concept': 'administrative territorial entity of Sweden'}, {'concept': 'building'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?f ) { SELECT DISTINCT ?l ( COUNT ( ?m ) AS ?i ) WHERE { { ?m property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:building } UNION { ?m property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:administrative_territorial_entity_of_Sweden } } GROUP BY ?l } } . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?z ) WHERE { { ?j rdf:type ontology:administrative_territorial_entity_of_Sweden . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:country ?a } UNION { ?j property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:building } } GROUP BY ?a } . FILTER ( ?z = ?f ) }
[]