Simple Question (Direct)
Simple Question
Q459607
P20
Q56061
USER
Where did the demise of Martin Camaj occur ?
(Q459607,P20,c(Q56061))
action filter_type
action find
entity Q459607
relation P20
type Q56061
['Q459607', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q459607 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Martin Camaj
action filter_type
action find
entity Martin Camaj
relation place of death
type administrative territorial entity
['Martin Camaj', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Martin_Camaj property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726
SYSTEM
Munich
Q1726
(Q459607,P20,c(Q56061))
action filter_type
action find
entity Q459607
relation P20
type Q56061
The demise of Martin Camaj occurred in [ANSWER]
['Q459607', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q459607 property:P20 ?z . ?z rdf:type ontology:Q56061 }
Munich
The demise of Martin Camaj occurred in Munich
Munich
action filter_type
action find
entity Martin Camaj
relation place of death
type administrative territorial entity
['Martin Camaj', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Martin_Camaj property:place_of_death ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q459607
P19
Q15617994
USER
Which administrative territory is the birthplace of that person ?
(Q1726,P19,c(Q15617994))
action filter_type
action find
entity Q459607
relation P19
type Q15617994
['Q1726', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q459607 property:P19 ?n }
Martin Camaj
action filter_type
action find
entity Martin Camaj
relation place of birth
type designation for an administrative territorial entity
['Munich', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Martin_Camaj property:place_of_birth ?n }
[]
designation for an administrative territorial entity
Q222
SYSTEM
Albania
Q222
(Q1726,P19,c(Q15617994))
action filter_type
action find
entity Q459607
relation P19
type Q15617994
[ANSWER] is the birthplace of that person
['Q1726', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q459607 property:P19 ?n }
Albania
Albania is the birthplace of that person
Albania
action filter_type
action find
entity Martin Camaj
relation place of birth
type designation for an administrative territorial entity
['Munich', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Martin_Camaj property:place_of_birth ?n }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P194
Q701632 Q1752346 Q15617994
USER
How many administrative territories have exactly 1 municipal councils or assemblies as their representative body ?
(c(Q15617994),P194,c(Q701632)|c(Q1752346))
action count
action equal
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 1
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { FILTER ( ?s = 1 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?c WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q701632 ) ( ontology:Q1752346 ) } } GROUP BY ?c } }
action count
action equal
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { FILTER ( ?s = 1 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?c WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:municipal_council ) ( ontology:assembly ) } } GROUP BY ?c } }
[]
municipal council assembly designation for an administrative territorial entity
SYSTEM
66
Q804 Q801 Q419 Q668 Q2806757 Q414 Q142 Q55 Q145 Q717 Q657 Q258 Q45 Q159 Q41 Q155 Q4628 Q1965 Q242 Q33 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q747074 Q72449 Q233 Q238 Q20 Q28 Q29 Q783 Q184 Q228 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q697 Q298 Q754 Q750 Q213 Q211 Q214 Q215 Q218 Q219 Q16110 Q79 Q77 Q811 Q1013 Q176 Q1952 Q869
(c(Q15617994),P194,c(Q701632)|c(Q1752346))
action count
action equal
action union
action find_tuple_counts
relation P194
type Q15617994
type Q701632
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q701632'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { FILTER ( ?s = 1 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?c WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:Q701632 ) ( ontology:Q1752346 ) } } GROUP BY ?c } }
Panama Israel Peru India 105 Mile Post Indian Reserve No. 2 Argentina France Netherlands United Kingdom Venezuela Chad South Africa Portugal Russia Greece Brazil Faroe Islands New Brunswick Belize Finland Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia comune of Italy Roccarainola Malta San Marino Norway Hungary Spain Honduras Belarus Andorra Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Nauru Chile Trinidad and Tobago Bolivia Czech Republic Latvia Slovakia Slovenia Romania Bulgaria region of Italy Egypt Uruguay Nicaragua Lesotho Quebec Nova Scotia Thailand
66
action count
action equal
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type municipal council
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'municipal council'}, {'concept': 'assembly'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { FILTER ( ?s = 1 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?c WHERE { ?j rdf:type ?a . VALUES ( ?a ) { ( ontology:municipal_council ) ( ontology:assembly ) } } GROUP BY ?c } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q222
P30
Q2221906
USER
Which geographic location is Albania situated in ?
(Q222,P30,c(Q2221906))
action filter_type
action find
entity Q222
relation P30
type Q2221906
['Q222', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { resource:Q222 property:P30 ?y . ?y rdf:type ontology:Q2221906 }
Albania
action filter_type
action find
entity Albania
relation continent
type geographic location
['Albania', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { resource:Albania property:continent ?y . ?y rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q222,P30,c(Q2221906))
action filter_type
action find
entity Q222
relation P30
type Q2221906
Albania is situated in [ANSWER]
['Q222', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { resource:Q222 property:P30 ?y . ?y rdf:type ontology:Q2221906 }
Europe
Albania is situated in Europe
Europe
action filter_type
action find
entity Albania
relation continent
type geographic location
['Albania', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { resource:Albania property:continent ?y . ?y rdf:type ontology:geographic_location }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3023320
Q2221906
USER
And also tell me about Dent du Chat?
(Q3023320,P30,c(Q2221906))
action filter_type
action find
entity Q3023320
relation P30
type Q2221906
['Q3023320', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?n WHERE { resource:Q3023320 property:P30 ?n . ?n rdf:type ontology:Q2221906 }
Dent du Chat
action filter_type
action find
entity Dent du Chat
relation continent
type geographic location
['Dent du Chat', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?n WHERE { resource:Dent_du_Chat property:continent ?n . ?n rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q3023320,P30,c(Q2221906))
action filter_type
action find
entity Q3023320
relation P30
type Q2221906
[ANSWER]
['Q3023320', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?n WHERE { resource:Q3023320 property:P30 ?n . ?n rdf:type ontology:Q2221906 }
Europe
Europe
action filter_type
action find
entity Dent du Chat
relation continent
type geographic location
['Dent du Chat', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?n WHERE { resource:Dent_du_Chat property:continent ?n . ?n rdf:type ontology:geographic_location }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q46 Q43105 Q21905808
P610
Q14524493
USER
Is Mount Elbrus and Ogilvies Hill the highest point of Q46 ?
(Q46,P610,Q43105) (Q46,P610,Q21905808)
action is_in
entity Q46
action intersection
action find_reverse
entity Q43105
relation P610
action find_reverse
entity Q21905808
relation P610
['Q46', 'P610', 'Q43105'] ['Q46', 'P610', 'Q21905808']
ASK WHERE { resource:Q46 property:P610 resource:Q43105 . resource:Q46 property:P610 resource:Q21905808 }
Europe Mount Elbrus Ogilvies Hill
action is_in
entity Europe
action intersection
action find_reverse
entity Mount Elbrus
relation highest point
action find_reverse
entity Ogilvies Hill
relation highest point
['Europe', 'highest point', 'Mount Elbrus'] ['Europe', 'highest point', 'Ogilvies Hill']
ASK WHERE { resource:Europe property:highest_point resource:Mount_Elbrus . resource:Europe property:highest_point resource:Ogilvies_Hill }
[]
terrain
SYSTEM
YES and NO respectively
(Q46,P610,Q43105) (Q46,P610,Q21905808)
action is_in
entity Q46
action intersection
action find_reverse
entity Q43105
relation P610
action find_reverse
entity Q21905808
relation P610
[ANSWER]
['Q46', 'P610', 'Q43105'] ['Q46', 'P610', 'Q21905808']
ASK WHERE { resource:Q46 property:P610 resource:Q43105 . resource:Q46 property:P610 resource:Q21905808 }
YES and NO respectively
action is_in
entity Europe
action intersection
action find_reverse
entity Mount Elbrus
relation highest point
action find_reverse
entity Ogilvies Hill
relation highest point
['Europe', 'highest point', 'Mount Elbrus'] ['Europe', 'highest point', 'Ogilvies Hill']
ASK WHERE { resource:Europe property:highest_point resource:Mount_Elbrus . resource:Europe property:highest_point resource:Ogilvies_Hill }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q222 Q16
P530
Q15617994
USER
How many administrative territories have ambassadorial relations with Albania and Canada ?
(c(Q15617994),P530,Q222) (c(Q15617994),P530,Q16)
action count
action intersection
action filter_type
action find_reverse
entity Q222
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q16
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q222'] [{'concept': 'Q15617994'}, 'P530', 'Q16']
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:P530 resource:Q16 . ?b rdf:type ontology:Q15617994 . ?b property:P530 resource:Q222 . ?b rdf:type ontology:Q15617994 }
Albania Canada
action count
action intersection
action filter_type
action find_reverse
entity Albania
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Albania'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Canada']
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:diplomatic_relation resource:Canada . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation resource:Albania . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
Q30 Q230 Q38 Q889
(c(Q15617994),P530,Q222) (c(Q15617994),P530,Q16)
action count
action intersection
action filter_type
action find_reverse
entity Q222
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q16
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q222'] [{'concept': 'Q15617994'}, 'P530', 'Q16']
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:P530 resource:Q16 . ?b rdf:type ontology:Q15617994 . ?b property:P530 resource:Q222 . ?b rdf:type ontology:Q15617994 }
United States of America Georgia Italy Afghanistan
4
action count
action intersection
action filter_type
action find_reverse
entity Albania
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Canada
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Albania'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Canada']
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:diplomatic_relation resource:Canada . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation resource:Albania . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3147671 Q1726
P19 P190
Q56061
USER
Which administrative territories are twin cities of Munich and are the birthplace of Ichodenah de Bassora ?
AND((Q1726,P190,c(Q56061)), (Q3147671,P19,c(Q56061)))
action filter_type
action intersection
action find
entity Q1726
relation P190
action find
entity Q3147671
relation P19
type Q56061
{'AND': [['Q1726', 'P190', {'concept': 'Q56061'}], ['Q3147671', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { resource:Q1726 property:P190 ?l . resource:Q3147671 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Ichodenah de Bassora Munich
action filter_type
action intersection
action find
entity Munich
relation sister city
action find
entity Ichodenah de Bassora
relation place of birth
type administrative territorial entity
{'AND': [['Munich', 'sister city', {'concept': 'administrative territorial entity'}], ['Ichodenah de Bassora', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Munich property:sister_city ?l . resource:Ichodenah_de_Bassora property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q48195
SYSTEM
Basra
Q48195
AND((Q1726,P190,c(Q56061)), (Q3147671,P19,c(Q56061)))
action filter_type
action intersection
action find
entity Q1726
relation P190
action find
entity Q3147671
relation P19
type Q56061
[ANSWER] is twin cities of Munich and is the birthplace of Ichodenah de Bassora
{'AND': [['Q1726', 'P190', {'concept': 'Q56061'}], ['Q3147671', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { resource:Q1726 property:P190 ?l . resource:Q3147671 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Basra
Basra is twin cities of Munich and is the birthplace of Ichodenah de Bassora
Basra
action filter_type
action intersection
action find
entity Munich
relation sister city
action find
entity Ichodenah de Bassora
relation place of birth
type administrative territorial entity
{'AND': [['Munich', 'sister city', {'concept': 'administrative territorial entity'}], ['Ichodenah de Bassora', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Munich property:sister_city ?l . resource:Ichodenah_de_Bassora property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2734559 Q21905808
P17
Q1048835
USER
Which political territories are Ogilvies Hill or Jurby located in ?
OR((Q21905808,P17,c(Q1048835)), (Q2734559,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q21905808
relation P17
action find
entity Q2734559
relation P17
type Q1048835
{'OR': [['Q21905808', 'P17', {'concept': 'Q1048835'}], ['Q2734559', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . { ?w property:P17 ?l . VALUES ( ?w ) { ( resource:Q21905808 ) ( resource:Q2734559 ) } } }
Jurby Ogilvies Hill
action filter_type
action union
action find
entity Ogilvies Hill
relation country
action find
entity Jurby
relation country
type political territorial entity
{'OR': [['Ogilvies Hill', 'country', {'concept': 'political territorial entity'}], ['Jurby', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . { ?w property:country ?l . VALUES ( ?w ) { ( resource:Ogilvies_Hill ) ( resource:Jurby ) } } }
[]
political territorial entity
Q408 Q9676
SYSTEM
Australia, Isle of Man
Q408 Q9676
OR((Q21905808,P17,c(Q1048835)), (Q2734559,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q21905808
relation P17
action find
entity Q2734559
relation P17
type Q1048835
[ANSWERS]
{'OR': [['Q21905808', 'P17', {'concept': 'Q1048835'}], ['Q2734559', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q1048835 . { ?w property:P17 ?l . VALUES ( ?w ) { ( resource:Q21905808 ) ( resource:Q2734559 ) } } }
Australia Isle of Man
Which political territories are Ogilvies Hill or Jurby located in
Australia Isle of Man
action filter_type
action union
action find
entity Ogilvies Hill
relation country
action find
entity Jurby
relation country
type political territorial entity
{'OR': [['Ogilvies Hill', 'country', {'concept': 'political territorial entity'}], ['Jurby', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_territorial_entity . { ?w property:country ?l . VALUES ( ?w ) { ( resource:Ogilvies_Hill ) ( resource:Jurby ) } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
How many political territories are the native countriesof approximately the same number of people as that political territory ?
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity common name
Comparative|Count over More/Less|Single entity type|Clarification
Q9676
SYSTEM
Did you mean Isle of Man ?
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Did you mean Isle of Man ?
Isle of Man
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
[]
SYSTEM
63
Q635755 Q668384 Q1000 Q193714 Q1747689 Q746558 Q838261 Q785 Q193619 Q691 Q769 Q685 Q699964 Q763 Q1232887 Q664 Q766 Q22880 Q170361 Q1054923 Q10557 Q5720 Q505610 Q693551 Q13353 Q494354 Q650489 Q781 Q5705 Q757 Q168159 Q5785 Q35 Q109128 Q3306663 Q190959 Q11266977 Q223793 Q3995 Q130842 Q18221 Q650682 Q778 Q9676 Q217829 Q100166 Q9648 Q234 Q4040 Q2991382 Q309460 Q129286 Q168651 Q3908 Q9337 Q23635 Q192184 Q25228 Q31747 Q25305 Q79965 Q157070 Q170604
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Odieta Medellín Gabon Mandatory Palestine Ancient Rome Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Papua New Guinea Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis County of Savoy New Zealand Jamaica Electoral Palatinate Saar British Hong Kong Swabia Valencian Country Flintshire Landgraviate of Hesse-Darmstadt Montserrat Kara-Khanid Khanate Margraviate of Baden Antigua and Barbuda Catalonia Saint Vincent and the Grenadines Anglesey Cayman Islands Denmark Gwynedd Merthyr Tydfil County Borough Transvaal Epirus Kingdom of Etruria Basque Country Greater Lebanon Turks and Caicos Islands Denbighshire The Bahamas Isle of Man Ceredigion Orkney Islands Falkland Islands Flemish Region Aragon County of Provence County of Hainaut British Raj Landgraviate of Hesse-Kassel Galicia Flemish Region Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands Golden Horde County of Flanders New France
63
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q14808 Q1726
P190
Q515
USER
Which cities are the sister cities of Munich or Oranienburg ?
OR((Q1726,P190,c(Q515)), (Q14808,P190,c(Q515)))
action filter_type
action union
action find
entity Q1726
relation P190
action find
entity Q14808
relation P190
type Q515
{'OR': [['Q1726', 'P190', {'concept': 'Q515'}], ['Q14808', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1726 property:P190 ?w } UNION { resource:Q14808 property:P190 ?w } } . ?w rdf:type ontology:Q515 }
Oranienburg Munich
action filter_type
action union
action find
entity Munich
relation sister city
action find
entity Oranienburg
relation sister city
type city
{'OR': [['Munich', 'sister city', {'concept': 'city'}], ['Oranienburg', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Munich property:sister_city ?w } UNION { resource:Oranienburg property:sister_city ?w } } . ?w rdf:type ontology:city }
[]
city
Q43196 Q320939 Q1899 Q2880
SYSTEM
Cincinnati, Mělník, Kyiv, Hamm
Q43196 Q320939 Q1899 Q2880
OR((Q1726,P190,c(Q515)), (Q14808,P190,c(Q515)))
action filter_type
action union
action find
entity Q1726
relation P190
action find
entity Q14808
relation P190
type Q515
[ANSWERS] are the sister cities of Munich or Oranienburg
{'OR': [['Q1726', 'P190', {'concept': 'Q515'}], ['Q14808', 'P190', {'concept': 'Q515'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1726 property:P190 ?w } UNION { resource:Q14808 property:P190 ?w } } . ?w rdf:type ontology:Q515 }
Cincinnati Mělník Kyiv Hamm
Cincinnati, Mělník, Kyiv and Hamm are the sister cities of Munich or Oranienburg
Cincinnati Mělník Kyiv Hamm
action filter_type
action union
action find
entity Munich
relation sister city
action find
entity Oranienburg
relation sister city
type city
{'OR': [['Munich', 'sister city', {'concept': 'city'}], ['Oranienburg', 'sister city', {'concept': 'city'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Munich property:sister_city ?w } UNION { resource:Oranienburg property:sister_city ?w } } . ?w rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14808
P1376
Q1048835
USER
What has Oranienburg as its capital ?
(Q43196,P1376,c(Q1048835)) (Q320939,P1376,c(Q1048835)) (Q1899,P1376,c(Q1048835)) (Q2880,P1376,c(Q1048835))
action filter_type
action find
entity Q14808
relation P1376
type Q1048835
['Q43196', 'P1376', {'concept': 'Q1048835'}] ['Q320939', 'P1376', {'concept': 'Q1048835'}] ['Q1899', 'P1376', {'concept': 'Q1048835'}] ['Q2880', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q14808 property:P1376 ?d . ?d rdf:type ontology:Q1048835 }
Oranienburg
action filter_type
action find
entity Oranienburg
relation capital of
type political territorial entity
['Cincinnati', 'capital of', {'concept': 'political territorial entity'}] ['Mělník', 'capital of', {'concept': 'political territorial entity'}] ['Kyiv', 'capital of', {'concept': 'political territorial entity'}] ['Hamm', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Oranienburg property:capital_of ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q6119
SYSTEM
Oberhavel
Q6119
(Q43196,P1376,c(Q1048835)) (Q320939,P1376,c(Q1048835)) (Q1899,P1376,c(Q1048835)) (Q2880,P1376,c(Q1048835))
action filter_type
action find
entity Q14808
relation P1376
type Q1048835
[ANSWER] has Oranienburg as its capital
['Q43196', 'P1376', {'concept': 'Q1048835'}] ['Q320939', 'P1376', {'concept': 'Q1048835'}] ['Q1899', 'P1376', {'concept': 'Q1048835'}] ['Q2880', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q14808 property:P1376 ?d . ?d rdf:type ontology:Q1048835 }
Oberhavel
Oberhavel has Oranienburg as its capital
Oberhavel
action filter_type
action find
entity Oranienburg
relation capital of
type political territorial entity
['Cincinnati', 'capital of', {'concept': 'political territorial entity'}] ['Mělník', 'capital of', {'concept': 'political territorial entity'}] ['Kyiv', 'capital of', {'concept': 'political territorial entity'}] ['Hamm', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Oranienburg property:capital_of ?d . ?d rdf:type ontology:political_territorial_entity }
[]