Simple Question (Direct)
Simple Question
Q5955574
P1412
Q34770
USER
Which language can Julio Nombela understand ?
(Q5955574,P1412,c(Q34770))
action filter_type
action find
entity Q5955574
relation P1412
type Q34770
['Q5955574', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q34770 . resource:Q5955574 property:P1412 ?d }
Julio Nombela
action filter_type
action find
entity Julio Nombela
relation languages spoken, written or signed
type language
['Julio Nombela', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:language . resource:Julio_Nombela property:languages_spoken,_written_or_signed ?d }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q5955574,P1412,c(Q34770))
action filter_type
action find
entity Q5955574
relation P1412
type Q34770
[ANSWER]
['Q5955574', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q34770 . resource:Q5955574 property:P1412 ?d }
Spanish
Spanish
action filter_type
action find
entity Julio Nombela
relation languages spoken, written or signed
type language
['Julio Nombela', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:language . resource:Julio_Nombela property:languages_spoken,_written_or_signed ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5955574
P119
Q43229
USER
Which organization is the tomb of Julio Nombela ?
(Q5955574,P119,c(Q43229))
action filter_type
action find
entity Q5955574
relation P119
type Q43229
['Q5955574', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?b WHERE { resource:Q5955574 property:P119 ?b . ?b rdf:type ontology:Q43229 }
Julio Nombela
action filter_type
action find
entity Julio Nombela
relation place of burial
type organization
['Julio Nombela', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?b WHERE { resource:Julio_Nombela property:place_of_burial ?b . ?b rdf:type ontology:organization }
[]
organization
Q5760351
SYSTEM
San Isidro Cemetery
Q5760351
(Q5955574,P119,c(Q43229))
action filter_type
action find
entity Q5955574
relation P119
type Q43229
[ANSWER]
['Q5955574', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?b WHERE { resource:Q5955574 property:P119 ?b . ?b rdf:type ontology:Q43229 }
San Isidro Cemetery
San Isidro Cemetery
action filter_type
action find
entity Julio Nombela
relation place of burial
type organization
['Julio Nombela', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?b WHERE { resource:Julio_Nombela property:place_of_burial ?b . ?b rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5955574
P27
Q15617994
USER
Which administrative territory does Julio Nombela belong to ?
(Q5955574,P27,c(Q15617994))
action filter_type
action find
entity Q5955574
relation P27
type Q15617994
['Q5955574', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q5955574 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Julio Nombela
action filter_type
action find
entity Julio Nombela
relation country of citizenship
type designation for an administrative territorial entity
['Julio Nombela', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Julio_Nombela property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q5955574,P27,c(Q15617994))
action filter_type
action find
entity Q5955574
relation P27
type Q15617994
[ANSWER]
['Q5955574', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q5955574 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Spain
Spain
action filter_type
action find
entity Julio Nombela
relation country of citizenship
type designation for an administrative territorial entity
['Julio Nombela', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Julio_Nombela property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20006683
Q15617994
USER
And what about Toni-Lluís Reyes?
(Q20006683,P27,c(Q15617994))
action filter_type
action find
entity Q20006683
relation P27
type Q15617994
['Q20006683', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q20006683 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Toni-Lluís Reyes
action filter_type
action find
entity Toni-Lluís Reyes
relation country of citizenship
type designation for an administrative territorial entity
['Toni-Lluís Reyes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Toni-Lluís_Reyes property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q20006683,P27,c(Q15617994))
action filter_type
action find
entity Q20006683
relation P27
type Q15617994
[ANSWER]
['Q20006683', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q20006683 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Spain
Spain
action filter_type
action find
entity Toni-Lluís Reyes
relation country of citizenship
type designation for an administrative territorial entity
['Toni-Lluís Reyes', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Toni-Lluís_Reyes property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q29 Q3319519
P27
Q502895
USER
Is Támara Echegoyen a citizen of that administrative territory ?
(Q3319519,P27,Q29)
action is_in
entity Q29
action find
entity Q3319519
relation P27
['Q3319519', 'P27', 'Q29']
ASK WHERE { resource:Q3319519 property:P27 resource:Q29 }
Spain Támara Echegoyen
action is_in
entity Spain
action find
entity Támara Echegoyen
relation country of citizenship
['Támara Echegoyen', 'country of citizenship', 'Spain']
ASK WHERE { resource:Támara_Echegoyen property:country_of_citizenship resource:Spain }
[]
common name
SYSTEM
YES
(Q3319519,P27,Q29)
action is_in
entity Q29
action find
entity Q3319519
relation P27
[ANSWER]
['Q3319519', 'P27', 'Q29']
ASK WHERE { resource:Q3319519 property:P27 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity Támara Echegoyen
relation country of citizenship
['Támara Echegoyen', 'country of citizenship', 'Spain']
ASK WHERE { resource:Támara_Echegoyen property:country_of_citizenship resource:Spain }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q414
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with less number of administrative territories than Argentina ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q414
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?s ) AS ?u ) WHERE { ?v rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 . ?v property:P530 ?s } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ontology:Q15617994 . resource:Q414 property:P530 ?w } } . FILTER ( ?u < ?l ) }
Argentina
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Argentina
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?s ) AS ?u ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?s } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Argentina property:diplomatic_relation ?w } } . FILTER ( ?u < ?l ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q32
SYSTEM
Netherlands, Poland, Luxembourg
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q954 Q889 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q77 Q878 Q774 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q414
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?s ) AS ?u ) WHERE { ?v rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 . ?v property:P530 ?s } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ontology:Q15617994 . resource:Q414 property:P530 ?w } } . FILTER ( ?u < ?l ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Zimbabwe Afghanistan South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Uruguay United Arab Emirates Guatemala Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand
Netherlands Poland Luxembourg
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Argentina
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?s ) AS ?u ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?s } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Argentina property:diplomatic_relation ?w } } . FILTER ( ?u < ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q419
P530
Q15617994 Q15617994
USER
And also tell me about Peru?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q419
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?q ) WHERE { ?k property:P530 ?h . ?k rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?q < ?z ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { resource:Q419 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } }
Peru
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Peru
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?q ) WHERE { ?k property:diplomatic_relation ?h . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?q < ?z ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { resource:Peru property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q20 Q33
SYSTEM
Netherlands, Norway, Finland
Q702 Q804 Q800 Q55 Q262 Q783 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q983 Q851 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q224 Q221 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q419
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?q ) WHERE { ?k property:P530 ?h . ?k rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?q < ?z ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { resource:Q419 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Netherlands Algeria Honduras Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Equatorial Guinea Saudi Arabia Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Croatia Republic of Macedonia Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga New Caledonia Thailand
Netherlands Norway Finland
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Peru
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?q ) WHERE { ?k property:diplomatic_relation ?h . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?q < ?z ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { resource:Peru property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q838948
USER
How many administrative territories are the countries of origin of approximately the same number of collectables and works of art as that administrative territory ?
(c(Q2342494)|c(Q838948),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
designation for an administrative territorial entity collectable work of art
Comparative|Count over More/Less|Mult. entity type|Clarification
Q55
SYSTEM
Did you mean Netherlands ?
(c(Q2342494)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Did you mean Netherlands ?
Netherlands
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q2342494)|c(Q838948),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
164
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2342494)|c(Q838948),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q838948 }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
164
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P6
Q502895
USER
Which people have Spain as their heads of government ?
(Q29,P6,c(Q502895))
action filter_type
action find
entity Q29
relation P6
type Q502895
['Q29', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q29 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Spain
action filter_type
action find
entity Spain
relation head of government
type common name
['Spain', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Spain property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
common name
Q10819 Q41395
SYSTEM
Mariano Rajoy, José Luis Rodríguez Zapatero
Q10819 Q41395
(Q29,P6,c(Q502895))
action filter_type
action find
entity Q29
relation P6
type Q502895
[ANSWERS]
['Q29', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q29 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Mariano Rajoy José Luis Rodríguez Zapatero
Mariano Rajoy José Luis Rodríguez Zapatero
action filter_type
action find
entity Spain
relation head of government
type common name
['Spain', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Spain property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q10819
P26
Q502895
USER
Who is the spouse of that one ?
(c(Q502895),P26,Q10819)
action filter_type
action find
entity Q10819
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q10819']
SELECT DISTINCT ?h WHERE { resource:Q10819 property:P26 ?h . ?h rdf:type ontology:Q502895 }
Mariano Rajoy
action filter_type
action find
entity Mariano Rajoy
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Mariano Rajoy']
SELECT DISTINCT ?h WHERE { resource:Mariano_Rajoy property:spouse ?h . ?h rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q10819
SYSTEM
Did you mean Mariano Rajoy ?
Q10819 Q41395
(c(Q502895),P26,Q10819) (c(Q502895),P26,Q41395)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q10819'] [{'concept': 'Q502895'}, 'P26', 'Q41395']
SELECT DISTINCT ?h WHERE { resource:Q10819 property:P26 ?h . ?h rdf:type ontology:Q502895 }
Mariano Rajoy José Luis Rodríguez Zapatero
Did you mean Mariano Rajoy ?
Mariano Rajoy
[{'concept': 'common name'}, 'spouse', 'Mariano Rajoy'] [{'concept': 'common name'}, 'spouse', 'José Luis Rodríguez Zapatero']
SELECT DISTINCT ?h WHERE { resource:Mariano_Rajoy property:spouse ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P26,Q10819)
[{'concept': 'Q502895'}, 'P26', 'Q10819']
[{'concept': 'common name'}, 'spouse', 'Mariano Rajoy']
[]
Q3051822
SYSTEM
Elvira Fernández Balboa
Q3051822
(c(Q502895),P26,Q10819)
action filter_type
action find
entity Q10819
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q10819']
SELECT DISTINCT ?h WHERE { resource:Q10819 property:P26 ?h . ?h rdf:type ontology:Q502895 }
Elvira Fernández Balboa
Elvira Fernández Balboa
action filter_type
action find
entity Mariano Rajoy
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Mariano Rajoy']
SELECT DISTINCT ?h WHERE { resource:Mariano_Rajoy property:spouse ?h . ?h rdf:type ontology:common_name }
[]