Simple Question (Direct)
Simple Question
Q725523
P69
Q3918
USER
Which university was Chris Newton educated at ?
(Q725523,P69,c(Q3918))
action filter_type
action find
entity Q725523
relation P69
type Q3918
['Q725523', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?t WHERE { resource:Q725523 property:P69 ?t . ?t rdf:type ontology:Q3918 }
Chris Newton
action filter_type
action find
entity Chris Newton
relation educated at
type university
['Chris Newton', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?t WHERE { resource:Chris_Newton property:educated_at ?t . ?t rdf:type ontology:university }
[]
university
Q230492
SYSTEM
University of Michigan
Q230492
(Q725523,P69,c(Q3918))
action filter_type
action find
entity Q725523
relation P69
type Q3918
Chris Newton was educated by [ANSWER]
['Q725523', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?t WHERE { resource:Q725523 property:P69 ?t . ?t rdf:type ontology:Q3918 }
University of Michigan
Chris Newton was educated by University of Michigan
University of Michigan
action filter_type
action find
entity Chris Newton
relation educated at
type university
['Chris Newton', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?t WHERE { resource:Chris_Newton property:educated_at ?t . ?t rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q725523
P641
Q349
USER
What did Chris Newton participate in ?
(Q725523,P641,c(Q349))
action filter_type
action find
entity Q725523
relation P641
type Q349
['Q725523', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q725523 property:P641 ?a . ?a rdf:type ontology:Q349 }
Chris Newton
action filter_type
action find
entity Chris Newton
relation sport
type sport
['Chris Newton', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Chris_Newton property:sport ?a . ?a rdf:type ontology:sport }
[]
sport
Q221635
SYSTEM
track cycling
Q221635
(Q725523,P641,c(Q349))
action filter_type
action find
entity Q725523
relation P641
type Q349
Chris Newton participated in [ANSWER]
['Q725523', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q725523 property:P641 ?a . ?a rdf:type ontology:Q349 }
track cycling
Chris Newton participated in track cycling
track cycling
action filter_type
action find
entity Chris Newton
relation sport
type sport
['Chris Newton', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Chris_Newton property:sport ?a . ?a rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q1990563 Q725523
P641
Q349
USER
And also Nikola Aistrup
AND((Q725523,P641,c(Q349)), (Q1990563,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q725523
relation P641
action find
entity Q1990563
relation P641
type Q349
{'AND': [['Q725523', 'P641', {'concept': 'Q349'}], ['Q1990563', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?b WHERE { resource:Q725523 property:P641 ?b . resource:Q1990563 property:P641 ?b . ?b rdf:type ontology:Q349 }
Nikola Aistrup Chris Newton
action filter_type
action intersection
action find
entity Chris Newton
relation sport
action find
entity Nikola Aistrup
relation sport
type sport
{'AND': [['Chris Newton', 'sport', {'concept': 'sport'}], ['Nikola Aistrup', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?b WHERE { resource:Chris_Newton property:sport ?b . resource:Nikola_Aistrup property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q221635
SYSTEM
track cycling
Q221635
AND((Q725523,P641,c(Q349)), (Q1990563,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q725523
relation P641
action find
entity Q1990563
relation P641
type Q349
[ANSWER]
{'AND': [['Q725523', 'P641', {'concept': 'Q349'}], ['Q1990563', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?b WHERE { resource:Q725523 property:P641 ?b . resource:Q1990563 property:P641 ?b . ?b rdf:type ontology:Q349 }
track cycling
track cycling
action filter_type
action intersection
action find
entity Chris Newton
relation sport
action find
entity Nikola Aistrup
relation sport
type sport
{'AND': [['Chris Newton', 'sport', {'concept': 'sport'}], ['Nikola Aistrup', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?b WHERE { resource:Chris_Newton property:sport ?b . resource:Nikola_Aistrup property:sport ?b . ?b rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q230492 Q19953275
P749
Q43229
USER
How many organizations are University of Michigan or Saddleback Leather Company a parent organization of ?
(c(Q43229),P749,Q230492) (c(Q43229),P749,Q19953275)
action count
action union
action filter_type
action find_reverse
entity Q230492
relation P749
type Q43229
action filter_type
action find_reverse
entity Q19953275
relation P749
type Q43229
[{'concept': 'Q43229'}, 'P749', 'Q230492'] [{'concept': 'Q43229'}, 'P749', 'Q19953275']
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { ?l property:P749 ?u . VALUES ( ?u ) { ( resource:Q230492 ) ( resource:Q19953275 ) } }
University of Michigan Saddleback Leather Company
action count
action union
action filter_type
action find_reverse
entity University of Michigan
relation parent organization
type organization
action filter_type
action find_reverse
entity Saddleback Leather Company
relation parent organization
type organization
[{'concept': 'organization'}, 'parent organization', 'University of Michigan'] [{'concept': 'organization'}, 'parent organization', 'Saddleback Leather Company']
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { ?l property:parent_organization ?u . VALUES ( ?u ) { ( resource:University_of_Michigan ) ( resource:Saddleback_Leather_Company ) } }
[]
organization
SYSTEM
2
Q21541717 Q21517638
(c(Q43229),P749,Q230492) (c(Q43229),P749,Q19953275)
action count
action union
action filter_type
action find_reverse
entity Q230492
relation P749
type Q43229
action filter_type
action find_reverse
entity Q19953275
relation P749
type Q43229
[ANSWER]
[{'concept': 'Q43229'}, 'P749', 'Q230492'] [{'concept': 'Q43229'}, 'P749', 'Q19953275']
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { ?l property:P749 ?u . VALUES ( ?u ) { ( resource:Q230492 ) ( resource:Q19953275 ) } }
Old Mexico Manufacturing Love 41
2
action count
action union
action filter_type
action find_reverse
entity University of Michigan
relation parent organization
type organization
action filter_type
action find_reverse
entity Saddleback Leather Company
relation parent organization
type organization
[{'concept': 'organization'}, 'parent organization', 'University of Michigan'] [{'concept': 'organization'}, 'parent organization', 'Saddleback Leather Company']
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { ?l property:parent_organization ?u . VALUES ( ?u ) { ( resource:University_of_Michigan ) ( resource:Saddleback_Leather_Company ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q230492
P17
Q15617994
USER
Which administrative territory is that university present in ?
action filter_type
action find
entity Q230492
relation P17
type Q15617994
SELECT DISTINCT ?b WHERE { resource:Q230492 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
University of Michigan
action filter_type
action find
entity University of Michigan
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?b WHERE { resource:University_of_Michigan property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
action filter_type
action find
entity Q230492
relation P17
type Q15617994
That university is the [ANSWER]
SELECT DISTINCT ?b WHERE { resource:Q230492 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
United States of America
That university is the United States of America
United States of America
action filter_type
action find
entity University of Michigan
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?b WHERE { resource:University_of_Michigan property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q6198042
P27
Q502895
USER
Is Jim Shanley a native of that administrative territory ?
(Q6198042,P27,Q30)
action is_in
entity Q30
action find
entity Q6198042
relation P27
['Q6198042', 'P27', 'Q30']
ASK WHERE { resource:Q6198042 property:P27 resource:Q30 }
United States of America Jim Shanley
action is_in
entity United States of America
action find
entity Jim Shanley
relation country of citizenship
['Jim Shanley', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Jim_Shanley property:country_of_citizenship resource:United_States_of_America }
[]
common name
SYSTEM
YES
(Q6198042,P27,Q30)
action is_in
entity Q30
action find
entity Q6198042
relation P27
[ANSWER]
['Q6198042', 'P27', 'Q30']
ASK WHERE { resource:Q6198042 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Jim Shanley
relation country of citizenship
['Jim Shanley', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Jim_Shanley property:country_of_citizenship resource:United_States_of_America }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q725523 Q26693562
P106
Q12737077
USER
Is mayor of Vera de Moncayo the profession of Chris Newton ?
(Q725523,P106,Q26693562)
action is_in
entity Q26693562
action find
entity Q725523
relation P106
['Q725523', 'P106', 'Q26693562']
ASK WHERE { resource:Q725523 property:P106 resource:Q26693562 }
Chris Newton mayor of Vera de Moncayo
action is_in
entity mayor of Vera de Moncayo
action find
entity Chris Newton
relation occupation
['Chris Newton', 'occupation', 'mayor of Vera de Moncayo']
ASK WHERE { resource:Chris_Newton property:occupation resource:mayor_of_Vera_de_Moncayo }
[]
occupation
SYSTEM
NO
(Q725523,P106,Q26693562)
action is_in
entity Q26693562
action find
entity Q725523
relation P106
[ANSWER]
['Q725523', 'P106', 'Q26693562']
ASK WHERE { resource:Q725523 property:P106 resource:Q26693562 }
No
action is_in
entity mayor of Vera de Moncayo
action find
entity Chris Newton
relation occupation
['Chris Newton', 'occupation', 'mayor of Vera de Moncayo']
ASK WHERE { resource:Chris_Newton property:occupation resource:mayor_of_Vera_de_Moncayo }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q30 Q1772309
P530
Q1048835
USER
Does Bellvís have diplomatic relationships with United States of America ?
(Q30,P530,Q1772309)
action is_in
entity Q1772309
action find
entity Q30
relation P530
['Q30', 'P530', 'Q1772309']
ASK WHERE { resource:Q30 property:P530 resource:Q1772309 }
United States of America Bellvís
action is_in
entity Bellvís
action find
entity United States of America
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Bellvís']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Bellvís }
[]
political territorial entity
SYSTEM
NO
(Q30,P530,Q1772309)
action is_in
entity Q1772309
action find
entity Q30
relation P530
[ANSWER]
['Q30', 'P530', 'Q1772309']
ASK WHERE { resource:Q30 property:P530 resource:Q1772309 }
No
action is_in
entity Bellvís
action find
entity United States of America
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Bellvís']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Bellvís }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with exactly 7 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 7
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { FILTER ( ?b = 7 ) . { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?b ) WHERE { ?x property:P530 ?o . ?x rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?x } }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 7
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { FILTER ( ?b = 7 ) . { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?b ) WHERE { ?x property:diplomatic_relation ?o . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
2
Q1016 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 7
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { FILTER ( ?b = 7 ) . { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?b ) WHERE { ?x property:P530 ?o . ?x rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?x } }
Libya Zambia
2
action count
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 7
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { FILTER ( ?b = 7 ) . { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?b ) WHERE { ?x property:diplomatic_relation ?o . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q30
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with lesser number of administrative territories than United States of America ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q30
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:P530 resource:Q30 . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?o < ?d ) }
United States of America
action less
action find_reverse_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_reverse
entity United States of America
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:diplomatic_relation resource:United_States_of_America . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o < ?d ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q142
SYSTEM
Georgia, Netherlands, France
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q30
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with lesser number of administrative territories than United States of America
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:P530 resource:Q30 . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?o < ?d ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and France have a diplomatic relationship with lesser number of administrative territories than United States of America
Georgia Netherlands France
action less
action find_reverse_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_reverse
entity United States of America
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 ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?o ) WHERE { ?t property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { ?z property:diplomatic_relation resource:United_States_of_America . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o < ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q902
P530
Q15617994 Q15617994
USER
And how about Bangladesh?
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?v ) WHERE { ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 . ?w property:P530 ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q902 property:P530 ?d } } . FILTER ( ?v < ?o ) }
Bangladesh
action less
action find_reverse_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 Bangladesh
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 ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?v ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w property:diplomatic_relation ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bangladesh property:diplomatic_relation ?d } } . FILTER ( ?v < ?o ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q218 Q20 Q948
SYSTEM
Romania, Norway, Tunisia
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?v ) WHERE { ?a rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 . ?w property:P530 ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q902 property:P530 ?d } } . FILTER ( ?v < ?o ) }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
Romania Norway Tunisia
action less
action find_reverse_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 Bangladesh
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 ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?v ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w property:diplomatic_relation ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bangladesh property:diplomatic_relation ?d } } . FILTER ( ?v < ?o ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q27147366
P530
Q15617994
USER
Are Eurobin known to have diplomatic connections with those ones ?
(Q27147366,P530,Q218) (Q27147366,P530,Q20) (Q27147366,P530,Q948)
action is_in
entity prev_answer
action find
entity Q27147366
relation P530
['Q27147366', 'P530', 'Q218'] ['Q27147366', 'P530', 'Q20'] ['Q27147366', 'P530', 'Q948']
ASK WHERE { resource:Q27147366 property:P530 ?b . VALUES ( ?b ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q783 ) } }
Eurobin
action is_in
entity prev_answer
action find
entity Eurobin
relation diplomatic relation
['Eurobin', 'diplomatic relation', 'Romania'] ['Eurobin', 'diplomatic relation', 'Norway'] ['Eurobin', 'diplomatic relation', 'Tunisia']
ASK WHERE { resource:Eurobin property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Honduras ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q27147366,P530,Q218) (Q27147366,P530,Q20) (Q27147366,P530,Q948)
action is_in
entity prev_answer
action find
entity Q27147366
relation P530
[ANSWER]
['Q27147366', 'P530', 'Q218'] ['Q27147366', 'P530', 'Q20'] ['Q27147366', 'P530', 'Q948']
ASK WHERE { resource:Q27147366 property:P530 ?b . VALUES ( ?b ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q783 ) } }
No
action is_in
entity prev_answer
action find
entity Eurobin
relation diplomatic relation
['Eurobin', 'diplomatic relation', 'Romania'] ['Eurobin', 'diplomatic relation', 'Norway'] ['Eurobin', 'diplomatic relation', 'Tunisia']
ASK WHERE { resource:Eurobin property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Honduras ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q20 Q1052687
P138
Q502895
USER
How many people are the origin of Norway or Charcot–Marie–Tooth disease ?
(Q20,P138,c(Q502895)) (Q1052687,P138,c(Q502895))
action count
action union
action filter_type
action find
entity Q20
relation P138
type Q502895
action filter_type
action find
entity Q1052687
relation P138
type Q502895
['Q20', 'P138', {'concept': 'Q502895'}] ['Q1052687', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { VALUES ( ?m ) { ( resource:Q1052687 ) ( resource:Q20 ) } . ?m property:P138 ?n }
Norway Charcot–Marie–Tooth disease
action count
action union
action filter_type
action find
entity Norway
relation named after
type common name
action filter_type
action find
entity Charcot–Marie–Tooth disease
relation named after
type common name
['Norway', 'named after', {'concept': 'common name'}] ['Charcot–Marie–Tooth disease', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { VALUES ( ?m ) { ( resource:Charcot–Marie–Tooth_disease ) ( resource:Norway ) } . ?m property:named_after ?n }
[]
common name
SYSTEM
2
Q609441 Q20710
(Q20,P138,c(Q502895)) (Q1052687,P138,c(Q502895))
action count
action union
action filter_type
action find
entity Q20
relation P138
type Q502895
action filter_type
action find
entity Q1052687
relation P138
type Q502895
[ANSWER]
['Q20', 'P138', {'concept': 'Q502895'}] ['Q1052687', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { VALUES ( ?m ) { ( resource:Q1052687 ) ( resource:Q20 ) } . ?m property:P138 ?n }
Pierre Marie Jean-Martin Charcot
2
action count
action union
action filter_type
action find
entity Norway
relation named after
type common name
action filter_type
action find
entity Charcot–Marie–Tooth disease
relation named after
type common name
['Norway', 'named after', {'concept': 'common name'}] ['Charcot–Marie–Tooth disease', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { VALUES ( ?m ) { ( resource:Charcot–Marie–Tooth_disease ) ( resource:Norway ) } . ?m property:named_after ?n }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with max number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?o ) { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?b ) WHERE { ?g property:P530 ?i . ?g rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?g } } . { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?c ) WHERE { ?y property:P530 ?v . ?y rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?c = ?o ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?o ) { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?b ) WHERE { ?g property:diplomatic_relation ?i . ?g rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } } . { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?c ) WHERE { ?y property:diplomatic_relation ?v . ?y rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?c = ?o ) }
[]
political territorial entity designation for an administrative territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q15617994),P530,Q766)
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic relationships with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?o ) { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?b ) WHERE { ?g property:P530 ?i . ?g rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?g } } . { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?c ) WHERE { ?y property:P530 ?v . ?y rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?c = ?o ) }
Germany
Germany have diplomatic relationships with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?o ) { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?b ) WHERE { ?g property:diplomatic_relation ?i . ?g rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } } . { SELECT DISTINCT ?y ( COUNT ( ?v ) AS ?c ) WHERE { ?y property:diplomatic_relation ?v . ?y rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?c = ?o ) }
[]