Simple Question (Direct)
Simple Question
Q5078964
P241
Q781132
USER
Which military branch contains Charles Henry Pepys Harington as its part ?
(Q5078964,P241,c(Q781132))
action filter_type
action find
entity Q5078964
relation P241
type Q781132
['Q5078964', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { resource:Q5078964 property:P241 ?s . ?s rdf:type ontology:Q781132 }
Charles Henry Pepys Harington
action filter_type
action find
entity Charles Henry Pepys Harington
relation military branch
type military branch
['Charles Henry Pepys Harington', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { resource:Charles_Henry_Pepys_Harington property:military_branch ?s . ?s rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q5078964,P241,c(Q781132))
action filter_type
action find
entity Q5078964
relation P241
type Q781132
[ANSWER] contains Charles Henry Pepys Harington as its part
['Q5078964', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { resource:Q5078964 property:P241 ?s . ?s rdf:type ontology:Q781132 }
British Army
British Army contains Charles Henry Pepys Harington as its part
British Army
action filter_type
action find
entity Charles Henry Pepys Harington
relation military branch
type military branch
['Charles Henry Pepys Harington', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { resource:Charles_Henry_Pepys_Harington property:military_branch ?s . ?s rdf:type ontology:military_branch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5078964
P410
Q4189293
USER
What is the title conferred upon Charles Henry Pepys Harington ?
(Q5078964,P410,c(Q4189293))
action filter_type
action find
entity Q5078964
relation P410
type Q4189293
['Q5078964', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?z WHERE { resource:Q5078964 property:P410 ?z . ?z rdf:type ontology:Q4189293 }
Charles Henry Pepys Harington
action filter_type
action find
entity Charles Henry Pepys Harington
relation military rank
type title
['Charles Henry Pepys Harington', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?z WHERE { resource:Charles_Henry_Pepys_Harington property:military_rank ?z . ?z rdf:type ontology:title }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q5078964,P410,c(Q4189293))
action filter_type
action find
entity Q5078964
relation P410
type Q4189293
The title conferred upon Charles Henry Pepys Harington is a [ANSWER]
['Q5078964', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?z WHERE { resource:Q5078964 property:P410 ?z . ?z rdf:type ontology:Q4189293 }
general officer
The title conferred upon Charles Henry Pepys Harington is a general officer
general officer
action filter_type
action find
entity Charles Henry Pepys Harington
relation military rank
type title
['Charles Henry Pepys Harington', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?z WHERE { resource:Charles_Henry_Pepys_Harington property:military_rank ?z . ?z rdf:type ontology:title }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q12791186 Q5078964
P410
Q4189293
USER
Or Hugo Rozenšteins?
OR((Q5078964,P410,c(Q4189293)), (Q12791186,P410,c(Q4189293)))
action filter_type
action union
action find
entity Q5078964
relation P410
action find
entity Q12791186
relation P410
type Q4189293
{'OR': [['Q5078964', 'P410', {'concept': 'Q4189293'}], ['Q12791186', 'P410', {'concept': 'Q4189293'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?k ) { ( resource:Q5078964 ) ( resource:Q12791186 ) } . ?k property:P410 ?r } . ?r rdf:type ontology:Q4189293 }
Hugo Rozenšteins Charles Henry Pepys Harington
action filter_type
action union
action find
entity Charles Henry Pepys Harington
relation military rank
action find
entity Hugo Rozenšteins
relation military rank
type title
{'OR': [['Charles Henry Pepys Harington', 'military rank', {'concept': 'title'}], ['Hugo Rozenšteins', 'military rank', {'concept': 'title'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?k ) { ( resource:Charles_Henry_Pepys_Harington ) ( resource:Hugo_Rozenšteins ) } . ?k property:military_rank ?r } . ?r rdf:type ontology:title }
[]
title
Q83460
SYSTEM
general officer
Q83460
OR((Q5078964,P410,c(Q4189293)), (Q12791186,P410,c(Q4189293)))
action filter_type
action union
action find
entity Q5078964
relation P410
action find
entity Q12791186
relation P410
type Q4189293
[ANSWER]
{'OR': [['Q5078964', 'P410', {'concept': 'Q4189293'}], ['Q12791186', 'P410', {'concept': 'Q4189293'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?k ) { ( resource:Q5078964 ) ( resource:Q12791186 ) } . ?k property:P410 ?r } . ?r rdf:type ontology:Q4189293 }
general officer
general officer
action filter_type
action union
action find
entity Charles Henry Pepys Harington
relation military rank
action find
entity Hugo Rozenšteins
relation military rank
type title
{'OR': [['Charles Henry Pepys Harington', 'military rank', {'concept': 'title'}], ['Hugo Rozenšteins', 'military rank', {'concept': 'title'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?k ) { ( resource:Charles_Henry_Pepys_Harington ) ( resource:Hugo_Rozenšteins ) } . ?k property:military_rank ?r } . ?r rdf:type ontology:title }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q781132 Q23905071 Q12737077
USER
Which military branches are atmost 10 military unit type-size classes and occupations a component of ?
(c(Q23905071)|c(Q12737077),P361,c(Q781132))
action atmost
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q23905071
action find_reverse_tuple_counts
relation P361
type Q781132
type Q12737077
value 10
[[{'concept': 'Q23905071'}, {'concept': 'Q12737077'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?v <= 10 ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:Q23905071 ) ( ontology:Q12737077 ) } . ?s rdf:type ?h } GROUP BY ?c } }
action atmost
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit type-size class
action find_reverse_tuple_counts
relation part of
type military branch
type occupation
value 10
[[{'concept': 'military unit type-size class'}, {'concept': 'occupation'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?v <= 10 ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:military_unit_type-size_class ) ( ontology:occupation ) } . ?s rdf:type ?h } GROUP BY ?c } }
[]
military branch military unit type-size class occupation
Q276538 Q2862927 Q706042
SYSTEM
Eurocorps, Indonesian Army, Prussian Army
Q16056518 Q23905126 Q222595 Q56015 Q210606 Q1799545 Q2328515 Q483268 Q1114493 Q1815399 Q3068744 Q11220 Q1046947 Q172771 Q701923 Q1078222 Q2078095 Q676404 Q5555333 Q313422 Q9160892 Q2558747 Q19344622 Q311689 Q248989 Q642932 Q1038047 Q833040 Q4117226 Q217406 Q2575188 Q488756 Q156649 Q1546449 Q1067064 Q889751 Q781360 Q2492012 Q2862927 Q2749588 Q4447359 Q1652708 Q19247539 Q1951484 Q276535 Q1750688 Q276538 Q272110 Q796411 Q56012 Q7275540 Q25387 Q208711 Q1076619 Q897614 Q6479134 Q741691 Q11322507 Q2292358 Q151701 Q11218 Q2301347 Q167682 Q2383264 Q18643350 Q465283 Q2384177 Q1124986 Q25436 Q1358152 Q2258261 Q4447363 Q355771 Q18129370 Q1753805 Q731647 Q706042 Q2630039 Q219712 Q706996 Q1674702 Q1370395
(c(Q23905071)|c(Q12737077),P361,c(Q781132))
action atmost
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q23905071
action find_reverse_tuple_counts
relation P361
type Q781132
type Q12737077
value 10
[ANSWERS] are atmost 10 military unit type-size classes and occupations a component of
[[{'concept': 'Q23905071'}, {'concept': 'Q12737077'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?v <= 10 ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:Q23905071 ) ( ontology:Q12737077 ) } . ?s rdf:type ?h } GROUP BY ?c } }
Nepalese Army Slovak Army British Army German Navy 2nd Marine Division Philippine Army Belize Defence Force Republic of Korea Army Roman army South African Army Syrian Arab Army United States Navy Royal Marines Royal Navy German Army Imperial Russian Army Pakistan Army Spanish Navy Ghana Army German Army fortress artillery Romanian Land Forces naval reserve force Royal Hungarian Army Polish Land Forces Indian Army Irish Army Italian Navy Royal Jordanian Land Force French Navy Royal Danish Army Republic of Korea Navy Imperial German Navy Hellenic Army United States Special Operations Command Japan Ground Self-Defense Force Australian Army Swedish Army Indonesian Army Royal Thai Army Austrian Land Forces South African Navy Ottoman Army Georgian Land Forces Imperial Japanese Army Brazilian Navy Eurocorps Yugoslav People's Army Italian Army German Army RAF Regiment Royal Canadian Navy Chilean Navy French Army Iraqi Army Egyptian Army Royal Australian Navy German Army Brazilian Army Kriegsmarine United States Marine Corps Argentine Army rocket artillery Finnish Army Islamic Republic of Iran Ground Force Russian Navy Norwegian Army Confederate States Navy Canadian Army Korean People's Army Ground Force Pakistan Navy Lebanese Ground Forces Indian Army Philippine Commonwealth Army Croatian Army Japan Maritime Self-Defense Force Prussian Army New Zealand Army Imperial Japanese Navy Southern Expeditionary Army Group GOC Army Headquarters Estonian Land Forces
Eurocorps, Indonesian Army and Prussian Army are atmost 10 military unit type-size classes and occupations a component of
Eurocorps Indonesian Army Prussian Army
action atmost
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit type-size class
action find_reverse_tuple_counts
relation part of
type military branch
type occupation
value 10
[[{'concept': 'military unit type-size class'}, {'concept': 'occupation'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?v <= 10 ) . { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:military_unit_type-size_class ) ( ontology:occupation ) } . ?s rdf:type ?h } GROUP BY ?c } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2220838 Q2862927
P17
Q15617994
USER
Which administrative territories are Indonesian Army or Oblivsky District a part of ?
OR((Q2862927,P17,c(Q15617994)), (Q2220838,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2862927
relation P17
action find
entity Q2220838
relation P17
type Q15617994
{'OR': [['Q2862927', 'P17', {'concept': 'Q15617994'}], ['Q2220838', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q2220838 property:P17 ?y } UNION { resource:Q2862927 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Oblivsky District Indonesian Army
action filter_type
action union
action find
entity Indonesian Army
relation country
action find
entity Oblivsky District
relation country
type designation for an administrative territorial entity
{'OR': [['Indonesian Army', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Oblivsky District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Oblivsky_District property:country ?y } UNION { resource:Indonesian_Army property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q252 Q159
SYSTEM
Indonesia, Russia
Q252 Q159
OR((Q2862927,P17,c(Q15617994)), (Q2220838,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2862927
relation P17
action find
entity Q2220838
relation P17
type Q15617994
[ANSWERS] are Indonesian Army or Oblivsky District a part of
{'OR': [['Q2862927', 'P17', {'concept': 'Q15617994'}], ['Q2220838', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q2220838 property:P17 ?y } UNION { resource:Q2862927 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Indonesia Russia
Indonesia and Russia are Indonesian Army or Oblivsky District a part of
Indonesia Russia
action filter_type
action union
action find
entity Indonesian Army
relation country
action find
entity Oblivsky District
relation country
type designation for an administrative territorial entity
{'OR': [['Indonesian Army', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Oblivsky District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Oblivsky_District property:country ?y } UNION { resource:Indonesian_Army property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26654106 Q5078964
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Charles Henry Pepys Harington or do Upgate Cottage belong to ?
OR((Q5078964,P27,c(Q15617994)), (Q26654106,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5078964
relation P27
action find
entity Q26654106
relation P17
type Q15617994
{'OR': [['Q5078964', 'P27', {'concept': 'Q15617994'}], ['Q26654106', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { { resource:Q5078964 property:P27 ?s } UNION { resource:Q26654106 property:P17 ?s } } }
Upgate Cottage Charles Henry Pepys Harington
action filter_type
action union
action find
entity Charles Henry Pepys Harington
relation country of citizenship
action find
entity Upgate Cottage
relation country
type designation for an administrative territorial entity
{'OR': [['Charles Henry Pepys Harington', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Upgate Cottage', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Charles_Henry_Pepys_Harington property:country_of_citizenship ?s } UNION { resource:Upgate_Cottage property:country ?s } } }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
OR((Q5078964,P27,c(Q15617994)), (Q26654106,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5078964
relation P27
action find
entity Q26654106
relation P17
type Q15617994
[ANSWER] is the countries of citizenship of Charles Henry Pepys Harington or do Upgate Cottage belong to
{'OR': [['Q5078964', 'P27', {'concept': 'Q15617994'}], ['Q26654106', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { { resource:Q5078964 property:P27 ?s } UNION { resource:Q26654106 property:P17 ?s } } }
United Kingdom
United Kingdom is the countries of citizenship of Charles Henry Pepys Harington or do Upgate Cottage belong to
United Kingdom
action filter_type
action union
action find
entity Charles Henry Pepys Harington
relation country of citizenship
action find
entity Upgate Cottage
relation country
type designation for an administrative territorial entity
{'OR': [['Charles Henry Pepys Harington', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Upgate Cottage', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Charles_Henry_Pepys_Harington property:country_of_citizenship ?s } UNION { resource:Upgate_Cottage property:country ?s } } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26654106
P1435
Q41176
USER
Which building represents the heritage status given to that house ?
(Q145,P1435,c(Q41176))
action filter_type
action find
entity Q26654106
relation P1435
type Q41176
['Q145', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?e WHERE { resource:Q26654106 property:P1435 ?e . ?e rdf:type ontology:Q41176 }
Upgate Cottage
action filter_type
action find
entity Upgate Cottage
relation heritage status
type building
['United Kingdom', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?e WHERE { resource:Upgate_Cottage property:heritage_status ?e . ?e rdf:type ontology:building }
[]
building
Q15700834
SYSTEM
Grade II listed building
Q15700834
(Q145,P1435,c(Q41176))
action filter_type
action find
entity Q26654106
relation P1435
type Q41176
[ANSWER] represents the heritage status given to that house
['Q145', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?e WHERE { resource:Q26654106 property:P1435 ?e . ?e rdf:type ontology:Q41176 }
Grade II listed building
Grade II listed building represents the heritage status given to that house
Grade II listed building
action filter_type
action find
entity Upgate Cottage
relation heritage status
type building
['United Kingdom', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?e WHERE { resource:Upgate_Cottage property:heritage_status ?e . ?e rdf:type ontology:building }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q15617994 Q3947 Q2668072
USER
Which administrative territories are min number of houses or collections situated in ?
(c(Q3947)|c(Q2668072),P17,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2668072
[[{'concept': 'Q3947'}, {'concept': 'Q2668072'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?z WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:Q3947 ) ( ontology:Q2668072 ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?u WHERE { VALUES ( ?f ) { ( ontology:Q3947 ) ( ontology:Q2668072 ) } . ?a rdf:type ?f } GROUP BY ?u } . FILTER ( ?m = ?q ) }
action argmin
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type collection
[[{'concept': 'house'}, {'concept': 'collection'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?z WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:house ) ( ontology:collection ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?u WHERE { VALUES ( ?f ) { ( ontology:house ) ( ontology:collection ) } . ?a rdf:type ?f } GROUP BY ?u } . FILTER ( ?m = ?q ) }
[]
designation for an administrative territorial entity house collection
Q805 Q1049 Q657
SYSTEM
Yemen, Sudan, Chad
Q702 Q1256 Q709 Q805 Q339952 Q270508 Q684030 Q2172530 Q12536 Q783 Q784 Q640426 Q36678 Q736029 Q565812 Q187035 Q1462 Q657 Q517333 Q2001966 Q326029 Q958 Q153529 Q695316 Q165040 Q315667 Q153136 Q1210 Q155019 Q983 Q819 Q107426 Q159626 Q1045 Q1044 Q1042 Q1041 Q177323 Q313175 Q149621 Q1025 Q1020 Q1029 Q34762 Q1458 Q3462133 Q815731 Q47261 Q1050 Q977 Q704288 Q10957559 Q1037 Q974 Q967 Q697 Q389004 Q1013 Q160307 Q164092 Q1483510 Q2662372 Q917 Q916 Q1007 Q1006 Q829700 Q971 Q970 Q239502 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q696651 Q774 Q810 Q1019 Q813 Q1014 Q148499 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q11024667 Q1049 Q426025
(c(Q3947)|c(Q2668072),P17,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3947
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2668072
Min number of houses or collections are situated in [ANSWERS]
[[{'concept': 'Q3947'}, {'concept': 'Q2668072'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?z WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:Q3947 ) ( ontology:Q2668072 ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?u WHERE { VALUES ( ?f ) { ( ontology:Q3947 ) ( ontology:Q2668072 ) } . ?a rdf:type ?f } GROUP BY ?u } . FILTER ( ?m = ?q ) }
Federated States of Micronesia Liguria Marshall Islands Yemen Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Honduras Dominica Stahnsdorf West Bank Nassau-Siegen Principality of Calenberg Principality of Albania Sardinia Chad Principality of Polotsk Company rule in India Duchy of Brunswick South Sudan Duchy of Milan Schwarzburg-Rudolstadt Duchy of Parma Saxe-Weimar Habsburg Empire Lombardy Duchy of Lorraine Equatorial Guinea Laos Anjou Württemberg Somalia Sierra Leone Seychelles Senegal developing country Saxe-Lauenburg district Mauritania Malawi Mozambique Principality of Bayreuth Calabria Saxe-Coburg and Gotha Principality of Bulgaria Duchy of Bavaria Swaziland Djibouti Duchy of Holstein Moldavia Rwanda Democratic Republic of the Congo Burundi Nauru Wallachia Lesotho Fatimid caliphate Duchy of Saxony Principality of Wales Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Saxe-Jena Republic of the Congo Comoros Kingdom of Galicia–Volhynia Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Saxe-Eisenach Guatemala Jordan Madagascar Kyrgyzstan Liberia Margraviate of Brandenburg Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Duchy of Mecklenburg-Schwerin Sudan Duchy of Savoy
Min number of houses or collections are situated in Yemen, Sudan and Chad
Yemen Sudan Chad
action argmin
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type house
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type collection
[[{'concept': 'house'}, {'concept': 'collection'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?q ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) ?z WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:house ) ( ontology:collection ) } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?u WHERE { VALUES ( ?f ) { ( ontology:house ) ( ontology:collection ) } . ?a rdf:type ?f } GROUP BY ?u } . FILTER ( ?m = ?q ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q805 Q1061368
P17
Q15617994
USER
How many administrative territories are Yemen or Oruro Department present in ?
(Q805,P17,c(Q15617994)) (Q1061368,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q805
relation P17
type Q15617994
action filter_type
action find
entity Q1061368
relation P17
type Q15617994
['Q805', 'P17', {'concept': 'Q15617994'}] ['Q1061368', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { { resource:Q805 property:P17 ?u . ?u rdf:type ontology:Q15617994 } UNION { resource:Q1061368 property:P17 ?u . ?u rdf:type ontology:Q15617994 } }
Yemen Oruro Department
action count
action union
action filter_type
action find
entity Yemen
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Oruro Department
relation country
type designation for an administrative territorial entity
['Yemen', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Oruro Department', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { { resource:Yemen property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Oruro_Department property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q805 Q750
(Q805,P17,c(Q15617994)) (Q1061368,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q805
relation P17
type Q15617994
action filter_type
action find
entity Q1061368
relation P17
type Q15617994
[ANSWER]
['Q805', 'P17', {'concept': 'Q15617994'}] ['Q1061368', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { { resource:Q805 property:P17 ?u . ?u rdf:type ontology:Q15617994 } UNION { resource:Q1061368 property:P17 ?u . ?u rdf:type ontology:Q15617994 } }
Yemen Bolivia
2
action count
action union
action filter_type
action find
entity Yemen
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Oruro Department
relation country
type designation for an administrative territorial entity
['Yemen', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Oruro Department', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { { resource:Yemen property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Oruro_Department property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]