Simple Question (Direct)
Simple Question
Q1631150
P495
Q15617994
USER
Where did Advise & Consent originate ?
(Q1631150,P495,c(Q15617994))
action filter_type
action find
entity Q1631150
relation P495
type Q15617994
['Q1631150', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1631150 property:P495 ?y . ?y rdf:type ontology:Q15617994 }
Advise & Consent
action filter_type
action find
entity Advise & Consent
relation country of origin
type designation for an administrative territorial entity
['Advise & Consent', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Advise_&_Consent property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1631150,P495,c(Q15617994))
action filter_type
action find
entity Q1631150
relation P495
type Q15617994
Advise & Consent originated from [ANSWER]
['Q1631150', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1631150 property:P495 ?y . ?y rdf:type ontology:Q15617994 }
United States of America
Advise & Consent originated from United States of America
United States of America
action filter_type
action find
entity Advise & Consent
relation country of origin
type designation for an administrative territorial entity
['Advise & Consent', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Advise_&_Consent property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P176
Q1137468
USER
Which aerial bomb was produced by that administrative territory ?
(c(Q1137468),P176,Q30)
action filter_type
action find_reverse
entity Q30
relation P176
type Q1137468
[{'concept': 'Q1137468'}, 'P176', 'Q30']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1137468 . ?q property:P176 resource:Q30 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation manufacturer
type aerial bomb
[{'concept': 'aerial bomb'}, 'manufacturer', 'United States of America']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:aerial_bomb . ?q property:manufacturer resource:United_States_of_America }
[]
aerial bomb
Q15139534
SYSTEM
M5
Q15139534
(c(Q1137468),P176,Q30)
action filter_type
action find_reverse
entity Q30
relation P176
type Q1137468
[ANSWER] was produced by that administrative territory
[{'concept': 'Q1137468'}, 'P176', 'Q30']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1137468 . ?q property:P176 resource:Q30 }
M5
M5 was produced by that administrative territory
M5
action filter_type
action find_reverse
entity United States of America
relation manufacturer
type aerial bomb
[{'concept': 'aerial bomb'}, 'manufacturer', 'United States of America']
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:aerial_bomb . ?q property:manufacturer resource:United_States_of_America }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P1313
Q895526
USER
Which authority organ is fulfilled by United States of America ?
(Q30,P1313,c(Q895526))
action filter_type
action find
entity Q30
relation P1313
type Q895526
['Q30', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?o WHERE { resource:Q30 property:P1313 ?o . ?o 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 ?o WHERE { resource:United_States_of_America property:office_held_by_head_of_government ?o . ?o 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
United [ANSWER] is fulfilled by United States of America
['Q30', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?o WHERE { resource:Q30 property:P1313 ?o . ?o rdf:type ontology:Q895526 }
President of the United States of America
United President of the United States of America is fulfilled by United States of America
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 ?o WHERE { resource:United_States_of_America property:office_held_by_head_of_government ?o . ?o rdf:type ontology:authority_organ }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2873545
Q895526
USER
And also tell me about Rurzyca, West Pomeranian Voivodeship?
(Q2873545,P1313,c(Q895526))
action filter_type
action find
entity Q2873545
relation P1313
type Q895526
['Q2873545', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q895526 . resource:Q2873545 property:P1313 ?r }
Rurzyca, West Pomeranian Voivodeship
action filter_type
action find
entity Rurzyca, West Pomeranian Voivodeship
relation office held by head of government
type authority organ
['Rurzyca, West Pomeranian Voivodeship', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:authority_organ . resource:Rurzyca,_West_Pomeranian_Voivodeship property:office_held_by_head_of_government ?r }
[]
authority organ
Q690928
SYSTEM
Schultheiß
Q690928
(Q2873545,P1313,c(Q895526))
action filter_type
action find
entity Q2873545
relation P1313
type Q895526
[ANSWER]
['Q2873545', 'P1313', {'concept': 'Q895526'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q895526 . resource:Q2873545 property:P1313 ?r }
Schultheiß
Schultheiß
action filter_type
action find
entity Rurzyca, West Pomeranian Voivodeship
relation office held by head of government
type authority organ
['Rurzyca, West Pomeranian Voivodeship', 'office held by head of government', {'concept': 'authority organ'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:authority_organ . resource:Rurzyca,_West_Pomeranian_Voivodeship property:office_held_by_head_of_government ?r }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q134161 Q30
P1454 P17
Q43229
USER
Which organizations are situated in United States of America and have joint-stock company as their legal form ?
AND((c(Q43229),P17,Q30), (c(Q43229),P1454,Q134161))
action filter_type
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q134161
relation P1454
type Q43229
{'AND': [[{'concept': 'Q43229'}, 'P17', 'Q30'], [{'concept': 'Q43229'}, 'P1454', 'Q134161']]}
SELECT DISTINCT ?m WHERE { ?m property:P1454 resource:Q134161 . ?m property:P17 resource:Q30 . ?m rdf:type ontology:Q43229 }
joint-stock company United States of America
action filter_type
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity joint-stock company
relation legal form
type organization
{'AND': [[{'concept': 'organization'}, 'country', 'United States of America'], [{'concept': 'organization'}, 'legal form', 'joint-stock company']]}
SELECT DISTINCT ?m WHERE { ?m property:legal_form resource:joint-stock_company . ?m property:country resource:United_States_of_America . ?m rdf:type ontology:organization }
[]
organization
Q407744 Q295280 Q1383669 Q863675 Q1344736 Q202972 Q1812489 Q1337797 Q17091043 Q742196
SYSTEM
Some of them are Air Products & Chemicals, AMR Corporation, Exelon, Freescale Semiconductor, Entertainment One, International Paper, Odyssey Marine Exploration, Office Depot, Viking Ocean Cruises, Darden Restaurants
Q2303478 Q2296809 Q295280 Q180106 Q502132 Q2157448 Q470517 Q2940968 Q341975 Q1423218 Q825943 Q1537591 Q407744 Q457960 Q1419446 Q1453620 Q1591889 Q17091043 Q1477661 Q533415 Q502940 Q690079 Q306764 Q8824673 Q1318848 Q2031485 Q312 Q1959947 Q210057 Q935059 Q917487 Q420822 Q483915 Q3344199 Q381498 Q634815 Q3442791 Q1509038 Q1129117 Q1915049 Q750141 Q327646 Q1662481 Q1703389 Q1972420 Q291508 Q221062 Q1392999 Q1508526 Q1641437 Q846819 Q48881 Q630917 Q898208 Q2559339 Q1181953 Q902397 Q632694 Q2456205 Q856897 Q290159 Q465952 Q1470619 Q464092 Q621096 Q1131840 Q1689717 Q1383669 Q1530270 Q19681433 Q1327874 Q35476 Q863675 Q5152510 Q1183805 Q7240 Q37093 Q95 Q979198 Q375791 Q1656230 Q682047 Q7257522 Q322320 Q741707 Q868587 Q128896 Q5289230 Q1053326 Q2397925 Q1824441 Q2037125 Q1384324 Q1112588 Q651778 Q27065 Q202972 Q1741634 Q842174 Q38928 Q2069601 Q3323532 Q415598 Q259062 Q624375 Q806085 Q796309 Q1094101 Q5165314 Q205883 Q1140946 Q2559267 Q1809448 Q352390 Q201815 Q631894 Q1532489 Q505866 Q1415501 Q934096 Q742196 Q334204 Q1096013 Q153417 Q356212 Q577911 Q278648 Q2032800 Q1344736 Q210075 Q1335585 Q1337797 Q515869 Q266423 Q1812489 Q1543874 Q744149 Q279170 Q974211
AND((c(Q43229),P17,Q30), (c(Q43229),P1454,Q134161))
action filter_type
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q134161
relation P1454
type Q43229
[ANSWERS] are situated in United States of America and have joint-stock company as their legal form
{'AND': [[{'concept': 'Q43229'}, 'P17', 'Q30'], [{'concept': 'Q43229'}, 'P1454', 'Q134161']]}
SELECT DISTINCT ?m WHERE { ?m property:P1454 resource:Q134161 . ?m property:P17 resource:Q30 . ?m rdf:type ontology:Q43229 }
Synopsys Socialtext AMR Corporation Owens-Illinois Leidos Robert Half International Amgen Casey's General Stores Acme Markets Sunoco BorgWarner Goodrich Corporation Air Products & Chemicals VF Corporation First Horizon National Corporation Freeport-McMoRan Walgreens Viking Ocean Cruises Paccar Best Buy General Dynamics Digital Equipment Corporation Abbott Laboratories SCO Group Intuit Under Armour Apple NBTY Netscape Toro Brinker International The Gap, Inc. Nike Northeast Utilities Aerojet Motorola Solutions Ross Stores Tenneco Tupperware McCormick & Company McDonnell Enron IHS Inc. Jones Lang LaSalle Navteq AES Corporation DuPont FICO Sturm, Ruger & Co. Ralph Lauren Corporation EG&G Sherwin-Williams Rainier Motor Car Company Honeywell Wendy's International Deckers Outdoor Corporation Cardinal Health Archer Daniels Midland True Religion Kellogg's ADC Telecommunications Amoco Parker Hannifin American Electric Power Fannie Mae Nexen Jive Software Exelon LeCroy Corporation Kraft Heinz Company RealNetworks AT&T Freescale Semiconductor Commercial Metals Company Del Monte Foods Lockheed Martin Yahoo! Google ICOM Simulations Standard Oil Phillips 66 SuperValu Huntington Ingalls Industries Level 3 Communications Wabtec McGraw Hill Financial Advanced Micro Devices Dollar Tree NexGen Taylorcraft Aircraft Life Technologies State Street Corporation Expeditors International Columbia Sportswear Company Douglas Gogo Inflight Internet International Paper Kimberly-Clark Eddie Bauer Holdings, Inc. PNC Financial Services Peoples Energy Moody's Analytics Akamai Technologies Diamond Multimedia CVS Health Banana Republic BMC Software Peet's Coffee & Tea Continental Resources Micrografx Circuit City Stores Wendy's Company Whole Foods Market Adaptec McDonnell Douglas Head Pall Corporation Allergan Lexmark Red Wing Shoes Darden Restaurants Morgan Stanley Fairchild Semiconductor Kroger Fossil Pepco Holdings A. E. Staley Ally Financial Entertainment One Borland Emerson Electric Office Depot Lions Gate Entertainment Bristol-Myers Squibb Odyssey Marine Exploration The Hertz Corporation Wells Fargo A. Schulman International Speedway Corporation
Air Products & Chemicals, AMR Corporation, Exelon, Freescale Semiconductor, Entertainment One, International Paper, Odyssey Marine Exploration, Office Depot, Viking Ocean Cruises and Darden Restaurants are situated in United States of America and have joint-stock company as their legal form
Air Products & Chemicals AMR Corporation Exelon Freescale Semiconductor Entertainment One International Paper Odyssey Marine Exploration Office Depot Viking Ocean Cruises Darden Restaurants
action filter_type
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity joint-stock company
relation legal form
type organization
{'AND': [[{'concept': 'organization'}, 'country', 'United States of America'], [{'concept': 'organization'}, 'legal form', 'joint-stock company']]}
SELECT DISTINCT ?m WHERE { ?m property:legal_form resource:joint-stock_company . ?m property:country resource:United_States_of_America . ?m rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4578917 Q30
P47 P27
Q15617994
USER
Which administrative territories share the border with United States of America or are Marie-Louise Ekman a civilian of ?
OR((Q30,P47,c(Q15617994)), (Q4578917,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q4578917
relation P27
type Q15617994
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q4578917', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q30 property:P47 ?o } UNION { resource:Q4578917 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Marie-Louise Ekman United States of America
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Marie-Louise Ekman
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Marie-Louise Ekman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:United_States_of_America property:shares_border_with ?o } UNION { resource:Marie-Louise_Ekman property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q678 Q241 Q804 Q702 Q159 Q786 Q683 Q34 Q17 Q96
SYSTEM
Some of them are Tonga, Cuba, Panama, Federated States of Micronesia, Russia, Dominican Republic, Samoa, Sweden, Japan, Mexico
Q702 Q804 Q159 Q96 Q683 Q786 Q241 Q17 Q710 Q678 Q34 Q717 Q790
OR((Q30,P47,c(Q15617994)), (Q4578917,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P47
action find
entity Q4578917
relation P27
type Q15617994
[ANSWERS] share the border with United States of America or are Marie-Louise Ekman a civilian of
{'OR': [['Q30', 'P47', {'concept': 'Q15617994'}], ['Q4578917', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q30 property:P47 ?o } UNION { resource:Q4578917 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Federated States of Micronesia Panama Russia Mexico Samoa Dominican Republic Cuba Japan Kiribati Tonga Sweden Venezuela Haiti
Tonga, Cuba, Panama, Federated States of Micronesia, Russia, Dominican Republic, Samoa, Sweden, Japan and Mexico share the border with United States of America or are Marie-Louise Ekman a civilian of
Tonga Cuba Panama Federated States of Micronesia Russia Dominican Republic Samoa Sweden Japan Mexico
action filter_type
action union
action find
entity United States of America
relation shares border with
action find
entity Marie-Louise Ekman
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Marie-Louise Ekman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:United_States_of_America property:shares_border_with ?o } UNION { resource:Marie-Louise_Ekman property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q783
P37
Q5962346 Q34770 Q15617994
USER
How many administrative territories have their official language as around the same number of classification schemes or languages as Honduras ?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action count
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q783
relation P37
type Q5962346
type Q34770
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } . ?r rdf:type ?f } . resource:Q783 property:P37 ?r } } . FILTER ( ?k = ?w ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?g WHERE { { ?g property:P37 ?n . ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q5962346 } UNION { ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q34770 . ?g property:P37 ?n } } GROUP BY ?g } }
Honduras
action count
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Honduras
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ontology:classification_scheme ) ( ontology:language ) } . ?r rdf:type ?f } . resource:Honduras property:official_language ?r } } . FILTER ( ?k = ?w ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?g WHERE { { ?g property:official_language ?n . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:classification_scheme } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:language . ?g property:official_language ?n } } GROUP BY ?g } }
[]
classification scheme language designation for an administrative territorial entity
SYSTEM
84
Q804 Q399 Q800 Q709 Q668 Q414 Q1948 Q783 Q784 Q493428 Q712 Q710 Q717 Q2003 Q258 Q1979 Q792 Q954 Q953 Q958 Q986 Q241 Q242 Q244 Q1974 Q811 Q53381 Q101526 Q924 Q34 Q928 Q39 Q38 Q739 Q733 Q734 Q55 Q1013 Q795587 Q693658 Q145 Q238 Q20 Q1044 Q1042 Q27 Q1049 Q1020 Q843 Q736 Q786 Q1904 Q96 Q1050 Q1989 Q686312 Q1036 Q1037 Q1033 Q1030 Q963 Q298 Q695 Q114 Q117 Q754 Q213 Q1005 Q833 Q1951 Q1009 Q243220 Q683 Q34020 Q686 Q760 Q77 Q774 Q1014 Q678 Q233 Q672 Q1952 Q2023
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action count
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q783
relation P37
type Q5962346
type Q34770
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } . ?r rdf:type ?f } . resource:Q783 property:P37 ?r } } . FILTER ( ?k = ?w ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?g WHERE { { ?g property:P37 ?n . ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q5962346 } UNION { ?g rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q34770 . ?g property:P37 ?n } } GROUP BY ?g } }
Panama Armenia Costa Rica Marshall Islands India Argentina Manitoba Honduras Dominica Mistretta Fiji Kiribati Venezuela Newfoundland and Labrador South Africa Prince Edward Island El Salvador Zimbabwe Zambia South Sudan Eritrea Cuba Belize Barbados British Columbia Nicaragua Tolmezzo Rovetta Tanzania Sweden Philippines Switzerland Italy Colombia Paraguay Guyana Netherlands Lesotho Escuintla Izabal Department United Kingdom San Marino Norway Sierra Leone Seychelles Ireland Sudan Malawi Pakistan Ecuador Dominican Republic Ontario Mexico Swaziland Saskatchewan Duchy of Amalfi Uganda Rwanda Nigeria Namibia Botswana Chile Palau Kenya Ghana Trinidad and Tobago Czech Republic Gambia Malaysia Alberta Cameroon Rocca di Cave Samoa Niue Vanuatu Saint Lucia Uruguay Guatemala Liberia Tonga Malta Tuvalu Nova Scotia Nunavut
84
action count
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Honduras
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { VALUES ( ?f ) { ( ontology:classification_scheme ) ( ontology:language ) } . ?r rdf:type ?f } . resource:Honduras property:official_language ?r } } . FILTER ( ?k = ?w ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) ?g WHERE { { ?g property:official_language ?n . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:classification_scheme } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:language . ?g property:official_language ?n } } GROUP BY ?g } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q21850324
P37
Q5962346 Q34770 Q15617994
USER
And also tell me about Gireyevo?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action count
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q21850324
relation P37
type Q5962346
type Q34770
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?p ) WHERE { { ?q property:P37 ?x . ?q rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q5962346 } UNION { ?q property:P37 ?x . ?q rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q34770 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Q21850324 property:P37 ?v . { ?v rdf:type ?i . VALUES ( ?i ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } } } } . FILTER ( ?p = ?t ) }
Gireyevo
action count
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Gireyevo
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?p ) WHERE { { ?q property:official_language ?x . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:classification_scheme } UNION { ?q property:official_language ?x . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:language } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Gireyevo property:official_language ?v . { ?v rdf:type ?i . VALUES ( ?i ) { ( ontology:language ) ( ontology:classification_scheme ) } } } } . FILTER ( ?p = ?t ) }
[]
classification scheme language designation for an administrative territorial entity
SYSTEM
130
Q805 Q801 Q473259 Q398 Q142 Q1039 Q21671144 Q32 Q12536 Q262 Q148 Q265 Q30 Q37 Q16006 Q711 Q837 Q252 Q2068764 Q21850324 Q403 Q657 Q45 Q159 Q43 Q41 Q155 Q673813 Q790 Q4628 Q796 Q794 Q669945 Q884 Q881 Q503181 Q219 Q826 Q247613 Q603392 Q33 Q921 Q31 Q36 Q929 Q165934 Q423 Q889 Q851 Q29999 Q854 Q819 Q253445 Q424 Q730 Q236 Q230 Q232 Q1045 Q1041 Q28 Q21853467 Q189 Q842 Q184 Q1029 Q1028 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q17 Q10957559 Q902 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q115 Q59118 Q212 Q211 Q217 Q214 Q215 Q218 Q160307 Q1483510 Q912 Q917 Q916 Q1007 Q1006 Q977 Q1008 Q971 Q970 Q836 Q574 Q637451 Q874 Q3365904 Q79 Q858 Q199688 Q878 Q948 Q817 Q810 Q770 Q813 Q1016 Q1011 Q945 Q8575586 Q21848848 Q176 Q61698 Q822 Q863 Q869 Q1230929
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action count
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_multi_types
action find
entity Q21850324
relation P37
type Q5962346
type Q34770
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?p ) WHERE { { ?q property:P37 ?x . ?q rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q5962346 } UNION { ?q property:P37 ?x . ?q rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q34770 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Q21850324 property:P37 ?v . { ?v rdf:type ?i . VALUES ( ?i ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } } } } . FILTER ( ?p = ?t ) }
Yemen Israel Ammerthal Bahrain France Sao Tomé and Príncipe Mezhetchina Luxembourg Abbasid caliphate Algeria People's Republic of China Uzbekistan United States of America Lithuania Goch Mongolia Nepal Indonesia Archa Darugha Gireyevo Serbia Chad Portugal Russia Turkey Greece Brazil Euratsfeld Haiti Faroe Islands Iraq Iran Vorau South Korea Vietnam Herzberg am Harz Bulgaria Maldives Bernese Jura Schönwalde Finland Brunei Belgium Poland Central African Republic Bokensdorf North Korea Afghanistan Saudi Arabia Kingdom of the Netherlands Sri Lanka Laos Kolbermoor Cambodia Suriname Montenegro Georgia Kazakhstan Somalia Senegal Hungary Romanovo Iceland Oman Belarus Mozambique Morocco Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Japan Moldavia Bangladesh Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Ethiopia Aappilattoq Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Principality of Wales Mali Bhutan Angola Guinea-Bissau Guinea Djibouti Côte d'Ivoire Republic of the Congo Comoros Myanmar East Timor Rohrbach Turkmenistan Saint-Léonard Parish, New Brunswick Egypt Syria Almohad United Arab Emirates Tunisia Kuwait Jordan Friesland Kyrgyzstan Libya Cape Verde Togo Umayyad Caliphate Lyskovo Quebec Büsingen Lebanon Tajikistan Thailand Kesklinn
130
action count
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_multi_types
action find
entity Gireyevo
relation official language
type classification scheme
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?x ) AS ?p ) WHERE { { ?q property:official_language ?x . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:classification_scheme } UNION { ?q property:official_language ?x . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:language } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Gireyevo property:official_language ?v . { ?v rdf:type ?i . VALUES ( ?i ) { ( ontology:language ) ( ontology:classification_scheme ) } } } } . FILTER ( ?p = ?t ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P1376
Q56061
USER
Which administrative territory is the capital of Russia ?
(c(Q56061),P1376,Q159)
action filter_type
action find_reverse
entity Q159
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q159']
SELECT DISTINCT ?n WHERE { ?n property:P1376 resource:Q159 . ?n rdf:type ontology:Q56061 }
Russia
action filter_type
action find_reverse
entity Russia
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Russia']
SELECT DISTINCT ?n WHERE { ?n property:capital_of resource:Russia . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(c(Q56061),P1376,Q159)
action filter_type
action find_reverse
entity Q159
relation P1376
type Q56061
In [ANSWER] is the capital of Russia
[{'concept': 'Q56061'}, 'P1376', 'Q159']
SELECT DISTINCT ?n WHERE { ?n property:P1376 resource:Q159 . ?n rdf:type ontology:Q56061 }
Moscow
In Moscow is the capital of Russia
Moscow
action filter_type
action find_reverse
entity Russia
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Russia']
SELECT DISTINCT ?n WHERE { ?n property:capital_of resource:Russia . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q649
P608
Q80071
USER
Which symbol was exhibited at that administrative territory ?
(c(Q80071),P608,Q649)
action filter_type
action find_reverse
entity Q649
relation P608
type Q80071
[{'concept': 'Q80071'}, 'P608', 'Q649']
SELECT DISTINCT ?y WHERE { ?y property:P608 resource:Q649 . ?y rdf:type ontology:Q80071 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation exhibition history
type symbol
[{'concept': 'symbol'}, 'exhibition history', 'Moscow']
SELECT DISTINCT ?y WHERE { ?y property:exhibition_history resource:Moscow . ?y rdf:type ontology:symbol }
[]
symbol
Q2635667
SYSTEM
Cross of Saint Euphrosyne
Q2635667
(c(Q80071),P608,Q649)
action filter_type
action find_reverse
entity Q649
relation P608
type Q80071
[ANSWER] was exhibited at that administrative territory
[{'concept': 'Q80071'}, 'P608', 'Q649']
SELECT DISTINCT ?y WHERE { ?y property:P608 resource:Q649 . ?y rdf:type ontology:Q80071 }
Cross of Saint Euphrosyne
Cross of Saint Euphrosyne was exhibited at that administrative territory
Cross of Saint Euphrosyne
action filter_type
action find_reverse
entity Moscow
relation exhibition history
type symbol
[{'concept': 'symbol'}, 'exhibition history', 'Moscow']
SELECT DISTINCT ?y WHERE { ?y property:exhibition_history resource:Moscow . ?y rdf:type ontology:symbol }
[]