Simple Question (Direct)
Simple Question
Q3575014
P21
Q290
USER
What is the sex of Zdeněk Bahenský ?
(Q3575014,P21,c(Q290))
action filter_type
action find
entity Q3575014
relation P21
type Q290
['Q3575014', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q3575014 property:P21 ?u . ?u rdf:type ontology:Q290 }
Zdeněk Bahenský
action filter_type
action find
entity Zdeněk Bahenský
relation gender
type sex
['Zdeněk Bahenský', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Zdeněk_Bahenský property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3575014,P21,c(Q290))
action filter_type
action find
entity Q3575014
relation P21
type Q290
The sex of Zdeněk Bahenský is the [ANSWER]
['Q3575014', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q3575014 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
The sex of Zdeněk Bahenský is the male
male
action filter_type
action find
entity Zdeněk Bahenský
relation gender
type sex
['Zdeněk Bahenský', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Zdeněk_Bahenský property:gender ?u . ?u rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3575014
P54
Q12973014
USER
Which sports teams are that person a member of ?
(Q6581097,P54,c(Q12973014))
action filter_type
action find
entity Q3575014
relation P54
type Q12973014
['Q6581097', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12973014 . resource:Q3575014 property:P54 ?w }
Zdeněk Bahenský
action filter_type
action find
entity Zdeněk Bahenský
relation member of sports team
type sports team
['male', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sports_team . resource:Zdeněk_Bahenský property:member_of_sports_team ?w }
[]
sports team
Q1425170 Q514895
SYSTEM
HC Sparta Praha, HC Litvínov
Q1425170 Q514895
(Q6581097,P54,c(Q12973014))
action filter_type
action find
entity Q3575014
relation P54
type Q12973014
[ANSWERS] are that person a member of
['Q6581097', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q12973014 . resource:Q3575014 property:P54 ?w }
HC Sparta Praha HC Litvínov
HC Sparta Praha and HC Litvínov are that person a member of
HC Sparta Praha HC Litvínov
action filter_type
action find
entity Zdeněk Bahenský
relation member of sports team
type sports team
['male', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:sports_team . resource:Zdeněk_Bahenský property:member_of_sports_team ?w }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q23891101
P361
Q476300 Q12973014 Q12973014
USER
How many sports teams are parts of lesser number of competitions and sports teams than Albuquerque-Senna-González ?
(c(Q12973014),P361,c(Q476300)|c(Q12973014))
action count
action less
action union
action find_tuple_counts
relation P361
type Q12973014
type Q476300
action find_tuple_counts
relation P361
type Q12973014
type Q12973014
action count
action filter_multi_types
action find
entity Q23891101
relation P361
type Q476300
type Q12973014
[{'concept': 'Q12973014'}, 'P361', [{'concept': 'Q476300'}, {'concept': 'Q12973014'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?y ) WHERE { { ?z property:P361 ?s . ?z rdf:type ontology:Q12973014 . ?s rdf:type ontology:Q12973014 } UNION { ?z property:P361 ?s . ?z rdf:type ontology:Q12973014 . ?s rdf:type ontology:Q476300 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Q23891101 property:P361 ?u . { { ?u rdf:type ontology:Q476300 } UNION { ?u rdf:type ontology:Q12973014 } } } } . FILTER ( ?y < ?c ) }
Albuquerque-Senna-González
action count
action less
action union
action find_tuple_counts
relation part of
type sports team
type competition
action find_tuple_counts
relation part of
type sports team
type sports team
action count
action filter_multi_types
action find
entity Albuquerque-Senna-González
relation part of
type competition
type sports team
[{'concept': 'sports team'}, 'part of', [{'concept': 'competition'}, {'concept': 'sports team'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?y ) WHERE { { ?z property:part_of ?s . ?z rdf:type ontology:sports_team . ?s rdf:type ontology:sports_team } UNION { ?z property:part_of ?s . ?z rdf:type ontology:sports_team . ?s rdf:type ontology:competition } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Albuquerque-Senna-González property:part_of ?u . { { ?u rdf:type ontology:competition } UNION { ?u rdf:type ontology:sports_team } } } } . FILTER ( ?y < ?c ) }
[]
competition sports team sports team
SYSTEM
229
Q23674523 Q26835628 Q20113797 Q17739118 Q20113948 Q23022857 Q18085737 Q5461421 Q15890969 Q20113912 Q1563903 Q18157521 Q16854996 Q16959086 Q18043423 Q17739057 Q2289577 Q20113769 Q18035997 Q19336122 Q17098475 Q611163 Q20738753 Q20113760 Q18410987 Q20750761 Q18109916 Q19843231 Q15873983 Q18036013 Q23806078 Q26723244 Q19831195 Q20113787 Q21010241 Q26792323 Q26702483 Q457376 Q23058766 Q26833818 Q18072505 Q18072504 Q20113887 Q20113888 Q20870955 Q26834260 Q23806096 Q15819874 Q20113809 Q13797949 Q19862503 Q17741814 Q19969346 Q18128809 Q17759353 Q18708844 Q2438304 Q18208733 Q1195237 Q19158832 Q13447113 Q19870884 Q20113533 Q19969364 Q20113539 Q20113892 Q7864172 Q23760304 Q7864171 Q6686164 Q20113899 Q2079274 Q16683843 Q19720662 Q1886426 Q5051341 Q19969362 Q17984378 Q23022763 Q15879927 Q18286084 Q21565045 Q20113929 Q4823753 Q19969365 Q20113768 Q2716319 Q19969366 Q19969360 Q19969363 Q20113938 Q757447 Q22828909 Q19969369 Q19969368 Q16197479 Q18036024 Q4994627 Q23894010 Q2031816 Q23310046 Q474062 Q474061 Q474065 Q474064 Q16969611 Q20113530 Q20113780 Q8383824 Q15804140 Q18035957 Q2449917 Q1147391 Q3589926 Q26834213 Q19429124 Q6686175 Q2443717 Q847701 Q2819480 Q23760248 Q15392346 Q2741360 Q26834294 Q18085498 Q20311917 Q1635382 Q949399 Q20113939 Q26834198 Q18704184 Q26834212 Q20113930 Q20113933 Q20853625 Q20113934 Q1147387 Q19839718 Q23887753 Q17739047 Q23681177 Q6827387 Q20113943 Q600149 Q18389549 Q19259202 Q1972056 Q14736182 Q25931562 Q16969843 Q15878959 Q15878958 Q19860698 Q5644342 Q19860697 Q18345717 Q23664320 Q2124328 Q20113921 Q26835516 Q26835515 Q20113753 Q20113752 Q18124662 Q20113754 Q20113757 Q20113756 Q20113758 Q23760234 Q7912568 Q1483470 Q2049524 Q16969991 Q474059 Q12877666 Q23630796 Q23760224 Q7912570 Q3365302 Q19602310 Q15873809 Q18128560 Q18072494 Q2870067 Q18019938 Q922432 Q20113917 Q20113914 Q18072456 Q22348620 Q1871129 Q19969349 Q23760427 Q19969341 Q19969347 Q7101188 Q19336080 Q18343671 Q20113771 Q2289058 Q19880833 Q535408 Q20113770 Q23760601 Q19969354 Q18127493 Q26835630 Q17512706 Q18085739 Q19839426 Q20113901 Q912247 Q18072482 Q20113919 Q23722770 Q23760624 Q19969351 Q23760518 Q20113776 Q18126230 Q20113773 Q19969359 Q20631356 Q18124522 Q15790723 Q19969350 Q20113915 Q19969352 Q20113778
(c(Q12973014),P361,c(Q476300)|c(Q12973014))
action count
action less
action union
action find_tuple_counts
relation P361
type Q12973014
type Q476300
action find_tuple_counts
relation P361
type Q12973014
type Q12973014
action count
action filter_multi_types
action find
entity Q23891101
relation P361
type Q476300
type Q12973014
[ANSWER]
[{'concept': 'Q12973014'}, 'P361', [{'concept': 'Q476300'}, {'concept': 'Q12973014'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?y ) WHERE { { ?z property:P361 ?s . ?z rdf:type ontology:Q12973014 . ?s rdf:type ontology:Q12973014 } UNION { ?z property:P361 ?s . ?z rdf:type ontology:Q12973014 . ?s rdf:type ontology:Q476300 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Q23891101 property:P361 ?u . { { ?u rdf:type ontology:Q476300 } UNION { ?u rdf:type ontology:Q12973014 } } } } . FILTER ( ?y < ?c ) }
Cheng-Tung-Panciatici Tajikistan at the 2016 Summer Paralympics Mozambique at the 2016 Summer Olympics Netherlands at the 2016 Summer Olympics Turkmenistan at the 2016 Summer Olympics Uzbekistan at the 2016 Summer Paralympics Vietnam at the 2016 Summer Olympics Florida Gators women's lacrosse Amore & Vita 2012 Rwanda at the 2016 Summer Olympics HK Partizan Virgin Islands at the 2016 Summer Olympics Grasshopper Club Zürich Connecticut Huskies football Guatemala at the 2016 Summer Olympics Germany at the 2016 Summer Olympics 2007 Rietumu Bank Cambodia at the 2016 Summer Olympics Russia at the 2016 Summer Olympics Wanty-Groupe Gobert 2015 RK Mornar Bar Ethnikos Piraeus Water Polo Club CCN 2014 Honduras at the 2016 Summer Olympics CCN 2013 Vanuatu at the 2016 Summer Olympics Austria at the 2016 Summer Olympics Venezuela at the 2016 Summer Olympics Color Code-Biowanze 2013 China at the 2016 Summer Olympics Diana-Colnago-Animex 1990 Tonga at the 2016 Summer Paralympics Roompot Oranje Peloton 2015 Malaysia at the 2016 Summer Olympics Planet Energy/2009 Senegal at the 2016 Summer Paralympics Papua New Guinea at the 2016 Summer Paralympics PBC CSKA Moscow Vietnam at the 2016 Summer Paralympics Cyprus at the 2016 Summer Paralympics Norway at the 2016 Summer Olympics New Zealand at the 2016 Summer Olympics Nicaragua at the 2016 Summer Olympics Niger at the 2016 Summer Olympics FC Lausanne-Sport squad Uganda at the 2016 Summer Paralympics Panaria-Vinavil 1996 Idemasport-Biowanze 2012 Cook Islands at the 2016 Summer Olympics Mat Ceresit CCC 2000 Thailand at the 2016 Summer Olympics Brazil at the 2016 Summer Olympics Sri Lanka at the 2016 Summer Olympics North Korea at the 2016 Summer Olympics France at the 2016 Summer Olympics Senshu University football team Lampre-Colnago-Sopran 1991 Singapore at the 2016 Summer Olympics Mumbai Indians Iran at the 2016 Summer Olympics CCC Mat Ceresit 2001 Costa Rica at the 2016 Summer Olympics Central African Republic at the 2016 Summer Olympics Mauritius at the 2016 Summer Olympics Philippines at the 2016 Summer Olympics Oman at the 2016 Summer Olympics UC Irvine Anteaters men's basketball Boston THC UC Irvine Anteaters baseball Loughborough MCC University Palau at the 2016 Summer Olympics Madeinox/2007 ZMC Amicitia Zürich San Marino at the 2016 Summer Olympics Lampre-Polti 1993 Catalonia national basketball team Namibia at the 2016 Summer Olympics Ireland at the 2016 Summer Olympics Switzerland at the 2016 Summer Paralympics Novo Nordisk 2013 Israel at the 2016 Summer Olympics Long Beach State 49ers women's basketball Sudan at the 2016 Summer Olympics Australia women's national wheelchair basketball team at the 2012 Summer Paralympics Lesotho at the 2016 Summer Olympics Jordan at the 2016 Summer Olympics Arbo-KTM-Junkers/2008 Kenya at the 2016 Summer Olympics Uganda at the 2016 Summer Olympics Morocco at the 2016 Summer Olympics Tajikistan at the 2016 Summer Olympics Atlético Madrid BM Black Inc 2016 Eritrea at the 2016 Summer Olympics Gabon at the 2016 Summer Olympics High Point Panthers men's basketball Italy at the 2016 Summer Olympics SønderjyskE Håndbold Menezes-Lapierre-Richelmi SønderjyskE Ishockey Refugee Olympic Athletes at the 2016 Summer Olympics Amore & Vita-McDonald's 2008 Amore & Vita-McDonald's 2007 Amore & Vita 2011 Amore & Vita-McDonald's 2009 Michigan Wolverines baseball Cayman Islands at the 2016 Summer Olympics Lebanon at the 2016 Summer Olympics Aris Thessaloniki B.C. Jo Piels 2012 United States at the 2016 Summer Olympics Tranås AIF Hockey Jo Piels 2010 Catalonia national rugby league team Tanzania at the 2016 Summer Paralympics 2014–15 Utah Utes women's basketball team Loughborough Students RUFC KK Mornar Bar Olympiacos B.C. ASUL Vaulx-en-Velin USMA-West Point Black Jo Piels 2013 Tecos de la Universidad Autónoma de Guadalajara/2007 Panama at the 2016 Summer Paralympics Mexico at the 2016 Summer Olympics 2008 AA-Drink Cycling Team season Legia Warszawa Legia Warsaw Tanzania at the 2016 Summer Olympics Seychelles at the 2016 Summer Paralympics Karlsruher SC II Sierra Leone at the 2016 Summer Paralympics Suriname at the 2016 Summer Olympics Syria at the 2016 Summer Olympics Valenciennes FC squad São Tomé and Príncipe at the 2016 Summer Olympics Jo Piels 2011 Mongolia at the 2016 Summer Olympics Abu Dhabi-Proton Racing Great Britain at the 2016 Summer Olympics Signatech #36 Miami RedHawks men's basketball Tonga at the 2016 Summer Olympics FC Bayern Munich El Salvador at the 2016 Summer Olympics Amore & Vita 2013 Egypt at the 1956 Summer Olympics FC Bayern Munich squad Independent Olympic Athletes at the 2016 Summer Olympics Long Beach State 49ers men's basketball MTN Cycling Team/2009 MTN/2008 Burundi at the 2016 Summer Olympics Hamburger SV II Botswana at the 2016 Summer Olympics 2011 AA Drink-leontien.nl season Dempsey-Proton Racing RK Partizan Seychelles at the 2016 Summer Olympics Syria at the 2016 Summer Paralympics Samoa at the 2016 Summer Paralympics Grenada at the 2016 Summer Olympics Ghana at the 2016 Summer Olympics Estonia at the 2016 Summer Olympics Guam at the 2016 Summer Olympics Guyana at the 2016 Summer Olympics Guinea-Bissau at the 2016 Summer Olympics Haiti at the 2016 Summer Olympics New York City THC 1 Valparaiso Crusaders baseball Panellinios B.C. Panionios B.C. UNLV Rebels Amore & Vita-Conad 2010 G.S. Iraklis Thessaloniki (women's basketball) Augustana Vikings men's basketball New York Athletic Club Valparaiso Crusaders men's basketball Paris Université Club Ethiopia at the 2016 Summer Olympics 2013 Ceramica Flaminia-Fondriest Switzerland at the 2016 Summer Olympics Denmark at the 2016 Summer Olympics Lampre-Colnago-Animex 1992 Spain at the 2016 Summer Olympics Olympiacos Water Polo Club Samoa at the 2016 Summer Olympics Saint Lucia at the 2016 Summer Olympics Belarus at the 2016 Summer Olympics Mercyhurst Lakers ice hockey Lampre-Panaria 1995 Myanmar at the 2016 Summer Olympics New York City THC 2 Moldova at the 2016 Summer Olympics Saudi Arabia at the 2016 Summer Olympics Oregon Ducks men's basketball RusVelo 2015 Melli Haffari Ahvaz Basketball Club Cape Verde at the 2016 Summer Olympics Lampre-Panaria 1994 Arizona State Sun Devils men's ice hockey Fiamme Oro Rugby Cameroon at the 2016 Summer Olympics D.C. Diplomats THC Panama at the 2016 Summer Olympics SSV Jahn Regensburg II Trinidad and Tobago at the 2016 Summer Paralympics 2012 AA Drink-leontien.nl season India at the 2016 Summer Olympics Peru at the 2016 Summer Olympics Papua New Guinea at the 2016 Summer Olympics KK Partizan Croatia at the 2016 Summer Olympics Senegal at the 2016 Summer Olympics JRM Racing D.C. Silencers THC Saint Kitts and Nevis at the 2016 Summer Olympics USMA-West Point Gold Congo at the 2016 Summer Olympics Japan at the 2016 Summer Olympics Kyrgyzstan at the 2016 Summer Olympics Zambia at the 2016 Summer Olympics SC Freiburg II Egypt at the 2016 Summer Olympics CCN 2012 Trinidad and Tobago at the 2016 Summer Olympics Saint Vincent and the Grenadines at the 2016 Summer Olympics Puerto Rico at the 2016 Summer Olympics Kuwait at the 2016 Summer Olympics
229
action count
action less
action union
action find_tuple_counts
relation part of
type sports team
type competition
action find_tuple_counts
relation part of
type sports team
type sports team
action count
action filter_multi_types
action find
entity Albuquerque-Senna-González
relation part of
type competition
type sports team
[{'concept': 'sports team'}, 'part of', [{'concept': 'competition'}, {'concept': 'sports team'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?s ) AS ?y ) WHERE { { ?z property:part_of ?s . ?z rdf:type ontology:sports_team . ?s rdf:type ontology:sports_team } UNION { ?z property:part_of ?s . ?z rdf:type ontology:sports_team . ?s rdf:type ontology:competition } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { resource:Albuquerque-Senna-González property:part_of ?u . { { ?u rdf:type ontology:competition } UNION { ?u rdf:type ontology:sports_team } } } } . FILTER ( ?y < ?c ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1425170
P466
Q811979
USER
Which architectural structures are inhabited by HC Sparta Praha ?
(c(Q811979),P466,Q1425170)
action filter_type
action find_reverse
entity Q1425170
relation P466
type Q811979
[{'concept': 'Q811979'}, 'P466', 'Q1425170']
SELECT DISTINCT ?s WHERE { ?s property:P466 resource:Q1425170 . ?s rdf:type ontology:Q811979 }
HC Sparta Praha
action filter_type
action find_reverse
entity HC Sparta Praha
relation occupant
type architectural structure
[{'concept': 'architectural structure'}, 'occupant', 'HC Sparta Praha']
SELECT DISTINCT ?s WHERE { ?s property:occupant resource:HC_Sparta_Praha . ?s rdf:type ontology:architectural_structure }
[]
architectural structure
Q692207 Q2000294
SYSTEM
O₂ arena, Tipsport Arena
Q692207 Q2000294
(c(Q811979),P466,Q1425170)
action filter_type
action find_reverse
entity Q1425170
relation P466
type Q811979
[ANSWERS] are inhabited by HC Sparta Praha
[{'concept': 'Q811979'}, 'P466', 'Q1425170']
SELECT DISTINCT ?s WHERE { ?s property:P466 resource:Q1425170 . ?s rdf:type ontology:Q811979 }
O₂ arena Tipsport Arena
O₂ arena and Tipsport Arena are inhabited by HC Sparta Praha
O₂ arena Tipsport Arena
action filter_type
action find_reverse
entity HC Sparta Praha
relation occupant
type architectural structure
[{'concept': 'architectural structure'}, 'occupant', 'HC Sparta Praha']
SELECT DISTINCT ?s WHERE { ?s property:occupant resource:HC_Sparta_Praha . ?s rdf:type ontology:architectural_structure }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1425170
P641
Q349
USER
What did that sports team participate in ?
(Q692207,P641,c(Q349)) (Q2000294,P641,c(Q349))
action filter_type
action find
entity Q1425170
relation P641
type Q349
['Q692207', 'P641', {'concept': 'Q349'}] ['Q2000294', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q1425170 property:P641 ?y . ?y rdf:type ontology:Q349 }
HC Sparta Praha
action filter_type
action find
entity HC Sparta Praha
relation sport
type sport
['O₂ arena', 'sport', {'concept': 'sport'}] ['Tipsport Arena', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:HC_Sparta_Praha property:sport ?y . ?y rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q692207,P641,c(Q349)) (Q2000294,P641,c(Q349))
action filter_type
action find
entity Q1425170
relation P641
type Q349
That sports team participated in [ANSWER]
['Q692207', 'P641', {'concept': 'Q349'}] ['Q2000294', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?y WHERE { resource:Q1425170 property:P641 ?y . ?y rdf:type ontology:Q349 }
ice hockey
That sports team participated in ice hockey
ice hockey
action filter_type
action find
entity HC Sparta Praha
relation sport
type sport
['O₂ arena', 'sport', {'concept': 'sport'}] ['Tipsport Arena', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?y WHERE { resource:HC_Sparta_Praha property:sport ?y . ?y rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q41466
P2416
Q502895
USER
Who were a contestant in that sport ?
(c(Q502895),P2416,Q41466)
action filter_type
action find_reverse
entity Q41466
relation P2416
type Q502895
[{'concept': 'Q502895'}, 'P2416', 'Q41466']
SELECT DISTINCT ?u WHERE { ?u property:P2416 resource:Q41466 . ?u rdf:type ontology:Q502895 }
ice hockey
action filter_type
action find_reverse
entity ice hockey
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'ice hockey']
SELECT DISTINCT ?u WHERE { ?u property:sports_discipline_competed_in resource:ice_hockey . ?u rdf:type ontology:common_name }
[]
common name
Q23134294 Q4319660
SYSTEM
Willy Bertschinger, Leonid Trukhno
Q23134294 Q4319660
(c(Q502895),P2416,Q41466)
action filter_type
action find_reverse
entity Q41466
relation P2416
type Q502895
[ANSWERS] were a contestant in that sport
[{'concept': 'Q502895'}, 'P2416', 'Q41466']
SELECT DISTINCT ?u WHERE { ?u property:P2416 resource:Q41466 . ?u rdf:type ontology:Q502895 }
Willy Bertschinger Leonid Trukhno
Willy Bertschinger and Leonid Trukhno were a contestant in that sport
Willy Bertschinger Leonid Trukhno
action filter_type
action find_reverse
entity ice hockey
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'ice hockey']
SELECT DISTINCT ?u WHERE { ?u property:sports_discipline_competed_in resource:ice_hockey . ?u rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q656366 Q4319660
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Leonid Trukhno or are Pęczerzyno situated in ?
OR((Q4319660,P27,c(Q15617994)), (Q656366,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4319660
relation P27
action find
entity Q656366
relation P17
type Q15617994
{'OR': [['Q4319660', 'P27', {'concept': 'Q15617994'}], ['Q656366', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q4319660 property:P27 ?g } UNION { resource:Q656366 property:P17 ?g } } . ?g rdf:type ontology:Q15617994 }
Pęczerzyno Leonid Trukhno
action filter_type
action union
action find
entity Leonid Trukhno
relation country of citizenship
action find
entity Pęczerzyno
relation country
type designation for an administrative territorial entity
{'OR': [['Leonid Trukhno', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pęczerzyno', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Leonid_Trukhno property:country_of_citizenship ?g } UNION { resource:Pęczerzyno property:country ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q36
SYSTEM
Russia, Poland
Q159 Q36
OR((Q4319660,P27,c(Q15617994)), (Q656366,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4319660
relation P27
action find
entity Q656366
relation P17
type Q15617994
[ANSWERS] are the native countriesof Leonid Trukhno or are Pęczerzyno situated in
{'OR': [['Q4319660', 'P27', {'concept': 'Q15617994'}], ['Q656366', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q4319660 property:P27 ?g } UNION { resource:Q656366 property:P17 ?g } } . ?g rdf:type ontology:Q15617994 }
Russia Poland
Russia and Poland are the native countriesof Leonid Trukhno or are Pęczerzyno situated in
Russia Poland
action filter_type
action union
action find
entity Leonid Trukhno
relation country of citizenship
action find
entity Pęczerzyno
relation country
type designation for an administrative territorial entity
{'OR': [['Leonid Trukhno', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pęczerzyno', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Leonid_Trukhno property:country_of_citizenship ?g } UNION { resource:Pęczerzyno property:country ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q16
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with greater number of administrative territories than Canada ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?c ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Q16 property:P530 ?f . ?f rdf:type ontology:Q1048835 } } . FILTER ( ?c > ?p ) }
Canada
action greater
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 Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?c ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Canada property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity } } . FILTER ( ?c > ?p ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWERS] hold diplomatic relationship with greater number of administrative territories than Canada
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?c ) WHERE { ?q property:P530 ?a . ?q rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Q16 property:P530 ?f . ?f rdf:type ontology:Q1048835 } } . FILTER ( ?c > ?p ) }
Germany Australia
Germany and Australia hold diplomatic relationship with greater number of administrative territories than Canada
Germany Australia
action greater
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 Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?c ) WHERE { ?q property:diplomatic_relation ?a . ?q rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Canada property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity } } . FILTER ( ?c > ?p ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1000
P530
Q1048835 Q15617994
USER
And what about Gabon?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?z ) WHERE { ?b property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Q1000 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?i ) }
Gabon
action greater
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 Gabon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?z ) WHERE { ?b property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Gabon property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?i ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?z ) WHERE { ?b property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Q1000 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?i ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
Germany Australia Denmark
action greater
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 Gabon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?z ) WHERE { ?b property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { resource:Gabon property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?i ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with atleast 78 political territories and administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
value 78
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?n >= 78 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?k WHERE { VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?m rdf:type ?a } GROUP BY ?k } }
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 78
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?n >= 78 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?k WHERE { VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?m rdf:type ?a } GROUP BY ?k } }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action atleast
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
value 78
[ANSWERS] have diplomatic relationships with atleast 78 political territories and administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?n >= 78 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?k WHERE { VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?m rdf:type ?a } GROUP BY ?k } }
Germany Australia
Germany and Australia have diplomatic relationships with atleast 78 political territories and administrative territories
Germany Australia
action atleast
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 78
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?n >= 78 ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) ?k WHERE { VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?m rdf:type ?a } GROUP BY ?k } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q159
P530
Q15617994
USER
How many administrative territories have diplomatic relationships with Russia ?
(Q159,P530,c(Q15617994))
action count
action filter_type
action find
entity Q159
relation P530
type Q15617994
['Q159', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Q159 property:P530 ?r . ?r rdf:type ontology:Q15617994 }
Russia
action count
action filter_type
action find
entity Russia
relation diplomatic relation
type designation for an administrative territorial entity
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Russia property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
19
Q805 Q801 Q241 Q668 Q414 Q142 Q148 Q17 Q30 Q79 Q38 Q711 Q717 Q1011 Q403 Q43 Q155 Q953 Q881
(Q159,P530,c(Q15617994))
action count
action filter_type
action find
entity Q159
relation P530
type Q15617994
[ANSWER]
['Q159', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Q159 property:P530 ?r . ?r rdf:type ontology:Q15617994 }
Yemen Israel Cuba India Argentina France People's Republic of China Japan United States of America Egypt Italy Mongolia Venezuela Cape Verde Serbia Turkey Brazil Zambia Vietnam
19
action count
action filter_type
action find
entity Russia
relation diplomatic relation
type designation for an administrative territorial entity
['Russia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Russia property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q230
P530
Q15617994
USER
And how about Georgia?
(Q230,P530,c(Q15617994))
action count
action filter_type
action find
entity Q230
relation P530
type Q15617994
['Q230', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Q230 property:P530 ?m . ?m rdf:type ontology:Q15617994 }
Georgia
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Georgia property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
80
Q805 Q801 Q800 Q668 Q414 Q145 Q262 Q784 Q786 Q710 Q252 Q399 Q398 Q43 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q986 Q822 Q241 Q424 Q921 Q31 Q30 Q37 Q38 Q739 Q423 Q983 Q851 Q734 Q1011 Q736 Q27 Q29 Q819 Q189 Q184 Q32 Q347 Q227 Q225 Q222 Q229 Q228 Q17 Q902 Q1008 Q191 Q965 Q967 Q963 Q115 Q114 Q117 Q750 Q211 Q219 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q970 Q686 Q874 Q79 Q878 Q774 Q810 Q1016 Q1013 Q953
(Q230,P530,c(Q15617994))
action count
action filter_type
action find
entity Q230
relation P530
type Q15617994
[ANSWER]
['Q230', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Q230 property:P530 ?m . ?m rdf:type ontology:Q15617994 }
Yemen Israel Costa Rica India Argentina United Kingdom Algeria Dominica Dominican Republic Kiribati Indonesia Armenia Bahrain Turkey Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Eritrea Lebanon Cuba Cambodia Brunei Belgium United States of America Lithuania Italy Colombia North Korea Equatorial Guinea Saudi Arabia Guyana Cape Verde Ecuador Ireland Spain Laos Iceland Belarus Luxembourg Liechtenstein Azerbaijan Bosnia and Herzegovina Albania Cyprus Andorra Japan Bangladesh Côte d'Ivoire Estonia Burkina Faso Burundi Botswana Ethiopia Kenya Ghana Bolivia Latvia Bulgaria Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Comoros Vanuatu Turkmenistan Egypt United Arab Emirates Guatemala Jordan Libya Lesotho Zambia
80
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { resource:Georgia property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q30
Q15617994
USER
And what about United States of America?
(Q30,P530,c(Q15617994))
action count
action filter_type
action find
entity Q30
relation P530
type Q15617994
['Q30', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Q30 property:P530 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
action count
action filter_type
action find
entity United States of America
relation diplomatic relation
type designation for an administrative territorial entity
['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:United_States_of_America property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
17
(Q30,P530,c(Q15617994))
action count
action filter_type
action find
entity Q30
relation P530
type Q15617994
[ANSWER]
['Q30', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:Q30 property:P530 ?j . ?j rdf:type ontology:Q15617994 }
17
action count
action filter_type
action find
entity United States of America
relation diplomatic relation
type designation for an administrative territorial entity
['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { resource:United_States_of_America property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q956 Q3575014
P19 P190
Q515
USER
Which cities are the birthplace of Zdeněk Bahenský or are partner towns of Beijing ?
OR((Q3575014,P19,c(Q515)), (Q956,P190,c(Q515)))
action filter_type
action union
action find
entity Q3575014
relation P19
action find
entity Q956
relation P190
type Q515
{'OR': [['Q3575014', 'P19', {'concept': 'Q515'}], ['Q956', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q3575014 property:P19 ?d } UNION { resource:Q956 property:P190 ?d } } . ?d rdf:type ontology:Q515 }
Beijing Zdeněk Bahenský
action filter_type
action union
action find
entity Zdeněk Bahenský
relation place of birth
action find
entity Beijing
relation sister city
type city
{'OR': [['Zdeněk Bahenský', 'place of birth', {'concept': 'city'}], ['Beijing', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Zdeněk_Bahenský property:place_of_birth ?d } UNION { resource:Beijing property:sister_city ?d } } . ?d rdf:type ontology:city }
[]
city
Q1858 Q146363 Q1761 Q9005 Q1773 Q3616 Q8684 Q2887 Q23661 Q1461
SYSTEM
Some of them are Hanoi, Most, Dublin, Brussels, Riga, Tehran, Seoul, Santiago, Wellington, Manila
Q3624 Q23661 Q8684 Q2887 Q3616 Q1362 Q1858 Q19660 Q1461 Q1899 Q1486 Q146363 Q19689 Q1773 Q1761 Q9005
OR((Q3575014,P19,c(Q515)), (Q956,P190,c(Q515)))
action filter_type
action union
action find
entity Q3575014
relation P19
action find
entity Q956
relation P190
type Q515
[ANSWERS] are the birthplace of Zdeněk Bahenský or are partner towns of Beijing
{'OR': [['Q3575014', 'P19', {'concept': 'Q515'}], ['Q956', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q3575014 property:P19 ?d } UNION { resource:Q956 property:P190 ?d } } . ?d rdf:type ontology:Q515 }
Addis Ababa Wellington Seoul Santiago Tehran Islamabad Hanoi Bucharest Manila Kyiv Buenos Aires Most Tirana Riga Dublin Brussels
Hanoi, Most, Dublin, Brussels, Riga, Tehran, Seoul, Santiago, Wellington and Manila are the birthplace of Zdeněk Bahenský or are partner towns of Beijing
Hanoi Most Dublin Brussels Riga Tehran Seoul Santiago Wellington Manila
action filter_type
action union
action find
entity Zdeněk Bahenský
relation place of birth
action find
entity Beijing
relation sister city
type city
{'OR': [['Zdeněk Bahenský', 'place of birth', {'concept': 'city'}], ['Beijing', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Zdeněk_Bahenský property:place_of_birth ?d } UNION { resource:Beijing property:sister_city ?d } } . ?d rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q515 Q1048835 Q15617994
USER
Which cities are the sister cities of min number of political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P190,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q515
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) ?k WHERE { VALUES ( ?o ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?s rdf:type ?o } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?e WHERE { { ?i property:P190 ?e . ?e rdf:type ontology:Q515 . ?i rdf:type ontology:Q15617994 } UNION { ?i property:P190 ?e . ?e rdf:type ontology:Q515 . ?i rdf:type ontology:Q1048835 } } GROUP BY ?e } . FILTER ( ?n = ?f ) }
action argmin
action union
action find_reverse_tuple_counts
relation sister city
type city
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) ?k WHERE { VALUES ( ?o ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?s rdf:type ?o } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?e WHERE { { ?i property:sister_city ?e . ?e rdf:type ontology:city . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:sister_city ?e . ?e rdf:type ontology:city . ?i rdf:type ontology:political_territorial_entity } } GROUP BY ?e } . FILTER ( ?n = ?f ) }
[]
city political territorial entity designation for an administrative territorial entity
Q1773 Q23482 Q14960
SYSTEM
Riga, Marseille, Brno
Q386691 Q23430 Q373542 Q39738 Q3572 Q10127 Q823988 Q1017045 Q843006 Q847602 Q830404 Q235746 Q222242 Q362865 Q197379 Q34412 Q849434 Q703158 Q72877 Q205914 Q158239 Q11736 Q83786 Q944051 Q696694 Q1000060 Q460835 Q278877 Q533157 Q217432 Q827041 Q819639 Q385375 Q304848 Q25282 Q10395 Q10397 Q664895 Q858008 Q496667 Q1000467 Q837968 Q27860 Q571808 Q837960 Q3624 Q209785 Q360326 Q612815 Q58273 Q1407742 Q43199 Q1015011 Q695892 Q191120 Q383850 Q58650 Q755686 Q770187 Q392692 Q823874 Q850344 Q205607 Q320943 Q734416 Q193050 Q679428 Q985465 Q217646 Q846335 Q14499 Q873835 Q7473516 Q71266 Q15720 Q1321460 Q1001647 Q638312 Q502196 Q360069 Q602042 Q5779 Q1009095 Q8247 Q425996 Q59100 Q430864 Q1645575 Q501891 Q349983 Q57818 Q349982 Q653372 Q653478 Q911517 Q38968 Q59205 Q843035 Q246723 Q75978 Q198240 Q773312 Q696388 Q373346 Q363166 Q193719 Q935846 Q2973 Q1623 Q147738 Q835227 Q1629 Q43196 Q74957 Q404529 Q653446 Q851001 Q127026 Q912224 Q210493 Q2887 Q3926 Q851419 Q1008686 Q834567 Q714636 Q740800 Q384796 Q23482 Q5690 Q505208 Q1000336 Q937008 Q605256 Q374477 Q860674 Q5838 Q181276 Q819664 Q16520 Q220445 Q3692 Q847546 Q756593 Q368429 Q8131 Q857202 Q192271 Q235004 Q325736 Q92297 Q375651 Q69060 Q71227 Q1632616 Q1019339 Q571033 Q132997 Q120103 Q389515 Q278017 Q216077 Q604625 Q221283 Q461020 Q207408 Q155975 Q569639 Q958157 Q507846 Q3846983 Q503411 Q375097 Q59144 Q386677 Q12062 Q72818 Q630358 Q178878 Q203027 Q2966 Q1482 Q625154 Q179608 Q1467 Q842984 Q817965 Q843018 Q425492 Q68534 Q526335 Q737830 Q5540 Q200500 Q496072 Q645014 Q12245 Q427367 Q107401 Q791458 Q1019335 Q423371 Q16959 Q386635 Q317827 Q1844 Q837154 Q10389 Q650015 Q819629 Q1013843 Q385461 Q291745 Q583620 Q1008983 Q324293 Q986070 Q946893 Q515573 Q8854 Q1362 Q319804 Q838669 Q736276 Q182378 Q858369 Q847577 Q235 Q15379 Q855513 Q104587 Q1019970 Q58401 Q593157 Q161176 Q1725 Q404873 Q683165 Q167668 Q1519 Q8684 Q3838 Q851021 Q459787 Q386026 Q846345 Q837157 Q149097 Q393426 Q316841 Q6602 Q276132 Q517407 Q126995 Q817141 Q753864 Q3866 Q570884 Q325164 Q373101 Q137271 Q158435 Q1008595 Q740810 Q502988 Q193724 Q7003 Q734532 Q911667 Q820760 Q987496 Q7568 Q622594 Q404429 Q978446 Q329775 Q784229 Q657642 Q843028 Q2900 Q76001 Q589880 Q596486 Q851037 Q56759 Q3861 Q1410 Q71108 Q749283 Q642006 Q26837 Q57931 Q426130 Q7786 Q651742 Q606212 Q1852528 Q3919 Q19660 Q496431 Q242108 Q207881 Q3915 Q937688 Q453502 Q75110 Q58324 Q31238 Q42666 Q860669 Q533078 Q58570 Q151958 Q1711 Q487439 Q665097 Q162880 Q174461 Q68614 Q1017806 Q857234 Q17182 Q124375 Q496681 Q3806 Q653402 Q514796 Q416544 Q633983 Q75203 Q57756 Q320939 Q851007 Q335427 Q177149 Q1471150 Q495821 Q208471 Q495802 Q14960 Q495809 Q116417 Q104036 Q368929 Q693237 Q252325 Q250733 Q592497 Q2773 Q781435 Q221214 Q722732 Q740915 Q71284 Q205922 Q840595 Q877266 Q840591 Q632146 Q645567 Q384926 Q647508 Q270806 Q34261 Q198266 Q349976 Q279642 Q756581 Q373564 Q71355 Q643929 Q1473 Q841129 Q1773 Q679249 Q843021 Q954611 Q57970 Q3955 Q6343 Q875070 Q2079 Q933480 Q6829 Q851042 Q844130 Q1575979 Q752838 Q426237 Q850395 Q92324 Q854977 Q1858 Q325555 Q496499 Q252061 Q819613 Q1854 Q166829 Q890122 Q394108 Q497341 Q1013914 Q14169 Q7070 Q655417 Q930396 Q271000 Q58210 Q182852 Q111739 Q16506 Q68481 Q549427 Q335506 Q694370 Q55597 Q374511 Q4174 Q847565 Q377929 Q267708 Q317844 Q1822 Q200077 Q47916 Q846338 Q389495 Q1508 Q385623 Q29003 Q853623 Q3126 Q846351 Q739304 Q1729076 Q75230 Q1430746 Q594275 Q499493 Q372791 Q237683 Q463171 Q246634 Q369628 Q857293 Q1019360 Q5753 Q750587 Q1013850 Q692745 Q158420 Q999916 Q211243 Q210661 Q532560 Q210667 Q911674 Q58178 Q736897 Q185684 Q496080 Q656603 Q217698 Q118213 Q187861 Q207311 Q695911 Q695917 Q7027 Q376233 Q206872 Q390796 Q271917 Q719 Q1720 Q83247 Q851029 Q1645 Q390798 Q3904 Q790370 Q572231 Q7033 Q215755 Q3826 Q2907 Q149108 Q843014 Q591823 Q149105 Q11725 Q1789604 Q349973 Q3768 Q732300 Q789510 Q265555 Q1865 Q2209 Q727143 Q146363 Q532981 Q863739 Q2207 Q1756960 Q2203 Q851056 Q851114 Q180470 Q210365 Q696407 Q76010 Q387211 Q17176 Q349985 Q633996 Q517783 Q571918 Q72778 Q360235 Q1355 Q498060 Q183584 Q3859 Q187136 Q5869 Q144663 Q570427 Q59227 Q1018857 Q75379 Q839796 Q637913 Q75091 Q427769 Q634022 Q837170 Q789261 Q189823 Q496837 Q855086 Q55740 Q226000 Q3075 Q845857 Q825166 Q320798 Q855082 Q59223 Q187821 Q502205 Q203344 Q230843 Q20921 Q319729 Q4175 Q460812 Q189761 Q390156 Q1761 Q373687 Q2795 Q386250 Q378225 Q57866 Q329790 Q263757 Q329797 Q488134 Q2061 Q207222 Q5217 Q890949 Q416669 Q1017247 Q386988 Q854965 Q269634 Q601254 Q161060 Q604385 Q679224 Q158523 Q168648 Q843031 Q843043 Q2833 Q36063 Q3935 Q924085 Q3936 Q146033 Q726993 Q3751 Q3750 Q3616 Q59213 Q3612 Q844852 Q518360 Q171943 Q651322 Q17189 Q386661 Q847557 Q166183 Q158245 Q25475 Q518203 Q523956 Q169064 Q4060 Q652710 Q646766 Q71339 Q1013909 Q950352 Q1530 Q1889017 Q207309 Q66485 Q649214 Q58422 Q40626 Q187812 Q877935 Q954808 Q209983 Q432055 Q240891 Q240489 Q320964 Q23768 Q58584 Q2427155 Q696783 Q170525 Q885482 Q30340 Q92277 Q392429 Q1019371 Q243293 Q59132 Q303478 Q263837 Q275904 Q3852 Q911567 Q1641781 Q104125 Q247387 Q2999 Q16666
(c(Q1048835)|c(Q15617994),P190,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q515
type Q15617994
[ANSWERS] are the sister cities of min number of political territories or administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) ?k WHERE { VALUES ( ?o ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?s rdf:type ?o } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?e WHERE { { ?i property:P190 ?e . ?e rdf:type ontology:Q515 . ?i rdf:type ontology:Q15617994 } UNION { ?i property:P190 ?e . ?e rdf:type ontology:Q515 . ?i rdf:type ontology:Q1048835 } } GROUP BY ?e } . FILTER ( ?n = ?f ) }
Niiza City Ulaanbaatar Szigetvár Laoag Tunis Tangerang Kakegawa Protivín Nagykálló Nishinoomote Hajdúszoboszló Kesennuma Kisköre Pingxiang Zhangjiajie Foshan Fuefuki Velké Meziříčí Datong Lijiang Kroměříž Tianjin Shimla Horní Jiřetín Onomichi Humpolec Marugame Český Těšín Tianshui Port Harcourt Beroun Gero Ōmachi Daqing Danang Cirebon Sukabumi Uherský Brod Murayama Muroran Hostinné Băile Tușnad Jayapura Guigang Năvodari Addis Ababa Ichikawa Tongling Garachico Taizhou Horní Bříza Omaha Milevsko Nanao Jēkabpils Litovel Zhangjiakou Nyírbátor Kaminoyama Šumperk Toda Sakado Zirc Matsudo Tsuruoka Érd Tălmaciu Rakovník Mudanjiang Kahoku Samarinda Tomioka Tokyo Yichang Satsumasendai Králíky Budyně nad Ohří Toride Tenri Bengbu Baktalórántháza Banda Aceh Otrokovice Biratnagar Deyang Shantou Nymburk Kostelec nad Orlicí Tahara Heihe Huai'an Hegang Higashihiroshima Mishima Létavértes Liuzhou Heyuan Celldömölk Záhony Calamba Zhumadian Třeboň Toyooka Linyi Ganzhou Cheb Vlăhița Darmstadt Valenzuela Saint Helier Ineu Zamboanga City Cincinnati Anshan Xuchang Tsuchiura Măcin Sakurai Techirghiol Yantai Santiago Pretoria Turnov Ivančice Bonyhád Miyakojima Paks Ōda Marseille Sparta Ouarzazate Tandil Tótkomlós Shimada Ashikaga Tosu Kabul Szolnok Sukagawa Busan Kuching Riyadh Saiki Târgu Neamț Felsőzsolca Palembang Sanuki Guiyang Vigan Ciacova Siping Valašské Meziříčí Xining Shiyan Počátky Město Albrechtice Hulunbuir Florianópolis Kaga Kariya Tiszavasvári Jiujiang Guyuan Cape Coast Imabari Vác Kutná Hora Lahnstein Sezimovo Ústí Sebiș Șimleu Silvaniei Inuyama Tiszaújváros Zhanjiang Kusatsu, Shiga Torgau Haiphong Sedlčany Békéscsaba Tsu Heidelberg Cavite City Komárom Nanning Cebu City Harkány Ikeda Kunszentmiklós Luzhou Nanping Keszthely Mizil Penza Takehara Fujinomiya Túrkeve Stanley Guang'an Sivas Battonya Jílové u Prahy Ștei Ürümqi Hikone Hanamaki Vaduz Simeria Bandung Pannonhalma Toba Dačice Ōmihachiman Ílhavo Dévaványa Vodňany Anyang Chrudim Teiuș Hanzhong Las Piñas Islamabad Sanya Yamatotakada Cernavodă Putrajaya Tōkamachi Susono Monaco Kendari Bük Kyjov Březnice Shijiazhuang Murfatlar Fukushima Lipa Xinyang Poděbrady Liepāja Abu Dhabi Seoul Kinshasa Pâncota Iloilo City Orlová Suzu Covasna Jirkov Žatec Karlovo Strasbourg Pecica Sondershausen Weinan Benešov nad Ploučnicí Kurobe Dodoma Tongliao Kayes Rizhao Kota Kinabalu Vrbno pod Pradědem Vrchlabí Békés Takaoka Slavkov u Brna Dijon Fukaya Elek Mihara Kralupy nad Vltavou Yogyakarta Takayama Jiaozuo Trmice Kiskunhalas Szigethalom Villány Oroszlány Quito San Pablo Pucioasa Fujioka Comarnic Olongapo Doha Gibraltar Frauenstein San Juan Kurayoshi Sorong Taizhou Mianyang Pekanbaru Minamiashigara City Fremantle Třebechovice pod Orebem Gaborone Bucharest Sakaiminato Otaru Ichihara Antananarivo Strmilov Amami Dandong Zhoushan Miki Shaoxing Nichinan Baraolt Handan Yueyang Potsdam Oral Minoh Dezhou Ranchi Sanming Nové Sedlo Shōbara Parañaque Hódmezővásárhely Ebetsu Tübingen Shimoda Baoji Changde Kashiwazaki Liaoyang Lianyungang Mělník Deta Kisarazu Obihiro Fryšták Saku Kaifeng Hekinan Brno Fujimi Sátoraljaújhely Ventspils Jindřichův Hradec Chitose Hajdúdorog Wa Vălenii de Munte Braunschweig Derecske Cugir Litomyšl Fulnek Xiangyang Qiqihar Kamisu Tainai Miyoshi Enying Törökbálint Ōgaki Fujiyoshida Anjō Port-au-Prince Zhuzhou Yichun Myōkō Františkovy Lázně Liaocheng Huanggang Shūnan Davao City Iida Riga Kalocsa Tolna Jeseník Changzhou Weimar Carthage Dagupan Leipzig Luhačovice Speyer Hârlău Nagahama Vratimov Aszód Guangyuan Gōtsu Tonghua Kerekegyháza Hanoi Recaș Kazuno Valea lui Mihai Uozu Ho Chi Minh City Miercurea Nirajului Bolhrad Žirovnice Xianyang Polička Singkawang Eisenach Kenderes Nagakute Bouaké Jinhua Kunming Puerto Princesa České Budějovice Fuzhou Jánoshalma Salto Ayabe Muñoz Oyama Emden Hanyū City Hévíz Sovata Nishio Baguio Morioka Lucknow Suwa Toyokawa Makati Ōmuta, Fukuoka Jiamusi Bátaszék Erlangen Miyazu Hajdúnánás Kardašova Řečice Panjin Košťany General Santos Seto Jining Ōme Handa Zábřeh Sumoto Kamo Dobřany Samarkand Shirakawa Rýmařov Monbetsu Červený Kostelec Vysoké Mýto Yinchuan Musashino Jiayuguan City Chōfu Simontornya Jiaxing Hatsukaichi Hefei Kadoma Jičín Weifang Yamatokōriyama Wollongong Suzuka Kuji Kitakami Straubing Săcueni Ajka Orosháza Kushiro Saginaw Mainz Braga Aleșd Cagayan de Oro Szentendre Mbabane Barcs Chongzuo Nordhausen Xiangtan Muscat Sucre Jablunkov Szarvas Náchod Tanvald Chongqing Krnov Shuangyashan Yamoussoukro Gyomaendrőd Balmazújváros Kitami Kuala Lumpur Roxas Örkény Most Baiyin Kasaoka Naga Poběžovice Arica Cristuru Secuiesc Yasugi Huangshan City Beihai Hakusan Santa Rosa Kamogawa Muntinlupa Suihua Kameoka Pinamar Yulin Taiyuan Ma'anshan Bangalore Mooka Lanzhou Kigali Luoyang Lhasa Hengyang Obernkirchen Chaozhou Nový Bydžov Huludao Borsec Tōgane Benxi Kisbér Kiryū Gura Humorului Balatonboglár Haikou Lincang Sajószentpéter San Fernando Jimbolia Fürth Uwajima Izumo Mohács Csenger Zhongshan Tatabánya Nemuro Baja Zushi Daejeon Urayasu Ibbenbüren Naruto Szekszárd Petrila Dublin Binzhou Chemnitz Ōtake Hagi Yancheng Kamaishi Kadarkút Iwakuni Ontario Yellowknife Zlaté Hory Bacolod Bohumín Yiyang Podbořany Říčany Lenti Tachikawa City Dubí Přibyslav Shizuishan Hajdúböszörmény Ehingen Sopron Vasvár Sárvár Freiburg im Breisgau Vecsés Windhoek Horní Slavkov Bamberg Zamárdi Cotabato City Praia Gera Tehran Qingyuan Antofagasta Ueda Bílina Nanchang Năsăud Pasay Fujisawa Nagai Nabari Písek Batumi Iwanuma Auerbach in der Oberpfalz Sângeorgiu de Pădure Hürth Letovice Tōno Xiaogan Slaný Brtnice Baghdad Mandaue Tokushima Jaipur Csongrád Tangshan Tacloban Dunaújváros Unnan Kaplice Gyöngyös Hamada Higashiōmi Higashimurayama Yonago Las Vegas Baoding Náměšť nad Oslavou Yaizu Agadir Blovice Zhengzhou Jilin City Šternberk Studénka Sekondi-Takoradi Jiangmen Kravaře Ozamiz Flămânzi Worms Nyékládháza Vítkov Lucena Kaba Würzburg Nanjing
Riga, Marseille and Brno are the sister cities of min number of political territories or administrative territories
Riga Marseille Brno
action argmin
action union
action find_reverse_tuple_counts
relation sister city
type city
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) ?k WHERE { VALUES ( ?o ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?s rdf:type ?o } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?n ) ?e WHERE { { ?i property:sister_city ?e . ?e rdf:type ontology:city . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i property:sister_city ?e . ?e rdf:type ontology:city . ?i rdf:type ontology:political_territorial_entity } } GROUP BY ?e } . FILTER ( ?n = ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q515 Q515
USER
How many cities are twin city of exactly 7 cities ?
(c(Q515),P190,c(Q515))
action count
action equal
action find_tuple_counts
relation P190
type Q515
type Q515
value 7
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?g ) WHERE { ?m property:P190 ?j . ?m rdf:type ontology:Q515 . ?j rdf:type ontology:Q515 } GROUP BY ?m } . FILTER ( ?g = 7 ) }
action count
action equal
action find_tuple_counts
relation sister city
type city
type city
value 7
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?g ) WHERE { ?m property:sister_city ?j . ?m rdf:type ontology:city . ?j rdf:type ontology:city } GROUP BY ?m } . FILTER ( ?g = 7 ) }
[]
city city
SYSTEM
3
Q19689 Q1486 Q2887
(c(Q515),P190,c(Q515))
action count
action equal
action find_tuple_counts
relation P190
type Q515
type Q515
value 7
[ANSWER]
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?g ) WHERE { ?m property:P190 ?j . ?m rdf:type ontology:Q515 . ?j rdf:type ontology:Q515 } GROUP BY ?m } . FILTER ( ?g = 7 ) }
Tirana Buenos Aires Santiago
3
action count
action equal
action find_tuple_counts
relation sister city
type city
type city
value 7
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?j ) AS ?g ) WHERE { ?m property:sister_city ?j . ?m rdf:type ontology:city . ?j rdf:type ontology:city } GROUP BY ?m } . FILTER ( ?g = 7 ) }
[]