Simple Question (Direct)
Simple Question
Q11437513
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Aiko Obuchi ?
(Q11437513,P27,c(Q15617994))
action filter_type
action find
entity Q11437513
relation P27
type Q15617994
['Q11437513', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q11437513 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Aiko Obuchi
action filter_type
action find
entity Aiko Obuchi
relation country of citizenship
type designation for an administrative territorial entity
['Aiko Obuchi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Aiko_Obuchi property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q11437513,P27,c(Q15617994))
action filter_type
action find
entity Q11437513
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Aiko Obuchi
['Q11437513', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q11437513 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Japan
Japan is the country of citizenship of Aiko Obuchi
Japan
action filter_type
action find
entity Aiko Obuchi
relation country of citizenship
type designation for an administrative territorial entity
['Aiko Obuchi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Aiko_Obuchi property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11437513
P21
Q290
USER
What is the sex of that person ?
(Q17,P21,c(Q290))
action filter_type
action find
entity Q11437513
relation P21
type Q290
['Q17', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q11437513 property:P21 ?d . ?d rdf:type ontology:Q290 }
Aiko Obuchi
action filter_type
action find
entity Aiko Obuchi
relation gender
type sex
['Japan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Aiko_Obuchi property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q17,P21,c(Q290))
action filter_type
action find
entity Q11437513
relation P21
type Q290
The sex of that person is the [ANSWER]
['Q17', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q11437513 property:P21 ?d . ?d rdf:type ontology:Q290 }
female
The sex of that person is the female
female
action filter_type
action find
entity Aiko Obuchi
relation gender
type sex
['Japan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Aiko_Obuchi property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11437513
P19
Q56061
USER
Where was that person born ?
(Q6581072,P19,c(Q56061))
action filter_type
action find
entity Q11437513
relation P19
type Q56061
['Q6581072', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q11437513 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Aiko Obuchi
action filter_type
action find
entity Aiko Obuchi
relation place of birth
type administrative territorial entity
['female', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Aiko_Obuchi property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
(Q6581072,P19,c(Q56061))
action filter_type
action find
entity Q11437513
relation P19
type Q56061
That person was born in [ANSWER]
['Q6581072', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q11437513 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Tokyo
That person was born in Tokyo
Tokyo
action filter_type
action find
entity Aiko Obuchi
relation place of birth
type administrative territorial entity
['female', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Aiko_Obuchi property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1490
P190
Q56061
USER
Which administrative territories are the sister cities of that one ?
(Q1490,P190,c(Q56061))
action filter_type
action find
entity Q1490
relation P190
type Q56061
['Q1490', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1490 property:P190 ?t . ?t rdf:type ontology:Q56061 }
Tokyo
action filter_type
action find
entity Tokyo
relation sister city
type administrative territorial entity
['Tokyo', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Tokyo property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649 Q64 Q90
SYSTEM
Moscow, Berlin, Paris
Q3630 Q220 Q649 Q90 Q956 Q84 Q64 Q60
(Q1490,P190,c(Q56061))
action filter_type
action find
entity Q1490
relation P190
type Q56061
[ANSWERS] are the sister cities of that one
['Q1490', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1490 property:P190 ?t . ?t rdf:type ontology:Q56061 }
Jakarta Rome Moscow Paris Beijing London Berlin New York City
Moscow, Berlin and Paris are the sister cities of that one
Moscow Berlin Paris
action filter_type
action find
entity Tokyo
relation sister city
type administrative territorial entity
['Tokyo', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Tokyo property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q429864
Q56061
USER
And how about Riihimäki?
(Q429864,P190,c(Q56061))
action filter_type
action find
entity Q429864
relation P190
type Q56061
['Q429864', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q429864 property:P190 ?t }
Riihimäki
action filter_type
action find
entity Riihimäki
relation sister city
type administrative territorial entity
['Riihimäki', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Riihimäki property:sister_city ?t }
[]
administrative territorial entity
Q25410 Q743218 Q219417
SYSTEM
Aalborg, Jonava, Húsavík
Q25410 Q743218 Q219417
(Q429864,P190,c(Q56061))
action filter_type
action find
entity Q429864
relation P190
type Q56061
[ANSWERS]
['Q429864', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q429864 property:P190 ?t }
Aalborg Jonava Húsavík
Aalborg Jonava Húsavík
action filter_type
action find
entity Riihimäki
relation sister city
type administrative territorial entity
['Riihimäki', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Riihimäki property:sister_city ?t }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q25410 Q743218 Q219417
P190
Q56061
USER
Which administrative territories are sister town of Aalborg, Jonava and Húsavík ?
(c(Q56061),P190,Q25410) (c(Q56061),P190,Q743218) (c(Q56061),P190,Q219417)
action union
action filter_type
action find_reverse
entity Q743218
relation P190
type Q56061
action filter_type
action find_reverse
entity Q219417
relation P190
type Q56061
action filter_type
action find_reverse
entity Q25410
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q25410'] [{'concept': 'Q56061'}, 'P190', 'Q743218'] [{'concept': 'Q56061'}, 'P190', 'Q219417']
SELECT DISTINCT ?p WHERE { { ?p property:P190 resource:Q743218 . ?p rdf:type ontology:Q56061 } UNION { ?p property:P190 resource:Q219417 . ?p rdf:type ontology:Q56061 } }
Aalborg Jonava Húsavík
action union
action filter_type
action find_reverse
entity Jonava
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Húsavík
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Aalborg
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Aalborg'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Jonava'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Húsavík']
SELECT DISTINCT ?p WHERE { { ?p property:sister_city resource:Jonava . ?p rdf:type ontology:administrative_territorial_entity } UNION { ?p property:sister_city resource:Húsavík . ?p rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q216 Q1829 Q25410
SYSTEM
Vilnius, Kaliningrad, Aalborg
Q429864 Q822559 Q6506 Q83178 Q321279 Q41621 Q7030 Q385 Q490457 Q23436 Q731990 Q226 Q571940 Q216 Q1735 Q219417 Q129610 Q1829 Q205905 Q40340 Q429864 Q117513 Q104354 Q200797 Q146307 Q429864 Q731990 Q25410 Q847668
(c(Q56061),P190,Q25410) (c(Q56061),P190,Q743218) (c(Q56061),P190,Q219417)
action union
action filter_type
action find_reverse
entity Q743218
relation P190
type Q56061
action filter_type
action find_reverse
entity Q219417
relation P190
type Q56061
action filter_type
action find_reverse
entity Q25410
relation P190
type Q56061
[ANSWERS] are sister town of Aalborg, Jonava and Húsavík
[{'concept': 'Q56061'}, 'P190', 'Q25410'] [{'concept': 'Q56061'}, 'P190', 'Q743218'] [{'concept': 'Q56061'}, 'P190', 'Q219417']
SELECT DISTINCT ?p WHERE { { ?p property:P190 resource:Q743218 . ?p rdf:type ontology:Q56061 } UNION { ?p property:P190 resource:Q219417 . ?p rdf:type ontology:Q56061 } }
Riihimäki Solvang Varna Almere Ittoqqortoormiit Haifa Wismar Gdynia Rendsburg Edinburgh Fuglafjørður Nuuk Büdelsdorf Vilnius Innsbruck Húsavík Galway Kaliningrad Lancaster Racine Riihimäki Jõgeva Bagrationovsk Polotsk Děčín Riihimäki Fuglafjørður Aalborg Qeqertarsuaq
Vilnius, Kaliningrad and Aalborg are sister town of Aalborg, Jonava and Húsavík
Vilnius Kaliningrad Aalborg
action union
action filter_type
action find_reverse
entity Jonava
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Húsavík
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Aalborg
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Aalborg'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Jonava'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Húsavík']
SELECT DISTINCT ?p WHERE { { ?p property:sister_city resource:Jonava . ?p rdf:type ontology:administrative_territorial_entity } UNION { ?p property:sister_city resource:Húsavík . ?p rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q216 Q1829 Q25410
P190
Q486972
USER
Which human settlements are sister towns of Vilnius, Kaliningrad and Aalborg ?
(Q216,P190,c(Q486972)) (Q1829,P190,c(Q486972)) (Q25410,P190,c(Q486972))
action union
action filter_type
action find
entity Q216
relation P190
type Q486972
action filter_type
action find
entity Q1829
relation P190
type Q486972
action filter_type
action find
entity Q25410
relation P190
type Q486972
['Q216', 'P190', {'concept': 'Q486972'}] ['Q1829', 'P190', {'concept': 'Q486972'}] ['Q25410', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { { resource:Q216 property:P190 ?p . ?p rdf:type ontology:Q486972 } UNION { resource:Q1829 property:P190 ?p . ?p rdf:type ontology:Q486972 } }
Vilnius Kaliningrad Aalborg
action union
action filter_type
action find
entity Vilnius
relation sister city
type human settlement
action filter_type
action find
entity Kaliningrad
relation sister city
type human settlement
action filter_type
action find
entity Aalborg
relation sister city
type human settlement
['Vilnius', 'sister city', {'concept': 'human settlement'}] ['Kaliningrad', 'sister city', {'concept': 'human settlement'}] ['Aalborg', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { { resource:Vilnius property:sister_city ?p . ?p rdf:type ontology:human_settlement } UNION { resource:Kaliningrad property:sister_city ?p . ?p rdf:type ontology:human_settlement } }
[]
human settlement
Q1055 Q31487 Q1792
SYSTEM
Hamburg, Kraków, Gdańsk
Q1792 Q48256 Q31487 Q1055 Q1792 Q104712 Q47554 Q82765 Q103892 Q1026520
(Q216,P190,c(Q486972)) (Q1829,P190,c(Q486972)) (Q25410,P190,c(Q486972))
action union
action filter_type
action find
entity Q216
relation P190
type Q486972
action filter_type
action find
entity Q1829
relation P190
type Q486972
action filter_type
action find
entity Q25410
relation P190
type Q486972
[ANSWERS] are sister towns of Vilnius, Kaliningrad and Aalborg
['Q216', 'P190', {'concept': 'Q486972'}] ['Q1829', 'P190', {'concept': 'Q486972'}] ['Q25410', 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { { resource:Q216 property:P190 ?p . ?p rdf:type ontology:Q486972 } UNION { resource:Q1829 property:P190 ?p . ?p rdf:type ontology:Q486972 } }
Gdańsk Dnipro Kraków Hamburg Gdańsk Elbląg Toruń Olsztyn Zabrze Juan-les-Pins
Hamburg, Kraków and Gdańsk are sister towns of Vilnius, Kaliningrad and Aalborg
Hamburg Kraków Gdańsk
action union
action filter_type
action find
entity Vilnius
relation sister city
type human settlement
action filter_type
action find
entity Kaliningrad
relation sister city
type human settlement
action filter_type
action find
entity Aalborg
relation sister city
type human settlement
['Vilnius', 'sister city', {'concept': 'human settlement'}] ['Kaliningrad', 'sister city', {'concept': 'human settlement'}] ['Aalborg', 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { { resource:Vilnius property:sister_city ?p . ?p rdf:type ontology:human_settlement } UNION { resource:Kaliningrad property:sister_city ?p . ?p rdf:type ontology:human_settlement } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q216
P36
Q7275
USER
Which states consists of that administrative territory as their capital ?
(c(Q7275),P36,Q216)
action filter_type
action find_reverse
entity Q216
relation P36
type Q7275
[{'concept': 'Q7275'}, 'P36', 'Q216']
SELECT DISTINCT ?n WHERE { ?n property:P36 resource:Q216 . ?n rdf:type ontology:Q7275 }
Vilnius
action filter_type
action find_reverse
entity Vilnius
relation capital
type state
[{'concept': 'state'}, 'capital', 'Vilnius']
SELECT DISTINCT ?n WHERE { ?n property:capital resource:Vilnius . ?n rdf:type ontology:state }
[]
state
Clarification for simple ques.
Q216
SYSTEM
Did you mean Vilnius ?
Q1055 Q31487 Q1792
(c(Q7275),P36,Q1055) (c(Q7275),P36,Q31487) (c(Q7275),P36,Q1792)
[ANSWER]
[{'concept': 'Q7275'}, 'P36', 'Q1055'] [{'concept': 'Q7275'}, 'P36', 'Q31487'] [{'concept': 'Q7275'}, 'P36', 'Q1792']
SELECT DISTINCT ?n WHERE { ?n property:P36 resource:Q216 . ?n rdf:type ontology:Q7275 }
Hamburg Kraków Gdańsk
Did you mean Vilnius ?
Vilnius
[{'concept': 'state'}, 'capital', 'Hamburg'] [{'concept': 'state'}, 'capital', 'Kraków'] [{'concept': 'state'}, 'capital', 'Gdańsk']
SELECT DISTINCT ?n WHERE { ?n property:capital resource:Vilnius . ?n rdf:type ontology:state }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q7275),P36,Q216)
[{'concept': 'Q7275'}, 'P36', 'Q216']
[{'concept': 'state'}, 'capital', 'Vilnius']
[]
Q172107 Q76236 Q49683
SYSTEM
Polish–Lithuanian Commonwealth, Lithuanian–Belorussian Soviet Socialist Republic, Grand Duchy of Lithuania
Q80211 Q172107 Q49683 Q76236 Q523380
(c(Q7275),P36,Q216)
action filter_type
action find_reverse
entity Q216
relation P36
type Q7275
[ANSWERS] consist of that administrative territory as their capital
[{'concept': 'Q7275'}, 'P36', 'Q216']
SELECT DISTINCT ?n WHERE { ?n property:P36 resource:Q216 . ?n rdf:type ontology:Q7275 }
Lithuanian Soviet Socialist Republic Polish–Lithuanian Commonwealth Grand Duchy of Lithuania Lithuanian–Belorussian Soviet Socialist Republic Republic of Central Lithuania
Polish–Lithuanian Commonwealth, Lithuanian–Belorussian Soviet Socialist Republic and Grand Duchy of Lithuania consist of that administrative territory as their capital
Polish–Lithuanian Commonwealth Lithuanian–Belorussian Soviet Socialist Republic Grand Duchy of Lithuania
action filter_type
action find_reverse
entity Vilnius
relation capital
type state
[{'concept': 'state'}, 'capital', 'Vilnius']
SELECT DISTINCT ?n WHERE { ?n property:capital resource:Vilnius . ?n rdf:type ontology:state }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q5962346 Q34770 Q15617994
USER
Which administrative territories have their official language as atmost 1 classification schemes or languages ?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action atmost
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
value 1
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) ?h WHERE { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } GROUP BY ?h } . FILTER ( ?n <= 1 ) }
action atmost
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) ?h WHERE { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:classification_scheme ) ( ontology:language ) } } GROUP BY ?h } . FILTER ( ?n <= 1 ) }
[]
classification scheme language designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q805 Q804 Q399 Q801 Q800 Q473259 Q709 Q398 Q668 Q414 Q142 Q1039 Q21671144 Q1948 Q32 Q12536 Q262 Q148 Q783 Q784 Q265 Q30 Q37 Q493428 Q16006 Q712 Q711 Q710 Q717 Q837 Q2003 Q252 Q2068764 Q21850324 Q403 Q657 Q258 Q1979 Q45 Q159 Q43 Q41 Q155 Q792 Q673813 Q790 Q4628 Q796 Q794 Q954 Q953 Q669945 Q884 Q958 Q881 Q503181 Q986 Q219 Q826 Q247613 Q241 Q242 Q244 Q1974 Q811 Q603392 Q53381 Q33 Q921 Q31 Q101526 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q165934 Q423 Q889 Q851 Q733 Q29999 Q854 Q734 Q819 Q253445 Q424 Q55 Q730 Q1013 Q236 Q795587 Q230 Q232 Q693658 Q145 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q21853467 Q1049 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q1904 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q1050 Q17 Q1989 Q686312 Q10957559 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q59118 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q160307 Q1483510 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q243220 Q683 Q34020 Q686 Q836 Q760 Q574 Q637451 Q874 Q3365904 Q79 Q77 Q858 Q199688 Q878 Q774 Q948 Q817 Q810 Q770 Q813 Q1014 Q1016 Q1011 Q945 Q678 Q8575586 Q21848848 Q233 Q672 Q176 Q61698 Q822 Q1952 Q863 Q2023 Q869 Q1230929
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action atmost
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
value 1
[ANSWERS] have their official language as atmost 1 classification schemes or languages
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) ?h WHERE { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:Q5962346 ) ( ontology:Q34770 ) } } GROUP BY ?h } . FILTER ( ?n <= 1 ) }
Yemen Panama Armenia Israel Costa Rica Ammerthal Marshall Islands Bahrain India Argentina France Sao Tomé and Príncipe Mezhetchina Manitoba Luxembourg Abbasid caliphate Algeria People's Republic of China Honduras Dominica Uzbekistan United States of America Lithuania Mistretta Goch Fiji Mongolia Kiribati Venezuela Nepal Newfoundland and Labrador Indonesia Archa Darugha Gireyevo Serbia Chad South Africa Prince Edward Island Portugal Russia Turkey Greece Brazil El Salvador Euratsfeld Haiti Faroe Islands Iraq Iran Zimbabwe Zambia Vorau South Korea South Sudan Vietnam Herzberg am Harz Eritrea Bulgaria Maldives Bernese Jura Cuba Belize Barbados British Columbia Nicaragua Schönwalde Tolmezzo Finland Brunei Belgium Rovetta Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Colombia Bokensdorf North Korea Afghanistan Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Kolbermoor Cambodia Netherlands Suriname Lesotho Montenegro Escuintla Georgia Kazakhstan Izabal Department United Kingdom San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary Romanovo Sudan Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Ontario Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Swaziland Japan Saskatchewan Duchy of Amalfi Moldavia Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Aappilattoq Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Principality of Wales Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Côte d'Ivoire Republic of the Congo Comoros Rocca di Cave Samoa Niue Vanuatu Myanmar Saint Lucia East Timor Rohrbach Turkmenistan Saint-Léonard Parish, New Brunswick Egypt Uruguay Syria Almohad United Arab Emirates Guatemala Tunisia Kuwait Jordan Friesland Kyrgyzstan Liberia Libya Cape Verde Togo Tonga Umayyad Caliphate Lyskovo Malta Tuvalu Quebec Büsingen Lebanon Nova Scotia Tajikistan Nunavut Thailand Kesklinn
Italy, Brazil and United States of America have their official language as atmost 1 classification schemes or languages
Italy Brazil United States of America
action atmost
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) ?h WHERE { ?p rdf:type ?x . VALUES ( ?x ) { ( ontology:classification_scheme ) ( ontology:language ) } } GROUP BY ?h } . FILTER ( ?n <= 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21014
P530
Q15617994
USER
Do Niebüll have ambassadorial relations with those ones ?
(Q21014,P530,Q38) (Q21014,P530,Q155) (Q21014,P530,Q30)
action is_in
entity prev_answer
action find
entity Q21014
relation P530
['Q21014', 'P530', 'Q38'] ['Q21014', 'P530', 'Q155'] ['Q21014', 'P530', 'Q30']
ASK WHERE { resource:Q21014 property:P530 ?v . VALUES ( ?v ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q399 ) } }
Niebüll
action is_in
entity prev_answer
action find
entity Niebüll
relation diplomatic relation
['Niebüll', 'diplomatic relation', 'Italy'] ['Niebüll', 'diplomatic relation', 'Brazil'] ['Niebüll', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Niebüll property:diplomatic_relation ?v . VALUES ( ?v ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Armenia ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q21014,P530,Q38) (Q21014,P530,Q155) (Q21014,P530,Q30)
action is_in
entity prev_answer
action find
entity Q21014
relation P530
[ANSWER]
['Q21014', 'P530', 'Q38'] ['Q21014', 'P530', 'Q155'] ['Q21014', 'P530', 'Q30']
ASK WHERE { resource:Q21014 property:P530 ?v . VALUES ( ?v ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q399 ) } }
No
action is_in
entity prev_answer
action find
entity Niebüll
relation diplomatic relation
['Niebüll', 'diplomatic relation', 'Italy'] ['Niebüll', 'diplomatic relation', 'Brazil'] ['Niebüll', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Niebüll property:diplomatic_relation ?v . VALUES ( ?v ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Armenia ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q4843701
P85
Q484692 Q7725634 Q7275
USER
Which states have greater number of hymns or literary works as their anthem than Libyan Arab Jamahiriya ?
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action greater
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q4843701
relation P85
type Q484692
type Q7725634
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) ?z WHERE { VALUES ( ?t ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?s rdf:type ?t } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { resource:Q4843701 property:P85 ?e . { { ?e rdf:type ontology:Q7725634 } UNION { ?e rdf:type ontology:Q484692 } } } } . FILTER ( ?n > ?p ) }
Libyan Arab Jamahiriya
action greater
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity Libyan Arab Jamahiriya
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) ?z WHERE { VALUES ( ?t ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?s rdf:type ?t } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { resource:Libyan_Arab_Jamahiriya property:anthem ?e . { { ?e rdf:type ontology:literary_work } UNION { ?e rdf:type ontology:hymn } } } } . FILTER ( ?n > ?p ) }
[]
hymn literary work state
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q241748 Q211853 Q180573 Q797527 Q1274468 Q2414171 Q218023 Q245160 Q25279 Q174193 Q965174 Q233263 Q1028835 Q330988 Q139670 Q27306 Q457167 Q533558 Q167360 Q1044536 Q209065 Q21203 Q713750 Q209062 Q1998866 Q207162 Q11196 Q2006542 Q131964 Q133356 Q2454585 Q33946 Q83572 Q191077 Q2638486 Q28278 Q16957 Q1649871 Q941881 Q870055 Q842794 Q1057542 Q652560 Q550374 Q178038 Q30623 Q203493 Q867778 Q147909 Q980 Q58202 Q1709185 Q154401 Q180393 Q112558 Q252580 Q518101 Q37024 Q16410 Q153128 Q83286 Q173761 Q207272 Q25227 Q15864 Q738144 Q36704 Q950644 Q153015 Q49910 Q386496 Q696242 Q71092 Q15180 Q217230 Q170072 Q170174 Q212056 Q210542 Q7318 Q1072140 Q170468 Q146328 Q248452 Q8733 Q371334 Q853348 Q824489 Q2342822 Q189988 Q1192936 Q615902 Q708865 Q498735 Q491559 Q154195 Q1072362 Q1775277 Q121932 Q146761 Q153660 Q70972 Q497777 Q206411 Q12548 Q211274 Q6500954 Q26988 Q26273 Q139319 Q171150 Q487687 Q370736 Q541455 Q41304 Q797422 Q216173 Q178469
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action greater
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q4843701
relation P85
type Q484692
type Q7725634
[ANSWERS] have greater number of hymns or literary works as their anthem than Libyan Arab Jamahiriya
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) ?z WHERE { VALUES ( ?t ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?s rdf:type ?t } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { resource:Q4843701 property:P85 ?e . { { ?e rdf:type ontology:Q7725634 } UNION { ?e rdf:type ontology:Q484692 } } } } . FILTER ( ?n > ?p ) }
Kingdom of Serbia Republic of Serbian Krajina South Vietnam British Togoland Republic of Bosnia and Herzegovina First Brazilian Republic Orange Free State Democratic Republic of Georgia Curaçao United Kingdom of Great Britain and Ireland Coalition Provisional Authority Second Republic of South Korea British Cameroons Democratic Kampuchea Democratic Republic of Armenia Kingdom of Prussia West Ukrainian People's Republic Kingdom of Croatia-Slavonia First Portuguese Republic Spain under the Restoration Kingdom of Greece Aruba West Germany Socialist Republic of Croatia Czech and Slovak Federal Republic Bourbon Restoration Republika Srpska Dominion of Pakistan Austrian Empire Ukrainian Soviet Socialist Republic History of Czechoslovakia Czechoslovakia Sikh Empire Kingdom of Yugoslavia Kingdom of Cambodia Provisional Government of the Republic of Korea East Germany Kingdom of Poland Netherlands New Guinea Kingdom of Laos Socialist Republic of Romania Republic of Hawaii West Indies Federation South African Republic Second Spanish Republic Manchukuo Kingdom of Romania People's Republic of Kampuchea Kingdom of Bulgaria Bavaria July Monarchy Kingdom of Spain under Joseph Bonaparte Slovak Republic Kingdom of the Two Sicilies Republic of Saugeais Duchy of Modena and Reggio First Republic of Austria Serbia and Montenegro People's Republic of Hungary Independent State of Croatia Socialist Federal Republic of Yugoslavia Lithuanian Soviet Socialist Republic Second Polish Republic Netherlands Antilles United Kingdom of the Netherlands United Provinces of the Río de la Plata Yugoslavia Carpatho-Ukraine Kingdom of Saxony Colony of Aden Kingdom of Montenegro Reorganized National Government of China Second French Empire Soviet Union Empire of Brazil Dutch Republic Papal States Mongolian People's Republic Second Brazilian Republic Nazi Germany Roman Republic United Arab Republic Commonwealth of the Philippines British North America Qing dynasty Second Mexican Empire Czechoslovak Socialist Republic Estado Novo West Pakistan Central African Empire Kingdom of Burundi Kingdom of Finland Reformed Government of the Republic of China division of Korea First Republic of South Korea Kingdom of Bavaria Provisional Revolutionary Government of the Republic of South Vietnam Dominion of India People's Republic of Bulgaria Hatay State Italian Social Republic Kingdom of France First Spanish Republic Democratic Republic of Azerbaijan Holy Roman Empire People's Republic of Poland Zaire Cook Islands Sint Maarten Russian Republic Kingdom of Hungary Third Republic of South Korea Cape Colony Anglo-Egyptian Sudan Weimar Republic Republic of Upper Volta Free City of Danzig Biafra
Czechoslovakia, Soviet Union and Bavaria have greater number of hymns or literary works as their anthem than Libyan Arab Jamahiriya
Czechoslovakia Soviet Union Bavaria
action greater
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity Libyan Arab Jamahiriya
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) ?z WHERE { VALUES ( ?t ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?s rdf:type ?t } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { resource:Libyan_Arab_Jamahiriya property:anthem ?e . { { ?e rdf:type ontology:literary_work } UNION { ?e rdf:type ontology:hymn } } } } . FILTER ( ?n > ?p ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q837136
P85
Q484692 Q7725634 Q7275
USER
And what about Kingdom of Deheubarth?
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action greater
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q837136
relation P85
type Q484692
type Q7725634
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?h ) WHERE { { ?a property:P85 ?b . ?a rdf:type ontology:Q7275 . ?b rdf:type ontology:Q484692 } UNION { ?a property:P85 ?b . ?a rdf:type ontology:Q7275 . ?b rdf:type ontology:Q7725634 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Q837136 property:P85 ?g . { { ?g rdf:type ontology:Q484692 } UNION { ?g rdf:type ontology:Q7725634 } } } } . FILTER ( ?h > ?e ) }
Kingdom of Deheubarth
action greater
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity Kingdom of Deheubarth
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?h ) WHERE { { ?a property:anthem ?b . ?a rdf:type ontology:state . ?b rdf:type ontology:hymn } UNION { ?a property:anthem ?b . ?a rdf:type ontology:state . ?b rdf:type ontology:literary_work } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Kingdom_of_Deheubarth property:anthem ?g . { { ?g rdf:type ontology:hymn } UNION { ?g rdf:type ontology:literary_work } } } } . FILTER ( ?h > ?e ) }
[]
hymn literary work state
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q241748 Q211853 Q180573 Q797527 Q1274468 Q2414171 Q218023 Q245160 Q25279 Q174193 Q965174 Q233263 Q1028835 Q330988 Q139670 Q27306 Q457167 Q533558 Q167360 Q1044536 Q209065 Q21203 Q713750 Q209062 Q1998866 Q207162 Q11196 Q2006542 Q131964 Q133356 Q2454585 Q33946 Q83572 Q191077 Q2638486 Q28278 Q16957 Q1649871 Q941881 Q870055 Q842794 Q1057542 Q652560 Q550374 Q178038 Q30623 Q203493 Q867778 Q147909 Q980 Q58202 Q1709185 Q154401 Q180393 Q112558 Q252580 Q518101 Q37024 Q16410 Q153128 Q83286 Q173761 Q207272 Q25227 Q15864 Q738144 Q36704 Q950644 Q153015 Q49910 Q386496 Q696242 Q71092 Q15180 Q217230 Q170072 Q170174 Q212056 Q210542 Q7318 Q1072140 Q170468 Q146328 Q248452 Q8733 Q371334 Q853348 Q824489 Q2342822 Q189988 Q1192936 Q615902 Q708865 Q498735 Q491559 Q154195 Q1072362 Q1775277 Q121932 Q146761 Q153660 Q70972 Q497777 Q206411 Q12548 Q211274 Q6500954 Q26988 Q26273 Q139319 Q171150 Q487687 Q370736 Q541455 Q41304 Q797422 Q216173 Q178469
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action greater
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q837136
relation P85
type Q484692
type Q7725634
[ANSWERS]
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?h ) WHERE { { ?a property:P85 ?b . ?a rdf:type ontology:Q7275 . ?b rdf:type ontology:Q484692 } UNION { ?a property:P85 ?b . ?a rdf:type ontology:Q7275 . ?b rdf:type ontology:Q7725634 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Q837136 property:P85 ?g . { { ?g rdf:type ontology:Q484692 } UNION { ?g rdf:type ontology:Q7725634 } } } } . FILTER ( ?h > ?e ) }
Kingdom of Serbia Republic of Serbian Krajina South Vietnam British Togoland Republic of Bosnia and Herzegovina First Brazilian Republic Orange Free State Democratic Republic of Georgia Curaçao United Kingdom of Great Britain and Ireland Coalition Provisional Authority Second Republic of South Korea British Cameroons Democratic Kampuchea Democratic Republic of Armenia Kingdom of Prussia West Ukrainian People's Republic Kingdom of Croatia-Slavonia First Portuguese Republic Spain under the Restoration Kingdom of Greece Aruba West Germany Socialist Republic of Croatia Czech and Slovak Federal Republic Bourbon Restoration Republika Srpska Dominion of Pakistan Austrian Empire Ukrainian Soviet Socialist Republic History of Czechoslovakia Czechoslovakia Sikh Empire Kingdom of Yugoslavia Kingdom of Cambodia Provisional Government of the Republic of Korea East Germany Kingdom of Poland Netherlands New Guinea Kingdom of Laos Socialist Republic of Romania Republic of Hawaii West Indies Federation South African Republic Second Spanish Republic Manchukuo Kingdom of Romania People's Republic of Kampuchea Kingdom of Bulgaria Bavaria July Monarchy Kingdom of Spain under Joseph Bonaparte Slovak Republic Kingdom of the Two Sicilies Republic of Saugeais Duchy of Modena and Reggio First Republic of Austria Serbia and Montenegro People's Republic of Hungary Independent State of Croatia Socialist Federal Republic of Yugoslavia Lithuanian Soviet Socialist Republic Second Polish Republic Netherlands Antilles United Kingdom of the Netherlands United Provinces of the Río de la Plata Yugoslavia Carpatho-Ukraine Kingdom of Saxony Colony of Aden Kingdom of Montenegro Reorganized National Government of China Second French Empire Soviet Union Empire of Brazil Dutch Republic Papal States Mongolian People's Republic Second Brazilian Republic Nazi Germany Roman Republic United Arab Republic Commonwealth of the Philippines British North America Qing dynasty Second Mexican Empire Czechoslovak Socialist Republic Estado Novo West Pakistan Central African Empire Kingdom of Burundi Kingdom of Finland Reformed Government of the Republic of China division of Korea First Republic of South Korea Kingdom of Bavaria Provisional Revolutionary Government of the Republic of South Vietnam Dominion of India People's Republic of Bulgaria Hatay State Italian Social Republic Kingdom of France First Spanish Republic Democratic Republic of Azerbaijan Holy Roman Empire People's Republic of Poland Zaire Cook Islands Sint Maarten Russian Republic Kingdom of Hungary Third Republic of South Korea Cape Colony Anglo-Egyptian Sudan Weimar Republic Republic of Upper Volta Free City of Danzig Biafra
Czechoslovakia Soviet Union Bavaria
action greater
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity Kingdom of Deheubarth
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?h ) WHERE { { ?a property:anthem ?b . ?a rdf:type ontology:state . ?b rdf:type ontology:hymn } UNION { ?a property:anthem ?b . ?a rdf:type ontology:state . ?b rdf:type ontology:literary_work } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) WHERE { resource:Kingdom_of_Deheubarth property:anthem ?g . { { ?g rdf:type ontology:hymn } UNION { ?g rdf:type ontology:literary_work } } } } . FILTER ( ?h > ?e ) }
[]