Simple Question (Direct)
Simple Question
Q7903
P190
Q56061
USER
Which administrative territories are partner towns of Casablanca ?
(Q7903,P190,c(Q56061))
action filter_type
action find
entity Q7903
relation P190
type Q56061
['Q7903', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q7903 property:P190 ?h . ?h rdf:type ontology:Q56061 }
Casablanca
action filter_type
action find
entity Casablanca
relation sister city
type administrative territorial entity
['Casablanca', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Casablanca property:sister_city ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8686 Q8678 Q406
SYSTEM
Shanghai, Rio de Janeiro, Istanbul
Q8686 Q3630 Q340 Q8678 Q3561 Q1524 Q1490 Q597 Q126148 Q87 Q85 Q193445 Q1297 Q406 Q1479
(Q7903,P190,c(Q56061))
action filter_type
action find
entity Q7903
relation P190
type Q56061
[ANSWERS] are partner towns of Casablanca
['Q7903', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q7903 property:P190 ?h . ?h rdf:type ontology:Q56061 }
Shanghai Jakarta Montreal Rio de Janeiro Algiers Athens Tokyo Lisbon Tangier Alexandria Cairo Artvin Chicago Istanbul Bordeaux
Shanghai, Rio de Janeiro and Istanbul are partner towns of Casablanca
Shanghai Rio de Janeiro Istanbul
action filter_type
action find
entity Casablanca
relation sister city
type administrative territorial entity
['Casablanca', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Casablanca property:sister_city ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q8686 Q8678 Q406
P190
Q515
USER
Which cities are sister town of Shanghai, Rio de Janeiro and Istanbul ?
(c(Q515),P190,Q8686) (c(Q515),P190,Q8678) (c(Q515),P190,Q406)
action union
action filter_type
action find
entity Q8686
relation P190
type Q515
action filter_type
action find
entity Q8678
relation P190
type Q515
action filter_type
action find
entity Q406
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q8686'] [{'concept': 'Q515'}, 'P190', 'Q8678'] [{'concept': 'Q515'}, 'P190', 'Q406']
SELECT DISTINCT ?h WHERE { ?n property:P190 ?h . VALUES ( ?n ) { ( resource:Q8686 ) ( resource:Q8678 ) } }
Shanghai Rio de Janeiro Istanbul
action union
action filter_type
action find
entity Shanghai
relation sister city
type city
action filter_type
action find
entity Rio de Janeiro
relation sister city
type city
action filter_type
action find
entity Istanbul
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Shanghai'] [{'concept': 'city'}, 'sister city', 'Rio de Janeiro'] [{'concept': 'city'}, 'sister city', 'Istanbul']
SELECT DISTINCT ?h WHERE { ?n property:sister_city ?h . VALUES ( ?n ) { ( resource:Shanghai ) ( resource:Rio_de_Janeiro ) } }
[]
city
Q1486 Q1486 Q1899
SYSTEM
Buenos Aires for 1st, 2nd, Kyiv for 3rd
Q3935 Q16520 Q23482 Q852018 Q1854 Q1533 Q16520 Q8684 Q1486 Q25475 Q1723 Q3572 Q3751 Q1899 Q1953 Q8652 Q19660 Q3870 Q16520 Q11462 Q2907 Q1486 Q5838 Q5753 Q19689 Q11194 Q19660 Q6602
(c(Q515),P190,Q8686) (c(Q515),P190,Q8678) (c(Q515),P190,Q406)
action union
action filter_type
action find
entity Q8686
relation P190
type Q515
action filter_type
action find
entity Q8678
relation P190
type Q515
action filter_type
action find
entity Q406
relation P190
type Q515
[ANSWERS]
[{'concept': 'Q515'}, 'P190', 'Q8686'] [{'concept': 'Q515'}, 'P190', 'Q8678'] [{'concept': 'Q515'}, 'P190', 'Q406']
SELECT DISTINCT ?h WHERE { ?n property:P190 ?h . VALUES ( ?n ) { ( resource:Q8686 ) ( resource:Q8678 ) } }
Windhoek Busan Marseille Izumisano Ho Chi Minh City Caracas Busan Seoul Buenos Aires Batumi Batangas City Tunis Praia Kyiv Yerevan Miami Bucharest Nairobi Busan Surabaya Sucre Buenos Aires Kabul Samarkand Tirana Sarajevo Bucharest Strasbourg
Buenos Aires, Buenos Aires and Kyiv are sister town of Shanghai, Rio de Janeiro and Istanbul
Buenos Aires Buenos Aires Kyiv
action union
action filter_type
action find
entity Shanghai
relation sister city
type city
action filter_type
action find
entity Rio de Janeiro
relation sister city
type city
action filter_type
action find
entity Istanbul
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Shanghai'] [{'concept': 'city'}, 'sister city', 'Rio de Janeiro'] [{'concept': 'city'}, 'sister city', 'Istanbul']
SELECT DISTINCT ?h WHERE { ?n property:sister_city ?h . VALUES ( ?n ) { ( resource:Shanghai ) ( resource:Rio_de_Janeiro ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1486
P27
Q502895
USER
Which person is a civilian of that city ?
(c(Q502895),P27,Q1486)
action filter_type
action find_reverse
entity Q1486
relation P27
type Q502895
[{'concept': 'Q502895'}, 'P27', 'Q1486']
SELECT DISTINCT ?b WHERE { ?b property:P27 resource:Q1486 . ?b rdf:type ontology:Q502895 }
Buenos Aires
action filter_type
action find_reverse
entity Buenos Aires
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'Buenos Aires']
SELECT DISTINCT ?b WHERE { ?b property:country_of_citizenship resource:Buenos_Aires . ?b rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1899
SYSTEM
Did you mean Kyiv ?
Q1486 Q1486 Q1899
(c(Q502895),P27,Q1486) (c(Q502895),P27,Q1486) (c(Q502895),P27,Q1899)
[ANSWER]
[{'concept': 'Q502895'}, 'P27', 'Q1486'] [{'concept': 'Q502895'}, 'P27', 'Q1486'] [{'concept': 'Q502895'}, 'P27', 'Q1899']
SELECT DISTINCT ?b WHERE { ?b property:P27 resource:Q1486 . ?b rdf:type ontology:Q502895 }
Buenos Aires Buenos Aires Kyiv
Did you mean Kyiv ?
Kyiv
[{'concept': 'common name'}, 'country of citizenship', 'Buenos Aires'] [{'concept': 'common name'}, 'country of citizenship', 'Buenos Aires'] [{'concept': 'common name'}, 'country of citizenship', 'Kyiv']
SELECT DISTINCT ?b WHERE { ?b property:country_of_citizenship resource:Buenos_Aires . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Buenos Aires. Could you tell me the answer for that?
(c(Q502895),P27,Q1486)
Q1486
[{'concept': 'Q502895'}, 'P27', 'Q1486']
[{'concept': 'common name'}, 'country of citizenship', 'Buenos Aires']
[]
Q5186183
SYSTEM
Cristian Dzwonik
Q5186183
(c(Q502895),P27,Q1486)
action filter_type
action find_reverse
entity Q1486
relation P27
type Q502895
[ANSWER] is a civilian of that city
[{'concept': 'Q502895'}, 'P27', 'Q1486']
SELECT DISTINCT ?b WHERE { ?b property:P27 resource:Q1486 . ?b rdf:type ontology:Q502895 }
Cristian Dzwonik
Cristian Dzwonik is a civilian of that city
Cristian Dzwonik
action filter_type
action find_reverse
entity Buenos Aires
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'Buenos Aires']
SELECT DISTINCT ?b WHERE { ?b property:country_of_citizenship resource:Buenos_Aires . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q337567 Q355304 Q515
USER
Which cities are situated in the neighbourhood of max number of still waterss and watercourses ?
(c(Q515),P206,c(Q337567)|c(Q355304))
action argmax
action union
action find_tuple_counts
relation P206
type Q515
type Q337567
action find_tuple_counts
relation P206
type Q515
type Q355304
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?r WHERE { ?a rdf:type ?l . VALUES ( ?l ) { ( ontology:Q355304 ) ( ontology:Q337567 ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) ?i WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:Q337567 ) ( ontology:Q355304 ) } } GROUP BY ?i } . FILTER ( ?p = ?d ) }
action argmax
action union
action find_tuple_counts
relation located next to body of water
type city
type still waters
action find_tuple_counts
relation located next to body of water
type city
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?r WHERE { ?a rdf:type ?l . VALUES ( ?l ) { ( ontology:watercourse ) ( ontology:still_waters ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) ?i WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:still_waters ) ( ontology:watercourse ) } } GROUP BY ?i } . FILTER ( ?p = ?d ) }
[]
still waters watercourse city
Q1711
SYSTEM
Potsdam
Q1711
(c(Q515),P206,c(Q337567)|c(Q355304))
action argmax
action union
action find_tuple_counts
relation P206
type Q515
type Q337567
action find_tuple_counts
relation P206
type Q515
type Q355304
[ANSWER] is situated in the neighbourhood of max number of still waterss and watercourses
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?r WHERE { ?a rdf:type ?l . VALUES ( ?l ) { ( ontology:Q355304 ) ( ontology:Q337567 ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) ?i WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:Q337567 ) ( ontology:Q355304 ) } } GROUP BY ?i } . FILTER ( ?p = ?d ) }
Potsdam
Potsdam is situated in the neighbourhood of max number of still waterss and watercourses
Potsdam
action argmax
action union
action find_tuple_counts
relation located next to body of water
type city
type still waters
action find_tuple_counts
relation located next to body of water
type city
type watercourse
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) ?r WHERE { ?a rdf:type ?l . VALUES ( ?l ) { ( ontology:watercourse ) ( ontology:still_waters ) } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) ?i WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:still_waters ) ( ontology:watercourse ) } } GROUP BY ?i } . FILTER ( ?p = ?d ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1711
P190
Q56061
USER
How many administrative territories are sister towns of Potsdam ?
(Q1711,P190,c(Q56061))
action count
action filter_type
action find
entity Q1711
relation P190
type Q56061
['Q1711', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Q1711 property:P190 ?r . ?r rdf:type ontology:Q56061 }
Potsdam
action count
action filter_type
action find
entity Potsdam
relation sister city
type administrative territorial entity
['Potsdam', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Potsdam property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
5
Q586 Q134620 Q2280 Q131335 Q3437
(Q1711,P190,c(Q56061))
action count
action filter_type
action find
entity Q1711
relation P190
type Q56061
[ANSWER]
['Q1711', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Q1711 property:P190 ?r . ?r rdf:type ontology:Q56061 }
Bonn Jyväskylä Minsk Sioux Falls Perugia
5
action count
action filter_type
action find
entity Potsdam
relation sister city
type administrative territorial entity
['Potsdam', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { resource:Potsdam property:sister_city ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1899
P159
Q43229
USER
Which organizations have their HQ location at Kyiv ?
(c(Q43229),P159,Q1899)
action filter_type
action find_reverse
entity Q1899
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q1899']
SELECT DISTINCT ?v WHERE { ?v property:P159 resource:Q1899 . ?v rdf:type ontology:Q43229 }
Kyiv
action filter_type
action find_reverse
entity Kyiv
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Kyiv']
SELECT DISTINCT ?v WHERE { ?v property:headquarters_location resource:Kyiv . ?v rdf:type ontology:organization }
[]
organization
Q2288463 Q846031 Q1976290
SYSTEM
Kyivstar, Vodafone Ukraine, UkrSibbank
Q4430440 Q7392008 Q4107673 Q4531492 Q12119009 Q21296970 Q21183701 Q728513 Q4470382 Q7878487 Q1505321 Q4295538 Q4470691 Q3812141 Q20072227 Q4395993 Q5375203 Q4532244 Q12099760 Q6405676 Q846031 Q7919440 Q730055 Q2095222 Q17095512 Q4172743 Q27449447 Q4312021 Q381697 Q4419434 Q610824 Q7238870 Q5312597 Q18712998 Q7878581 Q12074525 Q93471 Q4172716 Q1976290 Q704574 Q3036236 Q2157537 Q12071732 Q2448686 Q12110207 Q20098080 Q4052130 Q25441918 Q377788 Q722976 Q4036482 Q6327717 Q3739421 Q12144712 Q4053052 Q4183108 Q2288463 Q2012897 Q19776353 Q4038955 Q4349698 Q20646591 Q19604342 Q4470600 Q2491800 Q5426862 Q4535371 Q7498075 Q4042828 Q7539515 Q5183816 Q6916982 Q3884053 Q6421134 Q12072279 Q806634 Q4050033 Q12071361 Q4201762 Q16696876
(c(Q43229),P159,Q1899)
action filter_type
action find_reverse
entity Q1899
relation P159
type Q43229
[ANSWERS] have their HQ location at Kyiv
[{'concept': 'Q43229'}, 'P159', 'Q1899']
SELECT DISTINCT ?v WHERE { ?v property:P159 resource:Q1899 . ?v rdf:type ontology:Q43229 }
Soyuz-Viktan SOCIS VeresTM Eldorado Luch NIS APEKS-BANK Naftogaz Ukrainian Automobile Corporation Ukrainian News Agency Ukrtelecom Mirasoft UkrGasVydobuvannya KP Media Flying Cafe for Semianimals Rodovid Bank Enamine Ltd EpiCentre K Developex Kiev Aircraft Repair Plant 410 Vodafone Ukraine Velyka Kyshenia Leninska Kuznya Ukrainian Independent Information Agency Worldwide News Ukraine United Energy Systems of Ukraine C14 Nadra Bank Aeros Silpo Ubisoft Ukraine Pravex Bank Duh i Litera General Aviation Design Bureau of Ukraine Ukrecoresursy BIONIC Hill Innovation Park Ukrainian Arbitration Association EKTA UkrSibbank Kiev Arsenal Donbasenergo Brotherhood of Saints Cyril and Methodius Multiplex Cinemas Interfax-Ukraine Kyiv School of Ukrainian Language Postmen DA UMH group Educational Assembly Astarta Holding Aviant Concorde Capital KDD Group UkrOboronProm Ukraine MSME Lending Programme WestByte Software Zavod Chervonyi ekskavator Kyivstar Obolon CJSC DTEK Academy Fozzy Group First Investment Bank Ciklum Arkada Bank Ukrainian Processing Center Moon Records Ukraine FOM-Ukraine USTAR company Shipping Register of Ukraine Levi9 Ukraine Slavutych Brewery Credo line Mostobud Softengi Vega Telecommunications Group Rozetka Bank Forum StarLightMedia Group Joint Recording Company Institute of Oil Transportation Grawe Ukraine
Kyivstar, Vodafone Ukraine and UkrSibbank have their HQ location at Kyiv
Kyivstar Vodafone Ukraine UkrSibbank
action filter_type
action find_reverse
entity Kyiv
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Kyiv']
SELECT DISTINCT ?v WHERE { ?v property:headquarters_location resource:Kyiv . ?v rdf:type ontology:organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1976290
P749
Q4830453
USER
What is the parent organization of that one ?
(Q1976290,P749,c(Q4830453))
action filter_type
action find
entity Q1976290
relation P749
type Q4830453
['Q1976290', 'P749', {'concept': 'Q4830453'}]
SELECT DISTINCT ?u WHERE { resource:Q1976290 property:P749 ?u . ?u rdf:type ontology:Q4830453 }
UkrSibbank
action filter_type
action find
entity UkrSibbank
relation parent organization
type business enterprise
['UkrSibbank', 'parent organization', {'concept': 'business enterprise'}]
SELECT DISTINCT ?u WHERE { resource:UkrSibbank property:parent_organization ?u . ?u rdf:type ontology:business_enterprise }
[]
business enterprise
Clarification for simple ques.
Q846031
SYSTEM
Did you mean Vodafone Ukraine ?
Q2288463 Q846031 Q1976290
(Q2288463,P749,c(Q4830453)) (Q846031,P749,c(Q4830453)) (Q1976290,P749,c(Q4830453))
[ANSWER]
['Q2288463', 'P749', {'concept': 'Q4830453'}] ['Q846031', 'P749', {'concept': 'Q4830453'}] ['Q1976290', 'P749', {'concept': 'Q4830453'}]
SELECT DISTINCT ?u WHERE { resource:Q1976290 property:P749 ?u . ?u rdf:type ontology:Q4830453 }
Kyivstar Vodafone Ukraine UkrSibbank
Did you mean Vodafone Ukraine ?
Vodafone Ukraine
['Kyivstar', 'parent organization', {'concept': 'business enterprise'}] ['Vodafone Ukraine', 'parent organization', {'concept': 'business enterprise'}] ['UkrSibbank', 'parent organization', {'concept': 'business enterprise'}]
SELECT DISTINCT ?u WHERE { resource:UkrSibbank property:parent_organization ?u . ?u rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
USER
No, I meant UkrSibbank. Could you tell me the answer for that?
(Q1976290,P749,c(Q4830453))
Q1976290
['Q1976290', 'P749', {'concept': 'Q4830453'}]
['UkrSibbank', 'parent organization', {'concept': 'business enterprise'}]
[]
Q499707
SYSTEM
BNP Paribas
Q499707
(Q1976290,P749,c(Q4830453))
action filter_type
action find
entity Q1976290
relation P749
type Q4830453
The parent organization of that one is the [ANSWER]
['Q1976290', 'P749', {'concept': 'Q4830453'}]
SELECT DISTINCT ?u WHERE { resource:Q1976290 property:P749 ?u . ?u rdf:type ontology:Q4830453 }
BNP Paribas
The parent organization of that one is the BNP Paribas
BNP Paribas
action filter_type
action find
entity UkrSibbank
relation parent organization
type business enterprise
['UkrSibbank', 'parent organization', {'concept': 'business enterprise'}]
SELECT DISTINCT ?u WHERE { resource:UkrSibbank property:parent_organization ?u . ?u rdf:type ontology:business_enterprise }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q499707 Q1572883
P749
Q43229
USER
Does Hamburg Commonwealth War Graves Commission Cemetery have that business enterprise as its parent organization ?
(Q1572883,P749,Q499707)
action is_in
entity Q1572883
action find
entity Q499707
relation P749
['Q1572883', 'P749', 'Q499707']
ASK WHERE { resource:Q499707 property:P749 resource:Q1572883 }
BNP Paribas Hamburg Commonwealth War Graves Commission Cemetery
action is_in
entity Hamburg Commonwealth War Graves Commission Cemetery
action find
entity BNP Paribas
relation parent organization
['Hamburg Commonwealth War Graves Commission Cemetery', 'parent organization', 'BNP Paribas']
ASK WHERE { resource:BNP_Paribas property:parent_organization resource:Hamburg_Commonwealth_War_Graves_Commission_Cemetery }
[]
organization
SYSTEM
NO
(Q1572883,P749,Q499707)
action is_in
entity Q1572883
action find
entity Q499707
relation P749
[ANSWER]
['Q1572883', 'P749', 'Q499707']
ASK WHERE { resource:Q499707 property:P749 resource:Q1572883 }
No
action is_in
entity Hamburg Commonwealth War Graves Commission Cemetery
action find
entity BNP Paribas
relation parent organization
['Hamburg Commonwealth War Graves Commission Cemetery', 'parent organization', 'BNP Paribas']
ASK WHERE { resource:BNP_Paribas property:parent_organization resource:Hamburg_Commonwealth_War_Graves_Commission_Cemetery }
[]