Simple Question (Direct)
Simple Question
Q302073
P19
Q486972
USER
Which human settlement is the birthplace of Józef Retinger ?
(Q302073,P19,c(Q486972))
action filter_type
action find
entity Q302073
relation P19
type Q486972
['Q302073', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?j WHERE { resource:Q302073 property:P19 ?j . ?j rdf:type ontology:Q486972 }
Józef Retinger
action filter_type
action find
entity Józef Retinger
relation place of birth
type human settlement
['Józef Retinger', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?j WHERE { resource:Józef_Retinger property:place_of_birth ?j . ?j rdf:type ontology:human_settlement }
[]
human settlement
Q31487
SYSTEM
Kraków
Q31487
(Q302073,P19,c(Q486972))
action filter_type
action find
entity Q302073
relation P19
type Q486972
[ANSWER] is the birthplace of Józef Retinger
['Q302073', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?j WHERE { resource:Q302073 property:P19 ?j . ?j rdf:type ontology:Q486972 }
Kraków
Kraków is the birthplace of Józef Retinger
Kraków
action filter_type
action find
entity Józef Retinger
relation place of birth
type human settlement
['Józef Retinger', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?j WHERE { resource:Józef_Retinger property:place_of_birth ?j . ?j rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q302073
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q31487,P20,c(Q56061))
action filter_type
action find
entity Q302073
relation P20
type Q56061
['Q31487', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q302073 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Józef Retinger
action filter_type
action find
entity Józef Retinger
relation place of death
type administrative territorial entity
['Kraków', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Józef_Retinger property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q31487,P20,c(Q56061))
action filter_type
action find
entity Q302073
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q31487', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q302073 property:P20 ?c . ?c rdf:type ontology:Q56061 }
London
London is the place of death of that person
London
action filter_type
action find
entity Józef Retinger
relation place of death
type administrative territorial entity
['Kraków', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Józef_Retinger property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q84
P1427
Q878123
USER
Which racing has start point at that administrative territory ?
(c(Q878123),P1427,Q84)
action filter_type
action find_reverse
entity Q84
relation P1427
type Q878123
[{'concept': 'Q878123'}, 'P1427', 'Q84']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q878123 . ?t property:P1427 resource:Q84 }
London
action filter_type
action find_reverse
entity London
relation start point
type racing
[{'concept': 'racing'}, 'start point', 'London']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:racing . ?t property:start_point resource:London }
[]
racing
Q1787718
SYSTEM
2007 Tour de France, Stage 1
Q1787718
(c(Q878123),P1427,Q84)
action filter_type
action find_reverse
entity Q84
relation P1427
type Q878123
[ANSWER] has start point at that administrative territory
[{'concept': 'Q878123'}, 'P1427', 'Q84']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q878123 . ?t property:P1427 resource:Q84 }
2007 Tour de France, Stage 1
2007 Tour de France, Stage 1 has start point at that administrative territory
2007 Tour de France, Stage 1
action filter_type
action find_reverse
entity London
relation start point
type racing
[{'concept': 'racing'}, 'start point', 'London']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:racing . ?t property:start_point resource:London }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1067867
P706
Q14524493 Q15324 Q486972
USER
How many human settlements have their location as lesser number of terrains or bodies of water than Sestiere of Venice ?
(c(Q486972),P706,c(Q14524493)|c(Q15324))
action count
action less
action union
action find_tuple_counts
relation P706
type Q486972
type Q14524493
action find_tuple_counts
relation P706
type Q486972
type Q15324
action count
action filter_multi_types
action find
entity Q1067867
relation P706
type Q14524493
type Q15324
[{'concept': 'Q486972'}, 'P706', [{'concept': 'Q14524493'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?m WHERE { { ?m rdf:type ontology:Q486972 . ?x rdf:type ontology:Q15324 . ?m property:P706 ?x } UNION { ?m property:P706 ?x . ?m rdf:type ontology:Q486972 . ?x rdf:type ontology:Q14524493 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Q1067867 property:P706 ?s . { { ?s rdf:type ontology:Q14524493 } UNION { ?s rdf:type ontology:Q15324 } } } } . FILTER ( ?q < ?v ) }
Sestiere of Venice
action count
action less
action union
action find_tuple_counts
relation located on terrain feature
type human settlement
type terrain
action find_tuple_counts
relation located on terrain feature
type human settlement
type body of water
action count
action filter_multi_types
action find
entity Sestiere of Venice
relation located on terrain feature
type terrain
type body of water
[{'concept': 'human settlement'}, 'located on terrain feature', [{'concept': 'terrain'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?m WHERE { { ?m rdf:type ontology:human_settlement . ?x rdf:type ontology:body_of_water . ?m property:located_on_terrain_feature ?x } UNION { ?m property:located_on_terrain_feature ?x . ?m rdf:type ontology:human_settlement . ?x rdf:type ontology:terrain } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Sestiere_of_Venice property:located_on_terrain_feature ?s . { { ?s rdf:type ontology:terrain } UNION { ?s rdf:type ontology:body_of_water } } } } . FILTER ( ?q < ?v ) }
[]
terrain body of water human settlement
SYSTEM
105
Q10431952 Q73151 Q5182017 Q1982027 Q15059248 Q15709335 Q1543659 Q15058060 Q3460040 Q4144268 Q1938652 Q1194668 Q20829076 Q3351817 Q27998 Q12344051 Q2282756 Q1266661 Q881265 Q226726 Q4572703 Q7971580 Q15115488 Q20629 Q73179 Q82500 Q15058273 Q1348300 Q3593263 Q1440032 Q512874 Q2146309 Q2512257 Q1235576 Q1296117 Q1643547 Q13377528 Q10602449 Q3593402 Q15812854 Q303734 Q2109613 Q10532214 Q3459768 Q1241324 Q638063 Q1580580 Q17468609 Q21039 Q996014 Q20767 Q1656425 Q18028211 Q17294324 Q20649 Q20648 Q20646 Q477462 Q14805 Q18612782 Q62569 Q5584067 Q1895943 Q1557491 Q17461395 Q15849488 Q679561 Q2031633 Q12882647 Q657725 Q2285808 Q1741344 Q21039836 Q20898048 Q17461485 Q546339 Q3507 Q997023 Q26239886 Q17461393 Q2015465 Q17461542 Q1522297 Q851308 Q5686334 Q10550336 Q1524629 Q1653952 Q696193 Q15057357 Q15139301 Q1014971 Q649494 Q10430531 Q7131792 Q2843 Q5123247 Q413420 Q2916 Q1003241 Q10548412 Q148114 Q939711 Q19964370 Q2168982
(c(Q486972),P706,c(Q14524493)|c(Q15324))
action count
action less
action union
action find_tuple_counts
relation P706
type Q486972
type Q14524493
action find_tuple_counts
relation P706
type Q486972
type Q15324
action count
action filter_multi_types
action find
entity Q1067867
relation P706
type Q14524493
type Q15324
[ANSWER]
[{'concept': 'Q486972'}, 'P706', [{'concept': 'Q14524493'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?m WHERE { { ?m rdf:type ontology:Q486972 . ?x rdf:type ontology:Q15324 . ?m property:P706 ?x } UNION { ?m property:P706 ?x . ?m rdf:type ontology:Q486972 . ?x rdf:type ontology:Q14524493 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Q1067867 property:P706 ?s . { { ?s rdf:type ontology:Q14524493 } UNION { ?s rdf:type ontology:Q15324 } } } } . FILTER ( ?q < ?v ) }
Bodal Neuhaus im Solling Crane Flat Campground Neuwerk Rehenbühl Gückelsberg Gratzfeld Müssighof Water Mill Lerbach Mischelbach Stock Island Savan Islands Brygge Westerland Weert Siefenhoven Bantam Ruhlsdorf Zorge Brand Washington's Landing Sankt Stephans-Siedlung Morsum Silberborn St. Pölten Oderbrück Erberich Île aux Basques Neichen Gezira Island Retscheid Velau Eudenbach Efferoth Höhe Neuenmuhr Norra Hammarbyhamnen Puget Island Griesbuck Aathal Monte Masoni Högberga Ronkonkoma Langendorf Niederdorla Nösund Jüngsfeld Rantum Setauket-East Setauket Keitum Ickern Streit (Erlenbach am Main) Eichtersheim Munkmarsch Archsum Tinnum Kizhi Pogost Kaufbeuren Wohn Rockaway Goose Island Grande Île, Strasbourg Lohn Heinzenmühle Stubbenfelde Rübeland Orscheid Old town of Rethymno SoFo Silberhütte Lürken Ziegelhütte Emsen Fallhaus Wiedensahl Marmstorf Brüngsberg Hügelmühle Prexelmühle An den Eichen Banzermühle Langenrehm Beutelmühle Hayden Island Kungsklippan Himberg IJburg Ecbatana Langlau Niederbonsfeld Burggrub Pfiffelbach Björkboda Panther Hollow Lübeck City Island Ajvide Osnabrück Buke Kottla Zartwitz Girne District Schellhof Rottbitze
105
action count
action less
action union
action find_tuple_counts
relation located on terrain feature
type human settlement
type terrain
action find_tuple_counts
relation located on terrain feature
type human settlement
type body of water
action count
action filter_multi_types
action find
entity Sestiere of Venice
relation located on terrain feature
type terrain
type body of water
[{'concept': 'human settlement'}, 'located on terrain feature', [{'concept': 'terrain'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?m WHERE { { ?m rdf:type ontology:human_settlement . ?x rdf:type ontology:body_of_water . ?m property:located_on_terrain_feature ?x } UNION { ?m property:located_on_terrain_feature ?x . ?m rdf:type ontology:human_settlement . ?x rdf:type ontology:terrain } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { resource:Sestiere_of_Venice property:located_on_terrain_feature ?s . { { ?s rdf:type ontology:terrain } UNION { ?s rdf:type ontology:body_of_water } } } } . FILTER ( ?q < ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q649957
P706
Q14524493 Q15324 Q486972
USER
And what about Alicudi?
(c(Q486972),P706,c(Q14524493)|c(Q15324))
action count
action less
action union
action find_tuple_counts
relation P706
type Q486972
type Q14524493
action find_tuple_counts
relation P706
type Q486972
type Q15324
action count
action filter_multi_types
action find
entity Q649957
relation P706
type Q14524493
type Q15324
[{'concept': 'Q486972'}, 'P706', [{'concept': 'Q14524493'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?c WHERE { VALUES ( ?z ) { ( ontology:Q14524493 ) ( ontology:Q15324 ) } . ?a rdf:type ?z } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q649957 property:P706 ?y . { { ?y rdf:type ontology:Q14524493 } UNION { ?y rdf:type ontology:Q15324 } } } } . FILTER ( ?m < ?p ) }
Alicudi
action count
action less
action union
action find_tuple_counts
relation located on terrain feature
type human settlement
type terrain
action find_tuple_counts
relation located on terrain feature
type human settlement
type body of water
action count
action filter_multi_types
action find
entity Alicudi
relation located on terrain feature
type terrain
type body of water
[{'concept': 'human settlement'}, 'located on terrain feature', [{'concept': 'terrain'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?c WHERE { VALUES ( ?z ) { ( ontology:terrain ) ( ontology:body_of_water ) } . ?a rdf:type ?z } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Alicudi property:located_on_terrain_feature ?y . { { ?y rdf:type ontology:terrain } UNION { ?y rdf:type ontology:body_of_water } } } } . FILTER ( ?m < ?p ) }
[]
terrain body of water human settlement
SYSTEM
105
Q10431952 Q73151 Q5182017 Q1982027 Q15059248 Q15709335 Q1543659 Q15058060 Q3460040 Q4144268 Q1938652 Q1194668 Q20829076 Q3351817 Q27998 Q12344051 Q2282756 Q1266661 Q881265 Q226726 Q4572703 Q7971580 Q15115488 Q20629 Q73179 Q82500 Q15058273 Q1348300 Q3593263 Q1440032 Q512874 Q2146309 Q2512257 Q1235576 Q1296117 Q1643547 Q13377528 Q10602449 Q3593402 Q15812854 Q303734 Q2109613 Q10532214 Q3459768 Q1241324 Q638063 Q1580580 Q17468609 Q21039 Q996014 Q20767 Q1656425 Q18028211 Q17294324 Q20649 Q20648 Q20646 Q477462 Q14805 Q18612782 Q62569 Q5584067 Q1895943 Q1557491 Q17461395 Q15849488 Q679561 Q2031633 Q12882647 Q657725 Q2285808 Q1741344 Q21039836 Q20898048 Q17461485 Q546339 Q3507 Q997023 Q26239886 Q17461393 Q2015465 Q17461542 Q1522297 Q851308 Q5686334 Q10550336 Q1524629 Q1653952 Q696193 Q15057357 Q15139301 Q1014971 Q649494 Q10430531 Q7131792 Q2843 Q5123247 Q413420 Q2916 Q1003241 Q10548412 Q148114 Q939711 Q19964370 Q2168982
(c(Q486972),P706,c(Q14524493)|c(Q15324))
action count
action less
action union
action find_tuple_counts
relation P706
type Q486972
type Q14524493
action find_tuple_counts
relation P706
type Q486972
type Q15324
action count
action filter_multi_types
action find
entity Q649957
relation P706
type Q14524493
type Q15324
[ANSWER]
[{'concept': 'Q486972'}, 'P706', [{'concept': 'Q14524493'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?c WHERE { VALUES ( ?z ) { ( ontology:Q14524493 ) ( ontology:Q15324 ) } . ?a rdf:type ?z } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Q649957 property:P706 ?y . { { ?y rdf:type ontology:Q14524493 } UNION { ?y rdf:type ontology:Q15324 } } } } . FILTER ( ?m < ?p ) }
Bodal Neuhaus im Solling Crane Flat Campground Neuwerk Rehenbühl Gückelsberg Gratzfeld Müssighof Water Mill Lerbach Mischelbach Stock Island Savan Islands Brygge Westerland Weert Siefenhoven Bantam Ruhlsdorf Zorge Brand Washington's Landing Sankt Stephans-Siedlung Morsum Silberborn St. Pölten Oderbrück Erberich Île aux Basques Neichen Gezira Island Retscheid Velau Eudenbach Efferoth Höhe Neuenmuhr Norra Hammarbyhamnen Puget Island Griesbuck Aathal Monte Masoni Högberga Ronkonkoma Langendorf Niederdorla Nösund Jüngsfeld Rantum Setauket-East Setauket Keitum Ickern Streit (Erlenbach am Main) Eichtersheim Munkmarsch Archsum Tinnum Kizhi Pogost Kaufbeuren Wohn Rockaway Goose Island Grande Île, Strasbourg Lohn Heinzenmühle Stubbenfelde Rübeland Orscheid Old town of Rethymno SoFo Silberhütte Lürken Ziegelhütte Emsen Fallhaus Wiedensahl Marmstorf Brüngsberg Hügelmühle Prexelmühle An den Eichen Banzermühle Langenrehm Beutelmühle Hayden Island Kungsklippan Himberg IJburg Ecbatana Langlau Niederbonsfeld Burggrub Pfiffelbach Björkboda Panther Hollow Lübeck City Island Ajvide Osnabrück Buke Kottla Zartwitz Girne District Schellhof Rottbitze
105
action count
action less
action union
action find_tuple_counts
relation located on terrain feature
type human settlement
type terrain
action find_tuple_counts
relation located on terrain feature
type human settlement
type body of water
action count
action filter_multi_types
action find
entity Alicudi
relation located on terrain feature
type terrain
type body of water
[{'concept': 'human settlement'}, 'located on terrain feature', [{'concept': 'terrain'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?c WHERE { VALUES ( ?z ) { ( ontology:terrain ) ( ontology:body_of_water ) } . ?a rdf:type ?z } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { resource:Alicudi property:located_on_terrain_feature ?y . { { ?y rdf:type ontology:terrain } UNION { ?y rdf:type ontology:body_of_water } } } } . FILTER ( ?m < ?p ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q649957
P206
Q15324
USER
Which body of water is situated close to that human settlement ?
action filter_type
action find
entity Q649957
relation P206
type Q15324
SELECT DISTINCT ?x WHERE { resource:Q649957 property:P206 ?x . ?x rdf:type ontology:Q15324 }
Alicudi
action filter_type
action find
entity Alicudi
relation located next to body of water
type body of water
SELECT DISTINCT ?x WHERE { resource:Alicudi property:located_next_to_body_of_water ?x . ?x rdf:type ontology:body_of_water }
[]
body of water
Q38882
SYSTEM
Tyrrhenian Sea
Q38882
action filter_type
action find
entity Q649957
relation P206
type Q15324
[ANSWER] is situated close to that human settlement
SELECT DISTINCT ?x WHERE { resource:Q649957 property:P206 ?x . ?x rdf:type ontology:Q15324 }
Tyrrhenian Sea
Tyrrhenian Sea is situated close to that human settlement
Tyrrhenian Sea
action filter_type
action find
entity Alicudi
relation located next to body of water
type body of water
SELECT DISTINCT ?x WHERE { resource:Alicudi property:located_next_to_body_of_water ?x . ?x rdf:type ontology:body_of_water }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q41974
P190
Q486972 Q1048835 Q515
USER
Which human settlements are sister towns of more number of political territories or cities than Franeker ?
(c(Q1048835)|c(Q515),P190,c(Q486972))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q486972
type Q515
action count
action filter_multi_types
action find_reverse
entity Q41974
relation P190
type Q1048835
type Q515
[[{'concept': 'Q1048835'}, {'concept': 'Q515'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:P190 resource:Q41974 . { { ?w rdf:type ontology:Q515 } UNION { ?w rdf:type ontology:Q1048835 } } } } . FILTER ( ?s > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?d WHERE { { ?k property:P190 ?d . ?d rdf:type ontology:Q486972 . ?k rdf:type ontology:Q1048835 } UNION { ?k property:P190 ?d . ?d rdf:type ontology:Q486972 . ?k rdf:type ontology:Q515 } } GROUP BY ?d } }
Franeker
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type human settlement
type city
action count
action filter_multi_types
action find_reverse
entity Franeker
relation sister city
type political territorial entity
type city
[[{'concept': 'political territorial entity'}, {'concept': 'city'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:sister_city resource:Franeker . { { ?w rdf:type ontology:city } UNION { ?w rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?s > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?d WHERE { { ?k property:sister_city ?d . ?d rdf:type ontology:human_settlement . ?k rdf:type ontology:political_territorial_entity } UNION { ?k property:sister_city ?d . ?d rdf:type ontology:human_settlement . ?k rdf:type ontology:city } } GROUP BY ?d } }
[]
human settlement political territorial entity city
Q1055 Q31487 Q37333
SYSTEM
Hamburg, Kraków, Lublin
Q105084 Q826068 Q1055 Q14891 Q158004 Q1799 Q41753 Q178582 Q158485 Q263107 Q92212 Q24879 Q693628 Q3141273 Q931780 Q624352 Q8969 Q52842 Q165204 Q52845 Q173121 Q62868 Q125293 Q31487 Q41252 Q204271 Q37333 Q268 Q201516 Q82500 Q14835 Q103217 Q81033 Q126321 Q236083 Q9022 Q277965
(c(Q1048835)|c(Q515),P190,c(Q486972))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q486972
type Q515
action count
action filter_multi_types
action find_reverse
entity Q41974
relation P190
type Q1048835
type Q515
[ANSWERS] are sister towns of more number of political territories or cities than Franeker
[[{'concept': 'Q1048835'}, {'concept': 'Q515'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:P190 resource:Q41974 . { { ?w rdf:type ontology:Q515 } UNION { ?w rdf:type ontology:Q1048835 } } } } . FILTER ( ?s > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?d WHERE { { ?k property:P190 ?d . ?d rdf:type ontology:Q486972 . ?k rdf:type ontology:Q1048835 } UNION { ?k property:P190 ?d . ?d rdf:type ontology:Q486972 . ?k rdf:type ontology:Q515 } } GROUP BY ?d } }
Gliwice Krosno Hamburg Suhl Piotrków Trybunalski Wrocław Klagenfurt Wels Siemianowice Śląskie Judenburg Opole Bremen Wilmersdorf Kobiór Alzira Hollabrunn Cancún Kalisz Mérida Konin Querétaro Koszalin Puebla City Kraków Bydgoszcz San Luis Potosí Lublin Poznań Miami Beach St. Pölten Bautzen Częstochowa Monterrey Eisenstadt Suwałki Guadalajara Mödling
Hamburg, Kraków and Lublin are sister towns of more number of political territories or cities than Franeker
Hamburg Kraków Lublin
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type human settlement
type city
action count
action filter_multi_types
action find_reverse
entity Franeker
relation sister city
type political territorial entity
type city
[[{'concept': 'political territorial entity'}, {'concept': 'city'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w property:sister_city resource:Franeker . { { ?w rdf:type ontology:city } UNION { ?w rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?s > ?i ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) ?d WHERE { { ?k property:sister_city ?d . ?d rdf:type ontology:human_settlement . ?k rdf:type ontology:political_territorial_entity } UNION { ?k property:sister_city ?d . ?d rdf:type ontology:human_settlement . ?k rdf:type ontology:city } } GROUP BY ?d } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q320858
P190
Q486972 Q1048835 Q515
USER
And also tell me about Hirschau?
(c(Q1048835)|c(Q515),P190,c(Q486972))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q486972
type Q515
action count
action filter_multi_types
action find_reverse
entity Q320858
relation P190
type Q1048835
type Q515
[[{'concept': 'Q1048835'}, {'concept': 'Q515'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q515 ) } . ?t rdf:type ?a } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:P190 resource:Q320858 . { VALUES ( ?v ) { ( ontology:Q515 ) ( ontology:Q1048835 ) } . ?x rdf:type ?v } } } . FILTER ( ?p > ?q ) }
Hirschau
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type human settlement
type city
action count
action filter_multi_types
action find_reverse
entity Hirschau
relation sister city
type political territorial entity
type city
[[{'concept': 'political territorial entity'}, {'concept': 'city'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:city ) } . ?t rdf:type ?a } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:sister_city resource:Hirschau . { VALUES ( ?v ) { ( ontology:city ) ( ontology:political_territorial_entity ) } . ?x rdf:type ?v } } } . FILTER ( ?p > ?q ) }
[]
human settlement political territorial entity city
Q1055 Q31487 Q1792
SYSTEM
Hamburg, Kraków, Gdańsk
Q517653 Q55854 Q105084 Q826068 Q45197 Q660453 Q267791 Q393171 Q1018362 Q192508 Q140180 Q61711 Q106281 Q580115 Q583485 Q1055 Q51021 Q14891 Q264665 Q161595 Q1141799 Q566701 Q158004 Q158006 Q2916 Q104720 Q104725 Q1799 Q1792 Q753891 Q41753 Q61912 Q81760 Q106274 Q131612 Q251231 Q178582 Q110732 Q463332 Q871536 Q254165 Q47554 Q158485 Q158488 Q263107 Q92212 Q221051 Q24879 Q672717 Q693628 Q3141273 Q206085 Q931780 Q624352 Q8969 Q2481404 Q488346 Q104712 Q389363 Q52842 Q165204 Q52845 Q173121 Q16083 Q105060 Q1021277 Q145972 Q483522 Q143140 Q62868 Q61306 Q104740 Q507533 Q485294 Q125293 Q286004 Q31487 Q492868 Q41252 Q2734 Q204271 Q643600 Q106583 Q37333 Q200252 Q268 Q487527 Q571922 Q461287 Q201516 Q686386 Q82500 Q48256 Q40194 Q14805 Q14835 Q103217 Q564757 Q275592 Q504849 Q81033 Q1552698 Q126321 Q231645 Q108672 Q494283 Q681340 Q236083 Q9022 Q131266 Q104731 Q107106 Q250984 Q752460 Q277965 Q41974 Q698465
(c(Q1048835)|c(Q515),P190,c(Q486972))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q1048835
action find_reverse_tuple_counts
relation P190
type Q486972
type Q515
action count
action filter_multi_types
action find_reverse
entity Q320858
relation P190
type Q1048835
type Q515
[ANSWERS]
[[{'concept': 'Q1048835'}, {'concept': 'Q515'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?a ) { ( ontology:Q1048835 ) ( ontology:Q515 ) } . ?t rdf:type ?a } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:P190 resource:Q320858 . { VALUES ( ?v ) { ( ontology:Q515 ) ( ontology:Q1048835 ) } . ?x rdf:type ?v } } } . FILTER ( ?p > ?q ) }
Illingen, Saarland Yapeyú, Corrientes Gliwice Krosno Świętochłowice Voitsberg Ried im Innkreis Żory Pola de Siero Bergen op Zoom Retz Külsheim Tarnów Leinefelde Schwaz Hamburg Suchy Las Suhl Kitzbühel Mysłowice Texcoco, State of Mexico Gieboldehausen Piotrków Trybunalski Jaworzno Osnabrück Zielona Góra Płock Wrocław Gdańsk San Miguel de Allende Klagenfurt Wertheim am Main Wittichenau Legnica Wiener Neustadt Amstetten Wels Wałbrzych Buda Castle Quarter Lilienfeld Bischofshofen Toruń Siemianowice Śląskie Piekary Śląskie Judenburg Opole Xalapa Bremen Feldbach Wilmersdorf Kobiór Zistersdorf Alzira Hollabrunn Cancún Ludwin Bad Kissingen Elbląg Grein Kalisz Mérida Konin Querétaro Deggendorf Sosnowiec Ikast Zamość Villach Freistadt Koszalin Guanajuato Radom Feldkirchen in Kärnten Leoben Puebla City Tordesillas Kraków Mürzzuschlag Bydgoszcz Skierniewice San Luis Potosí Gleisdorf Bielsko-Biała Lublin Morelia Poznań Wolfsberg Münnerstadt Ostrołęka Miami Beach Stolberg St. Pölten Dnipro Mazatlán Kaufbeuren Bautzen Częstochowa Sankt Goarshausen Pińczów Ochsenfurt Monterrey Guamúchil Eisenstadt Setagaya-ku Dąbrowa Górnicza Stockerau Ciudad Obregón Suwałki Guadalajara Krems an der Donau Gorzów Wielkopolski Jastrzębie-Zdrój Bad Ischl Los Mochis Mödling Franeker Bad Radkersburg
Hamburg Kraków Gdańsk
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type political territorial entity
action find_reverse_tuple_counts
relation sister city
type human settlement
type city
action count
action filter_multi_types
action find_reverse
entity Hirschau
relation sister city
type political territorial entity
type city
[[{'concept': 'political territorial entity'}, {'concept': 'city'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?a ) { ( ontology:political_territorial_entity ) ( ontology:city ) } . ?t rdf:type ?a } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:sister_city resource:Hirschau . { VALUES ( ?v ) { ( ontology:city ) ( ontology:political_territorial_entity ) } . ?x rdf:type ?v } } } . FILTER ( ?p > ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q157480
P190
Q486972 Q56061 Q15617994
USER
Which human settlements are sister towns of more number of administrative territories or administrative territories than Ebersbach ?
(c(Q56061)|c(Q15617994),P190,c(Q486972))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q56061
action find_reverse_tuple_counts
relation P190
type Q486972
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q157480
relation P190
type Q56061
type Q15617994
[[{'concept': 'Q56061'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) ?z WHERE { { ?g property:P190 ?z . ?g rdf:type ontology:Q56061 . ?z rdf:type ontology:Q486972 } UNION { ?g property:P190 ?z . ?z rdf:type ontology:Q486972 . ?g rdf:type ontology:Q15617994 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h property:P190 resource:Q157480 . { { ?h rdf:type ontology:Q56061 } UNION { ?h rdf:type ontology:Q15617994 } } } } . FILTER ( ?b > ?e ) }
Ebersbach
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type human settlement
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Ebersbach
relation sister city
type administrative territorial entity
type designation for an administrative territorial entity
[[{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) ?z WHERE { { ?g property:sister_city ?z . ?g rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:human_settlement } UNION { ?g property:sister_city ?z . ?z rdf:type ontology:human_settlement . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h property:sister_city resource:Ebersbach . { { ?h rdf:type ontology:administrative_territorial_entity } UNION { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?b > ?e ) }
[]
human settlement administrative territorial entity designation for an administrative territorial entity
Q1055 Q31487 Q1792
SYSTEM
Hamburg, Kraków, Gdańsk
Q2394432 Q11977 Q104302 Q559374 Q57916 Q1997342 Q631346 Q889411 Q1685483 Q105084 Q661283 Q14906336 Q278871 Q768691 Q826068 Q259086 Q45197 Q660453 Q973641 Q646725 Q107094 Q278447 Q290356 Q393171 Q798800 Q623049 Q1734032 Q210886 Q81732 Q254221 Q140180 Q504639 Q984766 Q2655674 Q106281 Q254012 Q2066426 Q1228438 Q580115 Q559841 Q244506 Q570684 Q583485 Q752107 Q1055 Q1106961 Q882731 Q302745 Q14891 Q2270558 Q264665 Q576636 Q161595 Q675834 Q587155 Q139242 Q518275 Q818794 Q550434 Q105048 Q1464902 Q354547 Q430449 Q158004 Q158006 Q2916 Q104720 Q104725 Q1799 Q1013119 Q506515 Q1792 Q2523806 Q753891 Q649405 Q41753 Q917605 Q61912 Q81760 Q26590 Q1774142 Q131612 Q92689 Q251231 Q62026 Q853258 Q875641 Q881265 Q178582 Q191106 Q571926 Q1331722 Q698591 Q110732 Q1315645 Q147934 Q257244 Q572595 Q162049 Q1709669 Q590620 Q627970 Q487500 Q318637 Q1404131 Q254165 Q2556719 Q316991 Q1261010 Q1790614 Q214215 Q47554 Q984257 Q209932 Q1025108 Q701263 Q700397 Q2936966 Q183228 Q1297395 Q522651 Q494604 Q263107 Q106681 Q92212 Q221051 Q30940 Q24879 Q336250 Q149790 Q173270 Q672717 Q1394400 Q363830 Q826545 Q280450 Q693628 Q1620424 Q264201 Q3981601 Q12552 Q502488 Q991571 Q199440 Q3141273 Q280588 Q1958327 Q179645 Q365081 Q3777 Q2141722 Q102317 Q206085 Q624352 Q52892 Q46885 Q123511 Q8969 Q486341 Q1651865 Q1648853 Q631108 Q208473 Q488346 Q292927 Q150039 Q104712 Q871601 Q28516 Q3937847 Q163474 Q389363 Q171219 Q273014 Q1026520 Q260320 Q234184 Q52842 Q165204 Q52845 Q73817 Q102350 Q509566 Q372402 Q682989 Q255175 Q173121 Q1769929 Q2114575 Q769446 Q386991 Q254107 Q669995 Q660945 Q145972 Q483522 Q255350 Q204245 Q2447536 Q215633 Q572559 Q608977 Q319813 Q26340 Q217234 Q127700 Q1997497 Q1921334 Q62868 Q61306 Q233903 Q61302 Q104740 Q700132 Q382791 Q569248 Q507533 Q665175 Q125293 Q286004 Q31487 Q492868 Q505907 Q232624 Q1237045 Q41252 Q209034 Q204271 Q489972 Q106583 Q37333 Q308928 Q494504 Q259893 Q233495 Q2843 Q103892 Q200252 Q168286 Q427385 Q200805 Q518258 Q268 Q187572 Q261216 Q521851 Q572568 Q212713 Q53077 Q131429 Q82765 Q2534964 Q201516 Q985092 Q686386 Q82500 Q48256 Q491754 Q550175 Q40194 Q252982 Q14805 Q436806 Q251325 Q2391165 Q14835 Q103217 Q695969 Q2039456 Q693724 Q998438 Q504849 Q660428 Q81033 Q2352357 Q259214 Q257130 Q698520 Q472076 Q126321 Q505185 Q1418300 Q467191 Q871563 Q108679 Q324402 Q1528292 Q494283 Q661329 Q13383459 Q278189 Q236083 Q542386 Q504513 Q9022 Q5628 Q131266 Q1114457 Q104731 Q107106 Q1021035 Q688620 Q250984 Q752460 Q2013767 Q277965
(c(Q56061)|c(Q15617994),P190,c(Q486972))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q56061
action find_reverse_tuple_counts
relation P190
type Q486972
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q157480
relation P190
type Q56061
type Q15617994
[ANSWERS] are sister towns of more number of administrative territories or administrative territories than Ebersbach
[[{'concept': 'Q56061'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) ?z WHERE { { ?g property:P190 ?z . ?g rdf:type ontology:Q56061 . ?z rdf:type ontology:Q486972 } UNION { ?g property:P190 ?z . ?z rdf:type ontology:Q486972 . ?g rdf:type ontology:Q15617994 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h property:P190 resource:Q157480 . { { ?h rdf:type ontology:Q56061 } UNION { ?h rdf:type ontology:Q15617994 } } } } . FILTER ( ?b > ?e ) }
Tarnów Opolski Tychy Chorzów Uchte Lengefeld Pioppa Steinthaleben Bodega Bay Wilbich Gliwice Laa an der Thaya Bad Liebenstein Pozuzo Barañáin Krosno Bad Hall Świętochłowice Voitsberg Ontinyent Dénia Rybnik Ybbs an der Donau San Pedro Żory Bad Vöslau Kapfenberg Karlštejn Villahermosa Bernsdorf, Bautzen Schladming Retz Dettelbach Kobyla Góra, Greater Poland Voivodeship Kiryat Haim Tarnów Peuerbach Wierzchowo, Drawsko County Dischingen Leinefelde Ichtershausen Zwettl Pawłowiczki Schwaz Hainburg an der Donau Hamburg Colognola Burglesum Hall in Tirol Suhl Tapalpa Kitzbühel Huamantla Mysłowice Trofaiach Kolno, Warmian-Masurian Voivodeship Zacatecas Wörlitz Berbisdorf Köflach Słupsk Frille Adelebsen Gmunden Piotrków Trybunalski Jaworzno Osnabrück Zielona Góra Płock Wrocław Mielno Röttingen Gdańsk Vietmannsdorf San Miguel de Allende Leubnitz Klagenfurt Izabelin, Warsaw West County Wertheim am Main Wittichenau Ciudad Juárez Klenčí pod Čerchovem Wiener Neustadt Sopot Amstetten Gailingen Puerto Vallarta Weiz Ruhlsdorf Wels Haapsalu Bad Königshofen Ellar Hohenems Wałbrzych Lindau am Harz Jelenia Góra Mittersill Neugersdorf Charlottenburg San Juan de los Lagos Purkersdorf Kailua Spittal an der Drau Los Alamos Felsberg Bischofshofen Weixdorf Wellingholzhausen Stráž Krögis La Paz Toruń Rychliki Biała Podlaska Cadenabbia Neudietendorf Wolkersdorf im Weinviertel Cap-Rouge, Quebec City Saalfelden Oehna Marktbreit Sankt Veit an der Glan Judenburg Włocławek Opole Xalapa Albert Bremen Lienz Brody, Żary County Veracruz Feldbach Porto Ercole Tempelhof Triebes Scheibbs Wilmersdorf Hirschfelde Mariazell Tavernola San Felice Pineda de Mar Obercunnersdorf Niederschöna Mexicali Kobiór Seekirchen am Wallersee Mühlbach Shinjuku-ku Wińsko Ouagadougou Reinsdorf Kielce Zistersdorf Hollabrunn Leszno Mylau Grudziądz Cancún Kufstein Hörstein Finthen Nerchau Przemyśl Bad Kissingen Óbuda Neuf-Brisach Elbląg Friesach Tarnobrzeg Riva Trigoso Mureck Grein Dornbirn Tampico Juan-les-Pins Steyr Chełm Kalisz Mérida Konin Winschoten Bytom Plattling Castroville Luzino Eferding Querétaro Enguera Przemęt, Greater Poland Voivodeship Van Nuys Torreón Imst Mautern an der Donau Straßburg Zamość Villach Pöchlarn Cuernavaca Jala Łomża Spremberg Friedberg Siedlce Vils Ōta-ku Udanin Calpulalpan Teocaltiche Koszalin Guanajuato Meguro-ku Chihuahua Radom Radenthein Lewin Kłodzki Všeruby Feldkirchen in Kärnten Kaliska, Gmina Kaliska Puebla City Tordesillas Kraków Mürzzuschlag Dobrzeń Wielki Arakawa-ku Grumbach Bydgoszcz Toluca San Luis Potosí Schwechat Bielsko-Biała Lublin Kreuzberg Bludenz Bruck an der Mur Shinagawa-ku Lübeck Zabrze Morelia Zbrosławice Waidhofen an der Ybbs Aguascalientes Gernrode Poznań Zell am See Attnang-Puchheim Miękinia, Lower Silesian Voivodeship Schirgiswalde Bunkyō-ku Saltillo Oaxaca de Juárez Olsztyn Redford Miami Beach Włoszakowice Stolberg St. Pölten Dnipro Senftenberg Kirschau Mazatlán Oberpullendorf Kaufbeuren Altenbrak Vöcklabruck Strawczyn Bautzen Częstochowa Finsterbergen Izbica Długołęka Stawiguda Ochsenfurt Mistelbach Monterrey Stotternheim Rust Ansfelden Liezen Popielów, Opole Voivodeship Eisenstadt Pößneck Finowfurt Rewal Orth an der Donau Ruda Śląska Zehlendorf Steinach Stockerau Bruck an der Leitha Nacka Kleszczów, Łódź Voivodeship Suwałki Hornburg Bad Brückenau Guadalajara Schmallenberg Krems an der Donau East Norriton Township Gorzów Wielkopolski Jastrzębie-Zdrój Chmielno Kirchdorf an der Krems Bad Ischl Los Mochis Mitte Mödling
Hamburg, Kraków and Gdańsk are sister towns of more number of administrative territories or administrative territories than Ebersbach
Hamburg Kraków Gdańsk
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type human settlement
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Ebersbach
relation sister city
type administrative territorial entity
type designation for an administrative territorial entity
[[{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?b ) ?z WHERE { { ?g property:sister_city ?z . ?g rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:human_settlement } UNION { ?g property:sister_city ?z . ?z rdf:type ontology:human_settlement . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h property:sister_city resource:Ebersbach . { { ?h rdf:type ontology:administrative_territorial_entity } UNION { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?b > ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q11977
P190
Q486972 Q56061 Q15617994
USER
And what about Tychy?
(c(Q56061)|c(Q15617994),P190,c(Q486972))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q56061
action find_reverse_tuple_counts
relation P190
type Q486972
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q11977
relation P190
type Q56061
type Q15617994
[[{'concept': 'Q56061'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?p WHERE { VALUES ( ?b ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?u rdf:type ?b } GROUP BY ?p } . FILTER ( ?f > ?c ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { ?h rdf:type ?l . VALUES ( ?l ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } } . ?h property:P190 resource:Q11977 } } }
Tychy
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type human settlement
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Tychy
relation sister city
type administrative territorial entity
type designation for an administrative territorial entity
[[{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?p WHERE { VALUES ( ?b ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?u rdf:type ?b } GROUP BY ?p } . FILTER ( ?f > ?c ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { ?h rdf:type ?l . VALUES ( ?l ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } . ?h property:sister_city resource:Tychy } } }
[]
human settlement administrative territorial entity designation for an administrative territorial entity
Q1055 Q31487 Q1792
SYSTEM
Hamburg, Kraków, Gdańsk
Q105084 Q107094 Q583485 Q1055 Q302745 Q14891 Q576636 Q139242 Q105048 Q158004 Q2916 Q104720 Q104725 Q1799 Q1792 Q41753 Q26590 Q191106 Q147934 Q487500 Q214215 Q47554 Q263107 Q92212 Q30940 Q24879 Q173270 Q264201 Q3777 Q102317 Q8969 Q104712 Q1026520 Q260320 Q234184 Q52842 Q165204 Q52845 Q173121 Q386991 Q145972 Q319813 Q62868 Q61306 Q61302 Q104740 Q125293 Q31487 Q41252 Q209034 Q204271 Q106583 Q37333 Q2843 Q103892 Q200805 Q268 Q53077 Q82765 Q201516 Q82500 Q48256 Q491754 Q103217 Q504849 Q81033 Q505185 Q9022 Q131266 Q104731 Q752460
(c(Q56061)|c(Q15617994),P190,c(Q486972))
action greater
action union
action find_reverse_tuple_counts
relation P190
type Q486972
type Q56061
action find_reverse_tuple_counts
relation P190
type Q486972
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q11977
relation P190
type Q56061
type Q15617994
[ANSWERS]
[[{'concept': 'Q56061'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?p WHERE { VALUES ( ?b ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?u rdf:type ?b } GROUP BY ?p } . FILTER ( ?f > ?c ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { ?h rdf:type ?l . VALUES ( ?l ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } } . ?h property:P190 resource:Q11977 } } }
Gliwice Rybnik Schwaz Hamburg Hall in Tirol Suhl Huamantla Zacatecas Słupsk Piotrków Trybunalski Osnabrück Zielona Góra Płock Wrocław Gdańsk Klagenfurt Ciudad Juárez Haapsalu Jelenia Góra Spittal an der Drau La Paz Toruń Judenburg Opole Albert Bremen Veracruz Mariazell Ouagadougou Kielce Cancún Elbląg Juan-les-Pins Steyr Chełm Kalisz Mérida Konin Querétaro Torreón Zamość Siedlce Koszalin Guanajuato Chihuahua Radom Puebla City Kraków Bydgoszcz Toluca San Luis Potosí Bielsko-Biała Lublin Lübeck Zabrze Aguascalientes Poznań Saltillo Olsztyn Miami Beach St. Pölten Dnipro Senftenberg Częstochowa Ochsenfurt Monterrey Pößneck Guadalajara Krems an der Donau Gorzów Wielkopolski Los Mochis
Hamburg Kraków Gdańsk
action greater
action union
action find_reverse_tuple_counts
relation sister city
type human settlement
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type human settlement
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Tychy
relation sister city
type administrative territorial entity
type designation for an administrative territorial entity
[[{'concept': 'administrative territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?p WHERE { VALUES ( ?b ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?u rdf:type ?b } GROUP BY ?p } . FILTER ( ?f > ?c ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { ?h rdf:type ?l . VALUES ( ?l ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } . ?h property:sister_city resource:Tychy } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q56061
USER
How many administrative territories are partner towns of that human settlement ?
(Q31487,P190,c(Q56061))
['Q31487', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q11747925 property:P190 ?z . ?z rdf:type ontology:Q56061 }
['Kraków', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Kraków property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q1055
SYSTEM
Did you mean Hamburg ?
(Q1055,P190,c(Q56061)) (Q31487,P190,c(Q56061)) (Q1792,P190,c(Q56061))
[ANSWER]
['Q1055', 'P190', {'concept': 'Q56061'}] ['Q31487', 'P190', {'concept': 'Q56061'}] ['Q1792', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q11747925 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Did you mean Hamburg ?
Hamburg
['Hamburg', 'sister city', {'concept': 'administrative territorial entity'}] ['Kraków', 'sister city', {'concept': 'administrative territorial entity'}] ['Gdańsk', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Kraków property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Kraków. Could you tell me the answer for that?
(Q31487,P190,c(Q56061))
Q31487
['Q31487', 'P190', {'concept': 'Q56061'}]
['Kraków', 'sister city', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
26
Q118958 Q5196 Q994 Q649 Q1735 Q68965 Q220 Q45779 Q49218 Q23436 Q1780 Q1781 Q4361 Q1479 Q49111 Q80985 Q173474 Q5582862 Q2090 Q129259 Q216 Q8717 Q490 Q2044 Q62 Q36036
(Q31487,P190,c(Q56061))
[ANSWER]
['Q31487', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q11747925 property:P190 ?z . ?z rdf:type ontology:Q56061 }
Leuven Grozny Tbilisi Moscow Innsbruck Solothurn Rome Pécs Rochester Edinburgh Bratislava Budapest Curitiba Bordeaux Cambridge Fes Veliko Tarnovo Cusco Nuremberg Niš Vilnius Seville Milan Florence San Francisco Lviv
26
['Kraków', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Kraków property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1633598 Q649957
P27 P17
Q15617994
USER
Which administrative territories are Alicudi located in or are Alick Buchanan-Smith an inhabitant of ?
OR((Q649957,P17,c(Q15617994)), (Q1633598,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q649957
relation P17
action find
entity Q1633598
relation P27
type Q15617994
{'OR': [['Q649957', 'P17', {'concept': 'Q15617994'}], ['Q1633598', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q649957 property:P17 ?v } UNION { resource:Q1633598 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Alick Buchanan-Smith Alicudi
action filter_type
action union
action find
entity Alicudi
relation country
action find
entity Alick Buchanan-Smith
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alicudi', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Alick Buchanan-Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Alicudi property:country ?v } UNION { resource:Alick_Buchanan-Smith property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q145
SYSTEM
Italy, United Kingdom
Q38 Q145
OR((Q649957,P17,c(Q15617994)), (Q1633598,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q649957
relation P17
action find
entity Q1633598
relation P27
type Q15617994
Alicudi Alick Buchanan-Smith are located in [ANSWERS] or are an inhabitant of
{'OR': [['Q649957', 'P17', {'concept': 'Q15617994'}], ['Q1633598', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q649957 property:P17 ?v } UNION { resource:Q1633598 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Italy United Kingdom
Alicudi Alick Buchanan-Smith are located in Italy and United Kingdom or are an inhabitant of
Italy United Kingdom
action filter_type
action union
action find
entity Alicudi
relation country
action find
entity Alick Buchanan-Smith
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alicudi', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Alick Buchanan-Smith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Alicudi property:country ?v } UNION { resource:Alick_Buchanan-Smith property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q914262 Q852446 Q486972
USER
How many human settlements are a part of atleast 1 administrative territory of Swedens or US administrative territories ?
(c(Q486972),P361,c(Q914262)|c(Q852446))
action count
action atleast
action union
action find_tuple_counts
relation P361
type Q486972
type Q914262
action find_tuple_counts
relation P361
type Q486972
type Q852446
value 1
[{'concept': 'Q486972'}, 'P361', [{'concept': 'Q914262'}, {'concept': 'Q852446'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) ?s WHERE { { ?s property:P361 ?a . ?s rdf:type ontology:Q486972 . ?a rdf:type ontology:Q914262 } UNION { ?s rdf:type ontology:Q486972 . ?a rdf:type ontology:Q852446 . ?s property:P361 ?a } } GROUP BY ?s } . FILTER ( ?o >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation part of
type human settlement
type administrative territorial entity of Sweden
action find_tuple_counts
relation part of
type human settlement
type administrative territorial entity of the United States
value 1
[{'concept': 'human settlement'}, 'part of', [{'concept': 'administrative territorial entity of Sweden'}, {'concept': 'administrative territorial entity of the United States'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) ?s WHERE { { ?s property:part_of ?a . ?s rdf:type ontology:human_settlement . ?a rdf:type ontology:administrative_territorial_entity_of_Sweden } UNION { ?s rdf:type ontology:human_settlement . ?a rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?s property:part_of ?a } } GROUP BY ?s } . FILTER ( ?o >= 1 ) }
[]
administrative territorial entity of Sweden administrative territorial entity of the United States human settlement
SYSTEM
3
Q20829076 Q4829294 Q4356881
(c(Q486972),P361,c(Q914262)|c(Q852446))
action count
action atleast
action union
action find_tuple_counts
relation P361
type Q486972
type Q914262
action find_tuple_counts
relation P361
type Q486972
type Q852446
value 1
[ANSWER]
[{'concept': 'Q486972'}, 'P361', [{'concept': 'Q914262'}, {'concept': 'Q852446'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) ?s WHERE { { ?s property:P361 ?a . ?s rdf:type ontology:Q486972 . ?a rdf:type ontology:Q914262 } UNION { ?s rdf:type ontology:Q486972 . ?a rdf:type ontology:Q852446 . ?s property:P361 ?a } } GROUP BY ?s } . FILTER ( ?o >= 1 ) }
Savan Avondale Solberga
3
action count
action atleast
action union
action find_tuple_counts
relation part of
type human settlement
type administrative territorial entity of Sweden
action find_tuple_counts
relation part of
type human settlement
type administrative territorial entity of the United States
value 1
[{'concept': 'human settlement'}, 'part of', [{'concept': 'administrative territorial entity of Sweden'}, {'concept': 'administrative territorial entity of the United States'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) ?s WHERE { { ?s property:part_of ?a . ?s rdf:type ontology:human_settlement . ?a rdf:type ontology:administrative_territorial_entity_of_Sweden } UNION { ?s rdf:type ontology:human_settlement . ?a rdf:type ontology:administrative_territorial_entity_of_the_United_States . ?s property:part_of ?a } } GROUP BY ?s } . FILTER ( ?o >= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with atleast 100 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 100
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?g >= 100 ) . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?g ) WHERE { ?l property:P530 ?b . ?b rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?l } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 100
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?g >= 100 ) . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?g ) WHERE { ?l property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?l } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 100
[ANSWERS] hold diplomatic relationship with atleast 100 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?g >= 100 ) . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?g ) WHERE { ?l property:P530 ?b . ?b rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?l } }
Germany Australia
Germany and Australia hold diplomatic relationship with atleast 100 administrative territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 100
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?g >= 100 ) . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?g ) WHERE { ?l property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?l } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1033
P530
Q15617994
USER
Do Nigeria have ambassadorial relations with those political territories ?
(Q1033,P530,Q183) (Q1033,P530,Q408)
action is_in
entity prev_answer
action find
entity Q1033
relation P530
['Q1033', 'P530', 'Q183'] ['Q1033', 'P530', 'Q408']
ASK WHERE { resource:Q1033 property:P530 ?t . VALUES ( ?t ) { ( resource:Q183 ) ( resource:Q408 ) } }
Nigeria
action is_in
entity prev_answer
action find
entity Nigeria
relation diplomatic relation
['Nigeria', 'diplomatic relation', 'Germany'] ['Nigeria', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Nigeria property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:Germany ) ( resource:Australia ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1033,P530,Q183) (Q1033,P530,Q408)
action is_in
entity prev_answer
action find
entity Q1033
relation P530
[ANSWER]
['Q1033', 'P530', 'Q183'] ['Q1033', 'P530', 'Q408']
ASK WHERE { resource:Q1033 property:P530 ?t . VALUES ( ?t ) { ( resource:Q183 ) ( resource:Q408 ) } }
Yes
action is_in
entity prev_answer
action find
entity Nigeria
relation diplomatic relation
['Nigeria', 'diplomatic relation', 'Germany'] ['Nigeria', 'diplomatic relation', 'Australia']
ASK WHERE { resource:Nigeria property:diplomatic_relation ?t . VALUES ( ?t ) { ( resource:Germany ) ( resource:Australia ) } }
[]