Simple Question (Direct)
Simple Question
Q520322
P19
Q56061
USER
Which administrative territory is the place of birth of Jaroslav Bába ?
(Q520322,P19,c(Q56061))
action filter_type
action find
entity Q520322
relation P19
type Q56061
['Q520322', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q520322 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Jaroslav Bába
action filter_type
action find
entity Jaroslav Bába
relation place of birth
type administrative territorial entity
['Jaroslav Bába', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Jaroslav_Bába property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q191793
SYSTEM
Karviná
Q191793
(Q520322,P19,c(Q56061))
action filter_type
action find
entity Q520322
relation P19
type Q56061
[ANSWER] is the place of birth of Jaroslav Bába
['Q520322', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q520322 property:P19 ?x . ?x rdf:type ontology:Q56061 }
Karviná
Karviná is the place of birth of Jaroslav Bába
Karviná
action filter_type
action find
entity Jaroslav Bába
relation place of birth
type administrative territorial entity
['Jaroslav Bába', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Jaroslav_Bába property:place_of_birth ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q520322
P106
Q12737077
USER
What does Jaroslav Bába do for a living ?
(Q520322,P106,c(Q12737077))
action filter_type
action find
entity Q520322
relation P106
type Q12737077
['Q520322', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q520322 property:P106 ?q }
Jaroslav Bába
action filter_type
action find
entity Jaroslav Bába
relation occupation
type occupation
['Jaroslav Bába', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Jaroslav_Bába property:occupation ?q }
[]
occupation
Q13382122
SYSTEM
high jumper
Q13382122
(Q520322,P106,c(Q12737077))
action filter_type
action find
entity Q520322
relation P106
type Q12737077
Jaroslav Bába does a [ANSWER] for a living
['Q520322', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q12737077 . resource:Q520322 property:P106 ?q }
high jumper
Jaroslav Bába does a high jumper for a living
high jumper
action filter_type
action find
entity Jaroslav Bába
relation occupation
type occupation
['Jaroslav Bába', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:occupation . resource:Jaroslav_Bába property:occupation ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q191793
P47
Q515
USER
Which city has a shared border with Karviná ?
(Q191793,P47,c(Q515))
action filter_type
action find
entity Q191793
relation P47
type Q515
['Q191793', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { resource:Q191793 property:P47 ?n . ?n rdf:type ontology:Q515 }
Karviná
action filter_type
action find
entity Karviná
relation shares border with
type city
['Karviná', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { resource:Karviná property:shares_border_with ?n . ?n rdf:type ontology:city }
[]
city
Q386026
SYSTEM
Orlová
Q386026
(Q191793,P47,c(Q515))
action filter_type
action find
entity Q191793
relation P47
type Q515
[ANSWER] has a shared border with Karviná
['Q191793', 'P47', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { resource:Q191793 property:P47 ?n . ?n rdf:type ontology:Q515 }
Orlová
Orlová has a shared border with Karviná
Orlová
action filter_type
action find
entity Karviná
relation shares border with
type city
['Karviná', 'shares border with', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { resource:Karviná property:shares_border_with ?n . ?n rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q191793
P190
Q486972
USER
Which human settlements are twin towns of that administrative territory ?
(Q386026,P190,c(Q486972))
action filter_type
action find
entity Q191793
relation P190
type Q486972
['Q386026', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?e WHERE { resource:Q191793 property:P190 ?e . ?e rdf:type ontology:Q486972 }
Karviná
action filter_type
action find
entity Karviná
relation sister city
type human settlement
['Orlová', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?e WHERE { resource:Karviná property:sister_city ?e . ?e rdf:type ontology:human_settlement }
[]
human settlement
Q158006 Q107094 Q107106
SYSTEM
Jaworzno, Rybnik, Jastrzębie-Zdrój
Q158006 Q107094 Q107106
(Q386026,P190,c(Q486972))
action filter_type
action find
entity Q191793
relation P190
type Q486972
[ANSWERS] are twin towns of that administrative territory
['Q386026', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?e WHERE { resource:Q191793 property:P190 ?e . ?e rdf:type ontology:Q486972 }
Jaworzno Rybnik Jastrzębie-Zdrój
Jaworzno, Rybnik and Jastrzębie-Zdrój are twin towns of that administrative territory
Jaworzno Rybnik Jastrzębie-Zdrój
action filter_type
action find
entity Karviná
relation sister city
type human settlement
['Orlová', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?e WHERE { resource:Karviná property:sister_city ?e . ?e rdf:type ontology:human_settlement }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q191793
P190
Q56061
USER
Are Karviná partner town of those human settlements ?
(Q191793,P190,Q158006) (Q191793,P190,Q107094) (Q191793,P190,Q107106)
action is_in
entity prev_answer
action find
entity Q191793
relation P190
['Q191793', 'P190', 'Q158006'] ['Q191793', 'P190', 'Q107094'] ['Q191793', 'P190', 'Q107106']
ASK WHERE { resource:Q191793 property:P190 ?q . VALUES ( ?q ) { ( resource:Q158006 ) ( resource:Q107094 ) ( resource:Q107106 ) } }
Karviná
action is_in
entity prev_answer
action find
entity Karviná
relation sister city
['Karviná', 'sister city', 'Jaworzno'] ['Karviná', 'sister city', 'Rybnik'] ['Karviná', 'sister city', 'Jastrzębie-Zdrój']
ASK WHERE { resource:Karviná property:sister_city ?q . VALUES ( ?q ) { ( resource:Jaworzno ) ( resource:Rybnik ) ( resource:Jastrzębie-Zdrój ) } }
[]
administrative territorial entity
SYSTEM
YES
(Q191793,P190,Q158006) (Q191793,P190,Q107094) (Q191793,P190,Q107106)
action is_in
entity prev_answer
action find
entity Q191793
relation P190
[ANSWER]
['Q191793', 'P190', 'Q158006'] ['Q191793', 'P190', 'Q107094'] ['Q191793', 'P190', 'Q107106']
ASK WHERE { resource:Q191793 property:P190 ?q . VALUES ( ?q ) { ( resource:Q158006 ) ( resource:Q107094 ) ( resource:Q107106 ) } }
Yes
action is_in
entity prev_answer
action find
entity Karviná
relation sister city
['Karviná', 'sister city', 'Jaworzno'] ['Karviná', 'sister city', 'Rybnik'] ['Karviná', 'sister city', 'Jastrzębie-Zdrój']
ASK WHERE { resource:Karviná property:sister_city ?q . VALUES ( ?q ) { ( resource:Jaworzno ) ( resource:Rybnik ) ( resource:Jastrzębie-Zdrój ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q191793
P17
Q15617994
USER
How many administrative territories do Karviná belong to ?
(Q191793,P17,c(Q15617994))
action count
action filter_type
action find
entity Q191793
relation P17
type Q15617994
['Q191793', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q191793 property:P17 ?u }
Karviná
action count
action filter_type
action find
entity Karviná
relation country
type designation for an administrative territorial entity
['Karviná', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Karviná property:country ?u }
[]
designation for an administrative territorial entity
SYSTEM
1
Q213
(Q191793,P17,c(Q15617994))
action count
action filter_type
action find
entity Q191793
relation P17
type Q15617994
[ANSWER]
['Q191793', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q191793 property:P17 ?u }
Czech Republic
1
action count
action filter_type
action find
entity Karviná
relation country
type designation for an administrative territorial entity
['Karviná', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Karviná property:country ?u }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q7975013
Q15617994
USER
And what about Watts Branch?
(Q7975013,P17,c(Q15617994))
action count
action filter_type
action find
entity Q7975013
relation P17
type Q15617994
['Q7975013', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { ?j rdf:type ontology:Q15617994 . resource:Q7975013 property:P17 ?j }
Watts Branch
action count
action filter_type
action find
entity Watts Branch
relation country
type designation for an administrative territorial entity
['Watts Branch', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Watts_Branch property:country ?j }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q7975013,P17,c(Q15617994))
action count
action filter_type
action find
entity Q7975013
relation P17
type Q15617994
[ANSWER]
['Q7975013', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { ?j rdf:type ontology:Q15617994 . resource:Q7975013 property:P17 ?j }
1
action count
action filter_type
action find
entity Watts Branch
relation country
type designation for an administrative territorial entity
['Watts Branch', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Watts_Branch property:country ?j }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q107094
P190
Q20667921
USER
How many french administrative divisions are twin cities of Rybnik ?
(Q107094,P190,c(Q20667921))
action count
action filter_type
action find
entity Q107094
relation P190
type Q20667921
['Q107094', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q107094 property:P190 ?l . ?l rdf:type ontology:Q20667921 }
Rybnik
action count
action filter_type
action find
entity Rybnik
relation sister city
type type of french administrative division
['Rybnik', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Rybnik property:sister_city ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
1
Q217841
(Q107094,P190,c(Q20667921))
action count
action filter_type
action find
entity Q107094
relation P190
type Q20667921
[ANSWER]
['Q107094', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q107094 property:P190 ?l . ?l rdf:type ontology:Q20667921 }
Liévin
1
action count
action filter_type
action find
entity Rybnik
relation sister city
type type of french administrative division
['Rybnik', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Rybnik property:sister_city ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q515 Q486972
USER
Which cities have around 1 human settlement have their first city ?
(c(Q486972),P1376,c(Q515))
action approx
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
value 1
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:P1376 ?m . ?m rdf:type ontology:Q515 . ?l rdf:type ontology:Q486972 } GROUP BY ?m } . FILTER ( ?u = 1 ) }
action approx
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
value 1
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:capital_of ?m . ?m rdf:type ontology:city . ?l rdf:type ontology:human_settlement } GROUP BY ?m } . FILTER ( ?u = 1 ) }
[]
city human settlement
Q19660 Q587746 Q855187
SYSTEM
Bucharest, Siret, Câmpeni
Q280364 Q168921 Q837161 Q253825 Q507846 Q283862 Q850974 Q3846983 Q935834 Q765841 Q851056 Q292769 Q851409 Q775799 Q585548 Q777619 Q508313 Q328647 Q584825 Q248018 Q169127 Q850982 Q835227 Q639520 Q851037 Q331577 Q1018204 Q771191 Q325736 Q275645 Q275642 Q855187 Q325732 Q3573941 Q837167 Q2198771 Q803706 Q850962 Q276156 Q265012 Q850969 Q386945 Q794200 Q276164 Q923254 Q556266 Q666373 Q851042 Q732851 Q207196 Q851048 Q571769 Q276168 Q276152 Q226000 Q591285 Q751352 Q737830 Q169135 Q837968 Q10860283 Q221214 Q789811 Q276120 Q837960 Q778516 Q209782 Q641218 Q276004 Q592480 Q203929 Q930102 Q837170 Q596043 Q250006 Q829051 Q276042 Q521108 Q275810 Q275895 Q423441 Q899427 Q179297 Q737276 Q276119 Q837173 Q225257 Q1018184 Q373707 Q946893 Q518992 Q376233 Q660417 Q666521 Q851007 Q276336 Q325555 Q252061 Q963829 Q739444 Q586387 Q912204 Q750220 Q570113 Q916156 Q610341 Q593157 Q267708 Q899454 Q590443 Q548502 Q568376 Q186719 Q276083 Q75537 Q535516 Q508057 Q754721 Q839796 Q837157 Q837154 Q837152 Q748068 Q743752 Q736276 Q276135 Q276137 Q276132 Q197687 Q383306 Q253872 Q1209 Q217131 Q899448 Q275990 Q248959 Q511951 Q855719 Q576804 Q834101 Q935846 Q75504 Q313689 Q629776 Q899551 Q275981 Q651322 Q906711 Q276128 Q790338 Q186214 Q756585 Q851001 Q292759 Q375371 Q276127 Q912224 Q855721 Q276009 Q305001 Q305182 Q169064 Q772576 Q1017982 Q166829 Q926163 Q247807 Q589880 Q526019 Q167121 Q275997 Q548575 Q275910 Q678884 Q668701 Q584531 Q587746 Q383085 Q756593 Q756590 Q756596 Q851013 Q167792 Q19660 Q602184 Q899467 Q276154 Q423371 Q899461 Q209977 Q650981 Q764806 Q791387 Q756578 Q390156 Q851021 Q592497 Q727421 Q276117 Q533078 Q851029 Q225100 Q423414 Q596609 Q655818 Q386091 Q386888 Q275904 Q275890 Q508670 Q125604 Q1006796 Q679428 Q276145 Q276146 Q213296 Q276141 Q850992
(c(Q486972),P1376,c(Q515))
action approx
action find_reverse_tuple_counts
relation P1376
type Q515
type Q486972
value 1
[ANSWERS] have around 1 human settlement have their first city
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:P1376 ?m . ?m rdf:type ontology:Q515 . ?l rdf:type ontology:Q486972 } GROUP BY ?m } . FILTER ( ?u = 1 ) }
Titu Bragadiru Sânnicolau Mare Salcea Sebiș Băicoi Segarcea Șimleu Silvaniei Sângeorz-Băi Urlați Cristuru Secuiesc Întorsura Buzăului Budești Baia de Arieș Ocnele Mari Strehaia Nădlac Sulina Scornicești Isaccea Chitila Curtici Ineu Voluntari Comarnic Abrud Slănic Berești Ciacova Fierbinți-Târg Roznov Câmpeni Gătaia Săliște Hațeg Măgurele Baia Sprie Copșa Mică Berbești Bușteni Victoria Babadag Beclean Căzănești Fundulea Târgu Ocna Seini Hârlău Mioveni Zlatna Făget Boldești-Scăeni Pătârlagele Dragomirești Jimbolia Piatra-Olt Plopeni Mizil Pantelimon Băile Tușnad Broșteni Cugir Bălan Ulmeni Năvodari Baia de Aramă Borșa Videle Murgeni Târgu Bujor Zimnicea Tăuții-Măgherăuș Gura Humorului Ovidiu Slănic-Moldova Moldova Nouă Băneasa Dumbrăveni Cajvana Șomcuta Mare Țăndărei Iernut Nehoiu Cehu Silvaniei Liteni Cisnădie Rupea Cavnic Luduș Teiuș Călan Săcueni Jibou Târgu Cărbunești Deta Livada Recaș Valea lui Mihai Mihăilești Topoloveni Eforie Lehliu Gară Huedin Uricani Ghimbav Pogoanele Murfatlar Sovata Panciu Balș Anina Breaza Ocna Sibiului Potcoava Oțelu Roșu Azuga Drăgănești-Olt Corabia Borsec Covasna Simeria Ocna Mureș Hârșova Odobești Cernavodă Dăbuleni Milișăuți Pecica Miercurea Sibiului Tismana Bechet Free Hanseatic City of Bremen Buftea Negrești Răcari Zărnești Predeal Băile Govora Mărășești Bolintin-Vale Vlăhița Bocșa Agnita Vânju Mare Ianca Podu Iloaiei Năsăud Nucet Frasin Râșnov Turceni Buhuși Măcin Însurăței Călimănești Bălcești Techirghiol Băile Olănești Amara Negru Vodă Dărmănești Sângeorgiu de Pădure Negrești-Oaș Geoagiu Miercurea Nirajului Popești-Leordeni Săveni Pucioasa Brezoi Ungheni Ardud Aninoasa Sântana Fieni Tășnad Bumbești-Jiu Siret Oravița Târgu Neamț Comănești Filiași Vașcău Sărmașu Bucharest Solca Darabani Ștefănești Ștei Horezu Ștefănești Băile Herculane Rovinari Avrig Târgu Frumos Petrila Pâncota Vălenii de Munte Otopeni Dolhasca Baraolt Aleșd Bicaz Țicleni Vișeu de Sus Buziaș Novaci Târgu Lăpuș Flămânzi Băbeni Chișineu-Criș Găești Făurei Tălmaciu Vicovu de Sus Bucecea Sinaia Săliștea de Sus Costești
Bucharest, Siret and Câmpeni have around 1 human settlement have their first city
Bucharest Siret Câmpeni
action approx
action find_reverse_tuple_counts
relation capital of
type city
type human settlement
value 1
[{'concept': 'human settlement'}, 'capital of', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:capital_of ?m . ?m rdf:type ontology:city . ?l rdf:type ontology:human_settlement } GROUP BY ?m } . FILTER ( ?u = 1 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P1427
Q515 Q3839081 Q878123
USER
Which cities do greater number of disasters and racings start than that city ?
(c(Q3839081)|c(Q878123),P1427,c(Q515))
[[{'concept': 'Q3839081'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q3839081 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q878123 }
[[{'concept': 'disaster'}, {'concept': 'racing'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:disaster . ?y rdf:type ontology:city . ?x rdf:type ontology:racing }
[]
city disaster racing
Comparative|More/Less|Mult. entity type|Clarification
Q855187
SYSTEM
Did you mean Câmpeni ?
(c(Q3839081)|c(Q878123),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q3839081'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q3839081 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q878123 }
Did you mean Câmpeni ?
Câmpeni
[[{'concept': 'disaster'}, {'concept': 'racing'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:disaster . ?y rdf:type ontology:city . ?x rdf:type ontology:racing }
[]
Comparative Reasoning (All)
USER
No, I meant Bucharest. Could you tell me the answer for that?
(c(Q3839081)|c(Q878123),P1427,c(Q515))
Q19660
[[{'concept': 'Q3839081'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q515'}]
[[{'concept': 'disaster'}, {'concept': 'racing'}], 'start point', {'concept': 'city'}]
[]
Q456 Q6602 Q6582
SYSTEM
Lyon, Strasbourg, Carcassonne
Q6602 Q6582 Q533157 Q456 Q69060
(c(Q3839081)|c(Q878123),P1427,c(Q515))
[ANSWERS] greater number of disasters and racings start than that city
[[{'concept': 'Q3839081'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q3839081 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q878123 }
Strasbourg Carcassonne Tianshui Lyon Xining
Lyon, Strasbourg and Carcassonne greater number of disasters and racings start than that city
Lyon Strasbourg Carcassonne
[[{'concept': 'disaster'}, {'concept': 'racing'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:disaster . ?y rdf:type ontology:city . ?x rdf:type ontology:racing }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P190
Q15617994 Q486972 Q515
USER
Which cities are a sister city of more number of administrative territories or human settlements than that city ?
(c(Q515),P190,c(Q15617994)|c(Q486972))
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q15617994'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?u ) { ( ?y ) ( ?x ) } . ?z property:P190 ?u } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q486972 }
[{'concept': 'city'}, 'sister city', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?u ) { ( ?y ) ( ?x ) } . ?z property:sister_city ?u } . ?z rdf:type ontology:city . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:human_settlement }
[]
designation for an administrative territorial entity human settlement city
Comparative|More/Less|Mult. entity type|Clarification
Q6582
SYSTEM
Did you mean Carcassonne ?
(c(Q515),P190,c(Q15617994)|c(Q486972))
[ANSWER]
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q15617994'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?u ) { ( ?y ) ( ?x ) } . ?z property:P190 ?u } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q486972 }
Did you mean Carcassonne ?
Carcassonne
[{'concept': 'city'}, 'sister city', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?z WHERE { { VALUES ( ?u ) { ( ?y ) ( ?x ) } . ?z property:sister_city ?u } . ?z rdf:type ontology:city . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:human_settlement }
[]
Comparative Reasoning (All)
USER
No, I meant Lyon. Could you tell me the answer for that?
(c(Q515),P190,c(Q15617994)|c(Q486972))
Q456
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q15617994'}, {'concept': 'Q486972'}]]
[{'concept': 'city'}, 'sister city', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'human settlement'}]]
[]
SYSTEM
337
Q384403 Q1021103 Q843001 Q847607 Q841296 Q1000086 Q3974 Q259498 Q158239 Q854913 Q696925 Q60037 Q850969 Q4024 Q270814 Q57921 Q240504 Q854996 Q281371 Q42651 Q320950 Q1088716 Q43199 Q385982 Q52607 Q766168 Q837173 Q214938 Q830394 Q1009003 Q789256 Q946743 Q843039 Q377834 Q295367 Q283023 Q20934 Q166255 Q57953 Q174091 Q916679 Q1010131 Q548097 Q783255 Q842961 Q329768 Q843035 Q1000029 Q14424 Q373023 Q1008750 Q2135 Q954569 Q158423 Q849439 Q11462 Q3214 Q23482 Q852018 Q841603 Q1018795 Q1236048 Q857202 Q854956 Q57719 Q933641 Q1018700 Q3069 Q19689 Q394453 Q2910 Q321778 Q68695 Q1899 Q330409 Q57997 Q57996 Q913754 Q1794 Q602976 Q793405 Q503411 Q375097 Q1818241 Q583910 Q1486 Q2966 Q34217 Q625154 Q179608 Q144988 Q154540 Q855073 Q1010144 Q623549 Q2865 Q379160 Q607625 Q755691 Q854906 Q1015409 Q755698 Q214945 Q75150 Q214956 Q319804 Q588606 Q855513 Q104587 Q2973 Q79535 Q1723 Q288413 Q270704 Q167109 Q6582 Q478038 Q911610 Q207406 Q4346 Q316841 Q898468 Q1025213 Q58560 Q14819 Q498545 Q193721 Q7003 Q987496 Q8652 Q180379 Q842971 Q3933 Q404429 Q784229 Q341056 Q755681 Q1017261 Q1000033 Q2900 Q3599 Q1731 Q587746 Q3857 Q674311 Q178382 Q1017769 Q1676870 Q42664 Q1711 Q854940 Q514796 Q854949 Q604516 Q239597 Q158432 Q327764 Q42635 Q9005 Q2337 Q633789 Q1019844 Q14960 Q3185 Q116417 Q3004 Q488869 Q837161 Q740853 Q205922 Q842976 Q2978 Q1676863 Q188082 Q941061 Q14440 Q203929 Q273880 Q855060 Q842996 Q3852 Q1773 Q14821 Q1020874 Q338616 Q954596 Q3958 Q3955 Q875070 Q668318 Q189633 Q2079 Q260522 Q42007 Q941032 Q854987 Q541550 Q855011 Q1258284 Q513417 Q4007 Q2096 Q642031 Q214948 Q58210 Q214942 Q16506 Q68481 Q245126 Q667208 Q191097 Q75336 Q57885 Q680656 Q946769 Q789233 Q360374 Q157835 Q3046 Q523489 Q246634 Q851048 Q1394252 Q523469 Q158257 Q185684 Q987487 Q629471 Q11194 Q7027 Q485581 Q646850 Q2119 Q1641829 Q57936 Q1721 Q390798 Q57906 Q44244 Q855052 Q547479 Q75026 Q509923 Q773203 Q149108 Q492366 Q149105 Q63855 Q470369 Q359990 Q108037 Q430207 Q756273 Q42622 Q188247 Q59095 Q3167 Q508591 Q789282 Q502993 Q637913 Q728438 Q3014 Q855086 Q146317 Q851492 Q911634 Q320798 Q494627 Q57941 Q530634 Q71151 Q4175 Q71159 Q57944 Q986082 Q57947 Q189769 Q236197 Q750224 Q2887 Q2880 Q804395 Q263757 Q488134 Q2706 Q653364 Q184998 Q1000056 Q854965 Q489147 Q755701 Q168648 Q629849 Q850676 Q990988 Q20073 Q485176 Q3935 Q3936 Q3931 Q248959 Q3750 Q3200 Q742160 Q158272 Q933638 Q386661 Q819672 Q158245 Q18575 Q680743 Q117676 Q613813 Q57948 Q1533 Q3042 Q1953 Q680963 Q933374 Q209988 Q582209 Q3994 Q954808 Q936145 Q842929 Q842925 Q302526 Q392429 Q1019371 Q225100 Q217681 Q721163 Q284480 Q2999 Q213296 Q1737652
(c(Q515),P190,c(Q15617994)|c(Q486972))
[ANSWER]
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q15617994'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:P190 ?y } UNION { ?z property:P190 ?x } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q486972 }
Litoměřice Meziboří Csorna Sanda Příbram Nový Bor Landshut Rafaela Kroměříž Szikszó Iruma Zalaegerszeg Victoria Frankfurt (Oder) Ishinomaki Lößnitz Makó Szerencs Jászberény Wuxi Trutnov Lőrinci Omaha Herend Mar del Plata Nagykáta Cisnădie Gyula Nagykőrös Staré Město Balatonalmádi Skalná Veresegyház Szentes Nagyatád Maglód Incheon Horšovský Týn Schwarzenberg Changsha Téglás Frýdlant nad Ostravicí Visegrád Kapuvár Mezőberény Tata Celldömölk Kraslice Nagykanizsa Weihai Stříbro Winnipeg Vyškov Buštěhrad Kopřivnice Surabaya Cottbus Marseille Izumisano Tiszakécske Bzenec Dolní Benešov Sanuki Ibrány Xuzhou Martonvásár Bystřice nad Pernštejnem Bottrop Tirana Žďár nad Sázavou Ludwigshafen Hodonín Quanzhou Kyiv Ústí nad Orlicí Wolkenstein Thum Zalalövő Frankfurt Klatovy Berettyóújfalu Inuyama Tiszaújváros Rousínov Aš Buenos Aires Heidelberg Oxford Komárom Nanning Zalakaros Sásd Solt Hluboká nad Vltavou Puerto de la Cruz Kassel Kunszentmárton Tamási Budaörs Gyömrő Bílovec Svitavy Pápa Yingkou Znojmo Sanya Fonyód Bük Kyjov Darmstadt Fort Smith Batangas City Tapolca Třebíč Eger Carcassonne Kiskunfélegyháza Lengyeltóti Mosonmagyaróvár Waren (Müritz) Karlovo Brandýs nad Labem-Stará Boleslav Rosice Qinhuangdao Freiberg Meldorf Tábor Dijon Kralupy nad Vltavou Miami Rēzekne Sellye Celle Jiaozuo Szigethalom Česká Třebová Várpalota Rotava Lanškroun Quito Bicske Dresden Siret Wilhelmshaven Kisvárda Jūrmala Mnichovo Hradiště Jablonné nad Orlicí Huzhou Potsdam Dabas Baoji Nyergesújfalu Szentgotthárd Neratovice Stochov Prachatice Wenzhou Brussels Smolensk Dombóvár Přimda Brno Hildesheim Sátoraljaújhely Ingolstadt Benalmádena Sânnicolau Mare Szigetszentmiklós Qiqihar Mátészalka Regensburg Jablonec nad Jizerou Český Krumlov Bystřice pod Hostýnem Iquique Zimnicea Beppu Encs Pécsvárad Worms Riga Coburg Přeštice Čelákovice Havlíčkův Brod Neubrandenburg Weimar Dagupan Sárospatak Guilin Leipzig Bácsalmás Szombathely Kozármisleny Soltvadkert Tiszaföldvár Heves Raspenava Vsetín Rosenheim Edmonton Gárdony Cegléd Jinhua Kazincbarcika České Budějovice Fuzhou Siófok Fertőd Tachov Chaoyang Elterlein Sümeg Mórahalom Balassagyarmat Anqing Zaporizhzhya Pforzheim Terezín Zábřeh Făget Kosmonosy Mariánské Lázně Hlučín Hefei Ostrov Kiskunmajsa Sarajevo Straubing Aveiro Kiskőrös Mannheim Jiříkov Scheibenberg Wiesbaden Szentendre Yangzhou Santa Fe Mezőtúr Dunakeszi Fushun Mezőhegyes Százhalombatta Jablunkov Norden Tanvald Roudnice nad Labem Kolín Wuhu Valmiera Komló Karcag Suzhou Sarkad Zhuhai Siegen Police nad Metují Balatonföldvár Uherské Hradiště Tōgane Siklós Wolfsburg Sajószentpéter Veszprém Shibukawa Kisújszállás Mohács Ruhla Schneeberg, Saxony Pilisvörösvár Sayda Ibbenbüren Brand-Erbisdorf Annaberg-Buchholz Litvínov Nantong Salgótarján Hino City Strakonice Santiago Hamm Blatná Kadarkút Ontario Bremerhaven Atami Kaposvár Sušice Lenti Schmalkalden Ráckeve Sopron Hatvan Blansko Broumov Hohenstein-Ernstthal Pasadena Windhoek Bamberg Brandenburg an der Havel Zărnești Gera Salzgitter Shijōnawate Žamberk Mezőkövesd Fujisawa Kumano Písek Tucson Balatonfüred Viseu Kőszeg Aue Caracas Offenbach am Main Yerevan Mór Nagybajom Gödöllő Tokaj Kempten Kaplice Loket Nepomuk Edelény Tab Šternberk Studénka Bicaz Tai'an Itō Bóly Würzburg Sinaia Kdyně
337
[{'concept': 'city'}, 'sister city', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?z WHERE { { { ?z property:sister_city ?y } UNION { ?z property:sister_city ?x } } . ?z rdf:type ontology:city . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:human_settlement }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q47381 Q520322
P47 P27
Q15617994
USER
Which administrative territories are Jaroslav Bába a civilian of or share the border with Teglio Veneto ?
OR((Q520322,P27,c(Q15617994)), (Q47381,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q520322
relation P27
action find
entity Q47381
relation P47
type Q15617994
{'OR': [['Q520322', 'P27', {'concept': 'Q15617994'}], ['Q47381', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q47381 property:P47 ?b } UNION { resource:Q520322 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Teglio Veneto Jaroslav Bába
action filter_type
action union
action find
entity Jaroslav Bába
relation country of citizenship
action find
entity Teglio Veneto
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Jaroslav Bába', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Teglio Veneto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Teglio_Veneto property:shares_border_with ?b } UNION { resource:Jaroslav_Bába property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q53166 Q213 Q48002 Q48016 Q47143
SYSTEM
Cordovado, Czech Republic, Fossalta di Portogruaro, Gruaro, Portogruaro
Q53166 Q213 Q48002 Q48016 Q47143
OR((Q520322,P27,c(Q15617994)), (Q47381,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q520322
relation P27
action find
entity Q47381
relation P47
type Q15617994
[ANSWERS] are Jaroslav Bába a civilian of or share the border with Teglio Veneto
{'OR': [['Q520322', 'P27', {'concept': 'Q15617994'}], ['Q47381', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q47381 property:P47 ?b } UNION { resource:Q520322 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Cordovado Czech Republic Fossalta di Portogruaro Gruaro Portogruaro
Cordovado, Czech Republic, Fossalta di Portogruaro, Gruaro and Portogruaro are Jaroslav Bába a civilian of or share the border with Teglio Veneto
Cordovado Czech Republic Fossalta di Portogruaro Gruaro Portogruaro
action filter_type
action union
action find
entity Jaroslav Bába
relation country of citizenship
action find
entity Teglio Veneto
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Jaroslav Bába', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Teglio Veneto', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Teglio_Veneto property:shares_border_with ?b } UNION { resource:Jaroslav_Bába property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1135624 Q6582
P47
Q20667921
USER
Which french administrative divisions are adjacent to Carcassonne or Cellettes ?
OR((Q6582,P47,c(Q20667921)), (Q1135624,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q6582
relation P47
action find
entity Q1135624
relation P47
type Q20667921
{'OR': [['Q6582', 'P47', {'concept': 'Q20667921'}], ['Q1135624', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q6582 property:P47 ?j } UNION { resource:Q1135624 property:P47 ?j } } . ?j rdf:type ontology:Q20667921 }
Cellettes Carcassonne
action filter_type
action union
action find
entity Carcassonne
relation shares border with
action find
entity Cellettes
relation shares border with
type type of french administrative division
{'OR': [['Carcassonne', 'shares border with', {'concept': 'type of french administrative division'}], ['Cellettes', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Carcassonne property:shares_border_with ?j } UNION { resource:Cellettes property:shares_border_with ?j } } . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1383605 Q1135553 Q582924 Q199579 Q1083555 Q659942 Q1429296 Q1015657 Q188550 Q1083982
SYSTEM
Some of them are Seur, Cormeray, Chailles, Pezens, Villedubert, Cheverny, Cour-Cheverny, Fontiès-d'Aude, Caux-et-Sauzens, Pennautier
Q1083982 Q1082490 Q865068 Q1149456 Q1429296 Q1135553 Q1015657 Q962905 Q187481 Q1020673 Q187445 Q585391 Q582924 Q176937 Q1083555 Q1383605 Q199579 Q961678 Q188550 Q659942 Q1135543 Q1170003 Q944875
OR((Q6582,P47,c(Q20667921)), (Q1135624,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q6582
relation P47
action find
entity Q1135624
relation P47
type Q20667921
[ANSWERS] are adjacent to Carcassonne or Cellettes
{'OR': [['Q6582', 'P47', {'concept': 'Q20667921'}], ['Q1135624', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q6582 property:P47 ?j } UNION { resource:Q1135624 property:P47 ?j } } . ?j rdf:type ontology:Q20667921 }
Pennautier Villemoustaussou Berriac Cazilhac Cour-Cheverny Cormeray Fontiès-d'Aude Montirat Trèbes Palaja Cavanac Mont-près-Chambord Chailles Roullens Villedubert Seur Pezens Couffoulens Caux-et-Sauzens Cheverny Chitenay Saint-Gervais-la-Forêt Lavalette
Seur, Cormeray, Chailles, Pezens, Villedubert, Cheverny, Cour-Cheverny, Fontiès-d'Aude, Caux-et-Sauzens and Pennautier are adjacent to Carcassonne or Cellettes
Seur Cormeray Chailles Pezens Villedubert Cheverny Cour-Cheverny Fontiès-d'Aude Caux-et-Sauzens Pennautier
action filter_type
action union
action find
entity Carcassonne
relation shares border with
action find
entity Cellettes
relation shares border with
type type of french administrative division
{'OR': [['Carcassonne', 'shares border with', {'concept': 'type of french administrative division'}], ['Cellettes', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Carcassonne property:shares_border_with ?j } UNION { resource:Cellettes property:shares_border_with ?j } } . ?j rdf:type ontology:type_of_french_administrative_division }
[]