Simple Question (Direct)
Simple Question
Q1466208
P937
Q515
USER
What are the locations where Fritz Fichtner worked ?
(Q1466208,P937,c(Q515))
action filter_type
action find
entity Q1466208
relation P937
type Q515
['Q1466208', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q1466208 property:P937 ?h . ?h rdf:type ontology:Q515 }
Fritz Fichtner
action filter_type
action find
entity Fritz Fichtner
relation work location
type city
['Fritz Fichtner', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Fritz_Fichtner property:work_location ?h . ?h rdf:type ontology:city }
[]
city
Q3126 Q1731
SYSTEM
Erlangen, Dresden
Q3126 Q1731
(Q1466208,P937,c(Q515))
action filter_type
action find
entity Q1466208
relation P937
type Q515
The locations Fritz Fichtner worked are in [ANSWERS]
['Q1466208', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q1466208 property:P937 ?h . ?h rdf:type ontology:Q515 }
Erlangen Dresden
The locations Fritz Fichtner worked are in Erlangen and Dresden
Erlangen Dresden
action filter_type
action find
entity Fritz Fichtner
relation work location
type city
['Fritz Fichtner', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Fritz_Fichtner property:work_location ?h . ?h rdf:type ontology:city }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3126
P206
Q355304
USER
Which watercourses are situated in the neighbourhood of that city ?
(Q3126,P206,c(Q355304))
action filter_type
action find
entity Q3126
relation P206
type Q355304
['Q3126', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { resource:Q3126 property:P206 ?o . ?o rdf:type ontology:Q355304 }
Erlangen
action filter_type
action find
entity Erlangen
relation located next to body of water
type watercourse
['Erlangen', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { resource:Erlangen property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse }
[]
watercourse
Clarification for simple ques.
Q3126
SYSTEM
Did you mean Erlangen ?
Q3126 Q1731
(Q3126,P206,c(Q355304)) (Q1731,P206,c(Q355304))
[ANSWER]
['Q3126', 'P206', {'concept': 'Q355304'}] ['Q1731', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { resource:Q3126 property:P206 ?o . ?o rdf:type ontology:Q355304 }
Erlangen Dresden
Did you mean Erlangen ?
Erlangen
['Erlangen', 'located next to body of water', {'concept': 'watercourse'}] ['Dresden', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { resource:Erlangen property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3126,P206,c(Q355304))
['Q3126', 'P206', {'concept': 'Q355304'}]
['Erlangen', 'located next to body of water', {'concept': 'watercourse'}]
[]
Q643525 Q2252501 Q317594
SYSTEM
Regnitz, Schwabach, Aurach
Q643525 Q2252501 Q317594
(Q3126,P206,c(Q355304))
action filter_type
action find
entity Q3126
relation P206
type Q355304
[ANSWERS] are situated in the neighbourhood of that city
['Q3126', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?o WHERE { resource:Q3126 property:P206 ?o . ?o rdf:type ontology:Q355304 }
Regnitz Schwabach Aurach
Regnitz, Schwabach and Aurach are situated in the neighbourhood of that city
Regnitz Schwabach Aurach
action filter_type
action find
entity Erlangen
relation located next to body of water
type watercourse
['Erlangen', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?o WHERE { resource:Erlangen property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q646818
P206
Q515
USER
Are Towada situated in the neighbourhood of those watercourses ?
(Q646818,P206,Q643525) (Q646818,P206,Q2252501) (Q646818,P206,Q317594)
action is_in
entity prev_answer
action find
entity Q646818
relation P206
['Q646818', 'P206', 'Q643525'] ['Q646818', 'P206', 'Q2252501'] ['Q646818', 'P206', 'Q317594']
ASK WHERE { VALUES ( ?q ) { ( resource:Q643525 ) ( resource:Q2252501 ) ( resource:Q317594 ) } . resource:Q646818 property:P206 ?q }
Towada
action is_in
entity prev_answer
action find
entity Towada
relation located next to body of water
['Towada', 'located next to body of water', 'Regnitz'] ['Towada', 'located next to body of water', 'Schwabach'] ['Towada', 'located next to body of water', 'Aurach']
ASK WHERE { VALUES ( ?q ) { ( resource:Regnitz ) ( resource:Schwabach ) ( resource:Aurach ) } . resource:Towada property:located_next_to_body_of_water ?q }
[]
city
SYSTEM
NO
(Q646818,P206,Q643525) (Q646818,P206,Q2252501) (Q646818,P206,Q317594)
action is_in
entity prev_answer
action find
entity Q646818
relation P206
[ANSWER]
['Q646818', 'P206', 'Q643525'] ['Q646818', 'P206', 'Q2252501'] ['Q646818', 'P206', 'Q317594']
ASK WHERE { VALUES ( ?q ) { ( resource:Q643525 ) ( resource:Q2252501 ) ( resource:Q317594 ) } . resource:Q646818 property:P206 ?q }
No
action is_in
entity prev_answer
action find
entity Towada
relation located next to body of water
['Towada', 'located next to body of water', 'Regnitz'] ['Towada', 'located next to body of water', 'Schwabach'] ['Towada', 'located next to body of water', 'Aurach']
ASK WHERE { VALUES ( ?q ) { ( resource:Regnitz ) ( resource:Schwabach ) ( resource:Aurach ) } . resource:Towada property:located_next_to_body_of_water ?q }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1466208 Q183
P27
Q1048835
USER
Does Fritz Fichtner belong to Germany ?
(Q1466208,P27,Q183)
action is_in
entity Q183
action find
entity Q1466208
relation P27
['Q1466208', 'P27', 'Q183']
ASK WHERE { resource:Q1466208 property:P27 resource:Q183 }
Fritz Fichtner Germany
action is_in
entity Germany
action find
entity Fritz Fichtner
relation country of citizenship
['Fritz Fichtner', 'country of citizenship', 'Germany']
ASK WHERE { resource:Fritz_Fichtner property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q1466208,P27,Q183)
action is_in
entity Q183
action find
entity Q1466208
relation P27
[ANSWER]
['Q1466208', 'P27', 'Q183']
ASK WHERE { resource:Q1466208 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Fritz Fichtner
relation country of citizenship
['Fritz Fichtner', 'country of citizenship', 'Germany']
ASK WHERE { resource:Fritz_Fichtner property:country_of_citizenship resource:Germany }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2433474
P3173
Q355304 Q811979
USER
How many architectural structures offer view of less number of watercourses than Tunnel View ?
(c(Q811979),P3173,c(Q355304))
action count
action less
action find_tuple_counts
relation P3173
type Q811979
type Q355304
action count
action filter_type
action find
entity Q2433474
relation P3173
type Q355304
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z rdf:type ontology:Q355304 . resource:Q2433474 property:P3173 ?z } } . FILTER ( ?x < ?h ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?x ) WHERE { ?u property:P3173 ?i . ?u rdf:type ontology:Q811979 . ?i rdf:type ontology:Q355304 } GROUP BY ?u } }
Tunnel View
action count
action less
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
action count
action filter_type
action find
entity Tunnel View
relation offers view on
type watercourse
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z rdf:type ontology:watercourse . resource:Tunnel_View property:offers_view_on ?z } } . FILTER ( ?x < ?h ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?x ) WHERE { ?u property:offers_view_on ?i . ?u rdf:type ontology:architectural_structure . ?i rdf:type ontology:watercourse } GROUP BY ?u } }
[]
watercourse architectural structure
SYSTEM
8
Q3367142 Q2470303 Q3108318 Q7088437 Q27267334 Q1144172 Q7675044 Q27181543
(c(Q811979),P3173,c(Q355304))
action count
action less
action find_tuple_counts
relation P3173
type Q811979
type Q355304
action count
action filter_type
action find
entity Q2433474
relation P3173
type Q355304
[ANSWER]
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z rdf:type ontology:Q355304 . resource:Q2433474 property:P3173 ?z } } . FILTER ( ?x < ?h ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?x ) WHERE { ?u property:P3173 ?i . ?u rdf:type ontology:Q811979 . ?i rdf:type ontology:Q355304 } GROUP BY ?u } }
Pas de Bellecombe Echo Point Glacier Point Olmsted Point Dewey Point Dante's View Taft Point Father Crowley Vista Point
8
action count
action less
action find_tuple_counts
relation offers view on
type architectural structure
type watercourse
action count
action filter_type
action find
entity Tunnel View
relation offers view on
type watercourse
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { ?z rdf:type ontology:watercourse . resource:Tunnel_View property:offers_view_on ?z } } . FILTER ( ?x < ?h ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?x ) WHERE { ?u property:offers_view_on ?i . ?u rdf:type ontology:architectural_structure . ?i rdf:type ontology:watercourse } GROUP BY ?u } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1731 Q978589
P6
Q502895
USER
Does Dardo Sánchez Cal have Dresden as its head of government ?
(Q1731,P6,Q978589)
action is_in
entity Q978589
action find
entity Q1731
relation P6
['Q1731', 'P6', 'Q978589']
ASK WHERE { resource:Q1731 property:P6 resource:Q978589 }
Dresden Dardo Sánchez Cal
action is_in
entity Dardo Sánchez Cal
action find
entity Dresden
relation head of government
['Dresden', 'head of government', 'Dardo Sánchez Cal']
ASK WHERE { resource:Dresden property:head_of_government resource:Dardo_Sánchez_Cal }
[]
common name
SYSTEM
NO
(Q1731,P6,Q978589)
action is_in
entity Q978589
action find
entity Q1731
relation P6
[ANSWER]
['Q1731', 'P6', 'Q978589']
ASK WHERE { resource:Q1731 property:P6 resource:Q978589 }
No
action is_in
entity Dardo Sánchez Cal
action find
entity Dresden
relation head of government
['Dresden', 'head of government', 'Dardo Sánchez Cal']
ASK WHERE { resource:Dresden property:head_of_government resource:Dardo_Sánchez_Cal }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q517967
P47
Q15617994
USER
How many administrative territories share border with Tittling ?
(c(Q15617994),P47,Q517967)
action count
action filter_type
action find_reverse
entity Q517967
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q517967']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:P47 resource:Q517967 . ?x rdf:type ontology:Q15617994 }
Tittling
action count
action filter_type
action find_reverse
entity Tittling
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Tittling']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:shares_border_with resource:Tittling . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
6
Q509768 Q503437 Q502720 Q504217 Q31669 Q503831
(c(Q15617994),P47,Q517967)
action count
action filter_type
action find_reverse
entity Q517967
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q517967']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:P47 resource:Q517967 . ?x rdf:type ontology:Q15617994 }
Fürstenstein Saldenburg Thurmansbang Witzmannsberg Neukirchen vorm Wald Perlesreut
6
action count
action filter_type
action find_reverse
entity Tittling
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Tittling']
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x property:shares_border_with resource:Tittling . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3609557 Q978589
P27
Q15617994
USER
Which administrative territories are the native countriesof Dardo Sánchez Cal or Aliaksandra Tarasava ?
OR((Q978589,P27,c(Q15617994)), (Q3609557,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q978589
relation P27
action find
entity Q3609557
relation P27
type Q15617994
{'OR': [['Q978589', 'P27', {'concept': 'Q15617994'}], ['Q3609557', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3609557 property:P27 ?y } UNION { resource:Q978589 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Aliaksandra Tarasava Dardo Sánchez Cal
action filter_type
action union
action find
entity Dardo Sánchez Cal
relation country of citizenship
action find
entity Aliaksandra Tarasava
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Dardo Sánchez Cal', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Aliaksandra Tarasava', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Aliaksandra_Tarasava property:country_of_citizenship ?y } UNION { resource:Dardo_Sánchez_Cal property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q77 Q184
SYSTEM
Uruguay, Belarus
Q77 Q184
OR((Q978589,P27,c(Q15617994)), (Q3609557,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q978589
relation P27
action find
entity Q3609557
relation P27
type Q15617994
[ANSWERS] are the native countriesof Dardo Sánchez Cal or Aliaksandra Tarasava
{'OR': [['Q978589', 'P27', {'concept': 'Q15617994'}], ['Q3609557', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3609557 property:P27 ?y } UNION { resource:Q978589 property:P27 ?y } } . ?y rdf:type ontology:Q15617994 }
Uruguay Belarus
Uruguay and Belarus are the native countriesof Dardo Sánchez Cal or Aliaksandra Tarasava
Uruguay Belarus
action filter_type
action union
action find
entity Dardo Sánchez Cal
relation country of citizenship
action find
entity Aliaksandra Tarasava
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Dardo Sánchez Cal', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Aliaksandra Tarasava', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Aliaksandra_Tarasava property:country_of_citizenship ?y } UNION { resource:Dardo_Sánchez_Cal property:country_of_citizenship ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13463 Q3126
P47 P17
Q1048835
USER
Which political territories are Erlangen situated in or are adjacent to Albons ?
OR((Q3126,P17,c(Q1048835)), (Q13463,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q3126
relation P17
action find
entity Q13463
relation P47
type Q1048835
{'OR': [['Q3126', 'P17', {'concept': 'Q1048835'}], ['Q13463', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q3126 property:P17 ?b } UNION { resource:Q13463 property:P47 ?b } } . ?b rdf:type ontology:Q1048835 }
Albons Erlangen
action filter_type
action union
action find
entity Erlangen
relation country
action find
entity Albons
relation shares border with
type political territorial entity
{'OR': [['Erlangen', 'country', {'concept': 'political territorial entity'}], ['Albons', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Erlangen property:country ?b } UNION { resource:Albons property:shares_border_with ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13571 Q13461 Q11304 Q183 Q12151
SYSTEM
La Tallada d'Empordà, Bellcaire d'Empordà, L'Escala, Germany, Viladamat
Q13571 Q13461 Q11304 Q183 Q12151
OR((Q3126,P17,c(Q1048835)), (Q13463,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q3126
relation P17
action find
entity Q13463
relation P47
type Q1048835
Erlangen are situated in [ANSWERS] or are adjacent to Albons
{'OR': [['Q3126', 'P17', {'concept': 'Q1048835'}], ['Q13463', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q3126 property:P17 ?b } UNION { resource:Q13463 property:P47 ?b } } . ?b rdf:type ontology:Q1048835 }
La Tallada d'Empordà Bellcaire d'Empordà L'Escala Germany Viladamat
Erlangen are situated in La Tallada d'Empordà, Bellcaire d'Empordà, L'Escala, Germany and Viladamat or are adjacent to Albons
La Tallada d'Empordà Bellcaire d'Empordà L'Escala Germany Viladamat
action filter_type
action union
action find
entity Erlangen
relation country
action find
entity Albons
relation shares border with
type political territorial entity
{'OR': [['Erlangen', 'country', {'concept': 'political territorial entity'}], ['Albons', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Erlangen property:country ?b } UNION { resource:Albons property:shares_border_with ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1710
P36
Q515 Q15617994 Q13220204
USER
Which cities are the capitals of more number of administrative territories and administrative country subdivisions than Isabela City ?
(c(Q15617994)|c(Q13220204),P36,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action find_reverse_tuple_counts
relation P36
type Q515
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q1710
relation P36
type Q15617994
type Q13220204
[[{'concept': 'Q15617994'}, {'concept': 'Q13220204'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i property:P36 resource:Q1710 . { { ?i rdf:type ontology:Q15617994 } UNION { ?i rdf:type ontology:Q13220204 } } } } . FILTER ( ?j > ?z ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) ?e WHERE { VALUES ( ?b ) { ( ontology:Q15617994 ) ( ontology:Q13220204 ) } . ?f rdf:type ?b } GROUP BY ?e } }
Isabela City
action greater
action union
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation capital
type city
type second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity Isabela City
relation capital
type designation for an administrative territorial entity
type second-level administrative country subdivision
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i property:capital resource:Isabela_City . { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i rdf:type ontology:second-level_administrative_country_subdivision } } } } . FILTER ( ?j > ?z ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) ?e WHERE { VALUES ( ?b ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?f rdf:type ?b } GROUP BY ?e } }
[]
city designation for an administrative territorial entity second-level administrative country subdivision
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q3572 Q19689 Q83786 Q496667 Q3624 Q7473516 Q3870 Q2135 Q3926 Q3744 Q23482 Q505208 Q5838 Q3692 Q3104 Q1899 Q1486 Q1461 Q117676 Q1844 Q23430 Q1362 Q167668 Q4469 Q1519 Q8684 Q3838 Q7248 Q6602 Q305640 Q7568 Q3866 Q3859 Q19660 Q3915 Q1953 Q714628 Q177149 Q9005 Q2337 Q2978 Q34261 Q1773 Q14821 Q14440 Q1858 Q2096 Q3787 Q7070 Q3826 Q271000 Q1533 Q42751 Q11194 Q271917 Q1720 Q83247 Q3904 Q2907 Q1001339 Q2844 Q3768 Q1863 Q1865 Q2203 Q693264 Q6582 Q502205 Q1761 Q2887 Q2061 Q456 Q267894 Q3935 Q7003 Q3919 Q3751 Q3616 Q3612 Q25475 Q1530 Q2900 Q187284
(c(Q15617994)|c(Q13220204),P36,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action find_reverse_tuple_counts
relation P36
type Q515
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q1710
relation P36
type Q15617994
type Q13220204
[ANSWERS] are the capitals of more number of administrative territories and administrative country subdivisions than Isabela City
[[{'concept': 'Q15617994'}, {'concept': 'Q13220204'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i property:P36 resource:Q1710 . { { ?i rdf:type ontology:Q15617994 } UNION { ?i rdf:type ontology:Q13220204 } } } } . FILTER ( ?j > ?z ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) ?e WHERE { VALUES ( ?b ) { ( ontology:Q15617994 ) ( ontology:Q13220204 ) } . ?f rdf:type ?b } GROUP BY ?e } }
Tunis Tirana Shimla Muroran Addis Ababa Tokyo Nairobi Winnipeg Pretoria Castro Marseille Ouarzazate Kabul Riyadh Koblenz Kyiv Buenos Aires Manila Viseu Vaduz Ulaanbaatar Islamabad Liepāja Talca Abu Dhabi Seoul Kinshasa Bukittinggi Strasbourg Abashiri Yogyakarta Dodoma Kigali Bucharest Antananarivo Yerevan Rumoi Obihiro Brussels Smolensk Regensburg Port-au-Prince Riga Coburg Iquique Hanoi Edmonton Abuja Eisenach Muscat Bouaké Caracas Palikir Sarajevo Kushiro Mainz Braga Mbabane Sucre Puerto Natales Brasília Yamoussoukro Andorra la Vella Kuala Lumpur Arica Iwamizawa Carcassonne Nemuro Dublin Santiago Yellowknife Lyon Wakkanai Windhoek Dijon Gaborone Praia Tehran Antofagasta Batumi Baghdad Quito Hurghada
Buenos Aires, Riga and Kyiv are the capitals of more number of administrative territories and administrative country subdivisions than Isabela City
Buenos Aires Riga Kyiv
action greater
action union
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation capital
type city
type second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity Isabela City
relation capital
type designation for an administrative territorial entity
type second-level administrative country subdivision
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i property:capital resource:Isabela_City . { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?i rdf:type ontology:second-level_administrative_country_subdivision } } } } . FILTER ( ?j > ?z ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?j ) ?e WHERE { VALUES ( ?b ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?f rdf:type ?b } GROUP BY ?e } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q42666
P36
Q515 Q15617994 Q13220204
USER
And also tell me about Shaoxing?
(c(Q15617994)|c(Q13220204),P36,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action find_reverse_tuple_counts
relation P36
type Q515
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q42666
relation P36
type Q15617994
type Q13220204
[[{'concept': 'Q15617994'}, {'concept': 'Q13220204'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:P36 resource:Q42666 . { { ?j rdf:type ontology:Q15617994 } UNION { ?j rdf:type ontology:Q13220204 } } } } . FILTER ( ?e > ?a ) . { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?e ) WHERE { { ?t property:P36 ?c . ?t rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q515 } UNION { ?t property:P36 ?c . ?t rdf:type ontology:Q13220204 . ?c rdf:type ontology:Q515 } } GROUP BY ?c } }
Shaoxing
action greater
action union
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation capital
type city
type second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity Shaoxing
relation capital
type designation for an administrative territorial entity
type second-level administrative country subdivision
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:capital resource:Shaoxing . { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j rdf:type ontology:second-level_administrative_country_subdivision } } } } . FILTER ( ?e > ?a ) . { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?e ) WHERE { { ?t property:capital ?c . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:city } UNION { ?t property:capital ?c . ?t rdf:type ontology:second-level_administrative_country_subdivision . ?c rdf:type ontology:city } } GROUP BY ?c } }
[]
city designation for an administrative territorial entity second-level administrative country subdivision
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q3572 Q19689 Q83786 Q496667 Q3624 Q7473516 Q3870 Q2135 Q3926 Q3744 Q23482 Q505208 Q5838 Q3692 Q3104 Q1899 Q1486 Q1461 Q117676 Q1844 Q23430 Q1362 Q167668 Q4469 Q1519 Q8684 Q3838 Q7248 Q6602 Q305640 Q7568 Q3866 Q3859 Q19660 Q3915 Q1953 Q714628 Q177149 Q9005 Q2337 Q2978 Q34261 Q1773 Q14821 Q14440 Q1858 Q2096 Q3787 Q7070 Q3826 Q271000 Q1533 Q42751 Q11194 Q271917 Q1720 Q83247 Q3904 Q2907 Q1001339 Q2844 Q3768 Q1863 Q1865 Q2203 Q693264 Q6582 Q502205 Q1761 Q2887 Q2061 Q456 Q267894 Q3935 Q7003 Q3919 Q3751 Q3616 Q3612 Q25475 Q1530 Q2900 Q187284
(c(Q15617994)|c(Q13220204),P36,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action find_reverse_tuple_counts
relation P36
type Q515
type Q13220204
action count
action filter_multi_types
action find_reverse
entity Q42666
relation P36
type Q15617994
type Q13220204
[ANSWERS]
[[{'concept': 'Q15617994'}, {'concept': 'Q13220204'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:P36 resource:Q42666 . { { ?j rdf:type ontology:Q15617994 } UNION { ?j rdf:type ontology:Q13220204 } } } } . FILTER ( ?e > ?a ) . { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?e ) WHERE { { ?t property:P36 ?c . ?t rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q515 } UNION { ?t property:P36 ?c . ?t rdf:type ontology:Q13220204 . ?c rdf:type ontology:Q515 } } GROUP BY ?c } }
Tunis Tirana Shimla Muroran Addis Ababa Tokyo Nairobi Winnipeg Pretoria Castro Marseille Ouarzazate Kabul Riyadh Koblenz Kyiv Buenos Aires Manila Viseu Vaduz Ulaanbaatar Islamabad Liepāja Talca Abu Dhabi Seoul Kinshasa Bukittinggi Strasbourg Abashiri Yogyakarta Dodoma Kigali Bucharest Antananarivo Yerevan Rumoi Obihiro Brussels Smolensk Regensburg Port-au-Prince Riga Coburg Iquique Hanoi Edmonton Abuja Eisenach Muscat Bouaké Caracas Palikir Sarajevo Kushiro Mainz Braga Mbabane Sucre Puerto Natales Brasília Yamoussoukro Andorra la Vella Kuala Lumpur Arica Iwamizawa Carcassonne Nemuro Dublin Santiago Yellowknife Lyon Wakkanai Windhoek Dijon Gaborone Praia Tehran Antofagasta Batumi Baghdad Quito Hurghada
Buenos Aires Riga Kyiv
action greater
action union
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation capital
type city
type second-level administrative country subdivision
action count
action filter_multi_types
action find_reverse
entity Shaoxing
relation capital
type designation for an administrative territorial entity
type second-level administrative country subdivision
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { ?j property:capital resource:Shaoxing . { { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j rdf:type ontology:second-level_administrative_country_subdivision } } } } . FILTER ( ?e > ?a ) . { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?e ) WHERE { { ?t property:capital ?c . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:city } UNION { ?t property:capital ?c . ?t rdf:type ontology:second-level_administrative_country_subdivision . ?c rdf:type ontology:city } } GROUP BY ?c } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q515 Q515 Q13220204
USER
Which cities are partner towns of atleast 7 cities or administrative country subdivisions ?
(c(Q515)|c(Q13220204),P190,c(Q515))
action atleast
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q515
action find_reverse_tuple_counts
relation P190
type Q515
type Q13220204
value 7
[[{'concept': 'Q515'}, {'concept': 'Q13220204'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?n ) WHERE { { ?x property:P190 ?i . ?i rdf:type ontology:Q515 . ?x rdf:type ontology:Q515 } UNION { ?x property:P190 ?i . ?i rdf:type ontology:Q515 . ?x rdf:type ontology:Q13220204 } } GROUP BY ?i } . FILTER ( ?n >= 7 ) }
action atleast
action union
action find_reverse_tuple_counts
relation sister city
type city
type city
action find_reverse_tuple_counts
relation sister city
type city
type second-level administrative country subdivision
value 7
[[{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?n ) WHERE { { ?x property:sister_city ?i . ?i rdf:type ontology:city . ?x rdf:type ontology:city } UNION { ?x property:sister_city ?i . ?i rdf:type ontology:city . ?x rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?i } . FILTER ( ?n >= 7 ) }
[]
city city second-level administrative country subdivision
Q1486 Q1899 Q42622
SYSTEM
Buenos Aires, Kyiv, Suzhou
Q19689 Q1899 Q1486 Q1461 Q8652 Q2207 Q42622 Q3616
(c(Q515)|c(Q13220204),P190,c(Q515))
action atleast
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q515
action find_reverse_tuple_counts
relation P190
type Q515
type Q13220204
value 7
[ANSWERS] are partner towns of atleast 7 cities or administrative country subdivisions
[[{'concept': 'Q515'}, {'concept': 'Q13220204'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?n ) WHERE { { ?x property:P190 ?i . ?i rdf:type ontology:Q515 . ?x rdf:type ontology:Q515 } UNION { ?x property:P190 ?i . ?i rdf:type ontology:Q515 . ?x rdf:type ontology:Q13220204 } } GROUP BY ?i } . FILTER ( ?n >= 7 ) }
Tirana Kyiv Buenos Aires Manila Miami Naga Suzhou Tehran
Buenos Aires, Kyiv and Suzhou are partner towns of atleast 7 cities or administrative country subdivisions
Buenos Aires Kyiv Suzhou
action atleast
action union
action find_reverse_tuple_counts
relation sister city
type city
type city
action find_reverse_tuple_counts
relation sister city
type city
type second-level administrative country subdivision
value 7
[[{'concept': 'city'}, {'concept': 'second-level administrative country subdivision'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?n ) WHERE { { ?x property:sister_city ?i . ?i rdf:type ontology:city . ?x rdf:type ontology:city } UNION { ?x property:sister_city ?i . ?i rdf:type ontology:city . ?x rdf:type ontology:second-level_administrative_country_subdivision } } GROUP BY ?i } . FILTER ( ?n >= 7 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q41156 Q20667921
USER
How many administrative territory of South Koreas or french administrative divisions are partner towns of that city ?
(Q42622,P190,c(Q41156)) (Q42622,P190,c(Q20667921)) (Q1486,P190,c(Q41156)) (Q1486,P190,c(Q20667921)) (Q1899,P190,c(Q41156)) (Q1899,P190,c(Q20667921)) (Q42622,P190,c(Q41156)) (Q42622,P190,c(Q20667921))
['Q42622', 'P190', {'concept': 'Q41156'}] ['Q42622', 'P190', {'concept': 'Q20667921'}] ['Q1486', 'P190', {'concept': 'Q41156'}] ['Q1486', 'P190', {'concept': 'Q20667921'}] ['Q1899', 'P190', {'concept': 'Q41156'}] ['Q1899', 'P190', {'concept': 'Q20667921'}] ['Q42622', 'P190', {'concept': 'Q41156'}] ['Q42622', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q10935365 property:P190 ?z } UNION { resource:Q10935365 property:P190 ?y } UNION { resource:Q2101554 property:P190 ?z } UNION { resource:Q2101554 property:P190 ?y } UNION { resource:Q4512420 property:P190 ?z } UNION { resource:Q4512420 property:P190 ?y } UNION { resource:Q10935365 property:P190 ?z } UNION { resource:Q10935365 property:P190 ?y } } . ?z rdf:type ontology:Q41156 . ?y rdf:type ontology:Q20667921 }
['Suzhou', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Suzhou', 'sister city', {'concept': 'type of french administrative division'}] ['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Buenos Aires', 'sister city', {'concept': 'type of french administrative division'}] ['Kyiv', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Kyiv', 'sister city', {'concept': 'type of french administrative division'}] ['Suzhou', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Suzhou', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Suzhou property:sister_city ?z } UNION { resource:Suzhou property:sister_city ?y } UNION { resource:Buenos_Aires property:sister_city ?z } UNION { resource:Buenos_Aires property:sister_city ?y } UNION { resource:Kyiv property:sister_city ?z } UNION { resource:Kyiv property:sister_city ?y } UNION { resource:Suzhou property:sister_city ?z } UNION { resource:Suzhou property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity_of_South_Korea . ?y rdf:type ontology:type_of_french_administrative_division }
[]
administrative territorial entity of South Korea type of french administrative division
Quantitative|Count|Mult. entity type|Clarification
Q42622
SYSTEM
Did you mean Suzhou ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q10935365 property:P190 ?z } UNION { resource:Q10935365 property:P190 ?y } UNION { resource:Q2101554 property:P190 ?z } UNION { resource:Q2101554 property:P190 ?y } UNION { resource:Q4512420 property:P190 ?z } UNION { resource:Q4512420 property:P190 ?y } UNION { resource:Q10935365 property:P190 ?z } UNION { resource:Q10935365 property:P190 ?y } } . ?z rdf:type ontology:Q41156 . ?y rdf:type ontology:Q20667921 }
Did you mean Suzhou ?
Suzhou
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Suzhou property:sister_city ?z } UNION { resource:Suzhou property:sister_city ?y } UNION { resource:Buenos_Aires property:sister_city ?z } UNION { resource:Buenos_Aires property:sister_city ?y } UNION { resource:Kyiv property:sister_city ?z } UNION { resource:Kyiv property:sister_city ?y } UNION { resource:Suzhou property:sister_city ?z } UNION { resource:Suzhou property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity_of_South_Korea . ?y rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q42622,P190,c(Q41156)) (Q42622,P190,c(Q20667921)) (Q1486,P190,c(Q41156)) (Q1486,P190,c(Q20667921)) (Q1899,P190,c(Q41156)) (Q1899,P190,c(Q20667921)) (Q42622,P190,c(Q41156)) (Q42622,P190,c(Q20667921))
['Q42622', 'P190', {'concept': 'Q41156'}] ['Q42622', 'P190', {'concept': 'Q20667921'}] ['Q1486', 'P190', {'concept': 'Q41156'}] ['Q1486', 'P190', {'concept': 'Q20667921'}] ['Q1899', 'P190', {'concept': 'Q41156'}] ['Q1899', 'P190', {'concept': 'Q20667921'}] ['Q42622', 'P190', {'concept': 'Q41156'}] ['Q42622', 'P190', {'concept': 'Q20667921'}]
['Suzhou', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Suzhou', 'sister city', {'concept': 'type of french administrative division'}] ['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Buenos Aires', 'sister city', {'concept': 'type of french administrative division'}] ['Kyiv', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Kyiv', 'sister city', {'concept': 'type of french administrative division'}] ['Suzhou', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Suzhou', 'sister city', {'concept': 'type of french administrative division'}]
[]
SYSTEM
2
Q42160 Q12193
(Q42622,P190,c(Q41156)) (Q42622,P190,c(Q20667921)) (Q1486,P190,c(Q41156)) (Q1486,P190,c(Q20667921)) (Q1899,P190,c(Q41156)) (Q1899,P190,c(Q20667921)) (Q42622,P190,c(Q41156)) (Q42622,P190,c(Q20667921))
[ANSWER]
['Q42622', 'P190', {'concept': 'Q41156'}] ['Q42622', 'P190', {'concept': 'Q20667921'}] ['Q1486', 'P190', {'concept': 'Q41156'}] ['Q1486', 'P190', {'concept': 'Q20667921'}] ['Q1899', 'P190', {'concept': 'Q41156'}] ['Q1899', 'P190', {'concept': 'Q20667921'}] ['Q42622', 'P190', {'concept': 'Q41156'}] ['Q42622', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q10935365 property:P190 ?z } UNION { resource:Q10935365 property:P190 ?y } UNION { resource:Q2101554 property:P190 ?z } UNION { resource:Q2101554 property:P190 ?y } UNION { resource:Q4512420 property:P190 ?z } UNION { resource:Q4512420 property:P190 ?y } UNION { resource:Q10935365 property:P190 ?z } UNION { resource:Q10935365 property:P190 ?y } } . ?z rdf:type ontology:Q41156 . ?y rdf:type ontology:Q20667921 }
Hwaseong Brest
2
['Suzhou', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Suzhou', 'sister city', {'concept': 'type of french administrative division'}] ['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Buenos Aires', 'sister city', {'concept': 'type of french administrative division'}] ['Kyiv', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Kyiv', 'sister city', {'concept': 'type of french administrative division'}] ['Suzhou', 'sister city', {'concept': 'administrative territorial entity of South Korea'}] ['Suzhou', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Suzhou property:sister_city ?z } UNION { resource:Suzhou property:sister_city ?y } UNION { resource:Buenos_Aires property:sister_city ?z } UNION { resource:Buenos_Aires property:sister_city ?y } UNION { resource:Kyiv property:sister_city ?z } UNION { resource:Kyiv property:sister_city ?y } UNION { resource:Suzhou property:sister_city ?z } UNION { resource:Suzhou property:sister_city ?y } } . ?z rdf:type ontology:administrative_territorial_entity_of_South_Korea . ?y rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1004257 Q1899
P190
Q56061
USER
Which administrative territories are twin towns of Kyiv or Vyshhorod ?
OR((Q1899,P190,c(Q56061)), (Q1004257,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1899
relation P190
action find
entity Q1004257
relation P190
type Q56061
{'OR': [['Q1899', 'P190', {'concept': 'Q56061'}], ['Q1004257', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1899 property:P190 ?s } UNION { resource:Q1004257 property:P190 ?s } } . ?s rdf:type ontology:Q56061 }
Vyshhorod Kyiv
action filter_type
action union
action find
entity Kyiv
relation sister city
action find
entity Vyshhorod
relation sister city
type administrative territorial entity
{'OR': [['Kyiv', 'sister city', {'concept': 'administrative territorial entity'}], ['Vyshhorod', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Kyiv property:sister_city ?s } UNION { resource:Vyshhorod property:sister_city ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1297 Q172 Q3323 Q1726 Q472 Q2044 Q1489 Q994 Q1757 Q8678
SYSTEM
Some of them are Chicago, Toronto, Belgorod, Munich, Sofia, Florence, Mexico City, Tbilisi, Helsinki, Rio de Janeiro
Q1757 Q1754 Q994 Q727 Q9248 Q472 Q1770 Q1297 Q5168 Q40840 Q23436 Q1524 Q3711 Q157738 Q1520 Q1781 Q1489 Q25331 Q1780 Q1741 Q206954 Q3323 Q1726 Q21197 Q7880 Q216 Q172 Q270 Q8678 Q239 Q956 Q2280 Q2044 Q3640
OR((Q1899,P190,c(Q56061)), (Q1004257,P190,c(Q56061)))
action filter_type
action union
action find
entity Q1899
relation P190
action find
entity Q1004257
relation P190
type Q56061
[ANSWERS] are twin towns of Kyiv or Vyshhorod
{'OR': [['Q1899', 'P190', {'concept': 'Q56061'}], ['Q1004257', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1899 property:P190 ?s } UNION { resource:Q1004257 property:P190 ?s } } . ?s rdf:type ontology:Q56061 }
Helsinki Stockholm Tbilisi Amsterdam Baku Sofia Tallinn Chicago Makhachkala Tampere Edinburgh Athens Belgrade Delčevo Astana Budapest Mexico City Odense Bratislava Vienna Kastoria Belgorod Munich Chișinău Toulouse Vilnius Toronto Warsaw Rio de Janeiro Brussels Beijing Minsk Florence Ankara
Chicago, Toronto, Belgorod, Munich, Sofia, Florence, Mexico City, Tbilisi, Helsinki and Rio de Janeiro are twin towns of Kyiv or Vyshhorod
Chicago Toronto Belgorod Munich Sofia Florence Mexico City Tbilisi Helsinki Rio de Janeiro
action filter_type
action union
action find
entity Kyiv
relation sister city
action find
entity Vyshhorod
relation sister city
type administrative territorial entity
{'OR': [['Kyiv', 'sister city', {'concept': 'administrative territorial entity'}], ['Vyshhorod', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Kyiv property:sister_city ?s } UNION { resource:Vyshhorod property:sister_city ?s } } . ?s rdf:type ontology:administrative_territorial_entity }
[]