Simple Question (Direct)
Simple Question
Q15547946
P9
Q502895
USER
Who has Souzana Vougioukli as thier sibling ?
(Q15547946,P9,c(Q502895))
action filter_type
action find
entity Q15547946
relation P9
type Q502895
['Q15547946', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q15547946 property:P9 ?d . ?d rdf:type ontology:Q502895 }
Souzana Vougioukli
action filter_type
action find
entity Souzana Vougioukli
relation sister
type common name
['Souzana Vougioukli', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Souzana_Vougioukli property:sister ?d . ?d rdf:type ontology:common_name }
[]
common name
Q15547945
SYSTEM
Eleni Vougioukli
Q15547945
(Q15547946,P9,c(Q502895))
action filter_type
action find
entity Q15547946
relation P9
type Q502895
[ANSWER] has Souzana Vougioukli as thier sibling
['Q15547946', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q15547946 property:P9 ?d . ?d rdf:type ontology:Q502895 }
Eleni Vougioukli
Eleni Vougioukli has Souzana Vougioukli as thier sibling
Eleni Vougioukli
action filter_type
action find
entity Souzana Vougioukli
relation sister
type common name
['Souzana Vougioukli', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Souzana_Vougioukli property:sister ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15547946
P19
Q56061
USER
Which administrative territory is the place of birth of Souzana Vougioukli ?
(Q15547946,P19,c(Q56061))
action filter_type
action find
entity Q15547946
relation P19
type Q56061
['Q15547946', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q15547946 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Souzana Vougioukli
action filter_type
action find
entity Souzana Vougioukli
relation place of birth
type administrative territorial entity
['Souzana Vougioukli', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Souzana_Vougioukli property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q210296
SYSTEM
Xanthi
Q210296
(Q15547946,P19,c(Q56061))
action filter_type
action find
entity Q15547946
relation P19
type Q56061
[ANSWER] is the place of birth of Souzana Vougioukli
['Q15547946', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q15547946 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Xanthi
Xanthi is the place of birth of Souzana Vougioukli
Xanthi
action filter_type
action find
entity Souzana Vougioukli
relation place of birth
type administrative territorial entity
['Souzana Vougioukli', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Souzana_Vougioukli property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q210296
P190
Q13220204
USER
Which administrative country subdivision is the sister city of that administrative territory ?
(Q210296,P190,c(Q13220204))
action filter_type
action find
entity Q210296
relation P190
type Q13220204
['Q210296', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q13220204 . resource:Q210296 property:P190 ?k }
Xanthi
action filter_type
action find
entity Xanthi
relation sister city
type second-level administrative country subdivision
['Xanthi', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:second-level_administrative_country_subdivision . resource:Xanthi property:sister_city ?k }
[]
second-level administrative country subdivision
Q252098
SYSTEM
New Belgrade
Q252098
(Q210296,P190,c(Q13220204))
action filter_type
action find
entity Q210296
relation P190
type Q13220204
[ANSWER] is the sister city of that administrative territory
['Q210296', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q13220204 . resource:Q210296 property:P190 ?k }
New Belgrade
New Belgrade is the sister city of that administrative territory
New Belgrade
action filter_type
action find
entity Xanthi
relation sister city
type second-level administrative country subdivision
['Xanthi', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:second-level_administrative_country_subdivision . resource:Xanthi property:sister_city ?k }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q252098 Q210296
P190
Q56061
USER
Is Xanthi partner town of that administrative country subdivision ?
(Q210296,P190,Q252098)
action is_in
entity Q210296
action find
entity Q252098
relation P190
['Q210296', 'P190', 'Q252098']
ASK WHERE { resource:Q252098 property:P190 resource:Q210296 }
New Belgrade Xanthi
action is_in
entity Xanthi
action find
entity New Belgrade
relation sister city
['Xanthi', 'sister city', 'New Belgrade']
ASK WHERE { resource:New_Belgrade property:sister_city resource:Xanthi }
[]
administrative territorial entity
SYSTEM
YES
(Q210296,P190,Q252098)
action is_in
entity Q210296
action find
entity Q252098
relation P190
[ANSWER]
['Q210296', 'P190', 'Q252098']
ASK WHERE { resource:Q252098 property:P190 resource:Q210296 }
Yes
action is_in
entity Xanthi
action find
entity New Belgrade
relation sister city
['Xanthi', 'sister city', 'New Belgrade']
ASK WHERE { resource:New_Belgrade property:sister_city resource:Xanthi }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q515 Q13220204
USER
Which cities are namesakes of atmost 1 administrative country subdivision ?
(c(Q13220204),P138,c(Q515))
action atmost
action find_reverse_tuple_counts
relation P138
type Q515
type Q13220204
value 1
[{'concept': 'Q13220204'}, 'P138', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?n ) WHERE { ?q rdf:type ontology:Q515 . ?y rdf:type ontology:Q13220204 . ?y property:P138 ?q } GROUP BY ?q } . FILTER ( ?n <= 1 ) }
action atmost
action find_reverse_tuple_counts
relation named after
type city
type second-level administrative country subdivision
value 1
[{'concept': 'second-level administrative country subdivision'}, 'named after', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?n ) WHERE { ?q rdf:type ontology:city . ?y rdf:type ontology:second-level_administrative_country_subdivision . ?y property:named_after ?q } GROUP BY ?q } . FILTER ( ?n <= 1 ) }
[]
city second-level administrative country subdivision
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q1410 Q208863 Q569639 Q14960 Q92364 Q869037 Q2702822 Q1794 Q714628 Q860659 Q327764 Q665 Q2900 Q9005 Q841296 Q270463 Q373813 Q16506 Q34412 Q404763 Q1486 Q2966 Q339102 Q167109 Q158239 Q11736 Q34217 Q496472 Q569907 Q1019355 Q827041 Q3572 Q3167 Q633983 Q1010144 Q5869 Q2865 Q4024 Q52564 Q4905 Q1711 Q424813 Q5540 Q815541 Q3806 Q2973 Q34261 Q360326 Q209983 Q634022 Q1773 Q43199 Q10389 Q242885 Q824009 Q1632616 Q21006899 Q6582 Q2079 Q2773 Q629849 Q6829 Q187821 Q844130 Q14440 Q467471 Q273880 Q830418 Q533432 Q1858 Q57947 Q386052 Q57941 Q158280 Q1761 Q1854 Q168648 Q205914 Q750224 Q188082 Q417825 Q1363688 Q328067 Q7070 Q653364 Q288413 Q653389 Q8684 Q59184 Q489147 Q44830 Q2508095 Q456 Q59100 Q2749 Q182852 Q4174 Q736276 Q653478 Q6602 Q1018863 Q2833 Q59205 Q752183 Q485176 Q3935 Q1790515 Q7003 Q3936 Q3931 Q18575 Q858016 Q3866 Q696418 Q59218 Q3616 Q14819 Q647079 Q158272 Q373023 Q193721 Q183111 Q193724 Q734532 Q682544 Q6807568 Q847557 Q8652 Q4827 Q8131 Q58675 Q2887 Q3214 Q2100 Q23482 Q1530 Q750587 Q523469 Q1731 Q851030 Q853805 Q819664 Q679249 Q633996 Q582209 Q825272 Q606212 Q42750 Q155975 Q19660 Q330259 Q23768 Q817278 Q11194 Q3915 Q375651 Q503411 Q485583 Q68534 Q1720 Q3104 Q1028241 Q373804 Q3861 Q207309 Q58422 Q68695 Q1899 Q16666 Q656603 Q11725
(c(Q13220204),P138,c(Q515))
action atmost
action find_reverse_tuple_counts
relation P138
type Q515
type Q13220204
value 1
[ANSWERS] are namesakes of atmost 1 administrative country subdivision
[{'concept': 'Q13220204'}, 'P138', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?n ) WHERE { ?q rdf:type ontology:Q515 . ?y rdf:type ontology:Q13220204 . ?y property:P138 ?q } GROUP BY ?q } . FILTER ( ?n <= 1 ) }
Gibraltar Hachiōji City Lahnstein Brno Songyuan Takasago Jistebnice Frankfurt Rumoi Gyōda Prachatice Lugdunum Quito Brussels Příbram Rikuzentakata Albufeira České Budějovice Foshan Nanyang Buenos Aires Heidelberg Černovice Eger Kroměříž Tianjin Oxford Kuwana Baotou Nové Hrady Beroun Tunis Siegen Kashiwazaki Hluboká nad Vltavou Lhasa Kassel Frankfurt (Oder) Maloe Verevo Druzhnaya Gorka Potsdam Akō Penza Týn nad Vltavou Tübingen Darmstadt Port-au-Prince Tongling Gyöngyös Kiryū Riga Omaha Bandung Mitaka City Sayama Počátky Smrkovec Carcassonne Leipzig Braunschweig Hatvan Speyer Tatabánya Nagahama Iquique Kashima Beppu Jáchymov Jiuquan Hanoi Nantong Ōshū Schneeberg, Saxony Dobřichovice Dublin Ho Chi Minh City Sopron Lijiang Strakonice Český Krumlov Aki Corinth Ise Eisenach Atami Tapolca Nobeoka Seoul Meizhou Schmalkalden Tochigi Ledra Lyon Shantou Augsburg Kunming Emden Cernavodă Mishima Strasbourg Chýnov Freiburg im Breisgau Heyuan Inkerman Pasadena Windhoek Krásno Dijon Bamberg Brandenburg an der Havel Tucson Tatebayashi Dodoma Katsuura Dongguan Tehran Freiberg Chichibu Žamberk Weihai Tábor Jihlava Slavkov u Brna Fukaya Mikulov Emmen Nagai Miami Vyritsa Palembang Chengde Santiago Cottbus Duisburg Marseille Baghdad Shirakawa Mariánské Lázně Dresden Uenohara Kani Sukagawa Kalocsa Kameoka Tokaj Hokuto Fremantle Vojskovitsy Kutná Hora Bucharest Úpice Las Vegas Kitahiroshima Sarajevo Antananarivo Valašské Meziříčí Inuyama Anan Nanping Mainz Koblenz Chvaletice Telč Doha Tokushima Tangshan Quanzhou Kyiv Nanjing Jičín Chongqing
Buenos Aires, Riga and Kyiv are namesakes of atmost 1 administrative country subdivision
Buenos Aires Riga Kyiv
action atmost
action find_reverse_tuple_counts
relation named after
type city
type second-level administrative country subdivision
value 1
[{'concept': 'second-level administrative country subdivision'}, 'named after', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?y ) AS ?n ) WHERE { ?q rdf:type ontology:city . ?y rdf:type ontology:second-level_administrative_country_subdivision . ?y property:named_after ?q } GROUP BY ?q } . FILTER ( ?n <= 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1486
P1376
Q7275
USER
Which state has that city as its county seat ?
(Q1486,P1376,c(Q7275))
action filter_type
action find
entity Q1486
relation P1376
type Q7275
['Q1486', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?x WHERE { resource:Q1486 property:P1376 ?x . ?x rdf:type ontology:Q7275 }
Buenos Aires
action filter_type
action find
entity Buenos Aires
relation capital of
type state
['Buenos Aires', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?x WHERE { resource:Buenos_Aires property:capital_of ?x . ?x rdf:type ontology:state }
[]
state
Clarification for simple ques.
Q1773
SYSTEM
Did you mean Riga ?
Q1486 Q1773 Q1899
(Q1486,P1376,c(Q7275)) (Q1773,P1376,c(Q7275)) (Q1899,P1376,c(Q7275))
[ANSWER]
['Q1486', 'P1376', {'concept': 'Q7275'}] ['Q1773', 'P1376', {'concept': 'Q7275'}] ['Q1899', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?x WHERE { resource:Q1486 property:P1376 ?x . ?x rdf:type ontology:Q7275 }
Buenos Aires Riga Kyiv
Did you mean Riga ?
Riga
['Buenos Aires', 'capital of', {'concept': 'state'}] ['Riga', 'capital of', {'concept': 'state'}] ['Kyiv', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?x WHERE { resource:Buenos_Aires property:capital_of ?x . ?x rdf:type ontology:state }
[]
Simple Question (Coreferenced)
USER
No, I meant Buenos Aires. Could you tell me the answer for that?
(Q1486,P1376,c(Q7275))
Q1486
['Q1486', 'P1376', {'concept': 'Q7275'}]
['Buenos Aires', 'capital of', {'concept': 'state'}]
[]
Q738144
SYSTEM
United Provinces of the Río de la Plata
Q738144
(Q1486,P1376,c(Q7275))
action filter_type
action find
entity Q1486
relation P1376
type Q7275
[ANSWER] has that city as its county seat
['Q1486', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?x WHERE { resource:Q1486 property:P1376 ?x . ?x rdf:type ontology:Q7275 }
United Provinces of the Río de la Plata
United Provinces of the Río de la Plata has that city as its county seat
United Provinces of the Río de la Plata
action filter_type
action find
entity Buenos Aires
relation capital of
type state
['Buenos Aires', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?x WHERE { resource:Buenos_Aires property:capital_of ?x . ?x rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18764076 Q1486
P19 P190
Q56061
USER
Which administrative territories are partner towns of Buenos Aires or were Allush Gavazaj born at ?
OR((Q1486,P190,c(Q56061)), (Q18764076,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1486
relation P190
action find
entity Q18764076
relation P19
type Q56061
{'OR': [['Q1486', 'P190', {'concept': 'Q56061'}], ['Q18764076', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1486 property:P190 ?e } UNION { resource:Q18764076 property:P19 ?e } } . ?e rdf:type ontology:Q56061 }
Allush Gavazaj Buenos Aires
action filter_type
action union
action find
entity Buenos Aires
relation sister city
action find
entity Allush Gavazaj
relation place of birth
type administrative territorial entity
{'OR': [['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}], ['Allush Gavazaj', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Buenos_Aires property:sister_city ?e } UNION { resource:Allush_Gavazaj property:place_of_birth ?e } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5465 Q84 Q3820 Q25395 Q490 Q2868 Q34370 Q1524 Q270 Q174
SYSTEM
Some of them are Cape Town, London, Beirut, Newark, Milan, Lima, Rotterdam, Athens, Warsaw, São Paulo
Q8678 Q3766 Q628 Q649 Q8745 Q270 Q13678 Q34820 Q25395 Q15695 Q1524 Q956 Q2634 Q1489 Q71 Q8717 Q8692 Q518431 Q3711 Q2868 Q33935 Q2656 Q84 Q85 Q34370 Q7880 Q1449 Q40269 Q406 Q1930 Q10400 Q174 Q244324 Q14314 Q15682 Q490 Q2807 Q597 Q200061 Q1335 Q1492 Q64 Q1218 Q3820 Q5465 Q1085 Q1897
OR((Q1486,P190,c(Q56061)), (Q18764076,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1486
relation P190
action find
entity Q18764076
relation P19
type Q56061
[ANSWERS] are partner towns of Buenos Aires or were Allush Gavazaj born at
{'OR': [['Q1486', 'P190', {'concept': 'Q56061'}], ['Q18764076', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1486 property:P190 ?e } UNION { resource:Q18764076 property:P19 ?e } } . ?e rdf:type ontology:Q56061 }
Rio de Janeiro Damascus Bergamo Moscow Vigo Warsaw Agrigento Santo Domingo Newark Salamanca Athens Beijing Naples Mexico City Geneva Seville Bilbao Chimbote Belgrade Lima Tel Aviv Palermo London Cairo Rotterdam Toulouse Genoa Porto Alegre Istanbul Ottawa Almería São Paulo Guadix Santiago de Compostela Cádiz Milan Madrid Lisbon Prizren Montevideo Barcelona Berlin Jerusalem Beirut Cape Town Prague Cagliari
Cape Town, London, Beirut, Newark, Milan, Lima, Rotterdam, Athens, Warsaw and São Paulo are partner towns of Buenos Aires or were Allush Gavazaj born at
Cape Town London Beirut Newark Milan Lima Rotterdam Athens Warsaw São Paulo
action filter_type
action union
action find
entity Buenos Aires
relation sister city
action find
entity Allush Gavazaj
relation place of birth
type administrative territorial entity
{'OR': [['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}], ['Allush Gavazaj', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Buenos_Aires property:sister_city ?e } UNION { resource:Allush_Gavazaj property:place_of_birth ?e } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q490
P1376
Q7275
USER
Which states have that administrative territory as their county seat ?
(Q490,P1376,c(Q7275))
action filter_type
action find
entity Q490
relation P1376
type Q7275
['Q490', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { resource:Q490 property:P1376 ?p . ?p rdf:type ontology:Q7275 }
Milan
action filter_type
action find
entity Milan
relation capital of
type state
['Milan', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { resource:Milan property:capital_of ?p . ?p rdf:type ontology:state }
[]
state
Clarification for simple ques.
Q174
SYSTEM
Did you mean São Paulo ?
Q5465 Q84 Q3820 Q25395 Q490 Q2868 Q34370 Q1524 Q270 Q174
(Q5465,P1376,c(Q7275)) (Q84,P1376,c(Q7275)) (Q3820,P1376,c(Q7275)) (Q25395,P1376,c(Q7275)) (Q490,P1376,c(Q7275)) (Q2868,P1376,c(Q7275)) (Q34370,P1376,c(Q7275)) (Q1524,P1376,c(Q7275)) (Q270,P1376,c(Q7275)) (Q174,P1376,c(Q7275))
[ANSWER]
['Q5465', 'P1376', {'concept': 'Q7275'}] ['Q84', 'P1376', {'concept': 'Q7275'}] ['Q3820', 'P1376', {'concept': 'Q7275'}] ['Q25395', 'P1376', {'concept': 'Q7275'}] ['Q490', 'P1376', {'concept': 'Q7275'}] ['Q2868', 'P1376', {'concept': 'Q7275'}] ['Q34370', 'P1376', {'concept': 'Q7275'}] ['Q1524', 'P1376', {'concept': 'Q7275'}] ['Q270', 'P1376', {'concept': 'Q7275'}] ['Q174', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { resource:Q490 property:P1376 ?p . ?p rdf:type ontology:Q7275 }
Cape Town London Beirut Newark Milan Lima Rotterdam Athens Warsaw São Paulo
Did you mean São Paulo ?
São Paulo
['Cape Town', 'capital of', {'concept': 'state'}] ['London', 'capital of', {'concept': 'state'}] ['Beirut', 'capital of', {'concept': 'state'}] ['Newark', 'capital of', {'concept': 'state'}] ['Milan', 'capital of', {'concept': 'state'}] ['Lima', 'capital of', {'concept': 'state'}] ['Rotterdam', 'capital of', {'concept': 'state'}] ['Athens', 'capital of', {'concept': 'state'}] ['Warsaw', 'capital of', {'concept': 'state'}] ['São Paulo', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { resource:Milan property:capital_of ?p . ?p rdf:type ontology:state }
[]
Simple Question (Coreferenced)
USER
No, I meant Milan. Could you tell me the answer for that?
(Q490,P1376,c(Q7275))
Q490
['Q490', 'P1376', {'concept': 'Q7275'}]
['Milan', 'capital of', {'concept': 'state'}]
[]
Q223936 Q746443 Q209857
SYSTEM
Kingdom of Italy, Golden Ambrosian Republic, Kingdom of Lombardy–Venetia
Q223936 Q746443 Q209857
(Q490,P1376,c(Q7275))
action filter_type
action find
entity Q490
relation P1376
type Q7275
[ANSWERS] have that administrative territory as their county seat
['Q490', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?p WHERE { resource:Q490 property:P1376 ?p . ?p rdf:type ontology:Q7275 }
Kingdom of Italy Golden Ambrosian Republic Kingdom of Lombardy–Venetia
Kingdom of Italy, Golden Ambrosian Republic and Kingdom of Lombardy–Venetia have that administrative territory as their county seat
Kingdom of Italy Golden Ambrosian Republic Kingdom of Lombardy–Venetia
action filter_type
action find
entity Milan
relation capital of
type state
['Milan', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?p WHERE { resource:Milan property:capital_of ?p . ?p rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q406 Q1486
P190
Q56061
USER
Which administrative territories are sister towns of Buenos Aires but not Istanbul ?
AND((Q1486,P190,c(Q56061)), NOT((Q406,P190,c(Q56061))))
action filter_type
action difference
action find
entity Q1486
relation P190
action find
entity Q406
relation P190
type Q56061
{'AND': [['Q1486', 'P190', {'concept': 'Q56061'}], {'NOT': [['Q406', 'P190', {'concept': 'Q56061'}]]}]}
SELECT DISTINCT ?i WHERE { resource:Q1486 property:P190 ?i . FILTER NOT EXISTS { resource:Q406 property:P190 ?i } . ?i rdf:type ontology:Q56061 }
Istanbul Buenos Aires
action filter_type
action difference
action find
entity Buenos Aires
relation sister city
action find
entity Istanbul
relation sister city
type administrative territorial entity
{'AND': [['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}], {'NOT': [['Istanbul', 'sister city', {'concept': 'administrative territorial entity'}]]}]}
SELECT DISTINCT ?i WHERE { resource:Buenos_Aires property:sister_city ?i . FILTER NOT EXISTS { resource:Istanbul property:sister_city ?i } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649 Q956 Q1218 Q8745 Q14314 Q2807 Q15695 Q8717 Q1897 Q2868
SYSTEM
Some of them are Moscow, Beijing, Jerusalem, Vigo, Santiago de Compostela, Madrid, Salamanca, Seville, Cagliari, Lima
Q8717 Q628 Q649 Q8745 Q1449 Q34820 Q25395 Q15695 Q2634 Q71 Q8692 Q518431 Q3711 Q2868 Q33935 Q2656 Q7880 Q13678 Q40269 Q406 Q1930 Q10400 Q174 Q244324 Q14314 Q15682 Q490 Q2807 Q597 Q956 Q1335 Q1492 Q1218 Q1897 Q5465
AND((Q1486,P190,c(Q56061)), NOT((Q406,P190,c(Q56061))))
action filter_type
action difference
action find
entity Q1486
relation P190
action find
entity Q406
relation P190
type Q56061
[ANSWERS] are sister towns of Buenos Aires but not Istanbul
{'AND': [['Q1486', 'P190', {'concept': 'Q56061'}], {'NOT': [['Q406', 'P190', {'concept': 'Q56061'}]]}]}
SELECT DISTINCT ?i WHERE { resource:Q1486 property:P190 ?i . FILTER NOT EXISTS { resource:Q406 property:P190 ?i } . ?i rdf:type ontology:Q56061 }
Seville Bergamo Moscow Vigo Genoa Santo Domingo Newark Salamanca Naples Geneva Bilbao Chimbote Belgrade Lima Tel Aviv Palermo Toulouse Agrigento Porto Alegre Istanbul Ottawa Almería São Paulo Guadix Santiago de Compostela Cádiz Milan Madrid Lisbon Beijing Montevideo Barcelona Jerusalem Cagliari Cape Town
Moscow, Beijing, Jerusalem, Vigo, Santiago de Compostela, Madrid, Salamanca, Seville, Cagliari and Lima are sister towns of Buenos Aires but not Istanbul
Moscow Beijing Jerusalem Vigo Santiago de Compostela Madrid Salamanca Seville Cagliari Lima
action filter_type
action difference
action find
entity Buenos Aires
relation sister city
action find
entity Istanbul
relation sister city
type administrative territorial entity
{'AND': [['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}], {'NOT': [['Istanbul', 'sister city', {'concept': 'administrative territorial entity'}]]}]}
SELECT DISTINCT ?i WHERE { resource:Buenos_Aires property:sister_city ?i . FILTER NOT EXISTS { resource:Istanbul property:sister_city ?i } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q8717
P127
Q811430
USER
Which construction is owned by that administrative territory ?
(c(Q811430),P127,Q8717)
action filter_type
action find_reverse
entity Q8717
relation P127
type Q811430
[{'concept': 'Q811430'}, 'P127', 'Q8717']
SELECT DISTINCT ?q WHERE { ?q property:P127 resource:Q8717 . ?q rdf:type ontology:Q811430 }
Seville
action filter_type
action find_reverse
entity Seville
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Seville']
SELECT DISTINCT ?q WHERE { ?q property:owned_by resource:Seville . ?q rdf:type ontology:construction }
[]
construction
Clarification for simple ques.
Q14314
SYSTEM
Did you mean Santiago de Compostela ?
Q649 Q956 Q1218 Q8745 Q14314 Q2807 Q15695 Q8717 Q1897 Q2868
(c(Q811430),P127,Q649) (c(Q811430),P127,Q956) (c(Q811430),P127,Q1218) (c(Q811430),P127,Q8745) (c(Q811430),P127,Q14314) (c(Q811430),P127,Q2807) (c(Q811430),P127,Q15695) (c(Q811430),P127,Q8717) (c(Q811430),P127,Q1897) (c(Q811430),P127,Q2868)
[ANSWER]
[{'concept': 'Q811430'}, 'P127', 'Q649'] [{'concept': 'Q811430'}, 'P127', 'Q956'] [{'concept': 'Q811430'}, 'P127', 'Q1218'] [{'concept': 'Q811430'}, 'P127', 'Q8745'] [{'concept': 'Q811430'}, 'P127', 'Q14314'] [{'concept': 'Q811430'}, 'P127', 'Q2807'] [{'concept': 'Q811430'}, 'P127', 'Q15695'] [{'concept': 'Q811430'}, 'P127', 'Q8717'] [{'concept': 'Q811430'}, 'P127', 'Q1897'] [{'concept': 'Q811430'}, 'P127', 'Q2868']
SELECT DISTINCT ?q WHERE { ?q property:P127 resource:Q8717 . ?q rdf:type ontology:Q811430 }
Moscow Beijing Jerusalem Vigo Santiago de Compostela Madrid Salamanca Seville Cagliari Lima
Did you mean Santiago de Compostela ?
Santiago de Compostela
[{'concept': 'construction'}, 'owned by', 'Moscow'] [{'concept': 'construction'}, 'owned by', 'Beijing'] [{'concept': 'construction'}, 'owned by', 'Jerusalem'] [{'concept': 'construction'}, 'owned by', 'Vigo'] [{'concept': 'construction'}, 'owned by', 'Santiago de Compostela'] [{'concept': 'construction'}, 'owned by', 'Madrid'] [{'concept': 'construction'}, 'owned by', 'Salamanca'] [{'concept': 'construction'}, 'owned by', 'Seville'] [{'concept': 'construction'}, 'owned by', 'Cagliari'] [{'concept': 'construction'}, 'owned by', 'Lima']
SELECT DISTINCT ?q WHERE { ?q property:owned_by resource:Seville . ?q rdf:type ontology:construction }
[]
Simple Question (Coreferenced)
USER
No, I meant Seville. Could you tell me the answer for that?
(c(Q811430),P127,Q8717)
Q8717
[{'concept': 'Q811430'}, 'P127', 'Q8717']
[{'concept': 'construction'}, 'owned by', 'Seville']
[]
Q1747710
SYSTEM
Palacio Municipal de Deportes San Pablo
Q1747710
(c(Q811430),P127,Q8717)
action filter_type
action find_reverse
entity Q8717
relation P127
type Q811430
[ANSWER] is owned by that administrative territory
[{'concept': 'Q811430'}, 'P127', 'Q8717']
SELECT DISTINCT ?q WHERE { ?q property:P127 resource:Q8717 . ?q rdf:type ontology:Q811430 }
Palacio Municipal de Deportes San Pablo
Palacio Municipal de Deportes San Pablo is owned by that administrative territory
Palacio Municipal de Deportes San Pablo
action filter_type
action find_reverse
entity Seville
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Seville']
SELECT DISTINCT ?q WHERE { ?q property:owned_by resource:Seville . ?q rdf:type ontology:construction }
[]